Oracle9i SQL Reference
Release 1 (9.0.1)

Part Number A90125-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

SQL Statements:
CREATE TYPE to
DROP ROLLBACK SEGMENT, 25 of 26


DROP ROLE

Purpose

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:

  • CREATE ROLE for information on creating roles

  • ALTER ROLE for information on changing the authorization needed to enable a role

  • SET ROLE for information on disabling roles for the current session

 

Prerequisites

You must have been granted the role with the ADMIN OPTION or you must have the DROP ANY ROLE system privilege.

Syntax

drop_role::=


Text description of statements_8a.gif follows
Text description of drop_role

Keywords and Parameters

role

Specify the name of the role to be dropped.

Example

DROP ROLE Example

To drop the role dw_manager (created in "CREATE ROLE Example"), issue the following statement:

DROP ROLE dw_manager; 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback