By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,441 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,441 IT Pros & Developers. It's quick & easy.

problem for db2cc : db2javit not found

P: n/a
Hi,
i have a pb of configuer db2 express-C with ubuntu6.10 version
desktop. In fact, i had installed db2 9.1Express-C and i can't start
the control center and everytime it shows: ./db2cc 27 : db2javit not
found. but i had checked that there is the file db2javit, so i can't
understand why. In addtion, i also check the variable JDK_PATH, and it
points to the path of SDK ibm.
somebody can help me?
regards

Jan 10 '07 #1
Share this Question
Share on Google+
15 Replies


P: n/a
xi***********@gmail.com wrote:
Hi,
i have a pb of configuer db2 express-C with ubuntu6.10 version
desktop. In fact, i had installed db2 9.1Express-C and i can't start
the control center and everytime it shows: ./db2cc 27 : db2javit not
found. but i had checked that there is the file db2javit, so i can't
understand why. In addtion, i also check the variable JDK_PATH, and it
points to the path of SDK ibm.
Is "db2javit" in the PATH of your DB2 instance?

I believe Ubuntu is not an officially supported distribution. Hence the
question: what exactly have you done during install up to the point where
you create and start the DB2 instance?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 10 '07 #2

P: n/a
xi***********@gmail.com wrote:
Hi,
i have a pb of configuer db2 express-C with ubuntu6.10 version
desktop. In fact, i had installed db2 9.1Express-C and i can't start
the control center and everytime it shows: ./db2cc 27 : db2javit not
found. but i had checked that there is the file db2javit, so i can't
understand why. In addtion, i also check the variable JDK_PATH, and it
points to the path of SDK ibm.
somebody can help me?
regards
You shouldn't need the "./" prefix on db2cc - that tells me you don't have
the environment set up properly.

Did you create an instance? Log in as that instance owner and run db2cc.
Or, if the instance is "db2inst1" (the default), just run ".
~db2inst1/sqllib/db2profile" and then "db2cc" (no leading "./") should work
fine.
Jan 10 '07 #3

P: n/a
at first thanks for your reponse
i have chosen ubuntu for the test because this is a free version , and
i knew that it is not a version recommanded. But all of these versions
in the list IBM are not free and they are the versions for entreprise.
I have not choice. In addtion, i can create user and start DB2. And i
log in db2inst1, i can use the commands to do the requests of sample,
for ex, select * from employee. But i hope to use control center.
in fact, the intallation is done automatic by db2setup, i log in with
db2inst1, use db2admin start, and error for db2cc

thanks for another time
Knut Stolze wrote:
xi***********@gmail.com wrote:
Hi,
i have a pb of configuer db2 express-C with ubuntu6.10 version
desktop. In fact, i had installed db2 9.1Express-C and i can't start
the control center and everytime it shows: ./db2cc 27 : db2javit not
found. but i had checked that there is the file db2javit, so i can't
understand why. In addtion, i also check the variable JDK_PATH, and it
points to the path of SDK ibm.

Is "db2javit" in the PATH of your DB2 instance?

I believe Ubuntu is not an officially supported distribution. Hence the
question: what exactly have you done during install up to the point where
you create and start the DB2 instance?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 10 '07 #4

P: n/a
xi***********@gmail.com wrote:
at first thanks for your reponse
i have chosen ubuntu for the test because this is a free version , and
i knew that it is not a version recommanded. But all of these versions
in the list IBM are not free and they are the versions for entreprise.
What makes you think that? For example, you can download SLES here:
http://download.novell.com/Download?...d=ABUnQ9759c0~
I have not choice. In addtion, i can create user and start DB2. And i
log in db2inst1, i can use the commands to do the requests of sample,
for ex, select * from employee. But i hope to use control center.
in fact, the intallation is done automatic by db2setup, i log in with
db2inst1, use db2admin start, and error for db2cc
We are back to the original question: what exactly have you done during
installation and what was the output produced by DB2?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 11 '07 #5

P: n/a

Knut Stolze wrote:
xi***********@gmail.com wrote:
at first thanks for your reponse
i have chosen ubuntu for the test because this is a free version , and
i knew that it is not a version recommanded. But all of these versions
in the list IBM are not free and they are the versions for entreprise.

What makes you think that? For example, you can download SLES here:
http://download.novell.com/Download?...d=ABUnQ9759c0~
I have not choice. In addtion, i can create user and start DB2. And i
log in db2inst1, i can use the commands to do the requests of sample,
for ex, select * from employee. But i hope to use control center.
in fact, the intallation is done automatic by db2setup, i log in with
db2inst1, use db2admin start, and error for db2cc

We are back to the original question: what exactly have you done during
installation and what was the output produced by DB2?
after download and gzip, tar, i had used ./db2setup to lauch the
procedure of installation, no problem. During this time, i had created
the dasusr, db2inst,etc(using the value default). After this, in the
path opt, there is package ibm/db2/V9.1. In this path, there are bin,
admin, etc. Moreover, there are three repertories: dasusr1, db2inst1,
db2fencl1. And i had logged in
db2inst to start db2.
that's all.
thanks
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 11 '07 #6

