Re: db2 Redhat 3.0 AMD 64 bit - db2cc problems
dunleav1 wrote:
[color=blue]
> I have an AMD Redhat 3.0 machine that is 64 bit.
> My kernel level is 2.4.21-21.0.1.
> I downloaded C58SBML.tar off of IBM's website. C58DBML.tar is listed as
> the 64 bit version of DB2 with the 2.4 Linux kernel support.
>
> I perform the install as root and the install works line. DB2 seems to
> be installed with no errors.
>
> When I log in as db2inst1 and try to run db2cc I get the following
> error.
> #db2cc
> db2cc: command not found
>
> So I add it to the $PATH.
> #export PATH=/opt/IBM/db2/V8.1/bin:$PATH
> #db2cc[/color]
1. Don't add the install directory to your PATH.
2. Don't do anything with root other than the stuff
in /opt/IBM/db2/V8.1/instance. You should be a non-privileged user that
has authorisation to do what you want to do. For example, the instance
owner. (Generally speaking, only root has a prompt of # - other users have
a prompt of $, thus it looks like you're still root)
3. Look in the documentation for "db2profile". It sets up your environment
- again, don't do this as root. The instance owner should already have
this in its .bashrc, if the .bashrc file exists at all.
[color=blue]
> Then I get a Java exception.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find
> library db2cmn (libdb2jcmn.so)
> So I modify LD_LIBARY_PATH to include the db2 shared libraries.
> #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBM/db2/V8.1/das/lib64:\
> /opt/IBM/db2/V8.1/lib:/opt/IBM/db2/V8.1/das/lib
>
> Then I get another error.
> CLI0622E: Error accessing JDBC administration service extensions.[/color]
4. Determine what type of instance you created - 32-bit or 64-bit. Run
db2level. Ensure you have that type of Java installed - if a 64-bit
instance, you need a 64-bit Java. DB2 comes with the 32-bit Java as part
of the install, but the 64-bit Java should be available on the 64-bit Java
CD. If you don't have the CDs, you should still be able to get the 64-bit
Java from somewhere on IBM's website.
I expect that you have a 64-bit instance, and that Control Center is not
supported on 64-bit instances at the fixpack level you have installed (I'm
not sure that they're supported on Linux/AMD64 at any fixpack level off the
top of my head). You can switch your instance to 32-bit using
"/opt/IBM/db2/V8.1/instance/db2iupdt -w 32 db2inst1" as root. Or you can
leave your instance as 64-bit, and create a new 32-bit instance to use for
accessing the control center.
[color=blue]
> Now what do I do? There seems to be nothing in the documentation...
> Thanks,
> JD[/color] |