program story

Oracle 클라이언트 ORA-12541 : TNS : 리스너 없음

inputbox 2020. 11. 25. 07:56
반응형

Oracle 클라이언트 ORA-12541 : TNS : 리스너 없음


저는 Oracle 데이터베이스를 처음 사용했지만 한 가지 문제가 있습니다. 이제 데이터베이스 서버 (server1) 리스너에서 데이터베이스 인스턴스가 올바르게 실행되고 sqlplus를 사용하여이 DB에 연결할 수 있지만 다른 서버를 사용하여 데이터베이스에 연결할 때 TNS 구성이 올바른지 확인했지만 시스템이 ERROR : ORA-12541 : TNS : no listener

내 데이터베이스는 Oracle 10gR2입니다.

그렇다면이 문제를 어떻게 해결할 수 있습니까?


모든 IP 주소를 수신하도록 oracle을 설정해야합니다 (기본적으로 로컬 호스트 연결 만 수신함).

1 단계- 편집 listener.ora

이 파일은 다음 위치에 있습니다.

  • Windows : %ORACLE_HOME%\network\admin\listener.ora.
  • Linux : $ ORACLE_HOME / network / admin / listener.ora

교체 localhost 0.0.0.0

# ...

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

# ...

2 단계-Oracle 서비스 다시 시작

  • Windows : WinKey+r

    services.msc
    
  • Linux (CentOs) :

    sudo systemctl restart oracle-xe
    

여기에 이미지 설명 입력


나는 또한 같은 문제에 직면했지만 제어판-> 관리 도구-> 서비스-> oracle TNS listener start에서 TNS listener를 시작하여 문제를 해결했습니다. Windows Xp 및 Toad를 사용하여 Oracle에 연결하고 있습니다.


오라클 온라인 문서에 따르면

ORA-12541 : TNS : 리스너 없음

Cause: The connection request could not be completed because the listener is not running.

Action: Ensure that the supplied destination address matches one of the addresses used by 
the listener - compare the TNSNAMES.ORA entry with the appropriate LISTENER.ORA file (or  
TNSNAV.ORA if the connection is to go by way of an Interchange). Start the listener on 
the remote machine.

TNS 이름을 확인하세요. ALIAS 왼쪽에 공백이 없어야합니다.

친애하는

참고 URL : https://stackoverflow.com/questions/13358656/oracle-client-ora-12541-tnsno-listener

반응형