P: n/a
xi***********@gmail.com wrote:
after download and gzip, tar, i had used ./db2setup to lauch the
procedure of installation, no problem.
What exactly does the installation log show?
During this time, i had created
the dasusr, db2inst,etc(using the value default). After this, in the
path opt, there is package ibm/db2/V9.1. In this path, there are bin,
admin, etc.
You mean that DB2 is installed in the path /opt/ibm/db2/V9.1?
Moreover, there are three repertories: dasusr1, db2inst1,
db2fencl1.
Do you mean that you created 3 user accounts? Were they also created
under /opt/ibm/db2/V9.1?!?
And i had logged in db2inst to start db2.
Have you set up the profile for db2inst1?
How exactly did you start DB2?

p.s: If you don't provide the details, you won't get many answers.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 11 '07 #7

P: n/a

Knut Stolze wrote:
xi***********@gmail.com wrote:
after download and gzip, tar, i had used ./db2setup to lauch the
procedure of installation, no problem.

What exactly does the installation log show?
There were not problems with the procedure of installation.
>
During this time, i had created
the dasusr, db2inst,etc(using the value default). After this, in the
path opt, there is package ibm/db2/V9.1. In this path, there are bin,
admin, etc.

You mean that DB2 is installed in the path /opt/ibm/db2/V9.1?
Yes
>
Moreover, there are three repertories: dasusr1, db2inst1,
db2fencl1.

Do you mean that you created 3 user accounts? Were they also created
under /opt/ibm/db2/V9.1?!?
it has been created automaticaly with the setup and they are under
/home/
>
And i had logged in db2inst to start db2.

Have you set up the profile for db2inst1?
How exactly did you start DB2?
I have done: db2iupdt
db2istrt
with the db2inst1: ./db2admin start
and I have created the base sample
and I can see it on SQL: ./db2

but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found

Thank you in advance for your help.
Bsrt rgrds
>
p.s: If you don't provide the details, you won't get many answers.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 11 '07 #8

P: n/a
xiaoning.s...@gmail.com wrote:
I have done: db2iupdt
db2istrt
with the db2inst1: ./db2admin start
and I have created the base sample
and I can see it on SQL: ./db2

but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found

Thank you in advance for your help.
Bsrt rgrds
Check the JDK_PATH of the admin server:

db2 get admin cfg

Jan 11 '07 #9

P: n/a

set JAVA_HOME

swami

On Jan 11, 7:17 pm, "Mark A" <m00...@yahoo.comwrote:
xiaoning.s...@gmail.com wrote:
I have done: db2iupdt
db2istrt
with the db2inst1: ./db2admin start
and I have created the base sample
and I can see it on SQL: ./db2
but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found
Thank you in advance for your help.
Bsrt rgrdsCheck the JDK_PATH of the admin server:

db2 get admin cfg
Jan 12 '07 #10

P: n/a
xi***********@gmail.com wrote:
>
Knut Stolze wrote:
>xi***********@gmail.com wrote:
after download and gzip, tar, i had used ./db2setup to lauch the
procedure of installation, no problem.

What exactly does the installation log show?

There were not problems with the procedure of installation.
Given that your environment is _not_ properly set up, and also given that
you don't provide us the details of the installation log (for example),
it's hard to say anything about this issue. So all we can do is guessing.
>Have you set up the profile for db2inst1?
How exactly did you start DB2?
I have done: db2iupdt
db2istrt
with the db2inst1: ./db2admin start
and I have created the base sample
and I can see it on SQL: ./db2

Since you are using "./" in front of "db2", I assume that you are executing
this from the sqllib/bin/ directory, correct? Isn't the "db2" executable
found in your PATH? If not, then your environment/instance is
_definitively not_ set up correctly. Which brings me back to this question
that you have not yet answered:
>Have you set up the profile for db2inst1?
but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found
Assuming that I'm right and your PATH is not set to include the DB2 instance
directories because you did not source ~/sqllib/db2profile, I'm not
surprised at all about this error.

Note that DB2 will give you a warning if it cannot modify your .profile to
include the sourcing of ~/sqllib/db2profile. Hence, we are back to the
installation log which will show you this detail as well if you ignored it
in the db2setup output.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 12 '07 #11

P: n/a
Hi,

Where are the logs files for DB2 ?
If I find the log, I will send it to you.
I didn't find the directory.
Thank you for your help.

Knut Stolze wrote:
xi***********@gmail.com wrote:

Knut Stolze wrote:
xi***********@gmail.com wrote:

after download and gzip, tar, i had used ./db2setup to lauch the
procedure of installation, no problem.

What exactly does the installation log show?
There were not problems with the procedure of installation.

Given that your environment is _not_ properly set up, and also given that
you don't provide us the details of the installation log (for example),
it's hard to say anything about this issue. So all we can do is guessing.
Have you set up the profile for db2inst1?
How exactly did you start DB2?
I have done: db2iupdt
db2istrt
with the db2inst1: ./db2admin start
and I have created the base sample
and I can see it on SQL: ./db2


