zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Oracle 视图 USER_ROLE_PRIVS 官方解释,作用,如何使用详细说明

Oracle官方 使用 如何 详细 作用 说明 解释
2023-06-13 09:11:16 时间

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.


Indicates whether the role is designated as a DEFAULT ROLE for the user (YES) or not (NO)


Indicates whether the role was granted by the operating system (YES) or not (NO); occurs if the OS_ROLES initialization parameter is true


Indicates whether the grant was inherited from another container (YES) or not (NO)


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 Oracle 视图 USER_ROLE_PRIVS 官方解释,作用,如何使用详细说明