1. create the new role

2. create script 
        spool /tmp/move_role.sql
        select 'alter user ' || grantee || ' grant new_role;' from dba_users where 
granted_role = 'OLD_ROLE'
        host more /tmp/move_role.sql
        --@/tmp/move_role

Sinardy

-----Original Message-----
Sent: 23 October 2003 12:49
To: Multiple recipients of list ORACLE-L


Dear all,
    Is it possible to rename a role? If it can't be done, what is the best
approach to port all the users in the "old" role to the new "role"? Thanks
in advance.

Regards,

seth.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: setiady
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Sinardy Xing
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to