standby database有哪些日常维护


本篇内容介绍了“standby database有哪些日常维护”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!1.停止Standbyselect process, status from v$managed_standby; –查看备库是否在应用日志进行恢复alter database recover managed standby database cancel;shutdown immediate;2.切换到只读模式—–由shutdown模式切换到只读模式——-startup nomount;alter database mount standby database;alter database open read only;—–由应用日志模式切换到只读模式——-alter database recover managed standby database cancel; — 取消日志应用alter datab免费云主机域名ase open read only;3.切换回管理恢复模式startup nomount;alter database mount standby database;alter database recover managed standby database disconnect from session; — 启动日志应用alter database recover managed standby database using current logfile disconnect from session;4.主库和备库之间角色切换4.1 主库切换为备库alter database commit to switchover to physical standby;alter database commit to switchover to physical standby with session shutdown;– 主库有会话连接的时候shutdown immediatestartup nomount;alter database mount standby database;alter database recover managed standby database disconnect from session;4.2 从库切换为主库alter database commit to switchover to primary;shutdown immediate;startupalter system switch logfile;5.备库自动使用主库传过来的日志进行恢复alter database recover automatic standby database;6.更改保护模式alter database set standby database to maximize protection;alter database set standby database to maximize availability;alter database set standby database to maximize performancen;7.取消自动恢复模式alter database recover managed standby database cancel;alter database recover managed standby database finish;alter database recover managed standby database finish force;“standby database有哪些日常维护”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注百云网站,小编将为大家输出更多高质量的实用文章!

相关推荐: Oracle DB 相关常用sql汇总7【手工绑定sql执行计划】

SPO coe_xfr_sql_profile.log; SET DEF ON TERM OFF ECHO ON FEED OFF VER OFF HEA ON LIN 2000 PAGES 100 LONG 8000000 LONGC 800000 TRIM…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

Like (0)
Donate 微信扫一扫 微信扫一扫
Previous 01/13 13:14
Next 01/13 13:14