Consulting Training Blog Careers About Us Contact Us
All Classes Will Be Held Virtually – Live Online Intertech's Training Division has been successfully instructing professionals through virtual live online training since the advent of the smartboard. It is a proven form and offers the convenience of live questions, group interaction, and labs with an instructor looking over your shoulder. Because of this, we will continue all classes live but virtually, including Agile and Scrum instruction, so businesses and individual’s seeking professional development can keep moving forward during these unexpected times.

Oracle Database 11g R2: Advanced PL/SQL Programming & Tuning Training

Upcoming Classes

Click the Get Notified button for priority notification when a class is next scheduled.

Get Notified

On Site/Private

Can't find a class that fits right for you? Contact us to inquire about scheduling your own private class

Contact Us


This Oracle 11g course will give attention to three fundamental pillars of effective implementation of PL/SQL applications. The PL/SQL programming language is at the core of most Oracle database applications.

First, we will explore the advanced features of the language which allow powerful and effective database applications to be built.

Next, we will discuss performance tuning techniques which allows these applications to run efficiently.

Finally, we will consider critical security measures which should be implemented to counter hacker attacks and other security threats. In addition to receiving the print copy of this course book, all students will receive e-Learning modules.

Bring This Course To You

For groups of 5 or more, let Intertech bring this course to your location. Customized versions tailored towards your objectives are also available.

Learn More

Learning Objectives

Among the specific topics contained within these training materials are:

  • Invoking external procedures and integrating these into PL/SQL applications. These include external Java classes using the JDBC interface and external C programs contained within DLL libraries.
  • Using dynamic SQL to extend the functionality and flexibility of database programs, including the DBMS_SQL() system-supplied package for maximum flexibility.
  • Identifying SQL injection attack vulnerabilities within an application and applying countermeasures to address security risks and protect against hacking.
  • Incorporating collections and other advanced types into application logic to increase efficiency and execution speed.
  • Working with LOBs, including piece-wise data manipulation and dynamic modification of SecureFile storage options.
  • Expanding functionality with system-supplied database utility packages.
  • Tuning with the DBMS_PROFILER() system-supplied package and debugging with the DBMS_TRACE() system-supplied package.
  • Writing efficient PL/SQL code and avoiding common coding mistakes.
  • Enabling native compilation and execution of all database-resident program units.
  • Controlling and managing PL/SQL compilation for high-efficiency execution.
  • Analyze PL/SQL code structure by means of the PL/Scope facility.
  • Analyze PL/SQL application performance and tune bottlenecks using the PL/SQL Hierarachical Profiler.
  • Recognizing the dangers of SQL injection attacks against PL/SQL applications and applying countermeasures to this potential security threat from hackers.
  • Implementing fine-grained security mechanisms as part of an advanced security model using application contexts and the Oracle virtual private database (VPD).
  • Dynamic partitioning and DML parallelization using the system-supplied package DBMS_PARALLEL_EXECUTE().


The target audience for this course is senior application developers. Developers who will be building, debugging and tuning PL/SQL program units will benefit from this course.

Course Outline

Dynamic SQL
  • Advantages & Disadvantages
  • Native Dynamic SQL
  • Dynamic Update...Returning
  • Dynamic SQL Using Dbms_Sql()
Using Collections
  • About Collections
  • Bulk Bind Using Collections
  • Collection Methods
  • More about the Returning Clause
  • Advanced Collection Features
  • Collection Multiset Operations
  • In Indices of Clause
  • In Values of Clause
System-Supplied Packages: Dbms_Metadata() - Part I
  • Why Retrieve Object Definitions?
  • Retrieving Default Metadata
  • Retrieving Customized Metadata
  • Using Open() & Close()
  • Using Set_Filter()
  • Using Set_Count()
  • Using Add_Transform()
  • Using Fetch Ddl()
  • About Sys.Ku$_Ddl
  • About Sys.Ku$_Ddls
  • Calling Fetch_Ddl()
