Oracle connection method in navicat:
Step 1: Click "Connect", select oracle, and enter the new connection page
Step 2: Fill in the corresponding connection information, click Test Connection, and the connection is successful. The red parts are related to your own projects
Error type one: Cannot load OCI DLL, 87
The reason is that instantclient and Oracle's client instantclient_11_2 are not added. Proceed as follows:
①Click "Tools" → "Options" in Navicat
②Select OCI in the options and add the full path of the oci file
③ Restart navicat and the connection is successful
Error type two: Cannot load OCI DLL,193:...
The reason is that the number of bits of my Navicat version is inconsistent with the number of Oracle client versions. My Navicat is 64-bit and Oracle is 32-bit. We must install an oracle client that has the same number of bits as navicat and the same oracle version .
For example: My Oracle version is 11, Navicat version is 64-bit, and the Oracle client I downloaded is version 11 64-bit instantclient_11_2
Step 1: Download the 64-bit oracle11 client instantclient_11_2;
Step 2: Follow the steps of error type 2 to reset the full path of the oci.dll file;
Step 3: Restart navicat
Link to download oracle11 (both 32-bit and 64-bit):
Link: https://pan.baidu.com/s/1QnAlQbmC9C8_HyLbhB0EdA Password: y4ex
Error type three: ORA-12514: TNS...
Reason: The service name is written incorrectly. Make sure your Oracle service name is clear. The default is generally ORCL, but due to project reasons, there is a corresponding service name.
Step 1: Find the relevant file "(SERVICE_NAME = XXX)", usually in listener.ora.
The second step is to modify the service name
Step 3: Test successful
Reprinted in: navicat connects to oracle, and its common errors and solutions - CodeAntenna