nstantclient-basic-win32-10.2.0.4.zipip
1.解壓到D:/instantclient_10_2變量
2.將D:/instantclient_10_2增長到PATH環境變量中 cli
3.增長如下環境變量:tab
TNS_ADMIN=D:/instantclient_10_2di
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK (*)環境變量
ORACLE_HOME=D:/instantclient_10_2 (*)ant
(*):可選data
4.編輯tnsnames.ora設置本地NET服務名ab
databasename=localhost
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SID)
)
)