Re: ORA-00911 in Dynamic SQL
From: traceable1 <traceable1_at_hotmail.com>
Date: 12 Apr 2004 11:25:41 -0700
Message-ID: <8551d8c9.0404121025.6c539428_at_posting.google.com>
Date: 12 Apr 2004 11:25:41 -0700
Message-ID: <8551d8c9.0404121025.6c539428_at_posting.google.com>
sybrandb_at_yahoo.com wrote in message news:<a1d154f4.0404090534.53998fc9_at_posting.google.com>...
> traceable1_at_hotmail.com (traceable1) wrote in message news:<8551d8c9.0404081235.4d9251c_at_posting.google.com>...
> > I am trying to create a stored procedure with dynamic sql referencing
> > the V$SESSION table (view). I need to use this dynamically, because
> > the procedure will not compile if the user does not have access to
> > this table.
>
> Untrue. Create the procedure with authid current_user or grant direct
> privilege to the user, and dump the dynamic sql.
> Not sure why you would need any user to do this though.
>
> Sybrand Bakker
> Senior Oracle DBA
Received on Mon Apr 12 2004 - 20:25:41 CEST