当前位置:网站首页>Navicat premium connecting to Oracle database (Graphic tutorial)

Navicat premium connecting to Oracle database (Graphic tutorial)

2022-06-22 15:57:00 Let it be~

    Navicat premium Is a database management tool , Is a multi - connection database management tool , It allows you to connect to at the same time as a single program MySQL、SQLite、Oracle And PostgreSQL database , Make it more convenient to manage different types of databases .

One 、 Software that needs to be prepared

1.Navicat premium 32 position

Official download address :http://www.navicat.com.cn/products/navicat-premium

2.Instant Client12.1.0.2.0 32 position

Instant Client yes Oracle The company's compact client .

32 Bit download address :http://www.oracle.com/technetwork/topics/winsoft-085727.html

Be careful : Regardless of your Navicat yes 32 It's still 64 Bit , Yours Instant Client You have to download 32 Bit , because Navicat Only support 32 Bit client .

Two 、 Installation configuration

1. decompression Instant Client To

F:\gome\instantclient_12_1

2. To configure Navicat premium Of oci    

     Navicat Premium By default, it comes with instantclient_10_2, But it's base lite Version of (Basic Lite: Basic Reduced version of , Only English error messages and Unicode、ASCII And the Western European character set Support ), Chinese character set is not supported , The server side in this article oracle It happens to be the Chinese character set ,instantclient_10_2 Not suitable for , So you need to download base edition .

    take Navicat Premium Medium OCI library Set to F:/gome/instantclient_12_1/oci.dll, And then restart to take effect .  3、 ... and 、 Connect Oracle

1. open Navicat Premium, Click Connect to select Oracle

        

2. Fill in connection information    

Navicat Premium in oracle There are two types of connections :Basic and TNS.

stay Basic In the pattern , adopt Oracle Call Interface (OCI) Connect Oracle.OCI Is an application interface , Let program developers use the original process or function call of the third generation language to access Oracle Database and control all SQL The stage in which the statement runs .OCI Is a standard database access library and dynamic link library form retrieval function .Basic The mode requires a hostname or IP Address 、 Port and service name or SID.

stay TNS In the pattern , Need to be used in tnsnames.ora The alias items in the file pass through Oracle Call Interface (OCI) Connect Oracle The server .TNS The mode only needs to select the network service name , But you need to create a new one before tnsnames.ora, And configure the database service .

It is recommended to use more concise Basic Pattern , It can eliminate the complicated tnsnames To configure . In this paper, we use Basic Pattern .

Below “ make new connection ” Interface , Enter the connection name 、 Connection type 、 Host name or IP Address 、 port 、 Service name or SID、 User name and password , Click OK to connect to the database .

        

        Click connect test , Prompt that the test is successful , Prove that the connection was successful !

        

    3、 ... and 、 The problem summary

    The above describes the connection steps when the connection is successful , There are also some problems in the connection process , Let's summarize these problems :

   1. problem 1:ORA-12737:Instant Client Light:unsupported server character set ZHS16GBK

    

     The problem is to use Navicat Self contained instantclient_10_2 Caused by the . The self-contained ones are Basic Lite Version of instantclient.

    Basic Lite:Basic Reduced version of , Only English error messages and Unicode、ASCII And Western European character set support

    Basic: function OCI、OCCI and JDBC-OCI All the files required by the application , Contains the Chinese character set . The solution is to change Basic Version of instantclient.

   2. problem 2:only compatible with oci vers and higherion 8.1 and higher

      Reference blog :Navicat Connect oracle, appear Only compatible with oci version 8.1 and&nb_tfy1332 The blog of -CSDN Blog

    3. problem 3:Cannot load OCI DLL,193

    

    This is because Navicat Version and Navicat Premium It's caused by inconsistencies , because Navicat Premium Only support 32 Bit Instant Client, Check to see if what you downloaded 32 Bit Instant Client.    

from :Navicat Premium Connect Oracle database ( Text course )_ Fish loving cat ^_^ The blog of -CSDN Blog _navicat oracle

原网站

版权声明
本文为[Let it be~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221434345781.html