ORACLE:Connected to an idle instance.数据库连接问题

[oracle@localhost ~]$ export ORACLE_SID=oel
[oracle@localhost ~]$ sqlplus / as sysdba;
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 26 20:39:04 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.
 
SYS @ oel > conn scott/tiger
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
 
此时是数据库连接出现问题。
 
一个方法是:进入sqlplus下,执行shutdown  ,startup
SYS @ oel > startup
ORACLE instance started.
然后就OK了。我用的是这个方法
 
 
第二个方法,从网上看的:
linux下进入oracle命令重新启动,(如果没有该服务,用思路二)

               重启oracle服务:service oracle restart ,

               查看oracle状态 :service oracle status。

               查看oracle实例:echo $ORALCE_SID

结果:重试无效。

[root@localhost ~]# service oracle restart ;
oracle: unrecognized service
此时需要注意的是 service命令是要用ROOT用户来执行的,需要在Linux下  执行

su - root,"-"的前后都是空格,进入root用户下才能用service命令

 

 
 

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

转载于:http://blog.itpub.net/28210966/viewspace-745155/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值