ora-01078和lrm-00109错误

一楼(楼主):

SQL>sqlplus sys/(passwd)@ORACLE_SID as sysdba

已连接。
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file ’/opt/oracle/app/oracle/product/10.1.0/Db_1/dbs/initoracle.ora’

这是因为在oracle9i和oracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。
解决方法:
将$ORACLE_BASE/admin/数据库名称/spfile目录下的init.ora.012009233838形式的文件copy到$ORACLE_HOME/dbs目录下并改名为:initoracle.ora即可。(注:initoracle.ora中的oracle为你的实例名 ORACLE_SID)

然后重新启动ORACLE实例即可

2楼:

楼主这个问题看来自己没弄明白啊!

LRM-00109: could not open parameter file ’/opt/oracle/app/oracle/product/10.1.0/Db_1/dbs/initoracle.ora’


看看这个提示,说事找不到initoracle.ora文件,与spfile有啥关系啊?

背景知识介绍:

oracle实例启动的时候寻找参数文件的顺序是:

spfile{$ORACLE_SID}.ora—>spfile.ora—>init{$ORACLE_SID}.ora—>init.ora

如果能找到spfile{$ORACLE_SID}.ora,才使用之;找不到则继续寻找spfile.ora,如果还找不到,就寻找init{$ORACLE_SID}.ora,如果此时还找不到,则继续寻找init.ora;如这个时候还没有找到,则提示以上报错信息!

转自:http://bbs.chinaunix.net/thread-1817974-1-1.html


你可能感兴趣的:(ora-01078和lrm-00109错误)