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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Weird thing (access not granted to a table from a procedure)

Re: Weird thing (access not granted to a table from a procedure)

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Mon, 24 Jun 2002 15:32:16 GMT
Message-ID: <3D173B68.881C0EFC@exesolutions.com>


Antoine wrote:

> Hi,
>
> I have just created a procedure in a package with the system right.
>
> From the system account, i can run sql commands like select * from
> username.tablename.
>
> But, the procedure body is not compiled 'cause it pretends
> username.tablename should be declared first (and when i copy and paste the
> select statement, it runs perfectly, on the same account).
>
> Thx in advance
>
> Antoine

It appears that the access to the table is granted through a role. For compiled code such as packages and procedures the grant must be directly to the schema that owns the code.

Daniel Morgan Received on Mon Jun 24 2002 - 10:32:16 CDT

Original text of this message

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