System-Supplied Packages: Dbms_Metadata() - Part II
  • Set_Transform_Param()
  • Get_Query()
System-Supplied Packages: Dbms_Metadata() - Part III
  • Fetch Clob()
  • Set_Filter() For Dependent Objects
  • Set_Parse_Item()
  • Primary & Dependent Object DDL
System-Supplied Packages: Dbms_Redefinition()
  • About Table Redefinition
  • Using Dbms_Redefinition()
  • Dba_Redefinition_Errors
  • Can_Redef_Table()
  • Start_Redef_Table()
  • Finish_Redef_Table()
  • Abort_Redef_Table()
  • Copy_Table_Dependents()
  • Sync_Interim_Table()
System-Supplied Packages: Dbms_Lob()
  • Working with External Bfiles
  • Working with Internal Lobs
  • Loadblobfromfile(), Loadclobfromfile()
  • Compare()
  • Getlength()
  • Append()
  • Copy()
  • Erase()
  • Trim()
  • Read()
  • Substr()
  • Instr()
  • Write()
  • Dynamic Securefile Options
  • Getoptions()
  • Setoptions()
System-Supplied Packages: Others
  • Compression With Utl_Compress()
  • Lz_Compress()
  • Lz_Uncompress()
  • Dbms_Describe()
  • Utl_Mail()
  • Set Smtp_Out_Server
  • Calling The Send() Procedure
  • Calling The Send_Attach_Xxx() Procedures
  • Dbms_Utility()
  • Compile_Schema()
  • Db_Version()
  • Wait_On_Pending_Dml()
Advanced Interface Methods
  • About External Procedures
  • Calling Java Classes
  • Calling C Programs
PL/SQL Advanced Programming & Coding Techniques
  • Autonomous Transactions
  • Using NoCopy for Parameters
  • Choosing the Optimum Data Type
  • Avoiding Implicit Data Type Conversion
  • Choosing Between Number and Pls_Integer
  • About Pls_Integer
  • Using Simple_Integer
  • Char Variables of Different Lengths
  • Varchar2 Variables of Different Lengths
  • Char Vs. Varchar2
  • Char Vs. Varchar2 With An Equality Comparison
  • Useful Pl/SQL Coding Techniques
  • Handling String Literals
Influencing Oracle PL/SQL Compilation
  • PL/SQL Compiler Optimization
  • Plsql_Optimize_Level
  • Controlling Compilation Messages
  • PL/SQL Native Execution
Dynamic Partitioning & Parallelization
  • About Dynamic Partitioning (Chunks)
  • Creating & Processing Chunks
  • Create_Task()
  • Create_Chunks_By_Rowid()
  • Create_Chunks_By_Number_Col()
  • Execute_Run_Task()
  • Task_Status()
  • Drop_Task()
  • Monitoring Chunk Processing
Application Tuning With the PL/SQL Hierarchical Profiler
  • What Is The Hierarchical Profiler?
  • Configuring the Profiler
  • Managing Profiler Runs
  • Analyzing Profiler Data
  • Interpreting the Results
  • Dbmshp_Runs
  • Dbmshp_Function_Info
  • Dbmshp_Parent_Child_Info
PL/SQL Debugging With Dbms_Trace()
  • Using the Trace Facility
  • Dbms_Trace() To Manage Runs
  • Examining the Trace Data
  • Event_Kind Values
Protecting Against Sql Injection Attacks
  • Understanding the Threat
  • Applying Countermeasures
Implementing Virtual Private Databases
  • Understanding VPDs
  • Preparing For a VPD
  • Configuring a VPD
  • Managing Application Contexts
  • Using Sys_Context()
  • Managing Policies & Security Rules

Free Resources from Intertech

2 Free Resources: Missed Issues in Software Estimation and Stakeholder Questionnaire

Free Recorded Webinar: Changes with SSIS 2012/2014

Free Whitepaper: Eclipse Content Assist Activation with VS IntelliSense Behavior