Miscellaneous Operation Tasks
This page contains information abou small and helpful operational tasks.
1. GUI Advanced Options
Advanced options can be selected and run by selecting advanced options from the ACTIONS pane:
Before executing any Advanced option, you must stop automated standby update (ASU)
Recreate Standby Controlfile and Refresh one Datafile will cause your standby database to become inconsistent. Your standby database will become consistent again only after you enable again ASU and the transfer & apply jobs complete successfully.
1.1 Recreate Standby Control File
You can at any point in time decide to recreate standby controlfile. This is useful for example when you modify your redolog setting in your primary database. The controlfile can be recreated at any time. There is no option to specify, one you select “Recreate Standby Control File” click on start and wait for the task to complete:
It is also possible to run following command on the primary server:
1.2 Refresh One Datafile
You can at any time force a refresh for a datafile on standby (for example if the datafile became corrupted on standby). You will need to specify file number and backup location on primary and standby which will be used for refresh:
Once you click on start, new task will appear:
Similar to controlfile refresh, dbvctl command on primary is available as well:
1.3 Send one logfile
This function is for situations where you need to transfer single archivelog again to the standby server. The important condition is that such archivelog file must have been already transfered some time in the past to the standby database. This is helpful for example in situations when the archivelog got corrupted during transfer.
We do recommend that you check the existence of the archivelog you want to transfer on standby server in directory ARCHDEST/Thread#_Sequence#.arc (refer to DDC file for your ARCHDEST value). If the file exists, delete it.
You will need to enter thread# and sequence#:
Once you start the job, task will appear:
Running Dbvctl command is also possible on primary:
2. Transfer all unapplied archivelogs to the standby Database
Dbvisit has built in functionality to transfer (or re-transfer) all unapplied archivelogs to the standby database. This is helpful when ASU transfer job would request for any reason to transfer inappropriate archivelog. For example standby database would be on recovery sequence 4094 and ASU job would request sequence number 1024 to be transferred.
In such case, it’s possible to use following procedure:
stop ASU
run command on primary (this action is command line only):
$ /usr/dbvisit/standbymp/oracle/dbvctl -d SLASH -R
=============================================================
Dbvisit Standby Database Technology (12.1.0RC) (pid 2820137)
dbvctl started on czlin0231: Mon Feb 24 12:48:23 2025
=============================================================
Note FORCE_LOGGING is disabled in the primary database.
>>> Resynch option given. Dbvisit Standby configuration will be copied to czlin0232...
>>> Transferring Log file(s) from SLASH on czlin0231 to czlin0232:
thread 1 sequence 4098 (o1_mf_1_4098_mvrq3s7g_.arc)... done
thread 1 sequence 4099 (o1_mf_1_4099_mvrq3t3k_.arc)... done
thread 1 sequence 4100 (o1_mf_1_4100_mvrq3tvk_.arc)... done
thread 1 sequence 4101 (o1_mf_1_4101_mvrq3vnr_.arc)... done
=============================================================
dbvctl ended on czlin0231: Mon Feb 24 12:48:27 2025
=============================================================
run manually backup & send archivelog
enable ASU again
For referrence how to modify ASU and send / apply archivelog, check: Post Tasks - Automatic Standby Update (ASU)
3. Setting Standby Update Delay
You can enable the delay for applying archivelogs on your standby database. This helps in situations when you would like to prevent changes from your primary database to be immediately applied to standby database. For example if you won’t setup apply delay, any drop table / delete command will be applied almost immediately to the standby database.
Setting the apply delay will provide you with time window in which you can stop synchronization to prevent accidental table or row deletion to be applied on standby database (and save the data).
Archivelog transfer continues as normal (archivelogs are transferred immediately) even with apply delay set. So there is no effect on RPO. RTO is affected, because in case of disaster some time will be needed to apply all transferred archivelogs to the standby database before activation.
To enable Apply Update delay, select the “Standby Update Delay” from the ACTIONS pane:
Set the desired apply delay in minutes:
There is no hardcoded lower limit. But you should always aim for reasonable delay length. Set the Delay log application window to give you comfortable amout of time for:
detecting that there was harmful change applied to primary
making decision to stop the sycnhronization
stopping automated standby update (ASU)
Any value less than 30-60 minutes makes will very likely make no sense and will be useless.
4. Standby Read-Only Test
Standby read only test will test if the standby database can be opened in read only mode ensuring the standby database is consistent and ready for activation. After the tes, standby daabase is put into MOUNT mode again. To run the Read-Only test, select “Test Opening Standby Read Only”
There is no option to be specified. After you click on start, the task with information about test result will appear:
5. Start/Stop Database
You can use dbvcontrol GUI to start, stop or restart your primary and standby database. From the ACTIONS pane, select Start/Stop Database:
You can the choose which database and action you want to execute:
Start and restart actions always consider database role. For primary database, the start and restart will put the database into READ WRITE mode, for standby database start and restart will put the standby database into MOUNT mode.
You don’t have to use exclusively Dbvisit StandbyMP GUI for start/stop of your databases. You can of course use sqlplus or srvctl to perform these actions as well