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,此时问题处理完毕。
时间: 2024-10-09 04:29:19