- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Emre Baransel Nassyam Basha
- 455字
- 2021-08-13 17:12:29
Time for action – checking the SQL Apply service status
The following steps can be performed to check the SQL Apply service status:
- Use the following query on the logical standby database, to check the general SQL Apply status:
SQL> SELECT * FROM V$LOGSTDBY_STATE; PRIMARY_DBID SESSION_ID REALTIME_APPLY STATE --------------- ---------- --------------- --------------- 1319333016 1 Y APPLYING
At the
STATE
column, we can seeINITIALIZING
,WAITING FOR DICTIONARY LOGS
,LOADING DICTIONARY
,WAITING ON GAP
,APPLYING
, andIDLE
values, which describe the status of the SQL Apply clearly with their names. - The
DBA_LOGSTDBY_LOG
view, that we have queried in the Checking the Redo Transport Service Status action, will be very helpful to find the last applied archived log sequence and to check if there are archived log sequences that were received but not applied. Another viewV$LOGSTDBY_PROCESS
is helpful to control the status of the processes responsible for SQL Apply.
Output shows all the processes in the SQL Apply and their status. The READER
, PREPARER
, and BUILDER
processes are responsible for the mining of the redo. On the other side, COORDINATOR
, ANALYZER
, and APPLIER
processes work together to apply the changes to the database. We can see that the READER
process is waiting for the transactions to be applied, so that memory will become available and it will read more redo. On the other side, some APPLIER
processes apply redo and some wait for commit approval to continue applying redo as shown in the following diagram:

What just happened?
We have seen several queries to gather information about the logical standby configuration. We have verified that the newly created logical standby is synchronized with the primary and everything works fine.
Redo transport and SQL Apply, which are the two main services of logical standby, can be monitored at any time using the mentioned methods.
Have a go hero – check the services in a broken configuration
Now stop the listener on the logical standby site and run some operation on the primary database. New archived logs will be created but primary would not send these logs to standby. This will cause a gap between primary and standby. In the case of a gap, query redo transport and SQL Apply services with the same queries. Start the listener and continue checking the status.
- UNIX編程藝術
- 深入淺出DPDK
- Building Mapping Applications with QGIS
- Getting Started with SQL Server 2012 Cube Development
- Learning R for Geospatial Analysis
- UI設計全書(全彩)
- Natural Language Processing with Python Quick Start Guide
- The Statistics and Calculus with Python Workshop
- Functional Python Programming
- Data Manipulation with R(Second Edition)
- Python Penetration Testing Essentials
- 陪孩子像搭積木一樣學編程:Python真好玩+Scratch趣味編程(全2冊)
- React.js 16從入門到實戰
- Instant Highcharts
- Cadence Concept-HDL & Allegro原理圖與電路板設計(第2版)