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

Home -> Community -> Usenet -> c.d.o.server -> Re: How do I use views in a stored procedure?

Re: How do I use views in a stored procedure?

From: EXE <exe_at_exesolutions.com>
Date: Mon, 17 Aug 1998 00:09:32 -0700
Message-ID: <35D7D72C.1AAD22C5@exesolutions.com>


> I want to create a procedure as system, with a select from dba_segments,
> which is a view. Whenever I try to compile this procedure, I get the
> following error: PLS-00201: identifier 'SYS.DBA_SEGMENTS' must be declared
> How do I get around this problem?

Have your DBA grant you SELECT ANY TABLE and give it to your user account, not to one of your roles.

Regards,

Daniel A. Morgan Received on Mon Aug 17 1998 - 02:09:32 CDT

Original text of this message

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