pl/sql配置连接远程数据库oracle,本地没有安装oracle数据库的情况下
2017-05-10 19:33 tlnshuju 阅读(175) 评论(0) 编辑 收藏 举报首先下载instantclient 能够到oracle官网下载,要注冊账号。一定要下相应版本号的,要不然不成功,
10G,11G版的,我已经传上来了。免费下载:正在上传中,稍等
配置文件tnsnames.ora 这个一个地方一般都放(network/ADMIN),仅仅有在pl/sql ----->tools-->proferences...------>connection----> oracle home(empty is autodetect) 写上tnsnames.ora的路径(相关路径换成你自已的)
ORCL2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.100.183)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
环境变量设置(文件夹换成你自已的)
TNS_ADMIN=D:\soft\oarcleclient\instantclient_11_2
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
path=D:\soft\oarcleclient\instantclient_11_2