ORA-01078和LRM-00109错误解决方法
今天下午在新安装的suse11 下安装oracle10g后,启动数据库时报错:
错误信息如下:
$sqlplus / as sysdba
SQL> startup
ORA-01078:failure in processing system parameters
LRM-00109:could not open parameter file
'/home/oracle/app/oracle/product/11.1.0/db_1/dbs/initorall.ora'
原因分析:
这是因为在oracle9i和oracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。
解决方法:
将$ORACLE_BASE/admin/数据库名称/pfile目录下的init.ora.012009233838形式的文件copy到
$ORACLE_HOME/dbs目录下initoracle.ora即可。
(注:initoracle.ora中的oracle为你的实例名 ORACLE_SID)
$cd /oracle/admin/gjwgdb/pfile
cp init.ora /home/oracle/app/oracle/product/11.1.0/db_1/dbs/initorall.ora
$sqlplus / as sysdba
SQL> startup
ORACLE instance started.
Total System Global Area 264241152 bytes
Fixed Size 1218868 bytes
Variable Size 188745420 bytes
Database Buffers 71303168 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
备注:
1.Oracle在启动过程中,需要读取参数文件(pfile/spfile)来创建实例。
2.Oracle在启动过程中,寻找参数文件的顺序为:
spfile
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23740698/viewspace-662784/ ,如需转载,请注明出处,否则将追究法律责任。