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 > Recover backup made with filesystem copy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-04, 11:00
pluto007 pluto007 is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
Recover backup made with filesystem copy

Hello,

What I have:
I have a DB2 UDB WE 7.1 WIN NT Server with a database that has a userspace1 with two containers (F:\db2\userspace1 & G:\db2\userspace1).
Every evening the Instance is stopes and the files on F and G are backuped by copying on a streamer.

What I want:
I want to recover from a backup on the streamer to another server.
Is this possible? Is there something special to know about?

Thanks a lot to everybody who could help.

Markus
Reply With Quote
  #2 (permalink)  
Old 12-29-04, 11:14
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
File copying(container copying) at the OS level for db2 is useless most of the time.db2 has its own backup command.So at that point you should
contact IBM support.

regards

Mujeeb
Reply With Quote
  #3 (permalink)  
Old 12-29-04, 11:19
pluto007 pluto007 is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
Hi,

I know, but the crazy thing about this is, that they did the "backup" that way, so if someone has done anything like this before, please tell me what to do...

thanks a lot.
Markus
Reply With Quote
  #4 (permalink)  
Old 12-30-04, 16:55
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Unlike Oracle, where if you copy datafiles,controlfiles,logfiles and init files from one system to another, you can bring up the database, DB2 does not allow this. We cloned a system to another; when we did db2start it checks some ID which has some hardware specific parameter(like cpu id) and compares it to something in db or somewhere and it wouldnot allow us to use the database. We ended up with BACKUP, RESTORE.
__________________
mota
Reply With Quote
  #5 (permalink)  
Old 12-30-04, 19:26
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
Check the db2 high performance unload utility.
This is an extra product.But I think there is also a try and buy version.

regards

Mujeeb
Reply With Quote
  #6 (permalink)  
Old 01-03-05, 03:49
pluto007 pluto007 is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
HI - GOT IT

It works! Here's how:

1. Create the instance on the target machine
2. Create as much dummy DBs on the target machine, so you have the identic SQLxxxx number for the desired DB you want to copy (if it is SQL0005 yoou have to create 4 dummy DBs [SQL0001 - SQL0004])
3. Create a DB named like the one you want to copy on the source machine
4. Stop the instance on the target machine and rename the SQL0005 folder (e.g. SQL0005.old)
5. Stop the instance on the source
6. Copy all the files from the source to the target
7. Start the target instance
8. ready - it works - all the data is available.

Markus
Reply With Quote
  #7 (permalink)  
Old 01-03-05, 11:08
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
Excellent and wonderful job.

regards

Mujeeb
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