Collection Contents Index RETURN statement ROLLBACK statement pdf/chap9.pdf

Reference Manual
   CHAPTER 9. SQL Statements     

REVOKE statement


Function 

To remove permissions for specified user(s).

Syntax 1 

REVOKE
{ CONNECT
| DBA
| INTEGRATED LOGIN
| GROUP
| MEMBERSHIP IN GROUP userid,...
| RESOURCE
}

... FROM userid,...

Syntax 2 

REVOKE
{ ALL [PRIVILEGES]
| ALTER
| DELETE
| INSERT
| REFERENCES [ ( column-name,...) ]
| SELECT [ ( column-name,...) ]
| UPDATE [ ( column-name,...) ]
}

... ON [ owner.]table-name FROM userid,...

Syntax 3 

REVOKE EXECUTE ON [ owner.]procedure-name FROM userid,...

Permissions 

Must be the grantor of the permissions that are being revoked or have DBA authority.

If you are revoking CONNECT permissions or table permissions from another user, the other user must not be connected to the database.

Side effects 

Automatic commit.

See also 

GRANT statement

Description 

The REVOKE statement is used to remove permissions that were given using the GRANT statement. Form 1 is used to revoke special user permissions. Form 2 is used to revoke table permissions. Form 3 is used to revoke permission to execute a procedure. REVOKE CONNECT is used to remove a user ID from a database. REVOKE GROUP will automatically REVOKE MEMBERSHIP from all members of the group.

Standards and compatibility 

Examples 


Collection Contents Index RETURN statement ROLLBACK statement pdf/chap9.pdf