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

本站中文解释

V$PX_SESSTAT视图用于显示与每个并行查询会话相关的汇总和 session 监控状态计数,它统计每个并行查询活动的状态,例如“块拣选”,“分割创建”,以及对现有分割进行操作的次数。

使用V$PX_SESSTAT视图的一种方法是使用它来分析并行查询执行时间并找出其中潜在的性能问题。V$PX_SESSTAT视图允许查看每个会话或使用daemon线程执行操作的状态计数。它也可以帮助用户诊断每个并行查询引擎和状态,如块拣选,分割分配,等等。

可以使用NOT IN来查询会话视图中不存在的子查询及其状态:

SELECT s.sid, s.username, ss.state, ss.value
FROM V$PX_SESSTAT ss
INNER JOIN V$SESSION s
ON ss.sid = s.sid
WHERE ss.STATENAME NOT IN (‘PX Deq Credit: send blkd’,’PX Deq: Execute Reply’);

官方英文解释

V$PX_SESSTAT contains information about the sessions running parallel execution.

Column Datatype Description

SADDR

RAW(4 | 8)

Session address

SID

NUMBER

Session identifier

SERIAL#

NUMBER

Session serial number

QCSID

NUMBER

Session identifier of the parallel coordinator

QCSERIAL#

NUMBER

Session serial number of the parallel coordinator

QCINST_ID

NUMBER

Instance number on which the parallel coordinator is running

SERVER_GROUP

NUMBER

The logical group of servers to which this cluster database process belongs

SERVER_SET

NUMBER

The logical set of servers that this cluster database process belongs to. A single server group will have at most two server sets.

SERVER#

NUMBER

The logical number of the cluster database process within a server set

DEGREE

NUMBER

The degree of parallelism being used by the server set

REQ_DEGREE

NUMBER

The degree of parallelism that was requested by the user when the statement was issued and before any resource, multiuser, or load balancing reductions

STATISTIC#

NUMBER

Statistic number

VALUE

NUMBER

Statistic value

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