Oracle
 sql >> Datenbank >  >> RDS >> Oracle

TNS:Listener kennt derzeit keinen im Verbindungsdeskriptor angeforderten Dienst

Es kann sich wie folgt ändern und funktioniert in meiner Umgebung.Laufwerk:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN

listener.ora

  1. Vorher

    LISTENER =(DESCRIPTION_LIST =(DESCRIPTION =(ADDRESS =(PROTOCOL =IPC)(KEY =EXTPROC1521))(ADDRESS =(PROTOCOL =TCP)(HOST =localhost)(PORT =1521))))

  2. Nach

    LISTENER =(DESCRIPTION_LIST =(DESCRIPTION =(ADDRESS =(PROTOCOL =IPC)(KEY =EXTPROC1521))(ADDRESS =(PROTOCOL =TCP)(HOST =192.168.50.90)(PORT =1521))))

tnsnames.ora

  1. Vorher

    LISTENER_ORCL =(ADRESSE =(PROTOKOLL =TCP)(HOST =localhost)(PORT =1521))

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

  2. Nach

    LISTENER_ORCL =(ADRESSE =(PROTOKOLL =TCP)(HOST =192.168.50.90)(PORT =1521))

    ORCL =(DESCRIPTION =(ADDRESS =(PROTOCOL =TCP)(HOST =192.168.50.90)(PORT =1521))(CONNECT_DATA =(SERVER =DEDICATED)(SERVICE_NAME =orcl)))

Starten Sie danach den OracleOraDb11g_home1TNSListener neu service und OracleServiceORCL Service.