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 check if DB2 is 32 or 64 bits ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 09:55
julie_bouillon julie_bouillon is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
How to check if DB2 is 32 or 64 bits ?

Can someone tell me how to determine if DB2 is 32 or 64 bits from within a shell script ? I know how to find out for the kernel (prtconf -k) but I have no idea for DB2.

Platform: AIX 5.1 (both 32 and 64 bits)
DB2: UDB EE 7.2 FP11 (both 32 and 64 bits)
Reply With Quote
  #2 (permalink)  
Old 02-11-04, 10:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How to check if DB2 is 32 or 64 bits ?

/db2inst1/sqllib/ctrl]$cat .instuse
BitWidth=32
InstanceType=3

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 12:52
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: How to check if DB2 is 32 or 64 bits ?

Issue the db2level command, The 3 column :

0=32bit
1=64bit


v7.1.0.84 would be 32 bit
v7.1.1.84 Would be 64 bit
__________________
David Quigley
Reply With Quote
  #4 (permalink)  
Old 02-11-04, 12:57
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
David, when looking at the following web page, I am not sure that holds true in all cases:
http://www-3.ibm.com/cgi-bin/db2www/...ist.d2w/report
__________________
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
  #5 (permalink)  
Old 02-11-04, 14:13
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Not sure what your referring too, but on the boxes that say 32 & 64 bit, it means that the fixes are included for both. I guess another way you could check and see if your $HOME/sqllib/bin would be a 32 bit system and $HOME/sqllib/bin64 would be a 64 bit system.


Please look at the following link which shows the db2level
http://www.developer.ibm.com/tech/fa...al?oid=2:23393
__________________
David Quigley
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