Oracle 视图 USER_ROLE_PRIVS 官方解释,作用,如何使用详细说明
本站中文解释
:
USER_ROLE_PRIVS视图显示与数据库用户相关的角色信息,包括相关角色的名称、状态以及角色类型。
可以使用此视图来查询一个用户拥有哪些角色:
SELECT GRANTED_ROLE FROM USER_ROLE_PRIVS WHERE GRANTEE = USER;
可以使用此视图查询一个角色被哪些用户拥有:
SELECT GRANTEE FROM USER_ROLE_PRIVS WHERE GRANTED_ROLE = ROLE;
官方英文解释
USER_ROLE_PRIVS
describes the roles granted to the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Name of the user, or |
|
|
|
Name of the role granted to the user |
|
|
|
Indicates whether the grant was with the |
|
|
|
Indicates whether the grant was with the |
|
|
|
Indicates whether the role is designated as a |
|
|
|
Indicates whether the role was granted by the operating system ( |
|
|
|
Indicates how the grant was made. Possible values:
|
|
|
|
Indicates whether the grant was inherited from another container ( |
See Also:
“DBA_ROLE_PRIVS”