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

本站中文解释

V$ASM_CLIENT视图用于报告Oracle Automatic Storage Management (ASM) 客户端相关的信息,包括连接上ASM实例的客户端的会话、SID、状态以及子状态。

使用方法:

1、首先登录SQL专家,在其中输入查询语句:select * from v$asm_client;

2、然后查看V$ASM_CLIENT视图中显示的信息,它显示ASM客户端与ASM实例之间会话信息,比如会话,SID,状态及子状态。

3、其中,用户状态可以显示为“STARTED”,表示会话已经建立;也可以显示为“KILLED”,表示会话已经断开。

官方英文解释

In an Oracle Automatic Storage Management (Oracle ASM) instance, V$ASM_CLIENT identifies databases using disk groups managed by the Oracle ASM instance.

In a database instance, V$ASM_CLIENT displays information about the Oracle ASM instance if the database has any open Oracle ASM files.

Column Datatype Description

GROUP_NUMBER

NUMBER

Number of the disk group being used by the database instance (foreign key to the V$ASM_DISKGROUP view). When a client is connected to an Oracle ASM instance, but is not currently using any disk groups, V$ASM_CLIENT.GROUP_NUMBER contains 0.

When the Cluster Ready Services Daemon (CRSD) or Cluster Synchronization Services (OCSSD) connects to the Oracle ASM instance, this will represent the number of the disk group used for their OCR and voting files respectively.

INSTANCE_NAME

VARCHAR2(64)

Identifier for the database instance client

When CRSD or OCSSD has opened its files in the disk group mounted by the Oracle ASM instance, this will contain the node name where CRSD or OCSSD is running.

DB_NAME

VARCHAR2(8)

Unique database name of the database client instance

When CRSD has opened the Oracle Cluster Registry (OCR) file in the disk group mounted by the Oracle ASM instance, DB_NAME will contain _OCR.

When OCSSD has opened the voting file in the disk group mounted by the Oracle ASM instance, DB_NAME will contain _CSS.

CLUSTER_NAME

VARCHAR2(31)

Name of the cluster

STATUS

VARCHAR2(12)

Status of the client connection:

  • CONNECTED – Database instance client has an active connection to the Oracle ASM instance

  • DISCONNECTED – Database instance client normally ended its connection to the Oracle ASM instance

  • BROKEN – Connection with the database instance client terminated abnormally

When CRSD or OCSSD has opened its files in the disk group mounted by the Oracle ASM instance, it will report Connected as status.

SOFTWARE_VERSION

VARCHAR2(60)

Software version number of the database or Oracle ASM instance for the selected disk group connection

COMPATIBLE_VERSION

VARCHAR2(60)

Compatibility setting of the database or Oracle ASM instance for the selected disk group connection

The value will be - when CRSD or OCSSD has opened its files in the disk group mounted by the Oracle ASM instance.

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

For this view, the value is always 0.

Note:

In an Oracle Database instance, this view returns 0 rows when queried from a PDB.

See Also:

Oracle Automatic Storage
Management Administrator’s Guide
for additional information about using views to display Oracle ASM information


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