what is STATSPACK ?

Q: what is STATSPACK ?
A: STATSPACK is a performance diagnosis tool, available since Oracle8i. STATSPACK can be considered BSTAT/ESTAT's successor, incorporating many new features. STATSPACK is a diagnosis tool for instance-wide performance problems; it also supports application tuning activities by providing data which identifies high-load SQL statements. STATSPACK can be used both proactively to monitor the changing load on a system, and also reactively to investigate a performance problem.

Remember to set timed_statistics to true for your instance. Setting this parameter provides timing data which is invaluable for performance tuning.

1.Installing and Configuring STATSPACK
Create PERFSTAT Tablespace
Run the Create Scripts
Adjusting the STATSPACK Collection Level-snap_level

Create, View and Delete Snapshots
 sqlplus perfstat/perfstat
 SQL> exec statspack.snap;
 SQL> select name,snap_id,to_char(snap_time,'DD.MM.YYYY:HH24:MI:SS')
      "Date/Time" from stats$snapshot,v$database;
 
 NAME         SNAP_ID Date/Time
 --------- ---------- -------------------
 AKI1               4 14.11.2004:10:56:01
 AKI1               1 13.11.2004:08:48:47
 AKI1               2 13.11.2004:09:00:01
 AKI1               3 13.11.2004:09:01:48
 
 SQL> @?/rdbms/admin/sppurge;
 Enter the Lower and Upper Snapshot ID


Create the Report

 sqlplus perfstat/perfstat
 SQL> @?/rdbms/admin/spreport.sql

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

转载于:http://blog.itpub.net/14820194/viewspace-410006/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值