PART2 - DB2 restore/recover online backup on different server

In the previous part 1  we restored the database to different server.
Now we will do the recovery of this database.
Below is the command used for roll forwarding the database we restored in the part 1.
This will put the database on consistent state using the logs that were included with the backup file from original host
 db2 “rollforward database ebppres to end of logs and complete overflow log path (‘/db2_main_data2/ebpplog’)” 
“end of logs” – This indicates that we are doing a full recovery instead of Point in time recovery. If point in time recovery is needed “using local time” clause need to be used also specifying the time which the recovery will end.
“complete” – This will stop the roll forward process and undo any uncompleted transactions to put the database on consistent(accessible) state. Here the use of “and” is to combine two commands. As an example above single command is same as issuing below two commands.
db2 “rollforward database ebppres to end of log”
db2 “rollforward database ebppres complete”
 
“overflow log path” – The value for this parameter should be the same location which we used as “logtarget” in restore command (ref part1 - http://dbtechno.blogspot.in/2012/12/part1-db2-restorerecover-online-backup.html). This tells roll forward process the location to find the logs required.
 Below is the output of above command for the discussed example.

The output shows the last commit point db has been recovered to and the logs used in the recovery process.
After completing these steps it is possible to connect to newly recovered database on new host.

Comments

  1. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. Nice blog and thanks for sharing!!
    We are offering 1-month free trial of backup on cloud and assuring the lowest price guarantee. Please contact us: +91-9971329945
    Visit Here-
    backup on cloud
    Web Hosting
    backup storage

    ReplyDelete

Post a Comment

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Oracle Multitenant - Create new service for PDB using DBMS_SERVICE

Wait for unread message on broadcast channel - Blocking Sessions