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

本站中文解释

Oracle视图V$SYSAUX_OCCUPANTS提供了系统全局维护表(GTM)中SYSAUX倾向占用情况的信息。 这个视图显示任何正在从SYSAUX模式中占用对象的用户或程序的信息,包括此用户的Oracle用户的名字,此用户的会话ID,内部进程(PID),以及此进程正在使用此SYSAUX对象的来源,例如DML语句,普通程序调用或连接字符串。

要使用Oracle视图V$SYSAUX_OCCUPANTS,请执行SELECT语句。 SELECT语句可以有多个字段,如果只需要简单的查询,可以只指定一个字段。例如,如果想要查询出所有正在使用SYSAUX模式时或者可能占用SYSAUX对象的会话,可以执行以下SELECT语句:SELECT SID FROM V$SYSAUX_OCCUPANTS;

在SELECT语句中指定了更多的字段,就可以得到更详细的信息,例如用户的名字,会话ID,内部进程ID以及对象被使用的原因等:SELECT USERNAME, SID, PID, OBJECT_USED, SOURCE FROM V$SYSAUX_OCCUPANTS;

官方英文解释

V$SYSAUX_OCCUPANTS displays SYSAUX tablespace occupant information.

Column Datatype Description

OCCUPANT_NAME

VARCHAR2(64)

Occupant name

OCCUPANT_DESC

VARCHAR2(64)

Occupant description

SCHEMA_NAME

VARCHAR2(64)

Schema name for the occupant

MOVE_PROCEDURE

VARCHAR2(64)

Name of the move procedure; null if not applicable

MOVE_PROCEDURE_DESC

VARCHAR2(64)

Description of the move procedure

SPACE_USAGE_KBYTES

NUMBER

Current space usage of the occupant (in KB)

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 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$SYSAUX_OCCUPANTS 官方解释,作用,如何使用详细说明