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

本站中文解释

查看指定用户被授予的 系统权限或对象权限。

Oracle视图:DBA_USED_USERPRIVS_PATH

用途:DBA_USED_USERPRIVS_PATH 视图是一个内部视图,用来查看指定用户被授予的系统权限或对象权限。这个视图可以查看拥有某个特定用户的权限,例如通过PROXY用户授予的权限;它也可以查看被授予的系统权限和表的属性权限;另外,它还可以显示用户有哪些系统权限,以及基于这些权限拥有哪些对象权限。

使用方法:

首先,使用SELECT * FROM DBA_USED_USERPRIVS_PATH 视图可以查询出指定用户拥有的系统权限、对象权限以及PROXY权限。

其次,使用GRANT语句可以授予用户特定的权限,如系统权限、对象权限等。

最后,使用REVOKE语句可以删除用户的权限,以及通过其他用户授予的权限。

另外,它也能够用来检查数据库中的某个用户拥有哪些权限,及其权限是否正确安装使用。例如,可以使用这个视图检查一个对数据库拥有被盗用或滥用特定权限的用户。

官方英文解释

DBA_USED_USERPRIVS_PATH lists the user privileges that are used for the privilege analysis policies reported by the DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT procedure.

This view provides access to analyzed privilege records in SYS tables.

You must have the CAPTURE_ADMIN role to access this view.

Column Datatype NULL Description

CAPTURE

VARCHAR2(128)

NOT NULL

Name of a privilege analysis policy

SEQUENCE

NUMBER

NOT NULL

The sequence number of the privilege analysis run during which the privilege was reported

OS_USER

VARCHAR2(128)

Operating system login username

USERHOST

VARCHAR2(128)

Client host machine name

MODULE

VARCHAR2(64)

Module name

USERNAME

VARCHAR2(128)

NOT NULL

Name of the user whose privilege was reported

USED_ROLE

VARCHAR2(128)

Used role

USER_PRIV

VARCHAR2(25)

Used user privilege

ONUSER

VARCHAR2(128)

The user whose user privileges the grantee can exercise

GRANT_OPTION

NUMBER

Indicates whether the privilege is granted with the GRANT option:

  • 0 – Indicates that the privilege is granted without the GRANT option

  • 1 – Indicates that the privilege is granted with the GRANT option

PATH

GRANT_PATH

User privilege grant paths

RUN_NAME

VARCHAR2(128)

The name of the run during which the privilege was reported

See Also:

  • Oracle Database Security
    Guide
    for more information about privilege analysis

  • Oracle Database PL/SQL
    Packages and Types Reference
    for more information about the DBMS_PRIVILEGE_CAPTURE.GENERATE_RESULT procedure


数据运维技术 » Oracle 视图 DBA_USED_USERPRIVS_PATH 官方解释,作用,如何使用详细说明