Oracle Client Installation

By default, PL/SQL Developer cannot connect to the database, the reason is: PL/SQL DEVELOPER can  not execute 64 -bit OCI.DLL , but  Win7 X64  can only install 64 -  bit Oracle client X64 . It becomes necessary to download one more Oracle Instant client X32 oci.dll is 64 -bit , while PL/SQL developer is only 32 -bit, and there is an error when using the 64 -bit oci.dll file.

My system environment:

l   64 -bit Windows 7 Ultimate;

l   Oracle 11g under virtual machine Red hat Linux  ;

l  64Oracle 11g Client;

l  32instantclient-basic-nt

l  PL/SQL Development 9.0.6.1655

The following are the installation steps of the personal experiment: the overall steps are to install the Oracle client first, then install the PL/SQL Developer, and finally configure the connection conditions

 

Install the 64 -bit Oracle client

1.  Install the Oracle client

First go to  Oracle  's official website to download  Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)

The download interface is as shown below


Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g


After downloading:

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

 

Follow the steps below to install:

a.  Execute win64_11gR2_client\client\setup.exe  to install, there is a black detection interface at the beginning, and then enter the installation interface after disappearing.

b.  After entering the installation interface, select the item you want to install. When selecting the installation type, select "Administrator", as shown below:Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g


 

In the Finish window, click Close.

The database configuration file has been installed to  D:\app\Administrator,

Also other selected installation components have been installed to D:\app\MichaelSu\product\11.2.0\client_1 .

The location of my experimental installation is the D drive, and the other steps are similar to the installation of the server side. until it's finished.

The installed path is as follows:Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g e


 

2.  Download instantclient-basic-nt

Go to Oracle official website to download  Instant Client for Microsoft Windows (32-bit)

After downloading, the configuration file is as follows

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

 

3.  Unzip the specified location

Select instantclient-basic-nt-11.2.0.3.0 , download and extract it to the directory D:\instantclient_11_2 .

directory after decompression

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

2. Install PL/SQL Development

1.  PL/SQL Development installation

Note: Do not install in the default C:\Program Files (x86) directory, otherwise an error will be reported because the path with ( ) cannot be resolved.

Oracle客户端安装的是64Oracle 11g Client,启动PL/SQL Developer会提示错误。原因:oci.dll64位的,32位应用程序PL/SQL Developer无法加载,可以安装一个32位的Oracle Client来解决。(步骤3就是解决这个问题的)

个人的安装的PL/SQL Development的路径如下:


Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

 

2. 配置tnsnames.ora连接

配置tnsnames.ora文件到32位客户端目录,默认环境下NETWORK\ADMIN目录路径不存在,本人配置的目录如下:D:\instantclient_11_2\NETWORK\ADMIN

 

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

三、配置PL/SQL Deverloper登陆

Enter PL/SQL developer in the non-login state , go to Tools- > Preferences- > Connection , set the Oracle home directory and OCI  library in the connection , where

The Oracle home directory is set to the decompression directory of InstantClient ( D:\app\MichaelSu\product\11.2.0\client_1\ ) , and the OCI  library is set to the oci.dll ( D:\instantclient_11_2\oci.dll ) in this directory.

After the setting is completed, the interface is as follows

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

 

login interface

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

 

 

Database virtual machine:

Windows <wbr>7 <wbr>64位PL/SQL <wbr>Developer <wbr>连接Oracle <wbr>11g

Guess you like

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