Use Navicat for Oracle tool to connect to oracle

1. Navicat for Oracle11 installation package and activation tool download link : https://yunpan.cn/cMARMCxdCsSB6 Access password b0cd

 Personal habits: There is a cat in Navica and its logo is very similar to cat ears, so I habitually call it cat ears. The logo of Navicat for Oracle is red, so I call it red cat ears, and mysql calls it green cat ears. Hereinafter Navicat for Oracle is simply referred to as cat ears .

 

2. Install cat ears : Just like installing other exe executions, go all the way to "Next Step" until the installation is complete.

 

3. Activate cat ears: After the installation is complete, you can double-click to open the following, and a pop-up box will ask for registration. At this point, you can first close the cat ears, and then double-click PatchNavicat.exe in the installation package, it will pop up a box, asking to locate navicat.exe in the cat ears installation directory, the default is C:\Program Files (x86)\ PremiumSoft\Navicat for Oracle\navicat.exe, after finding it, click "Open". After a while, an activation success message box will pop up. Start the cat ears again, and the "registration information" will not pop up.

 

4. Use cat ears to connect to oracle : After starting cat ears, click "Connect" in the upper left corner, and the pop-up box of "New Connection" will be set by referring to the following figure:

Connection name: You can fill in whatever you want.

Connection type: OK to use the default Basic

Host name or IP address: the address of the oracle server, if it is local, you can fill in 127.0.0.1 or localhost, if it is a local area network, you can fill in the IP address

Port number: Oracle default port number 1521,

Server name or SID: This select SID, the above value is similar to the database selected when using PLSQL to log in, I use orcl10g (connection used when using java to connect to oracle: jdbc:oracle:thin:@127.0.0.1: 1521:orcl10g, in which orcl10g is also this attribute)

Username and password are unnecessary.

 

After all settings are completed, click "Connection Test", and a question will pop up: ORA-12737: Instant Client Light: unsupported server character set CHS16GBK , which is caused by the unsupported encoding of the server. The solution is also very simple: just replace the oci.dll file.

First download the oci.dll file to be replaced. Download link: https://yunpan.cn/cMA69Yw3IwvmD Access password 9ca0. After unzipping, find the oci.dll file.

Then close the "New Connection" dialog box, find "Tools--->Options" in the menu bar, find the last item OCI in the "Options" box, and the default path of "OCI library (oci.dll) on the right is in the installation directory. In the instantclient_10_2 directory, click the select file button next to it, find the oci.dll extracted from the compressed package, and confirm.

Create a new connection, fill it out again as just now, click "Connection Test", and "Connection Successful" should pop up now.

 

Here is a note : when setting the OCI library (oci.dll), the absolute path of oci.dll is used. If the path of the replaced oci.dll file changes, the connection will inevitably fail. Therefore, it is recommended to copy the new oci.dll to the installation directory of cat ears. In this way, as long as the cat ears are not uninstalled, the file path will not change.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326569145&siteId=291194637