数据库:oracle 11.2.0.4
系统:centos 7.9
环境:rac (2节点)
问题描述:数据库开启的时候出现以下告警,此种情况很容易造成文件的误删,所有很有必要将db_recovery_file_dest与db_create_file_dest设置成不同的目录.
WARNING: db_recovery_file_dest is same as db_create_file_dest
以下为具体目录位置:
db_create_file_dest = "+DATA"
db_recovery_file_dest = "+DATA"
实验目标:将db_recovery_file_dest设置成“+DATA/orcl/db_recovery_file”.
1、新建+DATA/orcl/db_recovery_file目录
ASMCMD> mkdir db_recovery_file
2、修改快速恢复区目录
SQL> alter system set db_recovery_file_dest='+DATA/orcl/db_recovery_file' scope=both sid='*';
alter system set db_recovery_file_dest='+DATA/orcl/db_recovery_file' scope=both sid='*'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-01261: Parameter db_recovery_file_dest destination string cannot be
translated
注意:如果使用ASM作为Fast Recovery Area时,只能指定到Diskgroup级别.
SQL> alter system set db_recovery_file_dest='+ocr' scope=both sid='*';
System altered.
SQL> show parameter db_recovery
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +ocr
db_recovery_file_dest_size big integer 5G
重启数据库后,该警告不在发生.