官網下載地址:
http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092699-zhs.html
下載instantclient-basic包,將包解壓存放到本地,本測試為D:\JavaEEServer\instantclient_10_2
sqlnet.ora(位於instantclient-basic下)
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
tnsnames.ora(位於instantclient-basic下)
#neikong為oracle服務實例名,根據自己實際情況填寫
neikong =
(DESCRIPTION =
(ADDRESS_LIST =
#172.16.3.153根據實際情況填寫,如需修改端口號也可修改
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.3.153 )(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = neikong )
)
)
變量名
TNS_ADMIN
變量值
D:\JavaEEServer\instantclient_10_2
安裝PL/SQL Developer,並配置oracle的連接參數:打開PL/SQL,Tools-->Preferences,配置Connection的Oracle Home和OCI library,如下圖所示