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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: [Q] way to re-gernerate ROLE privilege ?

Re: [Q] way to re-gernerate ROLE privilege ?

From: Paul Baumgartel <paul.baumgartel_at_gmail.com>
Date: Mon, 9 May 2005 15:22:14 -0400
Message-ID: <f8c477105050912223759ca92@mail.gmail.com>


Sure. Generate SQL from SQL; something like:

set pages 0 feedb off trimspool on

select 'grant '||privilege||' on '||owner||'.'||table_name||' to '||grantee= ||';'
from all_tab_privs_made where grantee =3D <role>

spool grantrole.sql
/
spool off

Then run grantrole.sql on the other database.

--=20
Paul Baumgartel
paul.baumgartel_at_gmail.com

On 5/9/05, dba1 mcc <mccdba1_at_yahoo.com> wrote:
> We have a ORACLE role with 50 different object
> privileges grant to it. Does there has way to
> generate a script which I can bring this script to
> another database and re-create it?
>=20
> Thanks.
>=20
>=20
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> --
> http://www.freelists.org/webpage/oracle-l
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon May 09 2005 - 15:26:48 CDT

Original text of this message

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