ojdbc jar文件在哪里 [英] Where is the ojdbc jar file

查看:546
本文介绍了ojdbc jar文件在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用oci驱动程序连接到Linux上的oracle 11.2.0,我发现在LD_LIBRARY_PATH下,只有libocijdbc11.so,但是有任何ojdbc jar文件,对吗?对于数据库连接,我是否应该将此* .so文件添加到Java CP?

I am using oci driver to connect to oracle 11.2.0 on Linux, I found that under LD_LIBRARY_PATH, there is only libocijdbc11.so but any ojdbc jar files, is that right? For database connection, am I supposed to add this *.so file to java CP?

我无法立即对其进行测试,因为它是在客户生产环境中进行的,因此只想首先了解要点,谢谢您的指导!

I can't test it right away because it is on customer production environment, so just want to get what's the gist first, thanks for any guide!

推荐答案

您可以在$ ORACLE_HOME/jdbc/lib下找到ojdbc * .jar文件. 并且* .so文件一定不能包含在CP中,但是必须将环境变量LD_LIBRARY_PATH设置为正确的目录

you can find the ojdbc*.jar files under $ORACLE_HOME/jdbc/lib and the *.so files must not be included in your CP, but the environment variable LD_LIBRARY_PATH have to be set to the right directory

这篇关于ojdbc jar文件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