If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 restore error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-09, 11:26
arun21084 arun21084 is offline
Registered User
 
Join Date: Feb 2008
Posts: 4
Unhappy DB2 restore error

Hi friends

I am new to DB2 and i badly need the help of restoring the database.

I used the following command for restoring the database:

db2 backup database WAREHOUS ONLINE to /tems02_data/warehouse-backup/full-backup "with 2 buffers buffer 1000" "INCLUDE LOGS" "without prompting" (OK)

db2 restore database warehous from /tems02_data/warehouse-backup/full-backup TAKEN AT 20090708163715 INTO warehous (OK)

db2 rollforward db warehous to end of logs and complete

db2 rollforward db warehous to end of logs and complete


I am getting the following error
bash-3.00$ db2 rollforward db warehous to end of logs and complete
SQL0980C A disk error occurred. Subsequent SQL statements cannot be processed. SQLSTATE=58005


Is there any step wrong or missing between any of the steps, like db2stop, db2 terminate or db2 force application all? are these steps applicable anywhere while restoring?

Can anyone please help me as early as possible as i am breaking my head with this for a long time
Reply With Quote
  #2 (permalink)  
Old 07-11-09, 13:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
It sounds like a disk problem, but not sure. Look at the db2daig.log to see if you can find more information about what happened.

However, one thing that is missing on the restore is that you did not specify a LOGTARGET to indicate where the inlcuded logs will go. The you will need to specify the same path on the OVERFLOW LOGS of the rollforward command. Make sure the path is empty before each time you use it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 07-11-09, 16:53
kiranchinta kiranchinta is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
Looks like it is a rollforward issue and not a restore issue.
What messages does the db2diag.log contains when the error appears.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On