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 > Restore Questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-08, 13:11
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Restore Questions

Hello,
I have copied a backup of my database from one server to another and attempted a restore using the following command from the Unix prompt:
Code:
db2 restore database prod user xxxxxxxx using xxxxxxxx from /backups taken at 20080207000514 without rolling forward without prompting
Unfortunately my connection was canceled so when I tried to connect to the database I received an error stating that the database PROD is in a restore/pending state. I restarted the restore with the above command, but not sure how I can tell if it is running or not. Can anyone direct me to some commands that I can run to see if the restore is currently running?

The database and instance names are the same on both machines and the DB2 version is 8.1. Thank you.
Reply With Quote
  #2 (permalink)  
Old 02-11-08, 14:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
db2 list utilities show detail
Reply With Quote
  #3 (permalink)  
Old 02-12-08, 07:10
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Thank you for the help.
Reply With Quote
  #4 (permalink)  
Old 02-12-08, 07:15
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Hi,
When I tried your suggestion I get the following:
Code:
>db2 list utilities show detail
SQL0104N  An unexpected token "utilities" was found following "LIST".
Expected tokens may include:  "ACTIVE".  SQLSTATE=42601
I also did a help on "list" and "utilities" does not come up as an option. Thank you
Reply With Quote
  #5 (permalink)  
Old 02-12-08, 10:17
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
May be it's not available at your fixpak level, which you chose not to share with us. Try "db2pd -d yourdb -recovery"
Reply With Quote
  #6 (permalink)  
Old 02-12-08, 12:28
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
How do I determine what fix pack I am at? Thank you.
Reply With Quote
  #7 (permalink)  
Old 02-12-08, 16:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
db2level
........
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