Sql 如何检查oracle数据库中分配给模式、角色的对象的权限(DDL、DML、DCL)?
大多数时候,我们都在为获取模式、角色及其对象的权限细节而与一些愚蠢的事情作斗争,并试图找到一些简单的方法来获取关于它的所有细节,以及生成大量grant语句以供进一步执行的伪查询代码。现在我们来了解它。简单介绍一下数据字典视图前缀:Sql 如何检查oracle数据库中分配给模式、角色的对象的权限(DDL、DML、DCL)?,sql,oracle,sqlplus,privileges,Sql,Oracle,Sqlplus,Privileges,大多数时候,我们都在为获取模式、角色及其对象的权限细节而与一些愚蠢的事情作斗争,并试图找到一些简单的方法来获取关于它的所有细节,以及生成大量grant语句以供进一步执行的伪查询代码。现在我们来了解它。简单介绍一下数据字典视图前缀: ALL_ -Describes PUBLIC Object grants. USER_ -Describes current user Object grants. DBA_ -Describes all object grants in the da
ALL_ -Describes PUBLIC Object grants.
USER_ -Describes current user Object grants.
DBA_ -Describes all object grants in the database.
ROLE_ROLE_PRIVS -describes the roles granted to other roles.
ROLE_SYS_PRIVS -describes system privileges granted to roles.
ROLE_TAB_PRIVS -describes table privileges granted to roles.
DBA_ROLE_PRIVS -describes the roles granted to all users and roles in the database.
DBA_SYS_PRIVS -describes system privileges granted to users and roles.
DBA_TAB_PRIVS -describes all object grants in the database.
DBA_COL_PRIVS -describes all column object grants in the database.
有用的视图信息:
ALL_ -Describes PUBLIC Object grants.
USER_ -Describes current user Object grants.
DBA_ -Describes all object grants in the database.
ROLE_ROLE_PRIVS -describes the roles granted to other roles.
ROLE_SYS_PRIVS -describes system privileges granted to roles.
ROLE_TAB_PRIVS -describes table privileges granted to roles.
DBA_ROLE_PRIVS -describes the roles granted to all users and roles in the database.
DBA_SYS_PRIVS -describes system privileges granted to users and roles.
DBA_TAB_PRIVS -describes all object grants in the database.
DBA_COL_PRIVS -describes all column object grants in the database.
要了解有关PRIVS视图的更多信息,请访问
查询:
ALL_ -Describes PUBLIC Object grants.
USER_ -Describes current user Object grants.
DBA_ -Describes all object grants in the database.
ROLE_ROLE_PRIVS -describes the roles granted to other roles.
ROLE_SYS_PRIVS -describes system privileges granted to roles.
ROLE_TAB_PRIVS -describes table privileges granted to roles.
DBA_ROLE_PRIVS -describes the roles granted to all users and roles in the database.
DBA_SYS_PRIVS -describes system privileges granted to users and roles.
DBA_TAB_PRIVS -describes all object grants in the database.
DBA_COL_PRIVS -describes all column object grants in the database.
-关于用户/架构状态
-检查分配给角色和架构的角色
-检查角色权限
-检查架构的已授予对象的权限
谢谢强>