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: Can you execute a function in an Oracle comment/hint?

Re: Can you execute a function in an Oracle comment/hint?

From: rjamya <rjamya_at_gmail.com>
Date: Fri, 4 May 2007 14:37:36 -0400
Message-ID: <9177895d0705041137r3e227f1du9fb4b30db81cc0e@mail.gmail.com>


If nothing works, you could put the table(s) under dbms_rls policy and attach a meaningless predicate that would be different each time it is generated. generate it from a sequence or combination if random text using dbms_random.

e.g.

select blah from t1, t2, where t1.x = t2.x and some_randomstring = some_randomstring <<<< added by policy /

Be warned though these constant predicates _may_ affect cbo behavior.

rjamya

On 5/4/07, Allen, Brandon <Brandon.Allen_at_oneneck.com> wrote:
>
> I'd like to inject a function that would cause every execution of the
> query to have a different hash value and therefore be hard parsed into its
> own cursor, having its bind variables peeked at to enable proper
> optimization and the most efficient explain plan.
>

--
http://www.freelists.org/webpage/oracle-l
Received on Fri May 04 2007 - 13:37:36 CDT

Original text of this message

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