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 Backup/restore issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-23-07, 06:14
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
DB2 Backup/restore issue

Can you restore a DB2 database just from its backup file.....

i.e.
i have backed up a database so i have the backup file DB.0.db2inst.NODE0000.CATN0000.20070507030007.001

now i delete the database

can i just restore the database using this file and nothing else...is it possible????
Reply With Quote
  #2 (permalink)  
Old 05-23-07, 09:27
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It depends on how the backup was performed. If it was an offline backup then the answer is yes. If it was an online backup and the log files were included, then the answer is again yes. Otherwise, you will need some log files to be able to get a working DB.

Andy
Reply With Quote
  #3 (permalink)  
Old 05-23-07, 13:25
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Also, multiple backup images are needed if you took delta/incremental backups.

And if you mean with "delete a database" that you just remove it from control center, be aware that this will only uncatalog the database and not drop it.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 05-23-07, 22:41
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
so can you just tell me how to go about it coz i am not able to find a solution for the same.....and i am not able to restore the database........
Reply With Quote
  #5 (permalink)  
Old 05-24-07, 07:59
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by nick.ncs
so can you just tell me how to go about it coz i am not able to find a solution for the same.....and i am not able to restore the database........
1) what DB2 version and OS are you using?
2) what is the exact BACKUP command used to produce the backup image?
3) what exactly did you do to "delete" the DB?
4) what is the RESTORE command you are using? Are you getting errors? If so, what are they?

Andy
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