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 to dump user grants to a .sql file

Re: how to dump user grants to a .sql file

From: Michel Cadot <micadot_at_netcourrier.com>
Date: Thu, 16 Dec 1999 13:55:31 +0100
Message-ID: <83amub$2pu00$1@oceanite.cybercable.fr>


Use dba_sys_privs for system privileges, dba_role_privs for roles and dba_tab_privs and dba_col_privs for object_privileges.

For example, for direct system privileges: select 'grant '||privilege||' to <your user> '||

       decode(admin_option, 'YES', 'with admin option;',';') from dba_sys_privs where grantee='<your user>';

...

--
Have a nice day
Michel

Marc Cluet <mcluet_at_worldonline.es> a écrit dans le message : 3858c659.9928756_at_news.worldonline.es...
> Hi
>
> Someone knows how to dump all the grants I've given to a specific user
> as SQL commands to a .sql file so I can execute it on another server
> to give the same permissions to the same user?
> Thank you!
> Marc
Received on Thu Dec 16 1999 - 06:55:31 CST

Original text of this message

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