Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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. <shrug>
Time to shear off another pseudopod so i can eat for the night..........
-----Original Message-----
From: Toepke, Kevin M [mailto:ktoepke_at_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,
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_at_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_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 Mar 16 2001 - 16:25:38 CST
![]() |
![]() |