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: Two users, one query, two optimizer plans

Re: Two users, one query, two optimizer plans

From: Yechiel Adar <adar76_at_inter.net.il>
Date: Wed, 18 Jan 2006 12:35:35 +0200
Message-ID: <43CE19F7.1080305@inter.net.il>


Mu guess is that dm_issuegrant_ix01 is a function based index designed to apply to: hextoraw(value).
When user A run there is no where clause that fits the index, so full table scan.

Have you tried doing the select with the same where clause (including hextoraw) from user A?

Adar Yechiel
Rechovot, Israel

Paul Baumgartel wrote:

>
> For each table subject to row-level security policy, the RLS view is
> of the form
>
> SELECT <columns> FROM <table> WHERE company_fk in (hextoraw('<value>')
>
> My theory at this point is that RLS is causing the discrepancy in
> optimizer plans. Has anyone seen this? Is there another reason why
> the plans would differ?
>
> Thanks,
>
>
> --
> Paul Baumgartel
> paul.baumgartel_at_aya.yale.edu <mailto:paul.baumgartel_at_aya.yale.edu>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jan 18 2006 - 04:37:46 CST

Original text of this message

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