Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

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

RE: Stored Procedures Question

From: <Long.Nguyen_at_csiro.au>
Date: Wed, 31 Oct 2001 21:37:47 -0800
Message-ID: <F001.003BA030.20011031214018@fatcity.com>

I am not familiar with these suffixes (PKS, FNC etc). Are these store procedure files created by some software like Oracle Designer?

Long

-----Original Message-----
Sent: Thursday, 1 November 2001 3:56 AM
To: Multiple recipients of list ORACLE-L

Ken,

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



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----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: http://www.orafaq.com
--

Author: Jack C. Applewhite
  INET: japplewhite_at_inetprofit.com

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: ListGuru_at_fatcity.com (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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Long.Nguyen_at_csiro.au
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: ListGuru_at_fatcity.com (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 - 23:37:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US