1, 在本地安装的Oracle中找到目录 oracle\product\11.2.0\dbhome_1\network\admin, 它下面一般有两个文件可以进行编辑tnsnames.ora listener.ora ,一般只要配置tnsnames.ora即可. 配置内容如下面的方式.
# tnsnames.ora Network Configuration File: D:\app\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. ORADEV764 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.181.76.4)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = oradev) ) ) ORCL_190 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.8.206.190)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
2,打开PL/SQL Developer软件,在登录页面的下拉框中就可以选择我们配置的 ORADEV764 ORCL_190 了.
问题: PLSQL 连接数据库 ORA-12154 TNS无法解析指定的连接标识符:
我的原因是 配置连接符名称时,前面多了一个空格, 它的前面是不允许有空格的
3,破解 PL/SQL Developer,在安装包里面有个aalf.dat文件,将它复制到安装目录即可.比如复制到 : C:\Program Files\PLSQL Developer\aalf.dat