Overview of PL/SQL
Overview of PL/SQL
Overview of PL/SQL
After
After completing
completing this
this course,
course, you
you should
should be
be able
able to
to
do
do the
the following:
following:
•• Describe
Describe the
the purpose
purpose of
of PL/SQL
PL/SQL
•• Describe
Describe the
the use
use of
of PL/SQL
PL/SQL for
for the
the developer
developer as
as
well
well as
as the
the DBA
DBA
•• Explain
Explain the
the benefits
benefits of
of PL/SQL
PL/SQL
•• Create,
Create, execute,
execute, and
and maintain
maintain procedures,
procedures,
functions,
functions, packages,
packages, and
and database
database triggers
triggers
•• Manage
Manage PL/SQL
PL/SQL subprograms
subprograms and
and triggers
triggers
•• Describe
Describe Oracle
Oracle supplied
supplied packages
packages
•• Manipulate
Manipulate large
large objects
objects (LOBs)
(LOBs)
•• PL/SQL
PL/SQL is
is the
the procedural
procedural extension
extension to
to SQL
SQL with
with
design
design features
features of
of programming
programming languages.
languages.
•• Data
Data manipulation
manipulation and
and query
query statements
statements ofof SQL
SQL
are
are included
included within
within procedural
procedural units
units of
of code.
code.
PL/SQL engine
PL/SQL Procedural
PL/SQL PL/SQL statement
block block SQL
executor
Oracle server
Integration
Integration
Application
Improved
Improved performance
performance
SQL
SQL
Application Other DBMSs
SQL
SQL
SQL
IF...THEN
SQL Oracle with
Application ELSE PL/SQL
SQL
END IF;
SQL
Modularize
Modularize program
program development
development
…
DECLARE
…
BEGIN
…
EXCEPTION
END;
•• PL/SQL
PL/SQL is
is portable.
portable.
•• You
You can
can declare
declare variables.
variables.
•• You
You can
can program
program with
with procedural
procedural language
language control
control
structures.
structures.
•• PL/SQL
PL/SQL can
can handle
handle errors.
errors.
• Easy maintenance
• Improved data security and integrity
• Improved performance
• Improved code clarity
Scott LOG_EXECUTION
procedure
1 xxxxxxxxxxxxxx
vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
2 vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
vvvvvvvvvvvvvv
3 vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx vvvvvvvvvvvvvv
Oracle Oracle Oracle vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
Portal Discoverer Forms vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
Developer vvvvvvvvvvvvvv
xxxxxxxxxxxxxx
vvvvvvvvvvvvvv
4
Scott