Learn how to write powerful and flexible PL/SQL programs.
Gain hands-on experience with Oracle's PL/SQL programming language, with expert assistance from an IT veteran. PL/SQL is Oracle's procedural language extension to Structured Query Language (SQL).
This course will give you the skills you need to write powerful and flexible programs using that language. You'll learn the building blocks and core features of PL/SQL, including expressions, various iterations, and built-in functions. Then, you'll begin building fully functional PL/SQL programs with procedures, packages, debugging routines, database structures, triggers, and cursor processing. By the time you finish this course, you will be able to store PL/SQL programs in a database and execute them.
- This course can be taken on either a PC or Mac.
- PC: Windows 8 or later.
- Mac: OS X Snow Leopard 10.6 or later.
- Browser: The latest version of Google Chrome or Mozilla Firefox are preferred. Microsoft Edge and Safari are also compatible.
- Oracle's Database Software. The Database Software is available for downloading from Oracle's website (www.oracle.com). Download the Oracle Database that supports your operating system. This course provides post-installation instruction on Oracle. Installation support will not be provided in the course. Installation support is provided from Oracle's website.
- Adobe Acrobat Reader. Click here to download the Acrobat Reader.
- Software must be installed and fully operational before the course begins.
- Email capabilities and access to a personal email account.
Completion of Cindy Delia's Introduction to Oracle course (or equivalent experience).
Instructional Material Requirements:
The instructional materials required for this course are included in enrollment and will be available online.Gain hands-on experience with Oracle's PL/SQL programming language with expert assistance from an IT veteran. This course will give you the skills you need to write, build, debug, and execute fully functional PL/SQL programs in a database.
Introduction to PL/SQL
In the first lesson, you'll master the basics of PL/SQL and discover how you can best get started using this powerful language. You'll also learn the differences between SQL, SQL*Plus, and PL/SQL.
Datatypes and Block Structure
The block is the basic unit of PL/SQL programming. In this lesson, you'll learn and understand the various datatypes available to you when declaring variables. You'll also explore the PL/SQL's block structure, its use, and its impact on the scope of variable declarations.
Operators, Expressions, and Datatype Conversions
In this lesson, you're going to learn how to use operators to manipulate variables. You'll build simple expressions that compute two values, as well as complex expressions that consist of function calls, operations using variables, and relational comparisons. You'll also learn about datatype conversions for expressions that contain operands of multiple datatypes.
PL/SQL Functions, IF Statements, and Looping Statements
In this lesson, you'll take a closer look at how to create your own functions. The two main reasons for writing functions are the reduction of code and their ease of use. You'll learn how to code PL/SQL functions, how to define parameters in the functions, and how to store them. The lesson will also show you how to control the execution of PL/SQL blocks using the IF and looping statements. Then, you'll explore the various IF statements and how they operate, and you'll gain experience working with a simple loop.
GOTO Statement, Statement Labels, and Loop Constructs
In this lesson, you'll begin to master more methods for changing the order of execution of PL/SQL blocks. You'll explore statement labels, the GOTO statement, and the different kinds of loops. You'll learn how to branch by using the GOTO statement followed by a statement label. After that, the lesson will discuss why the statement label must appear in the same block and within the same scope as the GOTO statement. Next, you'll look at control structures. You'll learn about the different kinds of loops and how they operate. Finally, you'll discover techniques for exiting loops and how to simulate a REPEAT UNTIL loop.
Oracle's Built-In Functions
You'll look at a number of Oracle's built-in functions in this lesson, including string functions, number functions, date functions, and conversion functions.
Procedures and Packages
In this lesson, you'll focus on procedures and packages and how they allow you to organize your PL/SQL code into logical groups for uncomplicated maintenance and implementation.
Errors and Exceptions
Errors that occur from hardware or network failures, application logic errors, data integrity errors, and other sources are called exceptions. This lesson will introduce you to the concepts behind PL/SQL exception handling. It will explain the different types of exceptions and show you how to identify and handle errors in your code.
Types of SQL Statements, Declaring Variables in PL/SQL, and Transaction Management
Structured Query Language (SQL) is the industry standard for accessing data from relational databases. This lesson will address the connection to the underlying Oracle database through SQL (Structured Query Language). It will cover the usage of SQL's Data Manipulation Language (DML) commands within a PL/SQL block. Then you'll learn how to define DML transactions that insert, update, delete, and query the information.
PL/SQL cursors provide a method for selecting multiple rows of data from the database and processing each row individually. You can use cursors for simple procedures and complex processing. This lesson will introduce you to cursors and how they may be used.
Database Triggers, Advanced Cursor Concepts, and Managing PL/SQL Code
In this lesson, you'll learn about triggers and experiment with implementing a few different types of functionality. The lesson will discuss advanced cursor concepts, which include the SELECT...FOR UPDATE statement, the WHERE CURRENT OF clause, and subqueries in cursors. Finally, you'll learn techniques to managing PL/SQL code.
Debugging Your Code
Although some may never admit to it, everyone makes mistakes, so you will inevitably make some coding errors. These errors are usually comprised of syntax and logic errors. The final lesson will demonstrate how to find these bugs and then how to reduce the number of coding mistakes you may encounter.
Cindy Delia is a Systems Analyst and a certified instructor. She has been working in information technology for more than 18 years and has been a technical trainer for over six years. As a Systems Analyst, Delia specializes in database management systems and develops PC applications. She has taught computer courses at the community college level and also performs corporate training.