Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Sql to create 'ALTER USER...'
Does anybody have a query that will generate the SQL for setting default roles for users? I am trying to set the default roles for users in a test database to match those that are in a production database. The problem is that you must denormalize the data from DBA_ROLE_PRIVS into one ALTER USER command. The type of output I am looking for is:
alter user him default role role1,role4,role7; alter user her default role role4,role5,role7; etc...
Maybe this is easy and I am just having trouble concentrating this afternoon...
Thank you,
Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA USA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jay Hostetter
INET: jhostetter_at_decommunications.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Sep 20 2001 - 15:07:11 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |