#ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated

ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a file destination directory
Linux-x86_64 Error: 2: No such file or directory

出现这个问题的原因是我做归档日志操作时出现两个init.ora 导致启动数据库时无法找到正确的init.ora开启

解决办法:
首先:登入Oracle用户找到init.ora所在目录
/oracle/app/oracle/admin/win01/pfile
[oracle@win01 pfile]$ ls
init.ora.9312018192045 init.ora.9312018215245

出现两个文件
用mv将其中一个修改为init.ora
mv init.ora.9312018215245 init.ora

接着:
1、用pfile启动数据库
startup mount pfile=’/oracle/app/oracle/admin/win01/pfile/init.ora’;
2、打开数据库
alter database open;
3、重建spfile文件
create spfile from pfile=’/oracle/app/oracle/admin/win01/pfile/init.ora’;
4、shutdown immediate
5、startup
[oracle@win01 ~]$ sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.4.0 Production on Thu Nov 1 06:00:47 2018

Copyright © 1982, 2013, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup mount pfile=’/oracle/app/oracle/admin/win01/pfile/init.ora’;
ORACLE instance started.

Total System Global Area 1235959808 bytes
Fixed Size 2252784 bytes
Variable Size 704643088 bytes
Database Buffers 520093696 bytes
Redo Buffers 8970240 bytes
Database mounted.
SQL> alter database open;
Database altered.

SQL> create spfile from pfile=’/oracle/app/oracle/admin/win01/pfile/init.ora’;

File created.

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

Total System Global Area 1235959808 bytes
Fixed Size 2252784 bytes
Variable Size 704643088 bytes
Database Buffers 520093696 bytes
Redo Buffers 8970240 bytes
Database mounted.
Database opened.

你可能感兴趣的:(oracle)