Course Outline
Introduction
- Purpose and Learning Objectives
- Curriculum Timeline
- Participant Background
- Required Prerequisites
- Participant Obligations
SQL Tools
- Learning Outcomes
- SQL Developer Environment
- SQL Developer - Establishing Connectivity
- Reviewing Table Metadata
- Executing SQL Queries via SQL Developer
- SQL*Plus Authentication
- Direct Database Connection
- Operating SQL*Plus
- Terminating the Session
- SQL*Plus Command Reference
- SQL*Plus Configuration Settings
- SQL*Plus Command Prompt
- Identifying Table Information
- Accessing Documentation
- Utilizing SQL Script Files
- iSQL*Plus and Entity Models
- ORDERS Dataset
- FILM Dataset
- Course Reference Materials
- SQL Statement Structure
- SQL*Plus Command Syntax
What is PL/SQL?
- Overview of PL/SQL
- Benefits of PL/SQL Implementation
- Block Architecture
- Outputting Messages
- Code Demonstrations
- Configuring SERVEROUTPUT
- Update Demonstration and Coding Standards
Variables
- Variable Definitions
- Data Types
- Variable Assignment
- Constant Values
- Scope: Local vs. Global Variables
- %TYPE Variable Declaration
- Substitution Parameters
- Commenting Conventions using &
- Verification Options
- Variable Persistence using &&
- Define and Undefine Commands
SELECT Statement
- The SELECT Clause
- Assigning Values to Variables
- %ROWTYPE Variable Definition
- CHR Function Usage
- Independent Study
- PL/SQL Record Definitions
- Declarative Examples
Conditional Statement
- IF Condition Logic
- SELECT Clause Integration
- Independent Study
- CASE Expression
Trapping Errors
- Exception Handling
- System-Generated Errors
- Error Codes and Descriptions
- Handling NO_DATA_FOUND
- Custom Exceptions
- Raising Application Errors
- Capturing Undefined Errors
- PRAGMA EXCEPTION_INIT Directive
- Transaction Control: Commit and Rollback
- Independent Study
- Nested Block Structures
- Practical Exercise
Iteration - Looping
- Basic Loop Construct
- While Loop Construct
- For Loop Construct
- Goto Statements and Labels
Cursors
- Cursor Mechanics
- Cursor Attributes
- Explicit Cursor Definition
- Explicit Cursor Demonstration
- Cursor Declaration
- Variable Declaration for Cursors
- Opening Cursor and Retrieving First Record
- Retrieving Subsequent Records
- Exit Condition: %NOTFOUND
- Closing the Cursor
- For Loop Application I
- For Loop Application II
- Update Operation Demonstration
- FOR UPDATE Clause
- FOR UPDATE OF Clause
- WHERE CURRENT OF Clause
- Transaction Management with Cursors
- Data Validation Example I
- Data Validation Example II
- Cursor Parameters
- Practical Exercise
- Exercise Resolution
Procedures, Functions and Packages
- CREATE Statement Syntax
- Parameter Definitions
- Procedure Logic Body
- Diagnostic Error Reporting
- Procedure Inspection
- Invoking Procedures
- Procedure Execution in SQL*Plus
- Output Parameter Usage
- Invocation with Output Parameters
- Function Creation
- Function Demonstration
- Diagnostic Error Reporting
- Function Inspection
- Function Invocation
- Function Execution in SQL*Plus
- Modular Development Principles
- Procedural Example
- Function Invocation
- Function Invocation within Conditional Logic
- Package Creation
- Package Demonstration
- Rationale for Package Use
- Public vs. Private Subroutines
- Diagnostic Error Reporting
- Package Inspection
- Package Execution in SQL*Plus
- Package Invocation from Subroutines
- Removal of Subroutines
- Identifying Subroutines
- Development of Debug Packages
- Execution of Debug Packages
- Positional and Named Parameter Notation
- Default Parameter Values
- Recompilation of Procedures and Functions
- Practical Exercise
Triggers
- Trigger Creation
- Statement-Level Triggers
- Row-Level Triggers
- WHEN Clause Restrictions
- Conditional Triggers using IF
- Diagnostic Error Reporting
- Transaction Control in Triggers
- Implementation Constraints
- Mutating Table Issues
- Identifying Triggers
- Removal of Triggers
- Automatic Numbering Generation
- Deactivation of Triggers
- Activation of Triggers
- Naming Conventions for Triggers
Sample Data
- ORDER Dataset
- FILM Dataset
- EMPLOYEE Dataset
Dynamic SQL
- SQL Execution within PL/SQL
- Variable Binding
- Dynamic SQL Fundamentals
- Native Dynamic SQL
- Data Definition and Manipulation
- DBMS_SQL Package
- Dynamic SQL - SELECT Operations
- Dynamic SQL - SELECT Procedure
Using Files
- Text File Processing
- UTL_FILE Package
- Write and Append Demonstration
- Read Operation Demonstration
- Trigger-Based File Operation
- DBMS_ALERT Package
- DBMS_JOB Package
COLLECTIONS
- %TYPE Variable Usage
- Record Variable Definition
- Collection Type Definitions
- Index-By Tables
- Value Assignment in Collections
- Handling Nonexistent Elements
- Nested Tables
- Nested Table Initialization
- Constructor Method Usage
- Appending to Nested Tables
- VARRAY Types
- VARRAY Initialization
- Appending to VARRAYs
- Multilevel Collection Structures
- Bulk Binding
- Bulk Binding Demonstration
- Transactional Considerations
- BULK COLLECT Clause
- RETURNING INTO Clause
Ref Cursors
- Cursor Variable Mechanics
- REF CURSOR Type Definition
- Cursor Variable Declaration
- Constrained vs. Unconstrained Types
- Application of Cursor Variables
- Cursor Variable Demonstrations
Requirements
Enrollment is recommended for individuals possessing a foundational understanding of SQL, as this is essential for effective participation in advanced database tasks.
Prior familiarity with interactive computing systems is advantageous but not strictly required for this training module.
Testimonials (7)
I liked the hands-on experience and the opportunity to work on actual coding activities
Kristine - Isuzu Philippines Corporation
Course - ORACLE PL/SQL Fundamentals
Relate each topic to a real world application case.
Ferdinand - National Grid Corporation of the Philippines
Course - ORACLE PL/SQL Fundamentals
the practices and the trainer notes
Hamda AlMahri - Dubai Courts
Course - ORACLE PL/SQL Fundamentals
Mr. Khobeib was a great lecturer and trainer. As a beginner to PL/SQL, Khobeib explained the basics and was patient with us while going through the training material. He answered all our questions thoroughly and showed a lot of examples when we asked him to. I definitely learned a lot and can start doing tasks with PL/SQL.
Abdulrahman Alsalami - Dubai Courts
Course - ORACLE PL/SQL Fundamentals
the trainer helpful all the time
Maitha Alselais - Dubai Courts
Course - ORACLE PL/SQL Fundamentals
The trainer was fantastic in all aspects. He was very interactive and engaging. Most importantly, the topics were taught very clearly and at a perfect pace to complete the course. I really appreciate it and would like to give a huge thank you to the trainer.
Vivek Thomas - Estee Lauder BV
Course - ORACLE PL/SQL Fundamentals
It was quite hands-on, not too much theory.