Oracle dataguard failover 实战
Oracle dataguard failover 实战
操作步骤
备库:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP;
添加临时文件,删除老的临时文件
附表
具体操作和alert日志如下:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
Database altered.
备库alert
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE
Tue Apr 9 10:55:24 2013
Terminal Recovery: request posted (orcl) ---备库实例
Tue Apr 9 10:55:27 2013
Terminal Recovery timestamp is '04/09/2013 10:55:27' ---恢复时间戳
Terminal Recovery: applying standby redo logs.
Terminal Recovery: thread 1 seq# 29879 redo required
Terminal Recovery: /opt/oracle/oradata/research/redo04.log ---standby redo log
Identified End-Of-Redo for thread 1 sequence 29879
Tue Apr 9 10:55:28 2013
Incomplete recovery applied all redo ever generated.
Recovery completed through change 1900634393
Tue Apr 9 10:55:28 2013
MRP0: Media Recovery Complete (orcl)
Terminal Recovery: successful completion
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
Resetting standby activation ID 2055592130 (0x7a85d8c2)
Tue Apr 9 10:55:32 2013
Waiting for MRP0 pid 1241 to terminate
Waiting for MRP0 pid 1241 to terminate
Waiting for MRP0 pid 1241 to terminate
Tue Apr 9 10:55:34 2013
MRP0: Background Media Recovery process shutdown (orcl)
Tue Apr 9 10:55:35 2013
Terminal Recovery: completion detected (orcl)
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE
主库alert
ARC0: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3113)
ARC0: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
PING[ARC0]: Error 3113 when pinging standby orcl.
Tue Apr 9 10:36:23 2013
Errors in file /opt/oracle/admin/research/bdump/research_lns1_8489.trc:
ORA-03113: end-of-file on communication channel
Tue Apr 9 10:36:23 2013
LGWR: I/O error 3113 archiving log 1 to 'orcl'
主库
SQL> alter system set log_archive_dest_state_2='defer';
System altered
备库
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
Database altered.
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
Tue Apr 9 11:08:41 2013
ALTER DATABASE SWITCHOVER TO PRIMARY (orcl) ---orcl实例成为PRIMARY
Tue Apr 9 11:08:41 2013
If media recovery active, switchover will wait 900 seconds
Standby terminal recovery start SCN: 1900632860
SwitchOver after complete recovery through change 1900634393
Tue Apr 9 11:08:41 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/research/redo01.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Tue Apr 9 11:08:42 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/opt/oracle/oradata/research/redo02.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Tue Apr 9 11:08:43 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/research/redo03.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Standby became primary SCN: 1900632859
Tue Apr 9 11:08:44 2013
Switchover: Complete - Database shutdown required (orcl)
Completed: ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
Tue Apr 9 11:09:12 2013
ARC1: Archival disabled due to instance shutdown
Shutting down archive processes
Archiving is disabled
Tue Apr 9 11:09:22 2013
ARCH shutting down
ARC0: Archival stopped
Tue Apr 9 11:09:27 2013
ARCH shutting down
ARC1: Archival stopped
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
Tue Apr 9 11:10:33 2013
Shutting down instance: further logons disabled
Tue Apr 9 11:10:33 2013
Stopping background process MMNL
Tue Apr 9 11:10:33 2013
Stopping background process MMON
Tue Apr 9 11:10:34 2013
Shutting down instance (immediate)
License high water mark = 10
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Tue Apr 9 11:10:36 2013
ALTER DATABASE CLOSE NORMAL
ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
SQL> startup
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 2022144 bytes
Variable Size 1526727936 bytes
Database Buffers 603979776 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.
备库添加临时文件,删除老的临时文件
alter tablespace temp add tempfile xxxxx size 1G autoextend on maxsize 10G;
alter tablespace doudou add tempfile xxxbb size 1G autoextend on maxsize 10G;
shutdown immediate;
startup;
alter database tempfile '/xxxx/temp01.dbf' drop including datafiles;
alter database tempfile '/xxxx/doudou01.dbf' drop including datafiles;
come from: http://blog.itpub.net/26442936/viewspace-758030/
Oracle dataguard failover 实战的更多相关文章
- 4.2 Oracle Dataguard failover 操作步骤
在11g里面,Oracle认为最理想的情况是,虽然Oracle数据库不能打开,但是可以启动到 mount状态.Mount状态之所以重要,就在于如果可以到这个阶段,控制文件control_file就可以 ...
- Oracle Dataguard之failover
Oracle Dataguard中,角色转换包含两类:Switchover和Failover.上文<Oracle Dataguard之switchover>中,我们已经谈过了switcho ...
- Oracle Dataguard故障转移(failover)操作
注意:故障转移会破坏DG的主从关系,使其变为互不相关的2个数据库,谨慎使用. (一)故障转移操作流程图 (二)故障转移操作流程 备注:以下操作步骤与上面流程图步骤一一对应 STEP1:刷新所有未发送到 ...
- Oracle DataGuard故障转移(failover)后使用RMAN还原失败的主库
(一)DG故障转移后切换为备库的方法 在DG执行故障转移之后,主库与从库的关系就被破坏了.这个时候如果要恢复主从关系,可以使用下面的3种方法: 将失败的主库重新搭建为备库,该方法比较耗时: 使用数据库 ...
- oracle dataguard主从切换
前言: 众所周知DataGuard一般的切换分成两种,一种是系统正常的情况下的切换这种方式为:switchover是无损切换,不会丢失数据:另外一种方式属于灾难情况下的切换,这种情况下一般主库已经启动 ...
- Oracle Dataguard之switchover
Oracle Dataguard的角色转换包含两类:Switchover和Failover.Switchover指主备之间角色转换,主库降为备库,备库升级为主库.而failover则是指主库出现问题时 ...
- Oracle dataguard 正常切换和应急切换
oracle dataguard提供异地容灾方案,能有效的防止单点故障和提供高可用技术,这里介绍dataguard正常主备切换和应急切换(应急切换模拟主库出现问题无法还原,备库脱离dataguard接 ...
- Oracle Dataguard之Real-Time Apply
Oracle Dataguard一共支持三种模式:最大可用模式(Maximum Availability),最大性能模式(Maximum Performance),最大保护模式(Maximum Pro ...
- Oracle Dataguard之物理standby的基本配置
尽管网上有很多Oracle Dataguard的配置教程,但不难发现,很多采用的是rman duplicate这种方法,尽管此种方法较为简便.但在某种程度上,却也误导了初学者,虽说也能配置成功,但只知 ...
随机推荐
- [已读]web性能实践日志
书是在今年5月份出版,但是书中的内容是发表于11年到12年之间的,如果知道这一点,我一定不会买~ 列举一下大致内容: YSlow localStroage读取数据最佳策略 性能优化各种策略(图片精灵 ...
- Docker DOC
Docker DOC docker是提供给开发或管理人员的容器化部署项目工具 在linux上运行docker 常用命令 docker 安装 #先更新yum yum update; #设置docker仓 ...
- Spring的校验(Validator)
使用Spring校验的大体流程: 最首先要有配置文件xml的支持(spring_validate.xml).(当然在web.xml中要有对该xml的体现) <beans xmlns=" ...
- iOS 利用UIWebView与JavaScript交互的最简单办法
这里说的是针对iOS的!并且方法很简单!!并且验证可行的!!! 1, UIWebView调用 JavaScript 的函数: NSString* strValue = [webView stringB ...
- CPLD
复杂可编程逻辑器件(Complex Programmable Logic Device, CPLD),CPLD适合用来实现各种运算和组合逻辑(combinational logic).一颗CPLD内等 ...
- sccm系统更新补丁后服务无法正常启动
更新完补丁后这几个应用无法启动,最后发现计算机丢失msvcp120.dll 文件,查询相关资料发现安装vcredist 2013 从官网下载Visual C++ Redistributable Pac ...
- T1订正记-AC自动机-从树到图
AC自动机已经足够棒了. 但是,好像有时还是要TLE的. 一般的AC自动还是比较好,如果在某些情况下还是会被卡掉,像是这个水题 考试的感觉 我看到这个题后,我清清楚楚的知道,这是个AC自动机+栈. 经 ...
- javascript.json snippets vscode 注释
vscode vue js里面的注释 javascript.json { // Place your global snippets here. Each snippet is defined und ...
- postman使用方法详解
postman的使用方法详解 Collections:在Postman中,Collection类似文件夹,可以把同一个项目的请求放在一个Collection里方便管理和分享,Collection里 ...
- MPP(大规模并行处理)简介
1. 什么是MPP? MPP (Massively Parallel Processing),即大规模并行处理,在数据库非共享集群中,每个节点都有独立的磁盘存储系统和内存系统,业务数据根据数据库模型和 ...