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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> Home Email: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to