Unix Technical Forum

Determining fixpack level programmatically?

This is a discussion on Determining fixpack level programmatically? within the DB2 forums, part of the Database Server Software category; --> Is there a way to determine the fixpack level of a V8 client and server programmatically? I'm aware of ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:59 PM
Donna Lenharth
 
Posts: n/a
Default Determining fixpack level programmatically?

Is there a way to determine the fixpack level of a V8 client
and server programmatically? I'm aware of the db2level command,
but only want to use that as a last resort.

Thanks in advance for any help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 04:03 PM
PM \(pm3iinc-nospam\)
 
Posts: n/a
Default Re: Determining fixpack level programmatically?

You can get the info from sqlca on connect.
Here is an example using the CLP but you can use other programmatic means.


PROMPT>db2 -a connect to ....

Database Connection Information

Database server = DB2/NT 8.1.3
SQL authorization ID = XXXX
Local database alias = XXX


SQLCA Information

sqlcaid : SQLCA sqlcabc: 136 sqlcode: 0 sqlerrml: 44
sqlerrmc: 1˙1252˙XXXXXXXXM˙XXXX˙QDB2/NT˙53˙53˙0˙1252˙1˙
sqlerrp : SQL08013
sqlerrd : (1) 1 (2) 1 (3) 0
(4) 1 (5) 0 (6) 0
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 00000

Corresponding db2level

DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08013" with
level identifier "02040106".
Informational tokens are "DB2 v8.1.3.132", "s030728", "WR21324", and FixPak
"3".


PM

"Donna Lenharth" <donna_lenharth@yahoo.com> a écrit dans le message de
news:a12f1f14.0311061409.6dbb9d6@posting.google.co m...
> Is there a way to determine the fixpack level of a V8 client
> and server programmatically? I'm aware of the db2level command,
> but only want to use that as a last resort.
>
> Thanks in advance for any help!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 04:03 PM
PM \(pm3iinc-nospam\)
 
Posts: n/a
Default Re: Determining fixpack level programmatically?

You can also search the samples for
dbinfo

PM


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com