On a DB2 V9.5
Troubleshooting db2cc on a Linux server.
The db2cc is installed automatically when DB2 V9.5 is installed in the default /opt/IBM/db2/V9.5 folder. So, if you try to start it in a VNC session, then if you get this message.
That means the JDK_PATH is not set right.
This is how you check the path is correct or not.
Login to the db2instance
( su - db2inst1 )
db2 get dbm cfg - look for JDK_PATH
If the path above does not have the JRE - then reset it to the correct JRE location using this command.
( in my case - the JRE path was found in the below path )
Update it using the below command.
Validate it by running the 'get dbm cfg ' again
In the root window in VNC, export the DISPLAY=<IPaddress>:0.0
cd to /opt/ibm/db2/V9.5/bin (or wherever the DB2 is installed )
./db2cc
should launch the DB2 Control Center.
Troubleshooting db2cc on a Linux server.
The db2cc is installed automatically when DB2 V9.5 is installed in the default /opt/IBM/db2/V9.5 folder. So, if you try to start it in a VNC session, then if you get this message.

That means the JDK_PATH is not set right.
This is how you check the path is correct or not.
Login to the db2instance
( su - db2inst1 )
db2 get dbm cfg - look for JDK_PATH

If the path above does not have the JRE - then reset it to the correct JRE location using this command.
( in my case - the JRE path was found in the below path )
Update it using the below command.

Validate it by running the 'get dbm cfg ' again

In the root window in VNC, export the DISPLAY=<IPaddress>:0.0
cd to /opt/ibm/db2/V9.5/bin (or wherever the DB2 is installed )
./db2cc
should launch the DB2 Control Center.
No comments:
Post a Comment