GRANT_SYSTEM_PRIVILEGE Procedure
Syntax
DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
privilege IN BINARY_INTEGER,
grantee IN VARCHAR2,
grant_option IN BOOLEAN DEFAULT false);
Parameter
Description
privilege
The name of the system privilege to grant to the grantee.
grantee
The name of the user or role for which the privilege is granted
grant_option
If true, then the specified user or users granted the specified privilege can grant the system privilege to others.
If false, then the specified user or users granted the specified privilege cannot grant the system privilege to others.
REVOKE_SYSTEM_PRIVILEGE Procedure
DBMS_RULE_ADM.REVOKE_SYSTEM_PRIVILEGE(
privilege IN BINARY_INTEGER,
revokee IN VARCHAR2);
Parameter
Description
privilege
The name of the system privilege to revoke from the revokee. See "GRANT_SYSTEM_PRIVILEGE Procedure" for a list of the system privileges.
revokee
The name of the user or role from which the privilege is revoked
DBMS_RULE_ADM过程的两个例子
例子:
BEGIN
SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
PRIVILEGE => SYS.DBMS_RULE_ADM.DROP_ANY_RULE_SET,
GRANTEE => 'SCOTT',
GRANT_OPTION => FALSE);
END;
/
BEGIN
SYS.DBMS_RULE_ADM.REVOKE_SYSTEM_PRIVILEGE(
PRIVILEGE => SYS.DBMS_RULE_ADM.DROP_ANY_RULE,
REVOKEE => 'SCOTT');
END;
/
DBMS_AQADM过程的两个例子
例子:
BEGIN
SYS.DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE (
PRIVILEGE => 'MANAGE_ANY',
GRANTEE => 'SCOTT',
ADMIN_OPTION => FALSE);
END;
/
BEGIN
SYS.DBMS_AQADM.REVOKE_SYSTEM_PRIVILEGE (
PRIVILEGE => 'MANAGE_ANY',
GRANTEE => 'SCOTT');
END;
/