Download the latest InstanceClient from the official website
Download the latest InstanceClient and unzip it.
Configure environment variables
On the desktop, right-click "My Computer", select "Properties", select "Environment Variables" in the "Advanced" page, and in the system variables, modify as follows
Variable name: ORACLE_HOME
Variable value: D:\develop\oracle\instantclient_12_2
Variable name: TNS_ADMIN
Variable value: D:\develop\oracle\instantclient_12_2
Variable name: NLS_LANG
Variable value: SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Modify the Path variable and add D: \develop\oracle\instantclient_12_2
Solve Chinese garbled
Add the following environment variables: in order to solve the problem of cmd Chinese display garbled
test
cmd, test sqlplus, it's ok.
Configure access to database information
Create a new text file in D:\develop\oracle\instantclient_12_2, the file name is tnsnames.ora
The tnsname file saves the link information of the oracle server. For example, IP, service name, port number, etc. Usually the client connection to the server needs to configure tnsname.ora.
#orcl可以自定义替换
#HOST修改为Oracle Server地址
#SERVICE_NAME修改为Oracle实例名
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
ORCL: This name is taken by you. The client uses this name to obtain the login information of the server. This name must be written in the top box.
PROTOCOL: is the designated communication protocol, oracle communicates via TCP/IP. So just write TCP here.
HOST: If the client and database are on the same computer, you can use localhost or IP. If different computers must use IP, it is the IP of the computer where the oracle is located.
PORT: Generally 1521
SERVER: It is the monitor of the dedicated detection mode. (I am not very clear about this, there is another request or something)
service_name: is the SID of oracle
Configure plsql developer
Start plsql developer, because it has not been configured yet, so click cancel first. Set
oracle_home in the preferences in plsql : D:\develop\oracle\instantclient_12_2
ocl_libary: D:\develop\oracle\instantclient_12_2\oci.dll
Then apply, restart plsql developer, you will find that the database will display orcl, and then enter your user and password to log in.