ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORACLE:Connected to an idle instance.数据库连接问题

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

原创 Linux操作系统 作者:userlast 时间:2012-09-26 22:05:24 0 删除 编辑
[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博客 ” ,链接:https://blog.itpub.net/28210966/viewspace-745155/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2012-09-26

  • 博文量
    2
  • 访问量
    15949