Home > Database > Mysql Tutorial > Data Guard 使用 alter system archive log current 维护 Archive Lo

Data Guard 使用 alter system archive log current 维护 Archive Lo

WBOY
Release: 2016-06-07 16:46:54
Original
1347 people have browsed it

Data Guard 使用 alter system archive log current 维护 Archive Log

日常维护 Data Guard 时、对于 Archive Log 的管理、我们可用:

① alter system switch logfile

② alter system archive log current

这两个有何区别?

alter system switch logfile

--仅仅是把当前在线日志往下一组切换、并且触发一个检查点,然后控制权立即转回给调用者

--不论是归档还是非归档模式,这个命令都是可以执行,

--归不归档由系统自已负责,如果负载很重,那可能切换后暂是归不了档

alter system archive log current

--先切换再归档、只有归档完成才会返回OK

--所以、switch logfile要比archive log current快得多

有时候、我们在备库发现有 Archive Gap、需要我们手工填补沟壑

那么使用 alter system archive log current 要比 alter system switch logfile 要好些,,妥当些

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template