Connect remote Oracle database to HammerDB #768
-
Hello all, I'm using the docker.io/tpcorg/hammerdb:latest-cloudtk image via GUI. I am completely new to Oracle and want to connect HammerDB to a remote Oracle database. The HammerDB librarycheck returns following output:
What exactly needs to be configured in order to connect to the Oracle database? Do I need to install an Oracle client on my HammerDB host and then change the $LD_LIBRARY_PATH variable? Since there are no host/port fields in the GUI, where do I specify for HammerDB to which database it should connect to? The tnsnames.ora file on the Oracle database host is already configured. Help is greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It looks like the GUI is not picking up the environment variable for the Oracle instant client that should already be installed.
To edit the network configuration put your tnsnames.ora file in the following location:
You can test in the console that the Oracle library is now found: Also note that CloudTk for HammerDB is here https://github.com/sm-shaw/CloudTk and can be dropped into the HammerDB top directory for any HammerDB release for it to work. |
Beta Was this translation helpful? Give feedback.
It looks like the GUI is not picking up the environment variable for the Oracle instant client that should already be installed.
To change this connect to the container with a shell
docker exec -it hammerdb-cloudtk /bin/bash
Change to the HammerDB-CloudTk directory
cd /home/HammerDB-4.10/CloudTk-1.4.0-51/Tk/HammerDB-CloudTk
and edit the startup file
vi TkStartup.tcl
Add the line where we set the LD_LIBRARY_PATH for the Oracle instant client