Course Code: ora_p2
Duration: 21 hours
Prerequisites:

Knowledge of the basics of the SQL language in terms of queries, as well as DML, DDL and TCL commands, as well as the ability to interpret and create simple PL/SQL scripts.

Overview:

Level
Advanced
Form
Lecture, Presentation, Workshop, Problem solving
Purpose of the training
The training is intended for programmers who know the basics of SQL and PL/SQL, but want to learn more advanced mechanisms of the language, and want to create database applications based on stored PL/SQL programs.
Benefits of completing the training
Acquisition of skills in creating database applications embedded in a database.

Course Outline:

Create stored subroutines

  • Compilation, object status, source codes
  • Code encryption (wrap)
  • Object dependency model
  • Parameterization

Permissions and schemas in PL/SQL

  • Owner and caller model
  • Direct and role permissions
  • Whitelist
  • Assigning roles to procedures and inheriting permissions

Advanced Cursors

  • Comparison of explicit cursors and cursor loops
  • Pointers for weak and strong cursors
  • Support for dynamic cursors
  • FOR UPDATE cursors

Collections

  • Associative tables (index by), nested tables and varrays
  • Attributes, handling, initialization, memory allocation
  • Bulk queries (BULK COLLECT) and bulk DML (FORALL)
  • Bulk operations in dynamic SQL
  • Exception handling in bulk operations
  • Array and stream functions

Packages

  • Package structure: specification and body
  • Benefits of using packages
  • Initialization section and global variables, memory management, package instance

Triggers

  • DML triggers
  • View triggers (INSTEAD OF)
  • System Triggers
  • Composite triggers

Application context and VPD

  • Using built-in context
  • Create your own private and global contexts
  • Saving and reading context values
  • Policies and Virtual Private Database

Appendix A - Examples of using embedded packages

  • File handling (utl_file)
  • Job scheduling (dbms_job and dbms_scheduler

Suggested pre-training
ORA_S1, ORA_P1
Suggested complementary training
ORA_SP3

Sites Published:

United Arab Emirates - Oracle PL/SQL advanced programming

Qatar - Oracle PL/SQL advanced programming

Egypt - Oracle PL/SQL advanced programming

Saudi Arabia - Oracle PL/SQL advanced programming

South Africa - Oracle PL/SQL advanced programming

Polska - Oracle PL/SQL zaawansowane programowanie

Morocco - Oracle PL/SQL advanced programming

Tunisia - Oracle PL/SQL advanced programming

Kuwait - Oracle PL/SQL advanced programming

Oman - Oracle PL/SQL advanced programming

Kenya - Oracle PL/SQL advanced programming

Nigeria - Oracle PL/SQL advanced programming

Botswana - Oracle PL/SQL advanced programming

Slovenia - Oracle PL/SQL advanced programming

Croatia - Oracle PL/SQL advanced programming

Serbia - Oracle PL/SQL advanced programming

Bhutan - Oracle PL/SQL advanced programming

Nepal - Oracle PL/SQL advanced programming

Uzbekistan - Oracle PL/SQL advanced programming