GRANT {
MONITOR [ PRIVILEGES | BUT NOT monitor_privilege [,...] ] |
monitor_privilege [,...]
}
TO {
{ grantee [,...] | PUBLIC } [ WITH GRANT OPTION ] |
role_name [,...]
} [;]
Syntax Elements
- MONITOR PRIVILEGES
- The named recipients are to receive all MONITOR-related privileges. MONITOR PRIVILEGES does not permit the user to grant the indicated privilege to others without the WITH GRANT OPTION being specified.
- MONITOR BUT NOT
- The named recipients are to receive all of the grantable privileges except those specified after BUT NOT. If the ability to grant these privileges is to be included, the WITH GRANT OPTION must be specified explicitly.
- monitor_privilege
- A valid monitoring privilege.
- See Monitor Privileges for a list of the valid monitoring privileges.
- grantee
[ALL] user_name
- role_name
- ALL
- Grants the specified object privilege set to the named database or user and to every database or user owned by that database or user now and in the future.
- user_name
- The name of a user or database to be granted the specified MONITOR privileges. You can specify up to 25 names.
- user_name must be the identifier of a user already defined to the system.
- PUBLIC
- Indicates that the privileges are to be inherited by all existing and future database users.
- WITH GRANT OPTION
- Indicates that the grantee receives privileges WITH GRANT OPTION. If this option is not specified, the grantee receives the privilege set without the grant option.