Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting ROLES in Oracle 9i 1

Status
Not open for further replies.

spook007

Programmer
Joined
May 22, 2002
Messages
259
Location
US
Anyone familiar on how to export ROLES in Oracle 9i. I do believe that if a full export is made, that the roles are also included in that export, but is there someway to just export the roles and not have to do a full export? Thanks!
 
AFAIK, you can export roles( which are just groups of privs)
only as part of some other export mode..
If FULL, then all privs will be exported.
If TABLE, then all on those tables
if USER, then all privs created by that USER

Why not just recreate the roles on the target database?

[profile]
 
ROLES are included only in the full db export.

It's not so hard to do full db export with rows=n. It should take no more than 5 minutes. Then open the dmp file with text editor, cut & past the CREATE ROLE and GRANT DDL statements are run then in SQL*Plus. Or you can use many tools to do that: DataBee, DBArtisan, custom PERL scripts.

Let me know if you need a link to these.


Hope that helps,

clio_usa - OCP DBA
------------------
 
Thanks guys... I appreciate your input!
 
spook007, I just wondered what you finally decided to do. Im working on doing the same thing and just ran across this link. How did you finally solve your problem?

thanks
 
Bookouri;

I ended up doing a full export I had spent too much time trying to figure it out and I found it faster to simply do a full export.
 
ouch! I really had hoped to avoid that...
 
Bookouri, don't be affraid of full word, because with rows=n it's quite simple task.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top