简体   繁体   中英

Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

am getting the error when trying to connect to remote database i have checked the listener and the services and they are working fine

This my Tnsnames.ora file

       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]

As far as I can tell, there's no "remote" database alias in TNSNAMES.ORA file you posted. I believe you should include it and try again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM