Database Forum / DB2 Topics / January 2007
problem for db2cc : db2javit not found
|
|
Thread rating:  |
xiaoning.sunx@gmail.com - 10 Jan 2007 15:21 GMT 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
Knut Stolze - 10 Jan 2007 15:49 GMT > Hi, > i have a pb of configuer db2 express-C with ubuntu6.10 version [quoted text clipped - 3 lines] > 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?
 Signature Knut Stolze DB2 z/OS Utilities Development IBM Germany
xiaoning.sunx@gmail.com - 10 Jan 2007 16:58 GMT 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
> > Hi, > > i have a pb of configuer db2 express-C with ubuntu6.10 version [quoted text clipped - 9 lines] > question: what exactly have you done during install up to the point where > you create and start the DB2 instance? Knut Stolze - 11 Jan 2007 09:09 GMT > 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?buildid=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?
 Signature Knut Stolze DB2 z/OS Utilities Development IBM Germany
xiaoning.sunx@gmail.com - 11 Jan 2007 13:19 GMT > > at first thanks for your reponse > > i have chosen ubuntu for the test because this is a free version , and [quoted text clipped - 12 lines] > 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 - 11 Jan 2007 14:11 GMT > 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.
 Signature Knut Stolze DB2 z/OS Utilities Development IBM Germany
xiaoning.sunx@gmail.com - 11 Jan 2007 15:09 GMT > > 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. Mark A - 11 Jan 2007 17:17 GMT xiaoning.s...@gmail.com wrote:
> I have done: db2iupdt > db2istrt [quoted text clipped - 7 lines] > Thank you in advance for your help. > Bsrt rgrds Check the JDK_PATH of the admin server:
db2 get admin cfg
swami - 12 Jan 2007 03:57 GMT set JAVA_HOME
swami
> xiaoning.s...@gmail.com wrote: > > I have done: db2iupdt [quoted text clipped - 10 lines] > > db2 get admin cfg Knut Stolze - 12 Jan 2007 09:37 GMT >> > 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? [quoted text clipped - 3 lines] > 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.
 Signature Knut Stolze DB2 z/OS Utilities Development IBM Germany
xiaoning.sunx@gmail.com - 12 Jan 2007 11:00 GMT 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.
> >> > after download and gzip, tar, i had used ./db2setup to lauch the > >> > procedure of installation, no problem. [quoted text clipped - 34 lines] > installation log which will show you this detail as well if you ignored it > in the db2setup output. Knut Stolze - 12 Jan 2007 11:10 GMT > 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 [quoted text clipped - 17 lines] >> 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?
 Signature Knut Stolze DB2 z/OS Utilities Development IBM Germany
xiaoning.sunx@gmail.com - 12 Jan 2007 11:28 GMT 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.
> > Hi, > > [quoted text clipped - 28 lines] > > How about the points I mentioned here? Have you verified those? Darin McBride - 12 Jan 2007 21:32 GMT > 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. swami - 16 Jan 2007 06:01 GMT 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. -----------------------------------------------------------------------
> > Yes I have done those points: ./db2profile loggin as an instance > [quoted text clipped - 14 lines] > > When I am logged as an instance. And this morning, before doing this > > ./db2profile command, I was still able to do this. Darin McBride - 10 Jan 2007 16:44 GMT > Hi, > i have a pb of configuer db2 express-C with ubuntu6.10 version [quoted text clipped - 5 lines] > 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.
|
|
|