From MohanR@STARS-SMI.com Fri, 16 Mar 2001 14:25:38 -0800 From: "Mohan, Ross" Date: Fri, 16 Mar 2001 14:25:38 -0800 Subject: RE: For You Sticky Developers out there..... Message-ID: MIME-Version: 1.0 Content-Type: text/plain Title: RE: For You Sticky Developers out there..... Ladies and Gentlemen, it is entirely possible i am missing the point. I am not even qualified to have my head shrunk and jabbed on a stick at an oracle developers potluck campfire, BUT It's not like I am doing something complicated. I am executing a simple call to a simple BUILT IN stored procedure. EXECUTE DBMS_UTILITY.GET_TIME; I guess I just can't believe it hasn't worked since version 7, and no one caught it...hence...i think that *I* am doing something wrong.... BUT, THEN AGAIN maybe not. Time to shear off another pseudopod so i can eat for the night.......... -----Original Message----- From: Toepke, Kevin M [mailto:ktoepke@cms.cendant.com] Sent: Friday, March 16, 2001 4:06 PM To: Multiple recipients of list ORACLE-L Subject: RE: For You Slick Developers out there..... Oracle 8.0 and before requires that a function have the following in the header in order for it to work in a select statement:     PRAGMA RESTRICT_REFERENCES(...) Oracle, in its infinite wisdom, didn't put the pragma in most of its internal functions...   Oracle 8i got rid of this PRAGMA. You still can't directly update the database in a select statement. Kevin   -----Original Message----- Sent: Friday, March 16, 2001 2:51 PM To: Multiple recipients of list ORACLE-L I get a version-specific glitch ( works in 816, fails in 805 ) for a call to the DBMS_UTILITY.GET_TIME built-in: ###################### SQL> select dbms_utility.get_time from dual; select dbms_utility.get_time from dual        * ERROR at line 1: ORA-06571: Function GET_TIME does not guarantee not to update database ###################### Any ideas why 80520 doesn't like this? TIA, - Ross p.s.  a simple assignment, like, for example  time := DBMS_UTILITY.GET_TIME;         fails as well. p.p.s  I know how to use V$TIMER, so i am looking for a "why this doesn't work"           not a "How to fix it by using V$TIMER"  answer. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Toepke, Kevin M   INET: ktoepke@cms.cendant.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@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).