Monitoring and Controlling Processing After the Instantiation
After the target is instantiated and replication is in effect, you can control processes and view the overall health of the replication environment.
If you configured Replicat in integrated mode, you can use the
STATS REPLICAT
command to view statistics on the number of
transactions that are applied in integrated mode as compared to those that are
applied in direct apply mode.
STATS REPLICAT group
The output of this command shows the number of transactions applied, the number of transactions that were redirected to direct apply, and the direct transaction ratio, among other statistics. The statistics help you determine whether integrated Replicat is performing as intended. If the environment is satisfactory and there is a high ratio of direct apply operations, consider using nonintegrated Replicat. You can configure parallelism with nonintegrated Replicat.
Note:
To ensure realistic statistics, view apply statistics only after you are certain that the Oracle GoldenGate environment is well established, that configuration errors are resolved, and that any anticipated processing errors are being handled properly.
You can also view runtime statistics for integrated Replicat in the
V$
views for each of the inbound server components.
-
The reader statistics are recorded in
V$GG_APPLY_READER
and include statistics on number of messages read, memory used, and dependency counts. -
The apply coordinator statistics are recorded in
V$GG_APPLY_COORDINATOR
and record statistics at the transaction level. -
The apply server statistics are recorded in
V$GG_APPLY_SERVER
. This view records information for each of the apply server processes (controlled byparallelism
andmax_parallelism
parameters) as separate rows. The statistics for each apply server are identified by theSERVER_ID
column. If aSERVER_ID
of0
exists, this represents an aggregate of any apply servers that exited because the workload was reduced. -
Statistics about the number of messages received by the database from Replicat are recorded in the
V$GG_APPLY_RECEIVER
table.
To control processes, see Controlling Oracle GoldenGate Processes in Administering Oracle GoldenGate.
To ensure that all processes are running properly and that errors are being handled according to your error handling rules, see Handling Processing Errors in Administering Oracle GoldenGate. Oracle GoldenGate provides commands and logs to view process status, lag, warnings, and other information.
To know more about querying the following views, see Oracle Database Reference.
-
V$GOLDENGATE_TABLE_STATS
to see statistics for DML and collisions that occurred for each replicated table that the inbound server processed. -
V$GOLDENGATE_TRANSACTION
to see information about transactions that are being processed by Oracle GoldenGate inbound servers.