Since you are using "./" in front of "db2", I assume that you are executing
this from the sqllib/bin/ directory, correct? Isn't the "db2" executable
found in your PATH? If not, then your environment/instance is
_definitively not_ set up correctly. Which brings me back to this question
that you have not yet answered:
Have you set up the profile for db2inst1?

but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found

Assuming that I'm right and your PATH is not set to include the DB2 instance
directories because you did not source ~/sqllib/db2profile, I'm not
surprised at all about this error.

Note that DB2 will give you a warning if it cannot modify your .profile to
include the sourcing of ~/sqllib/db2profile. Hence, we are back to the
installation log which will show you this detail as well if you ignored it
in the db2setup output.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 12 '07 #12

P: n/a
xi***********@gmail.com wrote:
Hi,

Where are the logs files for DB2 ?
If I find the log, I will send it to you.
I didn't find the directory.
I suggest that you read the respective sections about installation in the
manuals.
>Since you are using "./" in front of "db2", I assume that you are
executing
this from the sqllib/bin/ directory, correct? Isn't the "db2" executable
found in your PATH? If not, then your environment/instance is
_definitively not_ set up correctly. Which brings me back to this
question that you have not yet answered:
>Have you set up the profile for db2inst1?

but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found

Assuming that I'm right and your PATH is not set to include the DB2
instance directories because you did not source ~/sqllib/db2profile, I'm
not surprised at all about this error.

Note that DB2 will give you a warning if it cannot modify your .profile
to
include the sourcing of ~/sqllib/db2profile. Hence, we are back to the
installation log which will show you this detail as well if you ignored
it in the db2setup output.
How about the points I mentioned here? Have you verified those?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 12 '07 #13

P: n/a
Yes I have done those points: ./db2profile loggin as an instance
but now I have a new problem: I cannot execut ./db2admin start , it
awnsers that the DAS encoutered an error when trying to execut this
command.
When I am logged as an instance. And this morning, before doing this
../db2profile command, I was still able to do this.
Bst rgrds.

Knut Stolze wrote:
xi***********@gmail.com wrote:
Hi,

Where are the logs files for DB2 ?
If I find the log, I will send it to you.
I didn't find the directory.

I suggest that you read the respective sections about installation in the
manuals.
Since you are using "./" in front of "db2", I assume that you are
executing
this from the sqllib/bin/ directory, correct? Isn't the "db2" executable
found in your PATH? If not, then your environment/instance is
_definitively not_ set up correctly. Which brings me back to this
question that you have not yet answered:

Have you set up the profile for db2inst1?
but the probleme is: when I try to start ./db2cc with db2inst1 I got an
error: db2javit not found

Assuming that I'm right and your PATH is not set to include the DB2
instance directories because you did not source ~/sqllib/db2profile, I'm
not surprised at all about this error.

Note that DB2 will give you a warning if it cannot modify your .profile
to
include the sourcing of ~/sqllib/db2profile. Hence, we are back to the
installation log which will show you this detail as well if you ignored
it in the db2setup output.

How about the points I mentioned here? Have you verified those?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 12 '07 #14

P: n/a
xi***********@gmail.com wrote:
Yes I have done those points: ./db2profile loggin as an instance
No, the command is ". ~db2inst1/sqllib/db2profile" - note that there is a
space after the dot. And the ~db2inst1/sqllib/db2profile is the path to
your db2profile, which, if you're already in sqllib, could all just
be ". ./db2profile". But that dot-space is important.
but now I have a new problem: I cannot execut ./db2admin start , it
Please stop using "./" in front of your DB2 commands. If your environment
is set up properly, you don't need it. If you get "command not found" when
skipping the "./", then your environment isn't set up, and we should
concentrate on getting your environment set up.
awnsers that the DAS encoutered an error when trying to execut this
command.
When I am logged as an instance. And this morning, before doing this
./db2profile command, I was still able to do this.
Jan 12 '07 #15

P: n/a
db2admin start
can only be executed by the DAS user created specially in case of Unix
environment.
more over I found more ./ in your path's.
setting of PATH variables is a must in Unix environment.
what is the error you are getting while executing DAS

swami.
-----------------------------------------------------------------------

Darin McBride wrote:
xi***********@gmail.com wrote:
Yes I have done those points: ./db2profile loggin as an instance

No, the command is ". ~db2inst1/sqllib/db2profile" - note that there is a
space after the dot. And the ~db2inst1/sqllib/db2profile is the path to
your db2profile, which, if you're already in sqllib, could all just
be ". ./db2profile". But that dot-space is important.
but now I have a new problem: I cannot execut ./db2admin start , it

Please stop using "./" in front of your DB2 commands. If your environment
is set up properly, you don't need it. If you get "command not found" when
skipping the "./", then your environment isn't set up, and we should
concentrate on getting your environment set up.
awnsers that the DAS encoutered an error when trying to execut this
command.
When I am logged as an instance. And this morning, before doing this
./db2profile command, I was still able to do this.
Jan 16 '07 #16

This discussion thread is closed

Replies have been disabled for this discussion.