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

本站中文解释

_STAT

Oracle视图DBA_HIST_THREAD_STAT是一个动态性能视图,它用于查询数据库中每个线程的历史性能数据。该视图是从数据库中的Performance Views(V$THREAD_STAT)中收集的,可以提供有关当前活动线程的当前状态的动态信息。

使用该视图可以更轻松地识别性能瓶颈,优化每个线程的性能,并为Oracle管理员提供正确的报告和故障排除。

可以使用以下SQL语句来查询DBA_HIST_THREAD_STAT视图的数据:

SELECT * FROM DBA_HIST_THREAD_STAT;

官方英文解释

DBA_HIST_THREAD displays historical thread information from the control file.

Column Datatype NULL Description

SNAP_ID

NUMBER

NOT NULL

Unique snapshot ID

DBID

NUMBER

NOT NULL

Database ID for the snapshot

INSTANCE_NUMBER

NUMBER

NOT NULL

Instance number for the snapshot

THREAD#

NUMBER

NOT NULL

Thread number

THREAD_INSTANCE_NUMBER

NUMBER

Instance number of the thread

STATUS

VARCHAR2(6)

Thread status (OPEN) or (CLOSED)

OPEN_TIME

DATE

Last time the thread was opened

CURRENT_GROUP#

NUMBER

Current log group

SEQUENCE#

NUMBER

Sequence number of the current log

CON_DBID

NUMBER

The database ID of the PDB for the sampled session

CON_ID

NUMBER

The ID of the container that CON_DBID identifies. 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 视图 DBA_HIST_THREAD 官方解释,作用,如何使用详细说明