Course Description
This Oracle 11g courseware training guide book 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.
Course 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
Course Audience:
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 I
• 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()