ORA-12162
阿新 • • 發佈:2017-08-24
cor abd cte art conn engine target asd database
2.故障原因
詭異的故障背後的原因竟然是那樣的基礎:ORACLE_SID沒有指定!
確認系統當前的ORACLE_HOME和ORACLE_SID環境變量
[sql] view plain copy
- [[email protected] ~]$ echo $ORACLE_HOME
- /oracle/app/oracle/product/10.2.0/db_1
- [[email protected] ~]$ echo $ORACLE_SID
- [[email protected] ~]$
可見,此時只設置了ORACLE_HOME環境變量,但ORACLE_SID此時為空,這就是該問題的真實原因。
3.故障處理
給出ORACLE_SID,重新嘗試登錄。
[sql] view plain copy
- [[email protected] ~]$ export ORACLE_SID=ora10g
- [[email protected] ~]$ echo $ORACLE_SID
- ora10g
- [[email protected] ~]$ sqlplus / as sysdba
- SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 23:27:34 2010
- Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
- With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
- [email protected]>
OK,此時問題處理完畢。
ORA-12162