ORA-12560 에러는 윈도우즈 서버에 오라클을 사용할 경우 종종 발생하는 에러이다.
원인:
관리도구의 서비스에서 OracleServiceORCL 이 정지가 되어있는 상태에서 오라클에 접속하게 되면 아래의 현상이 발생한다
C:\>sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 13 16:33:47 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
해결 방법:
1. 관리도구의 서비스에서 OracleServiceORCL을 시작한다.
2. 명령어로 시작한다
1번의 경우 서비스에서 OracleServiceORCL을 선택하고 위에 있는 ▶ 버튼을 클릭하면 시작된다.
2번의 경우는 아래와 같이 할 수 있다.
C:\>oradim -startup -sid ORCL -usrpwd oracle -starttype srvc -pfile c:\oracle\ora92\database\initORCL.ora
-sid ORCL (오라클 SID를 입력)
-usrpwd oracle (password)
-pfile c:\oracle\ora92\database\initORCL.ora (pfile의 경로를 쓰시면 됩니다.)