기록장

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 본문

IT 지식/에러 및 해결

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

HJJJJJ 2022. 10. 21. 17:33
728x90

에러 내용

- JDBC연결 테스트 코드 작성하고 실행시 오류 발생


에러문구

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 


해결 

 

sql developer에서 SID명을 확인하고 JDBC 연결을 위한 코드에서 "jdbc:oracle:thin:@localhost:1521:EX";에 마지막 부분이 sql developer에 있는 SID명이랑 같은지 확인을 한다.

다르면 sql developer SID명과 같이 코드를 수정하고 실행해 본다.

나 같은 경우는 

SID가 작성된 코드가 달라서 xe로 바꿔주고

포트번호도 1511로 기입해서 수정 후 실행하니 해결

 

728x90
Comments