Oracle9i SQL Reference Release 2 (9.2) Part Number A96540-02 |
|
|
View PDF |
Use the DROP
ROLE
statement to remove a role from the database. When you drop a role, Oracle revokes it from all users and roles to whom it has been granted and removes it from the database. User sessions in which the role is already enabled are not affected. However, no new user session can enable the role after it is dropped.
See Also:
|
You must have been granted the role with the ADMIN
OPTION
or you must have the DROP
ANY
ROLE
system privilege.
drop_role::=
Specify the name of the role to be dropped.
To drop the role dw_manager
(created in "Creating a Role: Example"), issue the following statement:
DROP ROLE dw_manager;