Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: "Niall Litchfield" <niall.litchfield@xxxxxxxxx>
- To: exriscer@xxxxxxxxx, "Jared Still" <jkstill@xxxxxxxxx>, Jay.Miller@xxxxxxxxxxxxxxxx, oracle-l@xxxxxxxxxxxxx
- Date: Thu, 30 Aug 2007 13:35:24 +0100
Taking care to catch the sql injection possibilities you'll give these
knowledgeable users!
On 30/08/2007, LS Cheng <exriscer@xxxxxxxxx> wrote:
> ah, I meant something like
>
> As table owner
>
> create or replace procedure xx (p_sql varchar2)
> as
> begin
> excute immediate 'explain plan for ' || p_sql;
> end;
> /
>
> then grant execution priv to the unprivileged user, the caveage might be
> p_sql, must be clob or long....
>
> thanks
>
> --
> LSC
>
>
> On 8/30/07, Jared Still <jkstill@xxxxxxxxx> wrote:
> >
> > On 8/29/07, LS Cheng <exriscer@xxxxxxxxx> wrote:
> > >
> > > Hi
> > >
> > > You can try with a stored procedure.
> > >
> > >
> >
> > I tried recompiling dbms_xplan with definers rights earlier today,
> > no wait, now it was yesterday. :)
> >
> > Anyway, that didn't work.
> >
> > --
> > Jared Still
> > Certifiable Oracle DBA and Part Time Perl Evangelist
> >
>
--
Niall Litchfield
Oracle DBA
http://www.orawin.info
--
http://www.freelists.org/webpage/oracle-l
- References:
- upgrades, conversions and ora-600's! oh my!
- From: Robyn
- ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: Jay.Miller
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: LS Cheng
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: Jared Still
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: LS Cheng
Other related posts:
- » ora 1039 when running explain plan on a view without SELECT priv on underlying table
- » Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- » Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- » Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- » Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- upgrades, conversions and ora-600's! oh my!
- From: Robyn
- ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: Jay.Miller
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: LS Cheng
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: Jared Still
- Re: ora 1039 when running explain plan on a view without SELECT priv on underlying table
- From: LS Cheng