A REVOKE
statement is used for revoking privileges — including roles — from users and other database objects.
A REVOKE
statement is used for revoking privileges — including roles — from users and other database objects.
REVOKE
Revokes privileges or role assignments
DSQL, ESQL
REVOKE [GRANT OPTION FOR] <privileges>
FROM <grantee_list>
[{GRANTED BY | AS} [USER] grantor]
<privileges> ::=
!! See GRANT
syntax !!
REVOKE [ADMIN OPTION FOR] <role_granted_list> FROM <role_grantee_list> [{GRANTED BY | AS} [USER] grantor] <role_granted_list> ::= !! SeeGRANT
syntax !! <role_grantee_list> ::= !! SeeGRANT
syntax !!
REVOKE ALL ON ALL FROM <grantee_list>
<grantee_list> ::=
!! See GRANT
syntax !!
Parameter | Description |
---|---|
grantor |
The grantor user on whose behalf the privilege(s) are being revoked |
The REVOKE
statement revokes privileges that were granted using the GRANT
statement from users, roles, and other database objects.See GRANT
for detailed descriptions of the various types of privileges.
Only the user who granted the privilege can revoke it.
DEFAULT
ClauseWhen the DEFAULT
clause is specified, the role itself is not revoked, only its DEFAULT
property is removed without revoking the role itself.
FROM
ClauseThe FROM
clause specifies a list of users, roles and other database objects that will have the enumerated privileges revoked.The optional USER
keyword in the FROM
clause allow you to specify exactly which type is to have the privilege revoked.If a USER
(or ROLE
) keyword is not specified, the server first checks for a role with this name and, if there is no such role, the privileges are revoked from the user with that name without further checking.
Tip
|
|
Important
|
Revoking Privileges from user
PUBLIC Privileges that were granted to the special user named |