重庆思庄Oracle、Redhat认证学习论坛

标题: DG备库在启动时,报ORA-01078与LRM-00109 [打印本页]

作者: 王亮    时间: 2020-6-7 16:00
标题: DG备库在启动时,报ORA-01078与LRM-00109
在部署oracle 12c的DG备库后,在进行数据库同步后,因误操作,备库服务器关闭了,重新启动系统与备库时,出现ORA-01078与LRM-00109的提示,如下:
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/12.2.0/dbhome_1/dbs/initorcl.ora'


查看提示中的目录,发现没有该文件
[oracle@oracledg dbs]$ pwd
/u01/app/oracle/product/12.2.0/dbhome_1/dbs
[oracle@oracledg dbs]$
[oracle@oracledg dbs]$ ll
total 36
-rw-r-----. 1 oracle oinstall 12288 Jun  4 10:50 dr1orcldg.dat
-rw-r-----. 1 oracle oinstall 12288 Jun  4 10:50 dr2orcldg.dat
-rw-rw----. 1 oracle oinstall  1544 Jun  7 00:38 hc_orcl.dat
-rw-r--r--. 1 oracle oinstall  3079 May 15  2015 init.ora
-rw-r-----. 1 oracle oinstall  3584 Jun  4 10:16 orapworcl


而因为备库,在$ORACLE_BASE/admin/orcldg/中,也没有pfile目录,那想从这个目录中cp一份文件也不行,突然想到,这个DG备库当初搭建时,用来将数据库启动到nomount状态的pfile文件还在,并且同步数据库后也没有修改过,那应该是可以使用这个pfile文件将数据库启起来
SQL> startup pfile='/home/oracle/pfile.ora';  
ORACLE instance started.

Total System Global Area 1593835520 bytes
Fixed Size                  8793256 bytes
Variable Size            1006633816 bytes
Database Buffers          570425344 bytes
Redo Buffers                7983104 bytes
Database mounted.
Database opened.


数据库启起来后,查看一下spfile,发现当时同步数据库后,未能创建spfile,结果导致数据库重启时报上面的错误。那以pfile文件,创建spfile后再重启数据库试试
SQL> create spfile from pfile='/home/oracle/pfile.ora';

File created.


SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.

Total System Global Area 1593835520 bytes
Fixed Size                  8793256 bytes
Variable Size            1006633816 bytes
Database Buffers          570425344 bytes
Redo Buffers                7983104 bytes
Database mounted.
Database opened.
可以正常启动了,然后就可以进行数据库的归档日志应用了。








欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2