|
|
REVOKE OBJECT PRIVILEGE
Revokes object privileges from one or more idents.
where
routine-specificationis:Usage
Embedded/Interactive/ODBC/JDBC.
Description
The specified object privilege is revoked from the ident(s) listed. If the privilege is revoked from a
GROUPident, all members of the group lose the privilege.The object privileges are described under
GRANT OBJECT PRIVILEGE.The
GRANT OPTION FORclause specifies that only theWITH GRANT OPTIONis to be revoked from the specified instance(s) of the privilege(s).The keywords
CASCADEandRESTRICTspecifies whether theREVOKEstatement will allow recursive effects that causes views to be dropped orFOREIGN KEYconstraints to be removed, because access privileges are revoked as a result of a REVOKE MEMBER statement. See the Notes section for REVOKE ACCESS PRIVILEGE for a description of when views are dropped andFOREIGN KEYconstraints are removed due to recursive effects.If
CASCADEis specified, such recursive effects will be allowed.If
RESTRICTis specified, theREVOKEstatement will return an error if it would cause such recursive effects, and no access privileges will be revoked.If neither
CASCADEnorRESTRICTis specified, thenRESTRICTis implicit.Restrictions
Privileges may only be explicitly revoked by the grantor.
Notes
If an object privilege has been granted to the same ident more than once (by different grantors), the
REVOKEstatement will only revoke (or will revoke theWITH GRANT OPTIONfrom) the single instance of the privilege that was granted by the current ident.The object rights attached to the privilege (or the
WITH GRANT OPTION) will only be lost when the last instance of the privilege has been revoked.Revoking object privileges has recursive effects. Privileged actions are performed under the authorization of the most recently granted instance of the access.
When the last instance of a privilege
WITH GRANT OPTIONis revoked, all instances of the privilege granted by the ident under that authorization are recursively revoked.If
MEMBERprivilege on a group is revoked from an ident, all privileges granted through the group are revoked from the ident.An ident may not revoke privileges from himself.
Revoking
TABLEprivilege does not drop the tables created when the privilege was held.Revoking
SEQUENCEprivilege does not drop the sequences created when the privilege was held.Revoking
USAGEprivilege on a domain or sequence preserves the uses of the domain or sequence which were set up when the privilege was held, however, new instances of usage of the domain or sequence are prevented.Revoking
EXECUTEprivilege immediately prevents the ident from invoking the routine or entering thePROGRAMident.Example
REVOKE EXECUTE ON PROCEDURE coming_soon FROM joe, jane;For more information, see the Mimer SQL User's Manual, Revoking Object Privileges.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|