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

本站中文解释

Oracle视图V$ACCESS是一种动态运行时表,主要报告一些具有访问权限的模式对象。

一般情况下,V$ACCESS视图用于报告连接到数据库实例的某个会话是否具有对用户模式下某个对象的访问权限。V$ACCESS视图提供7列信息,分别是OBJ_OWNER,OBJ_NAME,GRANTEE,GRANTEETYPE,PRIVILEGE,GRANTABLE和AUTHENTICATOR。

如何使用:
要查询V$ACCESS视图,首先要连接到数据库实例,然后运行如下命令:

SELECT OWNER, OBJECT_NAME, PRIVILEGES, GRANTABLE FROM V$ACCESS;

该命令会返回一个表,报告连接到数据库实例的会话具有哪些可访问的模式对象,包括模式权限,是否可授予他人等信息。

官方英文解释

V$ACCESS displays information about locks that are currently imposed on library cache objects.

The locks are imposed to ensure that they are not aged out of the library cache while they are required for SQL execution.

Column Datatype Description

SID

NUMBER

Session number that is accessing an object

OWNER

VARCHAR2(64)

Owner of the object

OBJECT

VARCHAR2(1000)

Name of the object

TYPE

VARCHAR2(64)

Type identifier for the object

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire multitenant container database (CDB). This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


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