ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务解决办法

1.查看本地的tns配置

xiongan=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.121.58)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
)

2.查看本地的tnsping是ok的

C:\Users\Administrator>tnsping xiongan

在这出现TNS-03505:无法解析名称这个问题,需要在tnsnames.ora添加数据

xiongan=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.121.58)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
)

3.查看是否网络畅通

telnet  192.168.121.58 1521
4.查看服务器的lsnrctl服务

 

C:\Users\Administrator>lsnrctl status



你可能感兴趣的:(oracle)