Oracle 视图 ALL_CODE_ROLE_PRIVS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_CODE_ROLE_PRIVS是Oracle中用来存储当前用户拥有的数据库对象代码角色授权的视图。
在Oracle中,我们可以从代码角色来授权指定的用户访问特定的记录,而ALL_CODE_ROLE_PRIVS视图可以显示当前用户拥有哪些数据库对象代码角色授权。通过此视图,可以清晰的知道当前用户拥有的代码角色的详细信息,而无需实际执行查询。
ALL_CODE_ROLE_PRIVS视图的字段包括GRANTEE、GRANTED_ROLE、ADM_PRIV等,GRANTEE字段显示此数据库授权给哪个用户;GRANTED_ROLE字段显示授权代码角色名称;ADM_PRIV字段显示是否具有管理权限。
可以通过以下SQL语句来使用ALL_CODE_ROLE_PRIVS视图:
SELECT * FROM ALL_CODE_ROLE_PRIVS;
官方英文解释
ALL_CODE_ROLE_PRIVS
describes all the roles that are associated with program units owned or accessible by the current user.
Related Views
-
DBA_CODE_ROLE_PRIVS
describes all the roles that are associated with program units in the database. -
USER_CODE_ROLE_PRIVS
describes all the roles that are associated with program units owned by current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Username of the owner of the object |
|
|
|
Name of the object |
|
|
Type of the object |
|
|
|
|
The role associated with the object |
See Also:
-
“DBA_CODE_ROLE_PRIVS”
-
“USER_CODE_ROLE_PRIVS”
-
Oracle Database Security
Guide for more information about granting and revoking roles to and from program units