alter system switch logfile和alter system archive log current的区别

更新时间:2023-06-03 21:54:53 阅读: 评论:0

alter system switch logfile
和alter system archive log current的区别
alter system switch logfile 是强制日志切换,不一定就归档当前的重做日志文件(若自动归档打开,就归档前的重做日志,若自动归档没有打开,就不归档当前重做日志。)
晨字取名的寓意
alter system archive log current 是归档当前的重做日志文件,不管自动归档有没有打都归档。
这条命令导致Oracle切换到一个新的日志文件,当前联机重做日志文件归档, 并且为什么没有北瓜Oracle归档所有未被归档的重做日志文件。
主要的区别在于:孕妇能吃芒果么
ALTER SYSTEM SWITCH LOGFILE对单实例数据库或RAC中的当前实例执行日志切换;
而ALTER SYSTEM ARCHIVE LOG CURRENT会对数据库中的所有实例执行日志切换。started怎么读
为什么执行热备后要执行alter system archive log current 这个语句,看到很多脚本都是这样写的。是不是必须的?
一般的RMAN脚本都是这样写的,因为RMAN是可以备份归档日志的。
曼陀罗花花语alter system archive log current 这样后就可以将所有的归档都备份出来了。这样做是为了保证数据的完整和一致。
趵突泉作文ALTER SYSTEM SWITCH LOGFILE ;
SWITCH LOGFILE Clau
TheSWITCHLOGFILEclau lets you explicitly force Oracle to begin writing to a new redo log file group, regardless of whether the files in the current redo log file group are full. When you force a log switch, Oracle begins to perform. a checkpoint but returns control to you immediately rather than when the checkpoint is complete. To u this clau, your instance must have the databa open.
ALTER SYSTEM ARCHIVE LOG CURRENT ;
CURRENT Clau
Specify CURRENT to manually archive the current redo log file group of the specified thread, forcing a log switch. If you omit the THREAD parameter, then Oracle archives all redo log file groups from all enabled threads, including logs previous to current logs. You can specifyCURRENTonly when the databa is open.
ALTER SYSTEM ARCHIVE LOG CURRENT NOSWITCH;
NOSWITCH
SpecifyNOSWITCHif you want to manually archive the current redo log file group without forcing a log switch. This tting is ud primarily with standby databas to prevent data divergence when the primary databa shuts down. Divergence implies the possibility of data loss in ca of primary databa failure.万变不离其宗
情景剧表演
You can u theNOSWITCHclau only when your instance has the databa mounted but not open. If the databa is open, then this operation clos the databa automatically. You must then manually shut down the databa before you can reopen it

本文发布于:2023-06-03 21:54:53,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/979256.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:归档   日志   自动
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图