Navicat connects to Oracle database: Oracle library is not loaded solution

1 Navicat connects to the Oracle database

File > New Connection > Oracle

insert image description here
Or connect directly to >Oracle

insert image description here
insert image description here
Among them, the connection name can be named by yourself. If it is not filled in, it will be named "host name_port number" by default, such as172.22.21.134_1521

After the input is complete, click 测试连接to test whether the connection is successful.

2 Question: Oracle library is not loaded

When connecting to the Oracle database in Navicat, if the new connection is correct, an Oracle library is not loadederror .

insert image description here

This is because there is a problem with the OCI environment configuration, and oci.dllthe file .

2 solutions

First download the Client package

https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html

insert image description here
If the connection fails,
https://www.oracle.com/database/technologies/instant-client/downloads.html

insert image description here
Unzip the file, oci.dllcopy the file path to the OCI environment, and restart Navicat .

insert image description here
connection succeeded!
insert image description here

Guess you like

Origin blog.csdn.net/weixin_46098577/article/details/127458537