Re: PL/SQL - Cursor question

From: Frank van Bortel <fbortel_at_home.nl>
Date: Mon, 24 Dec 2001 19:34:31 +0100
Message-ID: <3C277537.6CACC057_at_home.nl>


billiauk wrote:
>
> If you have DBA role, then you should be able to "SELECT ANY TABLE",
> which means you can create a cursor over another schema's tables...
>
> You might want to investigate your "DBA privileges"...........
>
> Adrian

Nope - DBA is a role, and roles are not active during the execution of packages. So, you'll need:
either access to that table
 (OWNER2> grant select on table1 to owner1;) or have select any table granted directly  (OWNER1> grant select any table to owner1;)

You might want to investigate roles and object priveleges

-- 
Gtrz,

Frank van Bortel
Received on Mon Dec 24 2001 - 19:34:31 CET

Original text of this message