DB2 connection issue with hammerdb #154
-
Hi @sm-shaw , Facing this error : Details: env vars:
created db2cli.ini file
ran sample test.go file successfully as follows (to check the connection from driver to DB2):
Hammerdb-3.3 is passing librarycheck for DB2. DB2 instance creation and sample database creation has been successful. But somehow hammerdb is not able to communicate with db2. May I know where I am going wrong here, please? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi @sm-shaw , Thanks for the reply. Yeah I removed go driver. And installed cli driver. Here is db2dsdriver.cfg This libdb2.so.1 file is already there in installed directory should I replace, this file with client driver's libdb2.so.1 db2tcl librarycheck is successfully passing in hammerdbcli command. The error still prevails, Am using RHEL 7.5 Also tried running db2val : db2val and db2sampl working fine in DB2 instance. But not as root in the server. Any possibilities for OS incompatibilities as well? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Yes running HammerDB on the same machine as the database is fine. Here is an example from a test system.
|
Beta Was this translation helpful? Give feedback.
-
This link may also help: |
Beta Was this translation helpful? Give feedback.
-
Hi @sm-shaw , yeah, db2start is working fine using DB2INSTANCE env var.
ldd libdb2tcl.so.0.0.1 is giving the folowing result:
libtcl.8.6.so is not found, this is causing issue ? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @sm-shaw , Please guide me if I'm doing this wrong: am giving Should I give something else other than these ? Thanks, |
Beta Was this translation helpful? Give feedback.
-
In the listing the libtcl library is missing. I don't see that in my test. Are you running hammerdb as the Db2 user or as root? It should be the db2 user.The IBM link tends to suggest a permission issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @sm-shaw , Yeah, I have fixed libtcl library issue. I was trying as a root to run Hammerdb, so i have installed hammerdb again inside the instance so that i can run it as a db2 user. But I am facing an issue of DISPLAY env variable. Tried exporting DISPLAY=:0.0 but still the GUI command (./hammerdb) is giving the error. Is there any other way to run this. Also tried through CLI as db2 user It's not working here as well. |
Beta Was this translation helpful? Give feedback.
-
We need to separate the Linux DISPLAY configuration from the HammerDB one. DISPLAY configuration is not something for HammerDB to help with. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the support steve. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Many thanks for the update and confirming that the issue is resolved |
Beta Was this translation helpful? Give feedback.
We need to separate the Linux DISPLAY configuration from the HammerDB one. DISPLAY configuration is not something for HammerDB to help with.
For the error message it continues to look very much like a configuration/path issue - the error indicates that it cannnot find the correct error message in the catalog. I recommend rechecking the installation and configuration.