SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS
functionsupportedAccess control (grants, roles)Revokes privileges on dropped objects from the share and grants the database role to the share.
Syntax
SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS( '<database_role_name>' , '<share_name>' )
Parameters
| Name | Required | Description |
|---|---|---|
'database_role_name' | required | The name of the database role. If the identifier is not fully qualified in the form of db_name.database_role_name, the command uses the database role in the current database for the session. |
'share_name' | required | The name of the share. |
Usage notes
- None.
Access control requirements
To call this function, the active role must have the global MANAGE GRANTS privilege.
Example
Call the function: