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 > Urgent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-09, 05:41
ramandeep13 ramandeep13 is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
Urgent

Is it possible to restore the backup of DB2 Ver 9.5 in to DB2 Ver 9.1
Reply With Quote
  #2 (permalink)  
Old 10-03-09, 09:31
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
No, you can't:
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows


"The target system must have the same (or later) version of the DB2 database product as the source system. You cannot restore a backup created on one version of the database product to a system running an earlier version of the database product. For example, you can restore a DB2 UDB V8 backup on a DB2 V9 database system, but you cannot restore a DB2 V9 backup on a DB2 UDB V8 database system."
Reply With Quote
  #3 (permalink)  
Old 10-05-09, 07:38
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
db2move is the option left
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #4 (permalink)  
Old 10-06-09, 01:22
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
other way is
1) db2 -x "select 'EXPORT TO SCHNAME.'||TABNAME||'.IXF OF IXF SELECT * FROM SCHNAME.'||TABNAME||';' from syscat.tables where tabschema = 'SCHNAME' and TYPE = 'T' " > export.sql
2) db2 -x "select 'IMPORT FROM SCHNAME.'||TABNAME||'.IXF OF IXF CREATE INTO SCHNAME.'||TABNAME||';' from syscat.tables where tabschema = 'SCHNAME' AND TYPE = 'T' " > import.sql

export.sql > export.txt in the newer version of db
import.sql > import.txt in the older version of db
regds
Paul
Reply With Quote
  #5 (permalink)  
Old 10-06-09, 02:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Unless you have a small database, you better have a COMMITCOUNT in the those import statements.
__________________
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