10 Copyright © 2004, Oracle..All rights reserved. PL/SQL.

Slides:



Advertisements
Similar presentations
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Advertisements

5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
Copyright Ó Oracle Corporation, All rights reserved Sharing Objects and Code.
Advanced Package Concepts. 2 home back first prev next last What Will I Learn? Write packages that use the overloading feature Write packages that use.
13 Copyright © 2004, Oracle. All rights reserved. Introduction to Triggers.
3 Copyright © 2004, Oracle. All rights reserved. Creating Packages.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
14 Copyright © 2004, Oracle. All rights reserved. Producing Triggers.
2 Copyright © 2004, Oracle. All rights reserved. Creating Stored Functions.
Copyright  Oracle Corporation, All rights reserved. 4 Creating Functions.
23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code.
4 Copyright © 2004, Oracle. All rights reserved. Database Interfaces.
Benefits of PL/SQL. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –List and explain the benefits of PL/SQL –List.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
12 Copyright © 2004, Oracle. All rights reserved. Oracle Net Services.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
24 Copyright © 2004, Oracle. All rights reserved. Using WebUtil to Interact with the Client.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
Copyright  Oracle Corporation, All rights reserved. 3 Creating Procedures.
I Copyright © 2004, Oracle. All rights reserved. Introduction Copyright © 2004, Oracle. All rights reserved.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
11 Copyright س Oracle Corporation, All rights reserved. ® Overview of PL/SQL.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
9 Copyright © 2007, Oracle. All rights reserved. Managing Data and Concurrency.
Copyright © 2004 Insight Technology, Inc. All Rights Reserved. 1 Performance Insight for Oracle 5.2 V.S Oracle Enterprise Management
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
12 Copyright © 2004, Oracle. All rights reserved. Understanding and Influencing the PL/SQL Compiler.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
Copyright Ó Oracle Corporation, All rights reserved Producing Triggers.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
14 Copyright © Oracle Corporation, All rights reserved. SQL Workshop.
3 Copyright © 2004, Oracle. All rights reserved. Controlling Access to the Oracle Listener.
COSC 3480 Projects, Christoph F. Eick 1 Lab COSC 3480 Fall 2000.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 8 Program Unit Dependencies.
PL/SQLPL/SQL Oracle11g: PL/SQL Programming Chapter 10 Oracle-Supplied Packages, Dynamic SQL, and Hiding Source Code.
23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced Features.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Copyright Ó Oracle Corporation, All rights reserved Debugging Triggers.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
29 Copyright © 2009, Oracle. All rights reserved. Administering the Oracle Business Intelligence Presentation Catalog.
© 2002, Cisco Systems, Inc. All rights reserved..
Copyright Ó Oracle Corporation, All rights reserved. 77 Creating LOVs and Editors.
8 Copyright © 2005, Oracle. All rights reserved. Gathering Statistics.
5 Copyright © 2004, Oracle. All rights reserved. PL/SQL Server Pages.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1.
3 Copyright © 2006, Oracle. All rights reserved. Building an Analytic Workspace.
4 Copyright © 2004, Oracle. All rights reserved. Advanced Interface Methods.
11 Copyright © 2004, Oracle. All rights reserved. Performing a Migration Using Oracle Migration Workbench (Part II)
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
2 Copyright © 2005, Oracle. All rights reserved. Installing Oracle Software and Creating the Database.
13 Copyright © 2004, Oracle. All rights reserved. Migrating SQL Statements.
12 Copyright © 2004, Oracle. All rights reserved. Application Migration: Overview.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
4 Copyright © 2009, Oracle. All rights reserved. Working with Packages.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Chapter 8 Dependencies, Privileges and Compilation Oracle11g:
Managing Data and Concurrency
Introduction to Triggers
Introduction to PL/SQL
Presentation transcript:

10 Copyright © 2004, Oracle..All rights reserved. PL/SQL

10-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson you should be able to do the following: Identify PL/SQL objects Describe triggers and triggering events Identify configuration options that affect PL/SQL performance

10-3 Copyright © 2004, Oracle. All rights reserved. PL/SQL Procedural Language/Structured Query Language (PL/SQL) is a fourth generation (4GL) programming language. PL/SQL provides: Procedural extensions to SQL Portability across platforms and products Support for object-oriented programming

10-4 Copyright © 2004, Oracle. All rights reserved. Administering PL/SQL Objects Database administrators should be able to: Identify problem PL/SQL objects Recommend appropriate use of PL/SQL Load PL/SQL objects into the database Assist PL/SQL developers in troubleshooting

10-5 Copyright © 2004, Oracle. All rights reserved. PL/SQL Objects There are many types of PL/SQL database objects: Package Package body Type body Procedure Function Trigger

10-6 Copyright © 2004, Oracle. All rights reserved. Functions

10-7 Copyright © 2004, Oracle. All rights reserved. Procedures Procedures are used to perform a specific action. Procedures: Transfer values in and out through an argument list Are called with the CALL command

10-8 Copyright © 2004, Oracle. All rights reserved. Packages Packages are collections of functions and procedures. Each package should consist of two objects: Package specification Package body

10-9 Copyright © 2004, Oracle. All rights reserved. Package Body

10-10 Copyright © 2004, Oracle. All rights reserved. Package Bodies Notes Only Page

10-11 Copyright © 2004, Oracle. All rights reserved. Built-In Packages Oracle Database 10g comes with over 350 built-in PL/SQL packages providing: Administration and maintenance utilities Extended functionality Use the DESCRIBE command to view subprograms SQL> DESCRIBE dbms_stats PROCEDURE ALTER_DATABASE_TAB_MONITORING Argument Name Type In/Out Default? MONITORING BOOLEAN IN DEFAULT SYSOBJS BOOLEAN IN DEFAULT...

10-12 Copyright © 2004, Oracle. All rights reserved. Triggers

10-13 Copyright © 2004, Oracle. All rights reserved. Triggers - Notes Only Page

10-14 Copyright © 2004, Oracle. All rights reserved. PL/SQL Configuration Options There are several PL/SQL compiler settings that control PL/SQL performance. For fastest performance set: PLSQL_CODE_TYPE=NATIVE PLSQL_DEBUG=FALSE PLSQL_OPTIMIZE_MODE=2 PLSQL_WARNING=DISABLE:ALL

10-15 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson you should have learned how to: Identify PL/SQL objects Describe triggers and triggering events Identify configuration options that affect PL/SQL performance

10-16 Copyright © 2004, Oracle. All rights reserved. Practice Overview There is no practice exercise for this lesson. You will be managing and creating PL/SQL objects several times during the rest of this course.