启动oracle时报ORA-01078和LRM-00109错误

ぃ、小莉子 提交于 2020-03-11 02:36:52

使用 sys 用户登录 sqlplus 后,startup 命令启动 Oracle 时报 ORA-01078 和 LRM-00109 错误,如下所示:

SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/inithuman_res.ora'

原因:
很明显是启动时找不到 pfile 文件,这里就是缺少了 inithuman_res.ora,导致启动失败。

解决办法:
1、找到pfile文件夹所在位置

[oracle@localhost ~]$ find /home -name pfile
/home/oracle/app/admin/human_resource/pfile

2、查看文件

[oracle@localhost ~]$ cd /home/oracle/app/admin/human_resource/pfile
[oracle@localhost pfile]$ ls
init.ora.152020174126

3、将 init.ora.152020174126 文件 copy 到 /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs 目录下命名为 inithuman_res.ora 即可。

cp /home/oracle/app/admin/human_resource/pfile/init.ora.152020174126 /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/inithuman_res.ora

注:目录请根据你的实际安装目录copy,inithuman_res.ora 中的 human_res 为你的实例名ORACLE_SID,我的是human_res。


4、启动数据库即可,如下所示

[oracle@localhost dbs]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 28 10:34:58 2020
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area  572043264 bytes
Fixed Size                  2215424 bytes
Variable Size             171966976 bytes
Database Buffers          390070272 bytes
Redo Buffers                7790592 bytes
Database mounted.
Database opened.
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
human_res
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!