All rights reserved.1 - 2 Course Objectives After completing this course, you should be able to do the following: • Design PL/SQL packages and program units that execute efficiently •
Trang 1Copyright © 2008, Oracle All rights reserved.
Introduction
Trang 2Copyright © 2008, Oracle All rights reserved.
1 - 2
Course Objectives
After completing this course, you should be able to do the
following:
• Design PL/SQL packages and program units that execute
efficiently
• Write code to interface with external applications and the
operating system
• Create PL/SQL applications that use collections
• Write and tune PL/SQL code effectively to maximize
performance
• Implement a virtual private database with fine-grained
access control
• Write code to interface with large objects and use SecureFile
LOBs
• Perform code analysis to find program ambiguities, test,
trace, and profile PL/SQL code
Course Objectives
In this course, you learn how to use the advanced features of PL/SQL in order to design and tune PL/SQL to interface with the database and other applications in the most efficient manner Using the advanced features of program design, packages, cursors, extended interface methods, and collections, you learn how to write powerful PL/SQL programs Programming efficiency, use of external C and Java routines, and fine-grained access are covered in this course
Trang 3Oracle Database 11g: Advanced PL/SQL 1 - 3
Copyright © 2008, Oracle All rights reserved.
1 - 3
Oracle Complete Solution
Network services
Databases Application
servers
Internet applications
Any browser
Any FTP client
Any mail client
SQL
PL/SQL
Java
Clients
Presentation and business logic
Business logic and data
Other
Oracle Complete Solution
The Oracle Internet Platform is built on three core components:
• Browser-based clients to process presentation
• Application servers to execute business logic and serve presentation logic to browser-based clients
• Databases to execute database-intensive business logic and serve data
Oracle offers a wide variety of the most advanced graphical user interface (GUI)–driven
development tools to build business applications, as well as a large suite of software applications for many areas of business and industry Stored procedures, functions, and packages can be written by using SQL, PL/SQL, Java, C, and Net languages This course concentrates on the advanced features
of PL/SQL
Trang 4Copyright © 2008, Oracle All rights reserved.
1 - 4
Lesson Agenda
• Previewing the course agenda
• Describing the development environments
• Using SQL Developer
• Using SQL*Plus
• Identifying the tables, data, and tools used in this course
Trang 5Oracle Database 11g: Advanced PL/SQL 1 - 5
Copyright © 2008, Oracle All rights reserved.
1 - 5
Course Agenda
• Day 1
• Day 2
Agenda
In this three-day course, you start with a review of PL/SQL concepts before progressing into the new and advanced topics By the end of day one, you should have covered design considerations for your program units, and how to use collections effectively
On day two, you learn how to use advanced interface methods to call C and Java code from your PL/SQL programs, how to implement and test fine-grained access control for virtual private
databases, how to manipulate large objects programmatically through PL/SQL, how to administer the
features of the new SecureFile LOB format of Database 11g, and how to tune PL/SQL code and deal
with memory issues
Trang 6Copyright © 2008, Oracle All rights reserved.
E - 23
Examining and Modifying Variables
Examining and Modifying Variables (continued)
The Classes window displays all classes that are currently being loaded to execute the program If used with Oracle Java Virtual Machine (OJVM), it also shows the number of instances of a class and the memory used by those instances
Trang 7Oracle Database 11g: Advanced PL/SQL E - 24
Copyright © 2008, Oracle All rights reserved.
E - 24
Summary
In this appendix, you should have learned how to use JDeveloper as an environment to do the following:
• Create, compile, and run program units
• Debug PL/SQL programs
• Examine and modify variables