Instant Client下载地址:http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html
把下载的instantclient-basic-windows.x64-12.2.0.1.0.zip压缩包解压,放到D:/Oracle /instantclient_12_2 目录下。
在“环境变量”的“系统变量”中增加:
修改Path变量,在后面添加 $ORACLE_HOME$
新建tnsnames.ora文件。
# tnsnames.ora Network Configuration File: C:/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)