ORA-27101: shared memory realm does not exist.

ERROR: ORA-01034: ORACLE not available.
ORA-27101: shared memory realm does not exist.
Linux Error: 2: No such file or directory

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

sqlplus /nolog

connect / as sysdba

startup


------------------------------
[url]http://jayson22.blog.sohu.com/133790649.html[/url]
今天开发服务器突然连接不上,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)


# cp init.ora.721200911530 $ORACLE_HOME/dbs/initora10g.ora


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


这是因为没有权限,

# chmod -R 775 initora10g.ora
继续startup

呵呵~~success.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值