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 > Need some help in creating a databse in DB2 on linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-03, 21:47
gbag gbag is offline
Registered User
 
Join Date: Dec 2003
Posts: 9
Need some help in creating a databse in DB2 on linux

Hi,
I need some help in creating a databse in DB2 on linux. I installed DB2 on RedHat linux version 8.0. It went fine. But, to create a database, I am trying to use db2cc [control center] or db2fc [first steps].
But I am getting the error as

[db2admin@partha db2admin]$ db2cc
sh: line 1: /opt/IBMJava2-131/jre/bin/java: No such file or directory
DB2JAVIT : RC = 127

I know that this directory does not exist and I though that DB2 installation will create this.
Can anybody help me in creating a database.
[In windows, I have done this and it is fine running excellent.]
Thanks in advance
Girish.
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 22:29
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Java should have been installed for you, but you can download the Java code for IBM SDK for 32-bit xSeries (Intel compatible) here:
https://www6.software.ibm.com/dl/lxdk/lxdk-p

After you do the install you will need to indicate that you have 1.4.1 instead of 1.3.1 with the following command:

db2 update dbm cfg using JDK_PATH /opt/IBMJava2-14

Make sure the path above is the correct path after you install the Java code (and adjust if necessary).
__________________
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
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