当前位置:Gxlcms > mysql > 配置Oracle11gR2Datagurad出现ORA-10458错误

配置Oracle11gR2Datagurad出现ORA-10458错误

时间:2021-07-01 10:21:17 帮助过:39人阅读

配置Oracle 11g R2 Datagurad出现ORA-10458错误

Linux公社

首页 → 数据库技术

背景:

阅读新闻

配置Oracle 11g R2 Datagurad出现ORA-10458错误

[日期:2011-08-18] 来源:Linux社区 作者:mengzhaoliang [字体:]

备库:
SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/app/Oracle/oradata/bhoms/system01.dbf'


查看备库:
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;

SWITCHOVER_STATUS
--------------------
TO PRIMARY


查看主库:
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;

SWITCHOVER_STATUS
--------------------
NOT ALLOWED

再次查看主库的参数:
SQL> show parameter LOG_ARCHIVE_DEST_2

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_2 string service=standby lgwr async noa
ffirm
原来这里设置错误:
SQL> alter system set log_archive_dest_2='service=bhoms02 async valid_for=(online_logfiles,primary_role) db_unique_name=bhoms02';

再查主库:
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;

SWITCHOVER_STATUS
--------------------
TO STANDBY

查看备库:
SQL> show parameter LOG_ARCHIVE_DEST_2

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_2 string service=standby lgwr async noa
ffirm
原来这里设置错误:
SQL> alter system set log_archive_dest_2='service=bhoms01 async valid_for=(online_logfiles,primary_role) db_unique_name=bhoms01';

重启备库,,解决问题:
SQL> shutdown immediate;
ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.

Total System Global Area 6747725824 bytes
Fixed Size 2213976 bytes
Variable Size 5100275624 bytes
Database Buffers 1610612736 bytes
Redo Buffers 34623488 bytes
SQL> alter database mount standby database;

Database altered.

SQL> alter database open read only;

Database altered.

SQL> alter database recover managed standby database disconnect from session;

Database altered.

linux

  • 0
  • ORA-01281: SCN range specified is invalid错误

    AIX 5.3安装Oracle 11g R2 SSH 互信问题

    相关资讯 Oracle教程

    图片资讯

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    人气教程排行