REVOKE (procedure)
Revokes procedure privileges from users and roles.
Syntax
REVOKE [ GRANT OPTION FOR ] { EXECUTE | ALL PRIVILEGES }
ON PROCEDURE [[database.]schema.]procedure( [argument-list] )[,...]
FROM grantee[,...]
[ CASCADE ]
Parameters
GRANT OPTION FORRevokes the grant option for the specified privileges. Current privileges for grantees remain unaffected. If you omit this clause, OpenText™ Analytics Database revokes both the grant option and current privileges.
EXECUTE- Revokes grantees ability to run the specified procedures.
ALL [PRIVILEGES]- Revokes all procedure privileges that also belong to the revoker. Users cannot revoke privileges that they themselves lack.
The optional keyword
PRIVILEGESconforms with the SQL standard. - [database.]schema
Database and schema. The default schema is
public. If you specify a database, it must be the current database.-
procedure - The target procedure.
argument-list- A comma-delimited list of procedure arguments, where each argument is specified as follows:
[argname] argtypeIf the procedure is defined with no arguments, supply an empty argument list.
granteeWhose privileges are revoked, one of the following:
CASCADERevoke privileges from users who received them from the grantee through
WITH GRANT OPTION.
Privileges
Non-superuser, one of the following:
-
Ownership
-
GRANT OPTION on the object
Examples
This example revokes user Bob's execute privilege on the tokenize procedure.
=> REVOKE EXECUTE ON PROCEDURE tokenize(varchar) FROM Bob;