ITPub博客

首页 > 数据库 > Oracle > Forcing Log Switches

Forcing Log Switches

原创 Oracle 作者:fiona8953 时间:2016-07-25 11:10:46 0 删除 编辑
Forcing Log Switches

A log switch occurs when LGWR stops writing to one redo log group and starts writing to another. By default, a log switch occurs automatically when the current redo log file group fills.

You can force a log switch to make the currently active group inactive and available for redo log maintenance operations. For example, you want to drop the currently active group, but are not able to do so until the group is inactive. You may also wish to force a log switch if the currently active group needs to be archived at a specific time before the members of the group are completely filled. This option is useful in configurations with large redo log files that take a long time to fill.

To force a log switch, you must have the ALTER SYSTEM privilege. Use the ALTER SYSTEM statement with the SWITCH LOGFILE clause.
The following statement forces a log switch:
ALTER SYSTEM SWITCH LOGFILE;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26477398/viewspace-2122495/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: FRA空间满
下一篇: ORA-00600 memory leak
请登录后发表评论 登录
全部评论

注册时间:2014-06-13

  • 博文量
    284
  • 访问量
    222484