Skip Headers
Oracle® Database User's Guide
10g Release 2 (10.2) for Fujitsu Siemens BS2000/OSD

Part Number E10320-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

4 PL/SQL

PL/SQL is an extension to the SQL language and is used to create, store, modify, retrieve, and manage information in an Oracle database.

This chapter supplements the Oracle Database PL/SQL Language Reference, with operating system-specific information about the PL/SQL demonstrations.

See your database administrator if the PL/SQL demonstrations have not already been loaded.

4.1 PL/SQL Demonstrations

The PL/SQL demo scripts do not specify fully qualified file names when including other scripts. To include the necessary prefixes for these files, use the ORAENV environment variable, SQLPATH (search path for SQL files), as shown in the following example:

SQLPATH=$ORAC1020.PLSQL.DEMO;<other prefixes>

Note:

Before you run PL/SQL, ensure that your database administrator has run the necessary initialization scripts. Refer to the chapter "Creating and Upgrading a Database " in the Oracle Database Installation and Administration Guide for Fujitsu Siemens BS2000/OSD.

4.1.1 PL/SQL Demos for the Kernel

The demos for the kernel are as follows:

PLSQL.DEMO.EXAMP1.SQL
PLSQL.DEMO.EXAMP2.SQL
PLSQL.DEMO.EXAMP3.SQL
PLSQL.DEMO.EXAMP4.SQL
PLSQL.DEMO.EXAMP5.SQL
PLSQL.DEMO.EXAMP6.SQL
PLSQL.DEMO.EXAMP7.SQL
PLSQL.DEMO.EXAMP8.SQL
PLSQL.DEMO.EXAMP11.SQL
PLSQL.DEMO.EXAMP12.SQL
PLSQL.DEMO.EXAMP13.SQL
PLSQL.DEMO.EXAMP14.SQL
PLSQL.DEMO.SAMPLE1.SQL
PLSQL.DEMO.SAMPLE2.SQL
PLSQL.DEMO.SAMPLE3.SQL
PLSQL.DEMO.SAMPLE4.SQL

To run these demos, you must first build the demo tables with PLSQL.DEMO.EXAMPBLD.SQL and load them with PLSQL.DEMO.EXAMPLOD.SQL (under any user ID). The following example shows how to do this and run SAMPLE1:

/START-PROGRAM $ORAC1020.SQLPLUS
* user/password
SQL> @EXAMPBLD
SQL> @EXAMPLOD
SQL> @SAMPLE1

4.1.2 PL/SQL Demos for Precompilers

The demos for the precompilers are as follows:

PLSQL.DEMO.EXAMP9.PC
PLSQL.DEMO.EXAMP10.PC
PLSQL.DEMO.SAMPLE5.PC
PLSQL.DEMO.SAMPLE6.PC

Before running these demos, you must ensure that these demos must be compiled and linked as described in Chapter 5, "Programmatic Interfaces".

Note:

You must run the kernel demos before loading the precompiler demos.