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 > Java and DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-09, 09:51
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 99
Java and DB2

AIX 5.3
some DB2 8.2 and some DB2 9.5

I am sure these are naive questions, but I am on uncertain ground.

Each of our systems has had Java installed on it, version 1.4.2 I believe.
The DB2 install also puts a copy of Java somehwere in the DB2 directories, version 1.5 from DB2 9.5.

We have a present need/requirement to have Java 6 (1.6) installed to use with Tomcat.
Would we replace the "system" Java 1.4.2 with 1.6, or replace the Java 1.5 from the DB2 install?

At least part of the reason for asking is that I have seen web postings that there may be issues with DB2 and Java 1.6.

Does it make sense that we have two versions of Java on a system?
Is the one in the DB2 directory only used for DB2 and the other is not?
Should the symbolic links to Java for the instance owner be changed to use the "system" Java as opposed to the Java from the DB2 install?
Reply With Quote
  #2 (permalink)  
Old 01-21-09, 10:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can have multiple versions of java installed. For DB2, the java path is referenced in the JDK_PATH of the dbm config (db2 get dbm cfg) and the config for the admin server (db2 get admin cfg) if you created the administrative server instance (which is optional). Just make sure these point to a compatible version of java for DB2 use, and then use the other java for Tomcat.

However, it is usually not a good to idea to have an app or web server on the same server as DB2 because DB2 wants only real memory (not that fake virtual stuff) and DB2 needs to know how much real memory it has available for use.
__________________
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
  #3 (permalink)  
Old 01-21-09, 10:25
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 99
Thank you.
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