LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2003, 05:28 PM   #1
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Rep: Reputation: 31
DB2 on Linux


Hi, I am new to DB2 on Linux ... Any idea how to allow other none instant owners accounts connect to databases localy via db2 interface ???
Here is what happens:
Code:
-bash-2.05b$ db2 connect to sample 
SQL10007N Message "-1390" could not be retrieved.  Reason code: "1". 
-bash-2.05b$
But using db2inst1 account:

Code:
[db2inst1@viper db2inst1]$ db2 connect to sample 

   Database Connection Information 

Database server        = DB2/LINUX 8.1.0 
SQL authorization ID   = DB2INST1 
Local database alias   = SAMPLE 

[db2inst1@viper db2inst1]$
 
Old 02-18-2003, 01:20 PM   #2
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
nabil,

I am also new to DB2 on Linux. I have a question for you. I am currently in the processes of installing DB2 on a RH 8.0 box. I have it all installed, but I am having a problem getting the control center up and running. We wanted to play with the GUI a little to get a feel for it.

After the install, it says to run the db2fs command to check everything. Well, this is where the problem is: That command is not working.

Here is what happens when I try and execute the command:

./db2fs: line 14: db2javit: command not found

Do you have any idea on what that may be?
Can I provide any information that may help resolve this?

Thanks.

Tarballed
 
Old 02-18-2003, 05:43 PM   #3
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Original Poster
Rep: Reputation: 31
hi Tarballed,

Unfortunantly I am no db2 expert either .. I have installed db2 for the first time and don't know what I am doing yet ...
But don't recall that I had any issues at all installing db2 8.1 on RedHat 8.0 ....It appears that you problem may be because you are not logged in as the db2inst1 account thus can's find the path to db2 bin files ....Good luck, I am still trying to find answers my self ...
 
Old 02-18-2003, 07:17 PM   #4
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
nabil,

Just out of curiosity, can you tell me how you installed DB2 on RH 8.0? I am attempting to install version 8.0 of DB.

I downloaded the tarball from IBM and untarred it into a temporary directory.

I just want to see what I may be doing that is incorrect.

Can you tell me how you started the installation? Did you install from a CD? Or did you install from the tarball?
Hopefully, I can pinpoint my problem if I am doing something wrong with the installation.
Thanks.

Tarballed
 
Old 02-18-2003, 07:59 PM   #5
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Original Poster
Rep: Reputation: 31
Actually, I don't even rememmber all the details, I did download the tar ball from IBM web site and followed the readme file. but mainly it was straight forward and based on the readme file ..nothing special ...You export your display so that the java installer can work and from there you follow the on screen instructions ..No special thing to rememeber before or after ...Sorry .. I did this like a couple of months ago. I was not planing to really learn db2 at the time ..just goofing around......I do know that it was much easier than installing the 7.1 version ...the 8.1 was java GUI driven and more user friendly ...BTW do you have java installed in your system ??? Maybe that's why java GUIis not working out for you ... I previously downloaded the java sdk binaries from sun Microsystem web site for an Oracle server installation... j2sdk1.4.1_01 and exported this into my root bash_profile
JAVA_HOME=/usr/local/java as simbolic link to j2sdk1.4.1_01

What problem are you having to get started with the installer ????
 
Old 02-18-2003, 11:26 PM   #6
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Installing Java on RH 8.0? < http://members.shaw.ca/trollking >.
 
Old 02-19-2003, 10:50 AM   #7
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Ok. I am not sure what exactly is going on, but it is really starting to irritate me.

I downloaded and installed DB2 onto my RH 8.0 box. I followed the instructions. Simple enough.

After that, I tried to start the control center. I went to execute the file db2cc that is inside the db2 directory. At first, when I tried executing it, it came up with "db2javit; command not found."

I did a find for db2javit and found the path to it. The full path was:

/opt/IBM/db2/V8.1/bin <--where DB2 is installed.

I put the path into my profile. Once I did that, I tried executing the file again. This time, this is what I got:

DB2JAVIT : RC = 9501
DB2INSTANCE : -2029059916

Ok. From what I read on the instructions, DB2 8.1 needs java 1.3 or higher. I d/l the IBM developers kit and installed the RPM's.

But, as we can see, something is still not correct.

Any ideas? Do you need additional information?
Let me know and I can post whatever is needed.

Thanks.

Tarballed
 
Old 02-19-2003, 06:37 PM   #8
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Original Poster
Rep: Reputation: 31
Tarballed,
have you installed the sample db by any chance ??? can you connet to it and maybe run some queries ??? I am still unable to determin what problems are you having ????
 
Old 02-24-2003, 06:12 PM   #9
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Original Poster
Rep: Reputation: 31
BTW: I have figured out my issue,
By adding this line to .bash_profile has done the trick for me.
PHP Code:
. /home/db2inst1/sqllib/db2profile 
 
Old 02-24-2003, 06:28 PM   #10
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
nabil,

I figured out my problem. It was really quite funny actually.

The problem was that I was logging in with a regular user and trying to start the Control Center. Once I logged in with a user that was created during install, all my problems were solved. Or, they were somewhat.

Now I am trying to connect to the DB remotely to do some testing. Have not had a lot of time to do testing, but if I run into some snags, I will post a few questions.

Thanks for your help.

Tarballed
 
Old 10-13-2003, 01:59 PM   #11
byfaithalone
LQ Newbie
 
Registered: Sep 2003
Location: Little Rock, AR
Distribution: SUSE 8.2
Posts: 23

Rep: Reputation: 15
Nabil,

I use SUSE 8.2. Where can I find this .bash_profile?
 
Old 11-22-2005, 09:09 PM   #12
gledesma
LQ Newbie
 
Registered: Nov 2005
Location: Mexico
Posts: 1

Rep: Reputation: 0
"db2javit; command not found."

Quote:
Originally posted by tarballed
Ok. I am not sure what exactly is going on, but it is really starting to irritate me.

I downloaded and installed DB2 onto my RH 8.0 box. I followed the instructions. Simple enough.

After that, I tried to start the control center. I went to execute the file db2cc that is inside the db2 directory. At first, when I tried executing it, it came up with "db2javit; command not found."

I did a find for db2javit and found the path to it. The full path was:

/opt/IBM/db2/V8.1/bin <--where DB2 is installed.

I put the path into my profile. Once I did that, I tried executing the file again. This time, this is what I got:

DB2JAVIT : RC = 9501
DB2INSTANCE : -2029059916

Ok. From what I read on the instructions, DB2 8.1 needs java 1.3 or higher. I d/l the IBM developers kit and installed the RPM's.

But, as we can see, something is still not correct.

Any ideas? Do you need additional information?
Let me know and I can post whatever is needed.

Thanks.
Tarballed


Hi

If you are using 64 bits linux platform, the problem is with DB2 tools (like db2cc, etc), as you can see in the following URL.
http://www-1.ibm.com/support/docview...id=swg1LI70572

Regards
Gustavo Ledesma
www.isetec.com.mx
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DB2 installation ,,,,,please... apenguinlinux Debian 6 07-28-2005 04:51 AM
Installing DB2 v.7.2 on Red Hat Enterprise Linux 3 agentjfp Linux - Software 2 06-04-2004 05:26 AM
help:unable to install db2 ese on linux tejpatil Linux - General 0 02-13-2004 01:24 PM
Linux/DB2-help Kernel trouble TResanchez Linux - Software 2 09-17-2003 08:28 AM
DB2 nightmare mr_mandrill Slackware 1 05-12-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration