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 > COMPRLIB in a restore command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-07, 11:03
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
COMPRLIB in a restore command

when i try to restore a compressed image of v8.2.7 ,32 bit to v9.1.2 ,64 bit it fails giving SQL2570N Reason-code: "2".
however using a uncompressed image does the trick , but doing a uncompressed image and moving them accross servers is a burden

i was just going through
http://www-1.ibm.com/support/docview...id=swg1IY71307
and it said of
Local fix
Override the compression library stored in the backup image
using the COMPRLIB option of RESTORE.

i was just wondering how to use COMPRLIB in a restore command and
from where i will get COMPRLIB value ?
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer

Last edited by rahul_s80; 09-25-07 at 11:06.
Reply With Quote
  #2 (permalink)  
Old 09-25-07, 13:23
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
db2 "? restore" will give you where the COMPRESSION LIBRARY statement should go; when backing up, OS compression routine is used and the library containing the routine(32bit) is saved in the backup;while restoring, by using " COMPRESSION LIBRARY " you are telling the restore to use the current OS compression(or uncompression) library(64bit) and not the ONE saved in the backup.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 09-25-07, 13:35
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
thanks...
finally it worked
db2 restore db <dbname> from <location> replace existing COMPRLIB D:\PROGRA~3\IBM\SQLLIB\BIN\db2compr.dll without rolling forward
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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