One of the features provided by Dbvisit Standby is the option to recover the standby database up until a specified SCN or TIMESTAMP.
This can be especially useful where you have a financial system with a standby database being used for reporting. Once the batch processing is complete on your primary database the batch process creates a text file on the standby server indicating the SCN or TIMESTAMP to which the standby should recover. This can then allow the DBA to recover the standby database automatically up until this specified SCN or TIMESTAMP.
The standby database can then be opened read-only and used for reporting. This is useful if you would like to view data at a specific point in time.
Two dynamically created files can be used to save specific SCN or timestamp.
Files full names are specified by the following two global variables:
The default location is under the DBVISIT_BASE/standby/log folder on the Standby Database server.
From Dbvisit Standby Version 8.0.24 we can customise the location of the RECOVER_UNTIL_SCN_FILE and RECOVER_UNTIL_TIME_FILE in the DDC. If the file is present it checks for the parameter and recovers according to the SCN or TIMESTAMP set. If not it recovers using the default. This would eliminate the need for changing the parameter in the DDC every time.
Below is an example of using the until time option (Expected format is YYYY-MM-DD:HH24:MI: SS). In this example, we manually create a text file with a timestamp to which the standby should be recovered to.
The standby will not recover past this time until this file has been removed or updated to a later time.
Below is the contents of the
recover_until_time.txt file, as well as the output from a dbvisit, run on the standby server when this file is in place:
The same process can be followed when using an SCN number.