DB2 Database Restore

Source: Internet
Author: User

1, build a database such as test, built when the codepage set to the target backup codepage consistent, such as: 437

2, then back up the newly built database, after the successful backup, the 20141127 directory is deleted, and then the original backup good such as 20141120 of the entire copy to the directory

3, right-click the database, and then pop-up restore ....

Select list of directries or taps: for example C: (Browse ..., direct input all can)

Select the date (timestamp) time to back up the file name. 001 the same as before.

Then OK

After restoring the database, click the database to report the following error:

4, there is no available conversion for the source code page "1386" to the target code page "437".  Reason Code "1". sqlstate=57017

Increase Db2codepage 437

This step was done before 3 because the error was encountered, so it was restored.

Then after the restore succeeds,

5, A connection to or activation of the database "TEST" cannot be made because of Roll-forward PENDING. sqlstate=57019

Summary (from http://www.db2china.net/home/space.php?uid=92501&do=blog&id=29971):

This problem, I guess, is because I made an online incremental backup of the database, after a period of time, with this incremental backup to restore, so that an ID number in the data and the ID number in the log does not correspond to (incomplete data), so the database cannot be opened , you need to use an online log to roll forward the data before you can open the database by unifying the ID number (keeping the data intact).

DB2 Rollforward DB TEST to end of logs and stop

Command Window executes the above commands.

To this database restore OK, I also on the Internet to check a lot of ways to change codepage, non-resistant one is not successful, engage in DB2 service can not start, only re-install DB2.

Hope to help the people who meet the same problem.

DB2 Database Restore

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.