Previous Topic

Next Topic

Drop Role

Valid in: SQL, ESQL

The Drop Role statement removes the specified role identifiers from the installation. Any session using a role identifier when the identifier is dropped continues to run with the privileges defined for that identifier. For more information about role identifiers, see the Database Administrator Guide.

Previous Topic

Next Topic

Syntax

The Drop Role statement has the following format:

[EXEC SQL] DROP ROLE role_id {, role_id};

Previous Topic

Next Topic

Embedded Usage

In an embedded Drop Role statement, role_id cannot be represented with a host language variable.

Previous Topic

Next Topic

Permissions

You must have the maintain_user privilege and be connected to the iidbdb database.

Previous Topic

Next Topic

Locking

The Drop Role statement locks pages in the iirole catalog in the iidbdb.

Previous Topic

Next Topic

Related Statements

Create Role

Alter Role

Previous Topic

Next Topic

Example: Drop Role

The following example drops the sales_report role identifier:

drop role sales_report;


© 2007 Ingres Corporation. All rights reserved.