Categories:

System functions (Control)

SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS

撤消对共享中已删除对象的权限,并向共享授予数据库角色。

语法

SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS( '<database_role_name>' , '<share_name>' )

实参

'database_role_name'

数据库角色的名称。

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'

共享的名称。

访问控制要求

To call this function, the active role must have the global MANAGE GRANTS privilege.

使用说明

无。

示例

调用函数:

SELECT SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS('mydb.dbr1' , 'myshare');