Oracle 视图 DBA_ROLES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_ROLES存储数据库中所创建的角色的详细信息,可以用来查询特定数据库用户(DBA)角色的详细信息。它由系统用户角色、用户定义角色和系统内部角色组成, 包括角色类型、角色名称、角色虚拟模式标志等常用数据。
使用Oracle视图DBA_ROLES的具体步骤如下:
Step 1:连接到 Oracle 数据库,使用用户SYSTEM账号密码登录(用户SYSTEM需要设置为DBA类型)。
Step 2:打开 SQLPlus,输入以下SQL查询语句:
SELECT * FROM sys.dba_roles;
Step 3:结果集中返回所有数据库中的角色信息,包括角色类型、角色名称、角色虚拟模式标志等常用数据。
官方英文解释
DBA_ROLES
describes all roles in the database.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Name of the role |
|
|
| ID number of the role |
|
| This column is deprecated in favor of the | |
|
| Indicates the authentication mechanism for the role:
| |
|
| Indicates whether a given role is common. Possible values:
| |
|
| Denotes whether the role was created, and is maintained, by Oracle-supplied scripts (such as catalog.sql or catproc.sql). A role for which this column has the value | |
|
| Indicates whether the role was inherited from another container ( | |
|
| Indicates whether the role is a common role created by an implicit application ( | |
|
| For a global role, the external name refers to the DN of a group from a directory service that is mapped to the global role. This is not applicable to a local role. |