天萃荷净
运维DBA反映,在sqlplus登录数据库时报错ORA-12560: TNS:protocol adapter error,分析原因为sqlplus版本导致
1.sqlplus登录数据库报ORA-12560
C:\Users\oracleplus>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 14 23:33:31 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
C:\Users\oracleplus>sqlplus -v
SQL*Plus: Release 11.2.0.2.0 Production
在这里发现sqlplus的版本信息不正确,我的数据库安装的11.2.0.1,这么怎么显示sqlplus是11.2.0.2,然后进入%ORACLE_HOME%/bin目录下面执行sqlplus,登录成功
C:\Users\oracleplus>cd e:\oracle\11_2_0\BIN
e:\oracle\11_