ITPub博客

首页 > Linux操作系统 > Linux操作系统 > flush shared pool& buffer cache

flush shared pool& buffer cache

原创 Linux操作系统 作者:xz43 时间:2010-12-17 14:23:07 0 删除 编辑

Commands

Flushing the shared pool
Flushing the buffer cache
Forcing a checkpoint
Forcing a logfile switch

Flushing the shared pool

To flush the shared pool use:

    ALTER SYSTEM FLUSH SHARED_POOL;

Flushing the buffer cache

In Oracle 10.1 and above, the following supported command can be used to flush the buffer cache:

    ALTER SYSTEM FLUSH BUFFER_CACHE;

In Oracle 9.0.1 and above the following unsupported command can also be used to flush the buffer cache:

    ALTER SESSION SET EVENTS 'immediate trace name flush_cache';

After this command has been executed, the STATE column for all rows in X$BH will be zero unless the block is currently pinned

In Oracle 9.2.0.1 (Windows 2000) the equivalent ORADEBUG command fails with ORA-3113

Forcing a checkpoint

To force a checkpoint use

    ALTER SYSTEM CHECKPOINT;

Forcing a logfile switch

To force a logfile switch use

    ALTER SYSTEM SWITCH LOGFILE;

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

上一篇: Enqueue 锁定机制
请登录后发表评论 登录
全部评论
鱼儿的学习空间

注册时间:2010-11-16

  • 博文量
    433
  • 访问量
    1863708