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 > How to restore backup 8.2 to 9.5?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-10, 09:24
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
How to restore backup 8.2 to 9.5?

I have a problem.
I'm a beginner in db2 and urgently need to restore a backup made in the 8.2 version when I have the version 9.5.

I need your help because I have little experience and not what is the proper procedure, I have thought to uninstall 9.5 to install 8.2 and then make the restoration

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 08-19-10, 10:34
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Check this article to start with:
Performing a Database Backup, Restore, and Rollforward


You have to use an offline database backup
Reply With Quote
  #3 (permalink)  
Old 08-19-10, 10:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The backup on V8.2 has to be an offline backup to be able to be restore onto V9.5. If the backup is an online backup it will not work.

Andy
Reply With Quote
  #4 (permalink)  
Old 08-19-10, 10:53
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
Thanks, I have a online backup ....
I have been advised to uninstall the version 9.5 and install version 8.2 but not exactly how to do and do not want to risk it.
Reply With Quote
  #5 (permalink)  
Old 08-19-10, 10:58
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You need to ask for an offline db backup if you want to restore to v9.5.

Or install v8.2 and restore your online image. With Unix/Linux, you can install multiple db2 versions on the same server. Not sure about Windows (I think this is possible starting with v9.1)
Reply With Quote
  #6 (permalink)  
Old 08-19-10, 11:11
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
I have AIX ...
Not that such is to install two versions, as just start with db2.

I advise installing the two versions? or uninstall 9.5 and then install 8.2?
Could help me with the correct procedure?

Help !!!!!!!!
Reply With Quote
  #7 (permalink)  
Old 08-19-10, 11:51
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
It's easier to ask for an offline image and go directly to v9.5.

If online is the only option, then you can install v8.2 and then restore. You don't need to uninstall v9.5
Reply With Quote
  #8 (permalink)  
Old 08-19-10, 12:04
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
Thank you very much for your help,
Yes online is the only option,
I Will Seek the installation guide.
I have further questions, I think I have to create the database again right? the restoration is created exactly like I have in production? what happend with bufferpool?
Reply With Quote
  #9 (permalink)  
Old 08-19-10, 12:31
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You need to install v8.2 code, create an instance (if it was not created during the installation), start the instance and then do the restore.
Reply With Quote
  #10 (permalink)  
Old 08-19-10, 12:42
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
Thanks!!!!!!!!!!!!!!!!!!!!

If I have a backup with name
MYDB.0.db2inst1.NODE0000.CATN0000.20080515213133.0 01

and I start instance db2inst8 for example, is correct this commando to restore?
db2 "restore database mydb from /data1/bkup taken at 20080515213133 to /data"
Reply With Quote
  #11 (permalink)  
Old 08-19-10, 13:32
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
The command looks ok. You might have to do a redirected restore if the filesystems used by tablespace containers are not the same on the source and target servers.

Are you really going to use an image from 2008. You have to make sure you have the transaction logs in order to perform the rollforward.
Reply With Quote
  #12 (permalink)  
Old 08-19-10, 13:49
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
The restoration is in process, I am not understood what to "restore the filesystems if Used by Not the tablespace containers are on the same source and target servers"

I have no logs at this time but I can restore them from tape, I think the rollfordwar can wait while we retrieve the logs?

Rollfordware is required?
Reply With Quote
  #13 (permalink)  
Old 08-19-10, 16:03
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Don't worry about redirected restore unless a regular restore fails.

Rollforward can wait until you retrieve the logs, but you won't be able to connect to the db until rollforward completes successfully.
Reply With Quote
  #14 (permalink)  
Old 08-19-10, 16:09
hozkr hozoryo hozkr hozoryo is offline
Registered User
 
Join Date: Aug 2010
Posts: 43
db2girl, I had other problem, because I run restore and I went to get my lunch. When I saw the restore is failed!!!, I dont have folders, I don't have database. When I run db2 "LIST UTILITIES SHOW DETAIL" say me that nothing run.

and I have this errors:


2010-08-19-13.39.36.097778-360 E5470411A416 LEVEL: Error (OS)
PID : 540754 TID : 1 PROC : db2agent (instance)
INSTANCE: db2inst8 NODE : 000
APPHDL : 0-29 APPID: *LOCAL.db2inst8.100819172333
FUNCTION: DB2 UDB, oper system services, sqloexec2, probe:2
CALLED : OS, -, unspecified_system_function
OSERR : EEXIST (17) "Do not specify an existing file."

2010-08-19-13.39.36.213112-360 E5470828A431 LEVEL: Error (OS)
PID : 540754 TID : 1 PROC : db2agent (instance)
INSTANCE: db2inst8 NODE : 000
APPHDL : 0-29 APPID: *LOCAL.db2inst8.100819172333
FUNCTION: DB2 UDB, oper system services, sqloexec2, probe:2
CALLED : OS, -, unspecified_system_function
OSERR : EBADF (9) "A file descriptor does not refer to an open file."



Could you help me please!!!!
Reply With Quote
  #15 (permalink)  
Old 08-19-10, 16:49
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by hozkr hozoryo View Post
I saw the restore is failed
What was the exact error message?


I think you really need to get help from a more senior DBA.

Last edited by db2girl; 08-20-10 at 07:27.
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