Re: ORA-06573 ???

2001-05-10 Thread Stefan Jahnke
Hi, thanks for the help, it actually was the DBMS_OUTPUT. I put it in for debugging purposes, but of course I forgot to take it out again ;). -- Regards, Stefan Jahnke BOV AG @:D2 Vodafone, Abt.: FIBM -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stefan Jahnke IN

Re: ORA-06573 ???

2001-05-08 Thread Jared Still
You nailed it Don, I saw the same thing. You cannot use DBMS_OUTPUT in a function called by a SQL statement, regardless of pragma statements. I've tried it before, couldn't do it. This was on pre 8i versions of Oracle however. The rules have changed on 8i, it may work. Jared On Tuesd

RE: ORA-06573 ???

2001-05-08 Thread Jamadagni, Rajendra
Tim, small update, one can't specify pragma for standalone functions ... it is determined automatically by Oracle at-least till 8x, I am not sure about 8i. Pragma can only be specified for functions in a package. I believe the problem is with DBMS_OUTPUT, if you take it out, the function will wo

Re: ORA-06573 ???

2001-05-08 Thread Tim Sawmiller
Do what the action says...add the pragma. Consult your fine manual (or at least it's electronic equivalent on CD) for more details. >>> [EMAIL PROTECTED] 05/08/01 10:25AM >>> Tim Sawmiller schrieb: > > oerr ora 6573 > 06573, 0, "Function %s modifies package state, cannot be used here" > //

Re: ORA-06573 ???

2001-05-08 Thread Don Jerman
May be naive, but it seems to me that DBMS_OUTPUT.ENABLE(64000); must be altering the state of the DBMS_OUTPUT package -- and it doesn't seem to be needed by the funciton -- why not try without it? Stefan Jahnke wrote: > Hi, > > I get this error if I give a (standalone) function in a where cla

Re: ORA-06573 ???

2001-05-08 Thread Stefan Jahnke
Tim Sawmiller schrieb: > > oerr ora 6573 > 06573, 0, "Function %s modifies package state, cannot be used here" > // *Cause: There are two possible causes for this message: > // * A SQL statement references a packaged, PL/SQL function that > //does not contain a pragma co

Re: ORA-06573 ???

2001-05-08 Thread Ruth Gramolini
Here is what Oracle says: 06573, 0, "Function %s modifies package state, cannot be used here" // *Cause: There are two possible causes for this message: // * A SQL statement references a packaged, PL/SQL function that //does not contain a pragma containing the 'Write no P

Re: ORA-06573 ???

2001-05-08 Thread Tim Sawmiller
oerr ora 6573 06573, 0, "Function %s modifies package state, cannot be used here" // *Cause: There are two possible causes for this message: // * A SQL statement references a packaged, PL/SQL function that //does not contain a pragma containing the 'Write no Package //