免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1817 | 回复: 3
打印 上一主题 下一主题

alter system switch logfile 与 alter system archive log current区别 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-17 10:35 |只看该作者 |倒序浏览
alter system switch logfile  与 alter system archive log current区别

论坛徽章:
0
2 [报告]
发表于 2006-10-17 10:42 |只看该作者
alter system switch logfile 不仅交换LOGFILE而且还存档
而alter system archive log current只是存档,不一定会交换logfile

论坛徽章:
0
3 [报告]
发表于 2006-10-17 10:50 |只看该作者
原帖由 0727 于 2006-10-17 10:35 发表
alter system switch logfile  与 alter system archive log current区别


引用oracle官方文档中的原话:
http://download-west.oracle.com/ ... s_2013.htm#i2282125

SWITCH LOGFILE Clause

The SWITCH LOGFILE clause lets you explicitly force Oracle Database 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 Database 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.

ARCHIVE LOG CURRENT Clause

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 Database archives all redo log file groups from all enabled threads, including logs previous to current logs. You can specify CURRENT only when the database is open.

论坛徽章:
0
4 [报告]
发表于 2006-10-17 10:54 |只看该作者
我发现两个命令执行后都产生归档了,我也观察了是不是有这样的区别,就是switch logfile后他的状态等待没有完成的事务,等事务完成后会归档,而archive log current是直接就归档了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP