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

本站中文解释

Oracle视图 DBA_HIST_STREAMS_CAPTURE是一个查询型视图,它可以查询出过去24小时或者更久的内部信息,这些信息主要包括Streams捕获进程的信息,包括进程名称、相关的应用模式等。通过它,DBA可以获取捕获过程的健康状态,以及相应的活动信息,及时发现和解决一些问题。

可以使用DBA_HIST_STREAMS_CAPTURE获取历史捕获活动信息,如下:

–查看捕获进程状态:
SELECT capture_name,status
FROM dba_hist_streams_capture
WHERE snap_id = (SELECT MAX(snap_id) FROM dba_hist_streams_capture);

–查看捕获全局名称:
SELECT global_name,status
FROM dba_hist_streams_capture
WHERE snap_id = (SELECT MAX(snap_id) FROM dba_hist_streams_capture);

–查看运行中的捕获进程:
SELECT capture_name,status
FROM dba_hist_streams_capture
WHERE status = ‘RUNNING’
AND snap_id = (SELECT MAX(snap_id) FROM dba_hist_streams_capture);

官方英文解释

DBA_HIST_STREAMS_CAPTURE displays information about each capture process.

This view is intended for use with Automatic Workload Repository (AWR).

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

CAPTURE_NAME

VARCHAR2(128)

NOT NULL

Name of the capture process

STARTUP_TIME

DATE

NOT NULL

Time that the capture process was last started

LAG

NUMBER

Delay (in seconds) between the creation and capture of the most recently captured message

TOTAL_MESSAGES_CAPTURED

NUMBER

Total changes captured since the capture process was last started

TOTAL_MESSAGES_ENQUEUED

NUMBER

Total number of messages enqueued since the capture process was last started

ELAPSED_RULE_TIME

NUMBER

Elapsed time (in hundredths of a second) evaluating rules since the capture process was last started

ELAPSED_ENQUEUE_TIME

NUMBER

Elapsed time (in hundredths of a second) enqueuing messages since the capture process was last started

ELAPSED_REDO_WAIT_TIME

NUMBER

Elapsed time (in hundredths of a second) spent by the capture process in the WAITING FOR REDO state

ELAPSED_PAUSE_TIME

NUMBER

Elapsed pause time

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