alter system switch logfile/ alter system archive log current区别
来源:互联网 发布:淘宝cpu旗舰店马丁靴 编辑:程序博客网 时间:2024/05/16 09:51
alter system switch logfile和alter system archive log current的区别
1、
alter system switch logfile 是强制日志切换,不一定就归档当前的重做日志文件
(若自动归档打开,就归档前的重做日志,若自动归档没有打开,就不归档当前重做日志。)
alter system archive log current 是归档当前的重做日志文件,不管自动归档有没有打都归档。
主要的区别在于:
ALTER SYSTEM SWITCH LOGFILE对单实例数据库或RAC中的当前实例执行日志切换;
而ALTER SYSTEM ARCHIVE LOG CURRENT会对数据库中的所有实例执行日志切换。
为什么执行热备后要执行alter system archive log current 这个语句,看到很多脚本都是这样写的。
是不是必须的?
一般的RMAN脚本都是这样写的,因为RMAN是可以备份归档日志的。
alter system archive log current 这样后就可以将所有的归档都备份出来了。这样做是为了保证数据的完整和一致。
ALTER SYSTEM SWITCH LOGFILE ;
SWITCH LOGFILE Clause
TheSWITCH
LOGFILE
clause 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 use this clause, your instance must have the database open.
ALTER SYSTEM ARCHIVE LOG CURRENT ;
CURRENT Clause
SpecifyCURRENT
to manually archive the current redo log file group of the specified thread, forcing a log switch. If you omit theTHREAD
parameter, then Oracle archives all redo log file groups from all enabled threads, including logs previous to current logs. You can specifyCURRENT
only when the database is open.
ALTER SYSTEM ARCHIVE LOG CURRENT NOSWITCH;
NOSWITCH
SpecifyNOSWITCH
if you want to manually archive the current redo log file group without forcing a log switch. This setting is used primarily with standby databases to prevent data divergence when the primary database shuts down. Divergence implies the possibility of data loss in case of primary database failure.
You can use theNOSWITCH
clause only when your instance has the database mounted but not open. If the database is open, then this operation closes the database automatically. You must then manually shut down the database before you can reopen it
- alter system switch logfile/ alter system archive log current区别
- alter system switch logfile与alter system archive log current
- alter system switch logfile与alter system archive log current
- alter system switch logfile 和alter system archive log current
- alter system switch logfile和alter system archive log current的区别
- ALTER SYSTEM SWITCH LOGFILE与ALTER SYSTEM ARCHIVE LOG CURRENT区别
- alter system switch logfile 和 alter system archive log current 的区别
- alter system switch logfile 和 alter system archive log current 的区别
- alter system switch logfile和alter system archive log current 的区别
- alter system switch logfile和alter system archive log current的区别
- alter system switch logfile和alter system archive log current的区别
- alter system switch logfile和alter system archive log current的区别
- alter system switch logfile和alter system archive log current 的区别
- 'alter system switch logfile' 和 'alter system archive log current'的区别
- alter system switch logfile和alter system archive log current的区别
- alter system switch logfile和alter system archive log current的区别
- alter system switch logfile和alter system archive log current 的区别
- alter system switch logfile和alter system archive log current的区别
- 关于ashx
- Eclipse快捷键大全(转载)
- selinux 常用指令
- ubuntu8.10下mplayer+win32codecs安装详解
- 【PHP系列教程】(1)——第一个PHP页面
- alter system switch logfile/ alter system archive log current区别
- 【转】MFC应用程序中处理消息的顺序
- 在GridView中设置日期格式
- 专家看台:DBA薪酬挺高 盲目从之不可取
- 关于#ifdef __cplusplus extern(转)
- 使用ASP发送飞信的免费短信
- 神秘的ClassLoader
- 2009北京旅游市内景点攻略 (2009年6月1日)
- linux下安装mysql及用户、引擎、连接数、编码等相关设置