Course Overview
This Oracle Database 11g: Advanced PL/SQL Programming & Tuning 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 allow these applications to run efficiently. Finally, we will consider critical security measures that should be implemented to counter hacker attacks and other security threats.
What you’ll learn
Upon completion of the Oracle Database 11g: Advanced PL/SQL Programming & Tuning course, students will be able to:
- Invoke external procedures and integrate these into PL/SQL applications. These include external Java classes using the JDBC interface and external C programs contained within DLL libraries
- Use dynamic SQL to extend the functionality and flexibility of database programs, including the DBMS_SQL() system-supplied package for maximum flexibility
- Identify SQL injection attack vulnerabilities within an application and applying countermeasures to address security risks and protect against hacking
- Incorporate collections and other advanced types into application logic to increase efficiency and execution speed
- Work with LOBs, including piece-wise data manipulation and dynamic modification of SecureFile storage options
- Expand functionality with system-supplied database utility packages
- Tune with the DBMS_PROFILER() system-supplied package and debug with the DBMS_TRACE() system-supplied package
- Write efficient PL/SQL code and avoiding common coding mistakes
- Enable native compilation and execution of all database-resident program units
- Control and manage 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 Hierarchical Profiler
- Recognize the dangers of SQL injection attacks against PL/SQL applications and applying countermeasures to this potential security threat from hackers
- Implement fine-grained security mechanisms as part of an advanced security model using application contexts and the Oracle virtual private database (VPD)
- Understand dynamic partitioning and DML parallelization using the system-supplied package. DBMS_PARALLEL_EXECUTE()
Requirements
- DBOR-917 ORACLE DATABASE 11G R2: SQL FUNDAMENTALS - COMPLETE LIBRARY
- DBOR-920 ORACLE DATABASE 11G R2: PROGRAM WITH PL/SQL - COMPLETE LIBRARY
- DBOR-921 ORACLE DATABASE 11G R2: NEW & ADVANCED FEATURES FOR DEVELOPERS
Target audiences
- 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.
Curriculum
- 1 Section
- 16 Lessons
- 5 Days
- Topics16
- 1.1DYNAMIC SQL ADVANTAGES & disadvantages NATIVE dynamic sql DYNAMIC update…returning DYNAMIC sql using DBMS_SQL()
- 1.2USING 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
- 1.3SYSTEM-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.kus_ddl ABOUT sys.kus_ddls CALLING fetch_ddl()
- 1.4SYSTEM-SUPPLIED PACKAGES: DBMS_METADATA()-PART II SET-transform_param() GET_query()
- 1.5SYSTEM-SUPPLIED PACKAGES: DBMS_METADATA()-PART III FETCH clob() SET_filter() for dependent objects SET_parse_item() PRIMARY & dependent object DDL
- 1.6SYSTEM-SUPPLIED PACKAGES: DBMS-REDFINTION() 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()
- 1.7SYSTEM-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()
- 1.8SYSTEM-SUPPLIED PACKAGES: OTHERS COMPRESSION with UTL_compress() LZ-COMPRESS() LX(UNCOMPRESS() UTL_MAIL() SET SMTP_OUT_SERVER CALLING the send() procedure CALLING the send_attach_xxx() procedures DBMS_version() WAIT_on_pending_DML()
- 1.9ADVANCED INTERFACE METHODS ABOUT external procedures CALLING java classes CALLING programs
- 1.10PL/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 lenths CHAR vs VARCHAR2 CHAR vs WARCHAR2 with an equality comparison USEFUL pl/sql coding techniques HANDLING string literals
- 1.11INFLUENCING ORACLE PL/SQL COMPILATION PL/SQL compiler optimization PLSQL_optimize-_level CONTROLLING compilation messages PL/SQL native execution
- 1.12DYNAMIC PARTITIONING & PARALLELIZATION ABOUT dynamic portioning (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
- 1.13APPLICATION 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 DBMP_FUNCTION_INFO DBMP_PARENT_CHILD_INFO
- 1.14PL/SQL DEBUGGING WITH DBMS_TRACE() USING the trace facility DBMS_TRACE() to manage runs EXAMINING the trace data EVENT_KIND values
- 1.15PROTECTING AGAINST SQL INJETION ATTACKS UNDERSTANDING the threat APPLYING countermeasures
- 1.16IMPLEMENTING VIRTUAL DATABASES UNDERSTANDING VPDS PREPARING for a VPD CONFIGURING a VPD MANAGING application contexts USING sys_context() MANAGING policies & security rules
