PL/SQL DEVELOPER设置TNS
1、查看plsql使用的tnsnames.ora文件所在位置
2、找到文件的路径,打开tnsnames.ora文件,输入要添加的tns,如
ORCL_222 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.9.222)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
3、plsql登录窗口,看到刚添加的ORCL_222连接名称了