64-bit Windows, Oracle 19c, Warning: a running Virtual User was terminated, any pending output has been discarded. #223
-
I've followed the setup/install directions you posted including configuring the sqlnet.ora file and adding an ORACLE_LIBRARY system variable followed by a reboot. I'm having the exact same problem as this guy: https://sourceforge.net/p/hammerdb/discussion/292312/thread/5b93ad5d/ Where, on schema build of a TPROC-C benchmark, the system immediately errors out. hammerdbcli library check shows the oracletcl library as good and when I run the instructions in the thread, I get the same thing that guy did: (HammerDB-4.0) 11 % package require Oratcl (HammerDB-4.0) 14 % puts $lda I'm on 64-bit Windows 10 with 64-bit HammerDB and 64-bit instantclient, so there's no issue with mixing those up. I love your tool and I've used it a few times before, but I always struggle with the initial setup... ORACLE_LIBRARY is set to C:\oracle\instantclient_19_10, which contains the oci.dll as well as a sqlnet.ora file with the required settings and a tnsnames.ora file with the connection information. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi, In some cases (open source) we could compile the client libraries statically (that might even be permitted with the Oracle instant client?) however that gives us less flexibility to upgrade the database client and therefore loading dynamically requires more setup but gives us this flexibility especially if there are bugs in the client. Loading dynamically means that the library needs to be installed and HammerDB needs to know where to find it. Firstly once the library is installed the PATH environment variable should be set to the location of oci.dll so for example on my system this is in
and an example tnsnames.ora for container and pluggable
Opening a regular command window you should be able to do tnsping to your database (mine is running on the same host under the excellent Virtual Box https://www.virtualbox.org/ ). If it can't make sure the listener is configured and running.
Then open the HammerDB CLI and run librarycheck, the example below shows it can be found.
We can now use the CLI to test manually, The example below shows we successfully loaded the Oratcl package and can login to the database.
The important aspect is making sure that HammerDB has the exact location of the oci.dll file. |
Beta Was this translation helpful? Give feedback.
-
Moved Issue to discussion as a configuration/setup issue rather than a HammerDB issue that needs a pull request to resolve. |
Beta Was this translation helpful? Give feedback.
-
tnsping was originally working for me, but I have 4 versions of the instantclient on my machine, so instead of calling it from $path, I called it directly from the file directory it resided in and I found that tnsping was missing an $ORACLE_HOME variable. I added $ORACLE_HOME pointing to the corresponding home directory and restarted the machine, after which the tnsping that hammerdb was using worked correctly and that resolved my issue. It helped following your directions very closely, thank you! |
Beta Was this translation helpful? Give feedback.
tnsping was originally working for me, but I have 4 versions of the instantclient on my machine, so instead of calling it from $path, I called it directly from the file directory it resided in and I found that tnsping was missing an $ORACLE_HOME variable. I added $ORACLE_HOME pointing to the corresponding home directory and restarted the machine, after which the tnsping that hammerdb was using worked correctly and that resolved my issue.
It helped following your directions very closely, thank you!