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 DB2 database to Another Server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-04, 09:05
ddempsey ddempsey is offline
Registered User
 
Join Date: Jun 2003
Posts: 50
Restore DB2 database to Another Server

Hi All,

I am new to DB2. Background is oracle.
I need to restore a DB2 database to another server.
The backup was taken on v7.1 on Windows NT
I Need to restore to a Windows 2000 machine with v7.2
What are the steps i need to do.
I have already installed db2 software on this new server.
I see in the control centre that i can create a database from backup.
Is this the way to go???
Or is there anything else i'm missing.

Thanks,
Dave
Reply With Quote
  #2 (permalink)  
Old 07-05-04, 09:14
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Should be no problem. However, in DB2 for Windows, I believe that you need to copy the entire backup directory structure over to the new machine, and not just the backup file.

The database needs to be formatted from the 7.1 format into the revised 7.2 format, but I believe that DB2 does it automatically upon restore. At least I know that DB2 automatically converts DB2 version 7 to version 8 upon restore. I would make sure you have the latest 7.2 fixpak installed on the new machine.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 07-05-04 at 09:33.
Reply With Quote
  #3 (permalink)  
Old 07-05-04, 09:16
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You may have to bind the package list db2cli.lst and db2ubind.lst to the new database

db2 bind @db2cli.lst blocking all grant public

Cheeers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 07-06-04, 08:25
ddempsey ddempsey is offline
Registered User
 
Join Date: Jun 2003
Posts: 50
Thanks
I was just copying the backup file and not the whole directory structure
Will give it a go and see what happens
Reply With Quote
  #5 (permalink)  
Old 07-06-04, 08:30
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
You must have directory structure. You can manualy create directories and then in the last dir copy the backup file.
Reply With Quote
  #6 (permalink)  
Old 07-06-04, 09:40
ddempsey ddempsey is offline
Registered User
 
Join Date: Jun 2003
Posts: 50
Hi All,

Still Having Problems.
When i try to create database from backup i get the error message

the database alias parameter "" is not valid or specified

The Backup is from another server.
I have named the alias the same as the database name but to no affect.

I have no problems creating a database from backup with backups taken from the same server

Any one have any ideas.

Thanks,
Dave
Reply With Quote
  #7 (permalink)  
Old 07-06-04, 09:59
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Question

I have restored backup image(DB2 V8.1) in the same OS (Windows 2000). Not sure if you can backup in NT and restore in 2000. I have read somewhere that DB2 does not allow you to do so. Can anyone clarify this.

Thanks.

Newbie
Reply With Quote
  #8 (permalink)  
Old 07-06-04, 11:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can restore between any version of the operating systems below, within each of these categories:

1. Windows to Windows.
2. Linux to Linux.
3. UNIX to UNIX (AIX, HP/UX, or Solaris)

So a backup from version 7 of DB2 on NT can be restored on a DB2 version 8 running on Windows 2000.
__________________
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
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