oracle 11g physical standby switchover steps
来源:互联网 发布:java url webservice 编辑:程序博客网 时间:2024/05/19 15:39
11.2.0.4 on Oracle Linux 5.8 physical standbyswitchover
1 开启追踪Primary 以及Standby的alert日志
2 在主库查看是否日志都已经apply
select log.ARCHIVED,log.APPLIED
fromv$archived_log log
wheredest_id = 2
andsequence# = (select max(sequence#)
from v$archived_log l
wherel.resetlogs_change# =
(selectresetlogs_change# from v$database)
and dest_id = 1);
3 检查主库的转换状态
SELECTSWITCHOVER_STATUS FROM V$DATABASE;
TO STANDBY或者 SESSIONSACTIVE时表示primary可以转成standby;
Switchover_status为standby时,直接下指令:
Aletr database commit to switchover to physicalstandby
Switchover_status为SESSIONSACTIVE,检查哪些user session还在连接
SELECT SID, PROCESS, PROGRAM FROM V$SESSION
WHERE TYPE = 'USER'
AND SID <> (SELECT DISTINCT SID FROMV$MYSTAT);
或者下以下指令:
Aletr database commit to switchover to physicalstandby with session shutdown
4 shutdown and mount the former primarydatabase
Shutdown abort
Startup mount
5 确定standby database可以转成primary
SELECT SWITCHOVER_STATUSFROM V$DATABASE;
如果返回to primary或者sessions active都可以转成primary
6 将standby转成primary
Alter database commit to switchover to primarywith session shutdown
7开启新的primary
Alter database open;
8 开启redo log apply
Alter database recover managed standby databaseusing current logfile disconnect;
9 观察能否正常applya日志
在primary siwtch logfile,再查看standby alert日志是否正常apply redo log
- oracle 11g physical standby switchover steps
- oracle 11g physical standby switchover
- oracle 11g physical standby switchover
- Oracle 11G Physical Standby Database Active Data Guard Switchover & Failover
- Oracle 11g logical standby switchover
- build physical standby steps
- Physical standby failover steps
- switch over Physical Standby steps
- Switchover to a Physical Standby Database
- oel6.2 创建11g physical standby
- Creating a Physical Standby Database 11g
- Data Guard Physical Standby Setup in Oracle Database 11g Release 2
- Oracle 11G Physical Standby Database Active Data Guard - 安装配置
- Oracle 11G Physical Standby Database Active Data Guard - 数据文件路径错误问题
- Oracle 11g DataGuard Physical Standby 测试环境搭建 For windows
- Data Guard Physical Standby Setup in Oracle Database 11g Release 2
- Oracle Physical Standby
- Oracle 11g Active Data Guard step by step: How to create a Physical Standby Database using RMAN
- shell学习-5
- Java Web学习(12):JSP九大内置对象(二)
- 做SEO时 大部分企业都会面临这些懵逼的问题!
- Android广告位循环轮播图的实现
- 基于MyBatis注解扩展,实现无需配置即可使用
- oracle 11g physical standby switchover steps
- HDU1019
- 插入排序
- Python中的str与unicode处理方法
- fastdfs-zyc监控系统的使用
- fdsf
- Activity 的启动模式都有哪些以及各自的特点
- (1)android入门函数理解,tutorial-android项目的MyApplication类分析
- PyCharm选择性忽略PEP8代码风格警告信息