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 64位Oracle 11g Client;
l 32位instantclient-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
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
After downloading:
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:
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: 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
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
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客户端安装的是64位Oracle 11g Client,启动PL/SQL Developer会提示错误。原因:oci.dll是64位的,32位应用程序PL/SQL Developer无法加载,可以安装一个32位的Oracle Client来解决。(步骤3就是解决这个问题的)
个人的安装的PL/SQL Development的路径如下:
配置tnsnames.ora文件到32位客户端目录,默认环境下NETWORK\ADMIN目录路径不存在,本人配置的目录如下:D:\instantclient_11_2\NETWORK\ADMIN
三、配置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
login interface
Database virtual machine: