SQL/MX 3.2 Reference Manual (H06.25+, J06.14+)
SQL/MX Statements
HP NonStop SQL/MX Release 3.2 Reference Manual—691117-001
2-245
Considerations for REVOKE
the authid-grantor were to issue the REVOKE directly (without using the BY
clause). authid-grantor cannot be SYSTEM. If the Security Administrator's
Group is empty, then authid-grantor must be a valid authorization ID and hold
the privilege(s) being granted WITH GRANT OPTION. However, Security
Administrators have Super REVOKE BY capabilities in which authid-grantor
may be any valid authorization ID that previously granted the privileges on the
target object.
Considerations for REVOKE
Authorization Requirements
Unless you are a Security Administrator or the Super ID, you can revoke only those
privileges that you have previously granted to the user.
If you are a Security Administrator, then you are exempt from the above restriction. In
addition, successfully revoking a privilege will revoke all instances of that privilege
granted by any Security Administrators. It will not affect any owner-derived grants of
that privilege (that is the owner-derived hierarchy of grants is not affected). However,
Security Administrators can revoke owner-derived grants using REVOKE BY authid-
grantor. Since Security Administrators may be the target of an owner-derived grant,
they may hold any privilege derived WGO, in which case they may revoke that
privilege like any ordinary user.
If you are the Super ID, then your revoke privileges depend on the Security
Administrator's Group. If the Security Administrator's Group is empty, then you may
revoke any privilege on any object. Such revokes behave like a REVOKE BY authid-
grantor where the authid-grantor is the object owner.
If the Super ID is designated as a Security Administrator, then the Super ID has the
same REVOKE privileges as any other Security Administrator. However, in this case, if
BY authid-grantor is omitted, then the implied grantor is the Super ID instead of
the object owner and successfully revoking a privilege will revoke all instances of that
privilege granted by any Security Administrators (that is the Super ID behaves like any
other Security Administrator ID). It will not affect any owner-derived grants of that
privilege (that is the owner-derived hierarchy of grants is not affected).
If the Security Administrator's Group is not empty and the Super ID is not designated
as a Security Administrator, the Super ID will have the same restrictions as any
ordinary user with respect to the REVOKE statement.
If one or more of the privileges being revoked does not exist, the system returns a
warning.
Examples of REVOKE
This example revokes one user’s SELECT privileges on a table:
REVOKE SELECT ON TABLE persnl.employee
FROM "sql.user1" RESTRICT;










