oracle ora 01152,standby database ope时,提示ORA-10458: ORA-01152: ORA-01110:

在尝试将Standby Database切换到Open状态时,遇到ORA-10458和ORA-01152错误。错误源于未正确设置log_archive_dest2、fal_server和db_unique_name。解决方案包括在主库上更新log_archive_dest2的值,并在Standby Database的pfile中添加相应配置。确保主从数据库的监听、TNS配置和防火墙设置正确,最终成功开启并应用了恢复管理。
摘要由CSDN通过智能技术生成

在配置完standby database,完成数据库同步时,将standby database切换到open状态时,提示下面的的错误

SQL> select open_mode from v$database;

OPEN_MODE

--------------------

MOUNTED

SQL> alter database open;

alter database open

*

ERROR at line 1:

ORA-10458: standby database requiresrecovery

ORA-01152: file 1 was not restored from asufficiently old backup

ORA-01110: data file 1:

'/u01/app/oracle/oradata/racdg/datafile/system.256.1034746429'

SQL> select open_mode from v$database;

OPEN_MODE

--------------------

READ ONLY WITH APPLY

退出sqlplus,找到数据库的aler告警日志,查询详细的报错信息,如下:

Thu Mar 12 08:48:32 2020

ARC3 started with pid=26, OS id=36461

ARC1: Archival started

ARC2: Archival started

ARC2: Becoming the 'no FAL' ARCH

ARC1: Becoming the heartbeat ARCH

ARC1: Becoming the active heartbeat ARCH

WARNING:No local destinations have been defined for archival of the Standby Redo Log.

Completed: alter database mount standby database

ARC3: Archival started

ARC0: STARTING ARCH PROCESSES COMPLETE

Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_lgwr_35271.trc:

ORA-00313: open failed for members of log group 1 of thread 1

ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/racdg/onlinelog/group_1.263.1034746481'

ORA-27037: unable to obtain file status

提示没有在本地为归档设置目录。

查看standby database的pfile,发现log_archive_dest2与fal_server和standby database的db_unique_name都未能设置或设置错误

[oracle@racdg dbs]$ cat initorcl.ora

orcl.__db_cache_size=838860800

orcl.__java_pool_size=16777216

orcl.__large_pool_size=33554432

orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment

orcl.__pga_aggregate_target=402653184

orcl.__sga_target=1191182336

orcl.__shared_io_pool_size=0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值