Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Packages - newbie Q
I had created some stand-alone procedures and functions - and they
worked fine.
Trying to do the right thing I have put them in a Package. Created
Package and Package Body okay - no errors. Valid Status.
But when i run the function from Sqlplus I get:
select surname, pk_phonetic.fn_phonetic(surname) from table;
*ERROR at line 1:
okay, ORA-06571 says:
oerr ora 06571
06571, 00000, "Function %s does not guarantee not to update database"
// *Cause: A plsql function that does not have a pragma asserting that
it
// does not write any database state is referenced in a sql
statement.
// Such functions cannot be used in sql statements.
// *Action: Recreate the function and/or the functions it calls with the
pragma
I have read PL/Sql user Guide Chapter 7 and Application Developer Guide
Chapter 7 but am none the wiser.
Where do i find out about this PRAGMA stuff.
-- Steve Corbett. Perth Australia . stevec_at_fcs.wa.gov.au scorbett_at_perth.dialix.oz.auReceived on Mon Aug 18 1997 - 00:00:00 CDT
![]() |
![]() |