1. 程式人生 > >ORA-12162

ORA-12162

cor abd cte art conn engine target asd database

2.故障原因

詭異的故障背後的原因竟然是那樣的基礎:ORACLE_SID沒有指定!
確認系統當前的ORACLE_HOME和ORACLE_SID環境變量

[sql] view plain copy

  1. [[email protected] ~]$ echo $ORACLE_HOME
  2. /oracle/app/oracle/product/10.2.0/db_1
  3. [[email protected] ~]$ echo $ORACLE_SID
  4. [[email protected] ~]$


可見,此時只設置了ORACLE_HOME環境變量,但ORACLE_SID此時為空,這就是該問題的真實原因。

3.故障處理

給出ORACLE_SID,重新嘗試登錄。

[sql] view plain copy

  1. [[email protected] ~]$ export ORACLE_SID=ora10g
  2. [[email protected] ~]$ echo $ORACLE_SID
  3. ora10g
  4. [[email protected] ~]$ sqlplus / as sysdba
  5. SQL*Plus: Release 10.2.0.3.0 - Production on Sat Aug 27 23:27:34 2010
  6. Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
  7. Connected to:
  8. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
  9. With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
  10. [email protected]>


OK,此時問題處理完畢。

ORA-12162