ITPub博客

首页 > 数据库 > 数据库开发技术 > Connected to an idle instance – while database is running

Connected to an idle instance – while database is running

原创 数据库开发技术 作者:pentium 时间:2012-12-07 10:43:18 0 删除 编辑
echo $ORACLE_HOME
/home/oracle/product/10g/ (We should eliminate the slash / , export ORACLE_HOME=/home/oracle/product/10g)
It causes error "Connected to an idle instance"

SQL> conn / as sysdba
Connected to an idle instance.

export ORACLE_HOME=/home/oracle/product/10g

SQL> conn / as sysdba
Connected.


Another reason:

ps -ef|grep pmon

oracle 19443 1 0 Oct 13 ? 72:50 ora_pmon_dodpp1
oracle 12421 1 0 Nov 18 ? 27:15 ora_pmon_dodpp5


echo $ORACLE_SID
DODPP1

SQL> conn / as sysdba
Connected to an idle instance.

export ORACLE_SID=dodpp1 (After using lower case, it's ok!)
echo $ORACLE_SID
dodpp1

SQL> conn / as sysdba
Connected to an idle instance.
[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14377/viewspace-1059871/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: oracle 8i的restore
请登录后发表评论 登录
全部评论

注册时间:2010-09-30

  • 博文量
    191
  • 访问量
    327281