Under this we learn how In Windows, by PL/SQL Developer
connecting the Oracle database.
My environment: Windows 10 Home Edition 64-bit
Oracle version: Oracle 11.2.0 64-bit
PLSQL version: PL / SQL Developer 10.0.3.1701 64-bit
Configure Oracle 32-bit client
First of all, in addition to the tools already above, we also install an Oracle client, but why do we install a 32-bit Oracle client here instead of a 64-bit Oracle client? The reason is that PLSQL Developer may not support connecting to 64-bit Oracle clients. Even for 64-bit systems, it is best to download and install 32-bit Oracle clients.
The Oracle 32-bit client is divided into a full version and a reduced version. The installation process of the Oracle 32-bit client full version is very similar to the installation process of the Oracle 64-bit server
instantclient-basic-win32-11.2.0.1.0.zip
. Installation requires only simple configuration, which is very convenient.Download link: https://pan.baidu.com/s/1VNl0ynZPo3ZlGAupT8W8Lw
extraction code: fxyu
Step 1: The Lite client directly unpack, get instantclient_11_2
folders, and place product catalog Oracle server installation path under (such D:\SoftWare\Oracle\Oracle11g\installation\product
)
Step 2: The Oracle server installation path tnsnames.ora
, , listener.ora
(e.g.,sqlnet.ora
the path to the file in the computer is I: D:\SoftWare\Oracle\Oracle11g\installation\product\11.2.0\dbhome_1\NETWORK\ADMIN
) file copy oriented at a step instantclient_11_2 directory.
PLSQL connects to Oracle client
Open the PL / SQL Developer tool and come to the login interface.
Click "Cancel" without logging in, and then you will enter the main interface as follows:
Then select the top menu bar: Tools -> Preferences, set up Oracle Home
and OCI library
. My configuration is as follows:
# 根据自己实际路径来配置
Oracle Home:D:\SoftWare\Oracle\Oracle11g\installation\product\instantclient_11_2
OCI library:D:\SoftWare\Oracle\Oracle11g\installation\product\instantclient_11_2\oci.dll
Configure system environment variables
After doing the above work, you need to simply configure the environment variables.
# 防止PLSQL出现中文乱码
变量名:NLS_LANG,变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
# 根据自己实际路径来设置
变量名:TNS_ADMIN
变量值:D:\SoftWare\Oracle\Oracle11g\installation\product\instantclient_11_2
After the above steps are completed, you can reopen PLSQL, and the login interface is as follows:
Enter the user name and password to log in. The interface for successful login is as follows:
OK, here is the process of connecting PLSQL to Oracle client.