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.
- Steve Sapovits <SapovitsS_at_globalsportsinc.com>
wrote:
>
> I have a DB instance (B) that's a snapshot of
> another (A).
>
> Taking a stored procedure that runs fine on A to B
> as part of a
> query (a function really I guess?) produces this
> error:
>
> DBD::Oracle::db prepare failed: ORA-06571: Function
> GET_EVENT does not
> guarantee not to update database
>
> Any idea what causes this and how to fix it?
>
> B may be a version behind A. A is 8i.
>
> ----
> Steve Sapovits
> Global Sports Interactive
> Work Email: sapovitss_at_globalsports.com
> Home Email: steves_at_delanet.com
> Work Phone: 610-491-7087
> Cell: 610-574-7706
> Pager: 877-239-4003
>
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: Steve Sapovits
> INET: SapovitsS_at_globalsportsinc.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).
Eng. Christian Trassens
Senior DBA
Systems Engineer
ctrassens_at_yahoo.com
ctrassens_at_hotmail.com
Phone : 541149816062
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
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).
Received on Fri Jul 20 2001 - 02:47:05 CDT