性能诊断相关命令

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;
-------------------------------
http://www.juliandyke.com/Diagnostics/Commands/Commands.html
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值