java.library.path中没有ocijdbc12 [英] no ocijdbc12 in java.library.path
本文介绍了java.library.path中没有ocijdbc12的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用OCI驱动程序通过Java程序与oracle建立连接.
I am trying to make a connection to oracle through java program using OCI driver.
以下是配置.
- Windows 7,32位.
- JDK 1.7
- Oracle客户端11g R2.
ojdbc7.jar
.
但我收到以下异常:
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.
推荐答案
我遇到了同样的问题,只是我的*.ora
文件的外部文件夹不存在了,我再次通过(菜单导航):
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):
- 工具
- 首选项
- 数据库
- 高级
- tnsnames目录
- Tools
- Preferences
- Database
- Advanced
- tnsnames directory
它解决了!
这篇关于java.library.path中没有ocijdbc12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- Advanced
- Database
- Preferences
- 高级
- 数据库
- 首选项
查看全文