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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3971|回复: 0
打印 上一主题 下一主题

[备份恢复] 启动DG备库到open状态报错ORA-10458,ORA-01152

[复制链接]
跳转到指定楼层
楼主
发表于 2018-4-12 17:38:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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/ORCL_STD/datafile/o1_mf_system_08t05rs9_.dbf'
报错原因:归档日志不可用,
查看alter日志
[oracle@strong_dg trace]$ tail -30alert_orcl.log
Creating archive destination file :/u01/app/arch/1_7_972555957.dbf (5281 blocks)
Thu Apr 12 17:23:12 2018
Standby crash recovery need archive log forthread 1 sequence 7 to continue.
Please verify that primary database istransporting redo logs to the standby database.
Wait timeout: thread 1 sequence 7
Standby Crash Recovery aborted due to error16016.
Errors in file/u01/app/oracle/diag/rdbms/orcl_std/orcl/trace/orcl_ora_6134.trc:
ORA-16016: archived logfor thread 1 sequence# 7 unavailable
Recovery interrupted!
Completed Standby Crash Recovery.
Signalling error 1152 for datafile 1!
Errors in file/u01/app/oracle/diag/rdbms/orcl_std/orcl/trace/orcl_ora_6134.trc:
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/ORCL_STD/datafile/o1_mf_system_08t05rs9_.dbf'
ORA-10458 signalled during: alter databaseopen...
Thu Apr 12 17:23:14 2018
Creating archive destination file :/u01/app/arch/1_7_972555957.dbf (5281 blocks)
Thu Apr 12 17:28:57 2018
Creating archive destination file :/u01/app/arch/1_10_972555957.dbf (371 blocks)
Thu Apr 12 17:28:57 2018
Creating archive destination file :/u01/app/arch/1_9_972555957.dbf (477 blocks)
Thu Apr 12 17:28:57 2018
Creating archive destination file :/u01/app/arch/1_8_972555957.dbf (76 blocks)
Thu Apr 12 17:28:59 2018
Creating archive destination file :/u01/app/arch/1_11_972555957.dbf (371 blocks)
Thu Apr 12 17:28:59 2018
Creating archive destination file :/u01/app/arch/1_12_972555957.dbf (7 blocks)
Thu Apr 12 17:28:59 2018
Creating archive destination file :/u01/app/arch/1_13_972555957.dbf (157 blocks)
解决办法:确认备库是否存在归档目录,是否有oracle权限。
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/app/arch
Oldest online log sequence     13
Next log sequence to archive   0
Current log sequence           15
SQL>
[oracle@strong_dg ~]$ cd /u01/app/
[oracle@strong_dg app]$ ll
总用量 0
drwxr-xr-x 2 root   root      6 4  12 15:13 arch
drwxrwxr-x 9 oracle oinstall 122 4  12 15:12 oracle
drwxrwx--- 5 oracle oinstall  89 4  12 12:06 oraInventory
[root@strong_dg ~]# chown -Roracle:oinstall /u01/app/arch
SQL> alter database open;
Database altered.
SQL> selectname,open_mode,database_role,switchover_status from v$database;
NAME     OPEN_MODE           DATABASE_ROLE    SWITCHOVER_STATUS
--------- ------------------------------------ --------------------
ORCL     READ ONLY            PHYSICALSTANDBY NOT ALLOWED

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 16:46 , Processed in 0.102054 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表