时间:2022-07-21 11:09:58 | 栏目:Oracle | 点击:次
修改instantclient_11_2/tnsnames.ora 文件,将你需要链接的oracle服务器地址写上,tnsnames.ora格式和部分文件内容如下:
LocalDB= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
注释:
HOST = 127.0.0.1 --服务器ip(此处是自己本机建立的数据库)
SERVICE_NAME=orcl --服务器的实例名,默认为orcl
LocalDB --tns的别名(反正是你自己看,你能区别出来就行)
TNS_ADMIN D:\Develop\PLSQL Developer\instantclient_11_2----(instantclient_12_2的路径,这里我是将instantclient 解压在plsql根目录中) NLS_LANG SIMPLIFIED CHINESE_CHINA.ZHS16GBK ----(设置语言)