Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: procedure error
A slight correction, the pragma is part of the package specification which contains
the function.
For example
CREATE OR REPLACE PACKAGE REMEDY IS
FUNCTION SLAC_DATE(ELAPSED_SECONDS IN NUMBER) RETURN DATE ; PRAGMA RESTRICT_REFERENCES(SLAC_DATE,WNDS, RNDS, TRUST);END REMEDY;
The "TRUST" argument was not introduced until 8i and means that you trust other functions called by the functions not to violate the pragma.
Ian MacGregor
Stanford Linear Accelerator Center
ian_at_slac.stanford.edu
-----Original Message-----
Sent: Friday, July 20, 2001 1:16 AM
To: Multiple recipients of list ORACLE-L
You need in the stored procedure this stmt:
pragma restrict_references (<name of function>, WNDS [, WNPS] [, RNDS] [, RNPS]); where:
WNDS means "writes no database state" (does not modify database tables)
WNPS means "writes no package state" (does not change
the values of
packaged variables)
RNDS means "reads no database state" (does not query database tables)
RNPS means "reads no package state" (does not
reference the values of
packaged variables)
Regards.
PS:This is since 7.X.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Christian Trassens INET: ctrassens_at_yahoo.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: MacGregor, Ian A. INET: ian_at_SLAC.Stanford.EDU 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 Fri Jul 20 2001 - 10:26:51 CDT
![]() |
![]() |