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 > db2level for a Backup image

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-09, 10:10
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
db2level for a Backup image

Hi,
Anyone knows how to check the db2level or db2 version for a offline backup image.

I am having a backup image taken at 20080821010254. And I am trying to rediect restore that to current db2 version of 8.1.1 and fixpack 16.

it is giving me the following error.

SQL1651N The request cannot be executed because the DB2 server version does not support this functionality.

So I want to check the db2level of the backup image and do it on the server with the same version.. Are there any other suggestions?? Please respond...


Thanks
Reply With Quote
  #2 (permalink)  
Old 04-02-09, 10:28
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Try db2ckbkp
Reply With Quote
  #3 (permalink)  
Old 04-02-09, 10:35
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
I have tried db2ckbkp before with -a option.. but I did not find any db2 version information.

is there any option other than db2ckbkp -a <imagename> which gets all the information?
Reply With Quote
  #4 (permalink)  
Old 04-02-09, 11:56
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
It's there - look at "Release ID":
Code:
        Timestamp                      -- 20090328223005
        Database Partition Number      -- 0
        Instance                       -- DB2
        Sequence Number                -- 1
        Release ID                     -- A00
        Database Seed                  -- 45AF8BE2
I think the numbers mean the following: 900 is 8.1, A00 is 8.2, B00 is 9.1, C00 is 9.5
Reply With Quote
  #5 (permalink)  
Old 04-02-09, 12:09
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Hi Nick,
Thanks for your prompt response.. I can see that release id as A00 in my image..so it is db2 v8.2 what abt fix pack?
The following are the details of db2level from my current db where I want to restore the image:

Db2level :
DB21085I Instance "db2d901" uses "64" bits and DB2 code release "SQL08029"
with level identifier "030A0106".
Informational tokens are "DB2 v8.1.1.144", "s080111", "U811269", and FixPak
"16".
Product is installed at "/usr/opt/db2_08_01".

Is this possible to restore on this version. when I am giving the db2 restore dbname continue. I am getting the following error.

SQL1651N The request cannot be executed because the DB2 server version does not support this functionality

How can I fix it.. Thanks a lot
Reply With Quote
  #6 (permalink)  
Old 04-02-09, 14:12
mdx34 mdx34 is offline
Registered User
 
Join Date: Oct 2004
Posts: 238
Are you trying to restore a Linux database backup onto AIX server ?
Reply With Quote
  #7 (permalink)  
Old 04-02-09, 14:32
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
no AIX to AIX
Reply With Quote
  #8 (permalink)  
Old 04-02-09, 15:31
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Is the backup image compressed? Are you restoring from 32 to 64 bit? If yes, you may need to specify the compression library that's stored with the backup image.
Reply With Quote
  #9 (permalink)  
Old 04-02-09, 16:14
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
The is most likely due to some syntax error. Please see this thread:

SQL1651N during redirect restore
Reply With Quote
  #10 (permalink)  
Old 04-03-09, 03:33
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
mind posting the db2ckbkp output here and the commands of your restore...
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #11 (permalink)  
Old 04-03-09, 09:08
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
these are the commands I am using

1. db2 "restore database D901 from /db2/D901/log_retrieve/backup taken at 20081002200108 into TEMPD901 redirect without rolling forward without prompting";


2. db2 -tvf tbsp.sh (has the set tablespaces containers)

3. db2 restore database D901 continue


db2ckbkp is too large to post..
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