我在Windows 10上使用SQL Developer 23.1,并尝试让SQL Developer使用OCI客户端。我已经按照所有的指示,我可以找到,但我得到下面的错误,当我测试它
Testing the Instant Client located at C:\Users\brubin\Oracle\instantclient_21_11
Testing client directory ... OK
Testing loading Oracle JDBC driver ... OK
Testing checking Oracle JDBC driver version ... OK
Driver version: 21.9.0.0.0
Testing testing native OCI library load ... Failed:
Error loading the native OCI library
The native OCI driver could not be loaded. The system propertyjava.library.path contains the
entries from the environment variable PATH. Check it to verify that
the expected native library directory C:\Users\brubin\Oracle\instantclient_21_11 is present
and precedes any other client installations.
java.library.path = C:\Users\brubin\Oracle\instantclient_21_11
我已经下载了即时客户端版本21到C:\Users\brubin\Oracle\instantclient_21_11
我已将该位置添加到客户端,作为路径中的第一个条目
我创建了一个.bat
文件来运行SQL Developer
set PATH=C:\Users\brubin\Oracle\instantclient_21_11;%PATH%
"C:\Users\brubin\Oracle SQL Developer 23.1.0.097.1607\sqldeveloper.exe"
但是,当我在SQL Developer中单击Test时,
1条答案
按热度按时间gjmwrych1#
尝试用这个文件覆盖instant client目录中的ojdbc11.jar:https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc11/21.11.0.0/ojdbc11-21.11.0.0.jar
要有一个核心版本的jdbc驱动程序与即时客户端。
当我用你的OJDBC 11版本21.9.0.0.0尝试instant客户端21.11时,我得到了和你一样的错误。使用OJDBC11.jar的相应版本,它对我有效: