监听器拒绝连接时出现以下错误:ORA-12514,TNS:监听器当前不知道连接描述符中请求的服务

时间:2018-04-25 23:40:30

标签: database oracle11g oracle-sqldeveloper putty

在尝试连接到远程数据库时遇到错误我检查了监听器和服务并且它们正常工作

这是我的Tnsnames.ora文件

       XE =
   (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = XE)
)
)

    EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
 (ADDRESS_LIST =
   (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
  )
   (CONNECT_DATA =
  (SID = PLSExtProc)
  (PRESENTATION = RO)
  )
 )

 ORACLR_CONNECTION_DATA = 
 (DESCRIPTION = 
  (ADDRESS_LIST = 
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) 
  ) 
  (CONNECT_DATA = 
  (SID = CLRExtProc) 
  (PRESENTATION = RO) 
 ) 
) 
[Sql Developer][1]

1 个答案:

答案 0 :(得分:0)

据我所知,您发布的TNSNAMES.ORA文件中没有“远程”数据库别名。我相信你应该把它包括起来再试一次。