Oracle8i SQL Reference
Release 3 (8.1.7)

Part Number A85397-01

Library

Product

Contents

Index

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

SQL Statements:
CREATE SYNONYM to DROP ROLLBACK SEGMENT, 30 of 31


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.

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


Keywords and Parameters

role

Specify the name of the role to be dropped.

Example

DROP ROLE Example

To drop the role florist, issue the following statement:

DROP ROLE florist; 

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

All Rights Reserved.

Library

Product

Contents

Index