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

本站中文解释

Oracle视图V$GOLDENGATE_TRANSACTION能够显示实时GoldenGate数据库及传输信息。

此视图能够根据用户指定的属性来显示GoldenGate及其关联的事务。它由GoldenGate进程创建,该进程从正在正在运行中的GoldenGate事务中抓取信息。此视图中还包括事务和传输记录,其在GoldenGate参数文件中被配置。

该视图可以帮助用户了解那些 GoldenGate事务成功处理,哪些传输失败,以及一些如发送/接收时间,传输大小,事务等的附加信息。

使用方法:
1. 打开Oracle数据库客户端,并连接到数据库;
2. 执行SELECT * FROM V$GOLDENGATE_TRANSACTION命令查看详细的Goldengate事务信息。

官方英文解释

V$GOLDENGATE_TRANSACTION displays information about transactions that are being processed by Oracle GoldenGate capture processes, outbound servers, and inbound servers.

This view can identify long running transactions and display how many LCRs are being processed in each transaction. This view only contains information about captured LCRs. It does not contain information about user-enqueued LCRs or user messages.

This view only shows information about LCRs that are being processed because they satisfied the rule sets for the component at the time of the query. For capture processes, this view only shows information about changes in transactions that the capture process has converted into LCRs. It does not show information about all the active transactions present in the redo log.

For outbound servers, this view only shows information about LCRs that the outbound server has dequeued. It does not show information about LCRs in the outbound server’s queue. For outbound servers, information about a transaction remains in the view until the transaction is sent to the Oracle GoldenGate client application.

For inbound servers, information about a transaction remains in the view until the transaction commits or until the entire transaction is rolled back.

Column Datatype Description

COMPONENT_NAME

VARCHAR2(138)

Name of the component

COMPONENT_TYPE

VARCHAR2(20)

Type of component

  • CAPTURE – Capture process

  • APPLY – Apply reader subcomponent in an outbound server or inbound server

  • PROPAGATION_SENDER – Propagation sender that sends LCRs from a capture process to an outbound server

XIDUSN

NUMBER

Transaction ID undo segment number of the transaction

XIDSLT

NUMBER

Transaction ID slot number of the transaction

XIDSQN

NUMBER

Transaction ID sequence number of the transaction

BATCH_XIDUSN

NUMBER

Transaction ID undo segment number of the batch parent transaction.

When using BATCHSQL mode in Oracle GoldenGate Integrated Replicat the BATCH_XID columns identify the parent transaction of the batch the current transaction belongs to. The parent transaction is the first transaction of each batch.

This column is populated only if COMPONENT_TYPE is APPLY and BATCHSQL mode is enabled.

BATCH_XIDSLT

NUMBER

Transaction ID slot number of the batch parent transaction.

When using BATCHSQL mode in Oracle GoldenGate Integrated Replicat the BATCH_XID columns identify the parent transaction of the batch the current transaction belongs to. The parent transaction is the first transaction of each batch.

This column is populated only if COMPONENT_TYPE is APPLY and BATCHSQL mode is enabled.

BATCH_XIDSQN

NUMBER

Transaction ID sequence number of the batch parent transaction.

When using BATCHSQL mode in Oracle GoldenGate Integrated Replicat the BATCH_XID columns identify the parent transaction of the batch the current transaction belongs to. The parent transaction is the first transaction of each batch.

This column is populated only if COMPONENT_TYPE is APPLY and BATCHSQL mode is enabled.

CUMULATIVE_MESSAGE_COUNT

NUMBER

Number of LCRs processed in the transaction. If a component is restarted while the transaction is being processed, then this column shows the number of LCRs processed in the transaction since the component was started.

TOTAL_MESSAGE_COUNT

NUMBER

Total number of LCRs processed in the transaction by an outbound server or inbound server. This column does not pertain to capture processes.

FIRST_MESSAGE_TIME

DATE

Time stamp of the first LCR processed in the transaction. If a capture process is restarted while the transaction is being processed, then this column shows the time stamp of the first LCR processed after the capture process was started.

FIRST_MESSAGE_NUMBER

NUMBER

SCN of the first message in the transaction. If a capture process is restarted while the transaction is being processed, then this column shows the SCN of the first message processed after the capture process was started.

LAST_MESSAGE_TIME

DATE

Time stamp of the last LCR processed in the transaction

LAST_MESSAGE_NUMBER

NUMBER

SCN of the most recent message encountered for the transaction

FIRST_MESSAGE_POSITION

RAW(64)

Position of the first message seen by an XStream inbound server

This column is populated only for an apply process that is functioning as an Oracle GoldenGate inbound server.

LAST_MESSAGE_POSITION

RAW(64)

Position of the last message seen by an Oracle GoldenGate inbound server

This column is populated only for an apply process that is functioning as an Oracle GoldenGate inbound server.

TRANSACTION_ID

VARCHAR2(128)

Transaction ID for an Oracle GoldenGate inbound server

This column is populated only for an apply process that is functioning as an Oracle GoldenGate inbound server.

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