Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: function in sql

RE: function in sql

From: MacGregor, Ian A. <ian_at_SLAC.Stanford.EDU>
Date: Tue, 31 Oct 2000 08:46:11 -0800
Message-Id: <10666.120687@fatcity.com>


Yes, you still need to define a pragma. A frequent problem was that if your function invoked an Oracle provided PL/SQL function, you would often get a violation. The reason being that the Oracle supplied fuction was not gauranteed not to violate the pragma. Oracle 8i, I believe, introduced a new argument, "trust", which allows one to call functions that do not have restrict_reference declarations from those which do.

Ian MacGregor
Stanford Linear Accelerator Center
ian_at_slac.stanford.edu

-----Original Message-----
From: Tom Pall [mailto:tom_at_cdproc.com]
Sent: Tuesday, October 31, 2000 7:36 AM
To: Multiple recipients of list ORACLE-L Subject: Re: function in sql

Correct, you need to define a pragma to restrict references for standalone functions.

The initialization parameter is for query rewrite, and is for function based indexes.
Two different things entirely.
----- Original Message -----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Tuesday, October 31, 2000 6:36 AM

> Hello,
> to use funktions in sql I would expect that I have to
> define a pragma restrict_reference.
>
> Some one told me that I have to set a init.ora-parameter
> to allow all functions to run in sql-statements
>
> Is this true ?
>
>
> Wolfgang Ludewig
>
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: wolfgang.ludewig_at_systor.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tom Pall
  INET: tom_at_cdproc.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 Tue Oct 31 2000 - 10:46:11 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US