Unix Technical Forum

problem for db2cc : db2javit not found

This is a discussion on problem for db2cc : db2javit not found within the DB2 forums, part of the Database Server Software category; --> Hi, i have a pb of configuer db2 express-C with ubuntu6.10 version desktop. In fact, i had installed db2 ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 11:27 AM
xiaoning.sunx@gmail.com
 
Posts: n/a
Default problem for db2cc : db2javit not found

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 11:27 AM
Knut Stolze
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

xiaoning.sunx@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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 11:27 AM
Darin McBride
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

xiaoning.sunx@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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 11:27 AM
xiaoning.sunx@gmail.com
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

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:
> xiaoning.sunx@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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 11:27 AM
Knut Stolze
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

xiaoning.sunx@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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 11:27 AM
xiaoning.sunx@gmail.com
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found


Knut Stolze wrote:
> xiaoning.sunx@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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 11:27 AM
Knut Stolze
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

xiaoning.sunx@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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 11:27 AM
xiaoning.sunx@gmail.com
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found


Knut Stolze wrote:
> xiaoning.sunx@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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 11:27 AM
Mark A
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 11:27 AM
swami
 
Posts: n/a
Default Re: problem for db2cc : db2javit not found


set JAVA_HOME

swami



On Jan 11, 7:17 pm, "Mark A" <m00...@yahoo.com> wrote:
> 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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com