六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 73|回复: 0

ORA-27101: shared memory realm does not exist.

[复制链接]

升级  8.67%

66

主题

66

主题

66

主题

举人

Rank: 3Rank: 3

积分
226
 楼主| 发表于 2013-2-7 15:40:40 | 显示全部楼层 |阅读模式
ERROR: ORA-01034: ORACLE not available.
ORA-27101: shared memory realm does not exist.
Linux Error: 2: No such file or directory

http://www.lugs.cn/Blog/InfoContent.aspx?UserName=ahsun&InfoID=290

sqlplus /nologconnect / as sysdbastartup

------------------------------
http://jayson22.blog.sohu.com/133790649.html
今天开发服务器突然连接不上,sqlplus /nolog、conn /as sysdba、startup命令后显示

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle10g/product/10.2/db_1/dbs/initORA10G.ora'

查找文件,果然不存在。估计是非法关机造成的。


这是因为在oracle9i和oracle10g中,oracle默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。


解决方法1(已经验证):
将$ORACLE_BASE/admin /数据库名称/pfile目录下的init.ora.012009233838形式的文件copy到$ORACLE_HOME/dbs目录下 initoracle.ora即可。(注:initoracle.ora中的oracle为你的实例名 即我的为 initora10g.ora)


[root@localhost dbs]# cp init.ora.721200911530 $ORACLE_HOME/dbs/initora10g.ora


然后继续切换到oracle 帐号,连接到 sqlplus,运行 startup ,可能会出现:



这是因为没有权限,

[root@localhost dbs]# chmod -R 775 initora10g.ora
继续startup

呵呵~~success.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表