I am trying to make a connection to oracle through java program using OCI driver.
Following is the configuration.
ojdbc7.jar
in the class path of my standalone application.
But I am getting following exception:
Exception in thread 'main' java.lang.UnsatisfiedLinkError: no ocijdbc12 in java.library.path
I tried connection using thin driver. For thin driver it is Connection Succeeded. I googled but was not able to figure out the solution.
Please help me solve this problem.
Go to Project properties->Java Build Path->Source. You'll find a list of source-folders. Each entry under the the Source tab has Native library locations.
java. library. path is a System property, which is used by Java programming language, mostly JVM, to search native libraries, required by a project.
If you open up SQL Developer, you can navigate to Tools -> Preferences -> Database -> Third Party JDBC Drivers and click Add Entry . Open to /usr/lib/oracle/12.2/client64 and click on lib . It will hilight it, and then you can click select to add it to the list.
I had the same issue, it was just the external folder of the my *.ora
files which was not there any more, I pointed to it again via (menu navigation):
It solved it!
To use the oracle OCI driver you should have the relevant dlls in your java library path.
https://docs.oracle.com/cd/B28359_01/java.111/b31224/instclnt.htm#CHDIHGEF
Make sure to reference the correct release, both in term of 32/64 bit and version number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With