/
Post Tasks - Automatic Standby Update (ASU)

Post Tasks - Automatic Standby Update (ASU)

The synchronziation of standby database is wholly managed by Dbvisit StandbyMP Automated Standby Update (ASU). It is by default enabled after the CSD task completes. It is the only module needed to keep your standby database in sync.

The ASU includes following tasks:

  • forcing online log switch on primary (generating new archivedlog)

  • archivelog transfer from primary

  • archivelog apply on standby

ASU can be manually disabled or enabled and user can specify interval indicating how frequently should the force online log switch occur.

1. ASU status and modification

ASU status can be checked by mouse-over in the dbvserver DASHBOARD configuration ASU icon:

image-20250218-112036.png

ASU status can be modified by selecting “Automated Standby Update” from the ACTIONS right pane:

image-20250218-112255.png

You are able to enable / disable ASU (1) and modify its interval (2):

image-20250218-112435.png

You must click on Set (3) to apply any modifications you made.

2. Checking Standby database gap

In Standard edition, it is not possible to rely in v$ views to determine standby database lag. Sqlplus command archive log list on standby will not have any relevant information either.

Standby database gap (or how much it is lagging behind the primary) can be done in two ways:

  • Information from Last applied Archivelog Job

  • Log gap report

Note that both values are independent on each other.

A. Information from Last applied Archivelog Job

This information is displayed as a information below the configuration name:

image-20250218-113009.png

It is updated automatically by the apply job.

B. Log Gap Report

User has the possibility to run log gap report, which will check the recovery status of standby database. This report can be initiated by running “View Detailed Log gap Report” (1) from the ACTIONS right pane:

image-20250218-113503.png

The standby database is considered in sync when Current Source Sequence (2) is the same as Destination Next Required Recovery Sequence (3)

Log gap report is an expensive operation, because it requires running SQL in primary and standby database with network roundtrip. When used for monitoring, we recommend interval of at least 2-3 minutes between individual runs.

It is also possible to determine log gap report by running dbvctl command on primary server:

dbvctl -d <DDC> -i
$ /usr/dbvisit/standbymp/oracle/dbvctl -d SLASH -i ============================================================= Dbvisit Standby Database Technology (12.1.0RC) (pid 2835964) dbvctl started on czlin0231: Tue Feb 25 09:36:49 2025 ============================================================= Dbvisit Standby log gap report for SLASH at 202502250936: ------------------------------------------------------------- Description | SCN | Timestamp ------------------------------------------------------------- Source 222412496 2025-02-25:09:36:48 +01:00 Destination 222412399 2025-02-25:09:35:39 +01:00 Standby database time lag (DAYS-HH:MI:SS): +00:01:09 Report for Thread 1 ------------------- SOURCE Current Sequence 4112 Last Archived Sequence 4111 Last Transferred Sequence 4111 Last Transferred Timestamp 2025-02-25 09:35:44 DESTINATION Next Required Recovery Sequence 4112 Transfer Log Gap 0 Apply Log Gap 0 ============================================================= dbvctl ended on czlin0231: Tue Feb 25 09:36:50 2025 =============================================================

3. Manually transferring and applying single archivelog file

This task is very useful when in doubt about synchronization status and for testing that individual ASU synchronization jobs work without any issues.

ASU must be disabled prior to performing this operation, otherwise ASU transfer and apply jobs can conflict with manual jobs

manual transfer and apply tasks described in this section are entirely the same tasks as performed by ASU.

A. Transferring archivelog from primary

Transfer of single archivelog can be initiated from the ACTIONS pane:

image-20250218-114144.png

New job is created and should complete successfully:

image-20250218-114239.png

You will be able to view job details:

image-20250218-114549.png

It is also possible to utilize command line on primary by running command:

dbvctl -d <DDC>
$ /usr/dbvisit/standbymp/oracle/dbvctl -d SLASH ============================================================= Dbvisit Standby Database Technology (12.1.0RC) (pid 2820307) dbvctl started on czlin0231: Mon Feb 24 12:50:12 2025 ============================================================= >>> Obtaining information from standby database (RUN_INSPECT=Y)... done Thread: 1 Archive log gap: 4. Transfer log gap: 0 Note FORCE_LOGGING is disabled in the primary database. >>> Performing a log switch... done >>> Transferring Log file(s) from SLASH on czlin0231 to czlin0232: thread 1 sequence 4102 (o1_mf_1_4102_mvrq7qsn_.arc)... done

B. Applying transferred archivelog on standby

Apply of single archivelog can be initiated from ACTIONS pane as well:

image-20250218-114409.png

Apply Logs option is visible only if transfer completed successfuly.

As with transfer, there will be an apply job and you can also check its details:

image-20250218-114627.png
image-20250218-114700.png

It is also possible to utilize command line on standby by running command:

dbvctl -d <DDC>
$ /usr/dbvisit/standbymp/oracle/dbvctl -d SLASH ============================================================= Dbvisit Standby Database Technology (12.1.0RC) (pid 1180505) dbvctl started on czlin0232: Mon Feb 24 12:51:39 2025 ============================================================= >>> Applying Log file(s) from czlin0231 to SLASH on czlin0232: thread 1 sequence 4102 (1_4102_1189957379.arc)... done Last applied log(s): thread 1 sequence 4102 Next SCN required for recovery 222336314 generated at 2025-02-24:12:50:15 +01:00. Next required log thread 1 sequence 4103

 

Related content