如果要連接遠程數據庫
oracle官網上提供了最小訪問包
instantclient
instantclient
instantclient
將下載的安裝包全部解壓
NLS_LANG = SIMPLIFIED CHINESE_CHINA
TNS_ADMIN = d:\sqlplus
LD_LIBRARY_PATH = d:\sqlplus
SQLPATH = d:\sqlplus
Path變量結尾添加d:\sqlplus
# tnsnames
# Generated by Oracle configuration tools
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
以上文件中
命令行下執行sqlplus /nolog
進入sqlplus提示符
connect / @<連接標識符>
或者
sqlplus system/manager@
沒有意外的話連接成功
如果上述方法試驗沒有成功
Sqlplus system/manager@
From:http://tw.wingwit.com/Article/program/Oracle/201311/18807.html