Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored Procedures Question

RE: Stored Procedures Question

From: Jack C. Applewhite <>
Date: Wed, 31 Oct 2001 08:37:06 -0800
Message-ID: <>


To see exactly how the stored procedure files will be used, you'll need to examine the DDL script to find out how they're called. That might tell you which directory in which to put them.

If you have to run them manually, do it after the DDL script finishes. Execute (from SQL*Plus) all the *.PKS (Package Spec) files first, then the *.FNC (Function) and *.PRC (Procedure) files, followed by *.PKB (Package Body), then *.TRG (Triggers). If there are any functions that call procedures you may have to run the *.FNC files again, after the *.PRC. Since nothing can call a trigger, the *.TRG files are last, right after the *.PKB, since the code in the package bodies could call procedures or functions.

If any views reference publice packaged variables, you may have to recreate those views. Check the Status column in User_Objects to see if anything ends up INVALID. You'll have to recompile...

 Alter Function xxxxx Compile ;
 Alter Package xxxxx Compile ;
 Alter Package xxxxx Compile Body ;


Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas

-----Original Message-----
Sent: Wednesday, October 31, 2001 10:15 AM To: Multiple recipients of list ORACLE-L

I received the DDL SQL script (approx. 11,000 lines of code) to generate a database from our other office in Malaysia. Along with this script I got another file with approx. 720 files called stored procedures with the suffix .PRC, .PKB, .PKS, .FNC. AND .TRG. When I go to generate the DB using the DDL SQL script how will these "stored procedure" files be used? Will the SQL script call them, or will they be called and used after the DB is built? Where should these "stored procedure" files be stored in the directory structure?

The box is W2000 and Oracle is 8.1.7.

Thanks much,

Kenneth C. Janusz, CPIM
Database Conversion Lead
Sufficient System, Inc.
Minneapolis, MN

Please see the official ORACLE-L FAQ:
Author: Jack C. Applewhite

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
To REMOVE yourself from this mailing list, send an E-Mail message
to: (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed Oct 31 2001 - 10:37:06 CST

Original text of this message