-
Recent Posts
Recent Comments
- yangtingkun on 非空字段空值对查询的影响
- Eric Zong on 非空字段空值对查询的影响
- Kamus on Oracle Ace Director
- 设置全局死锁优先级 | yangtingkun on RAC全局死锁检测时间
- ORA-600(krbounotread_noctx)错误 | yangtingkun on ORA-600(krboReadBitmap_badbitmap)错误
Archives
- December 2020
- February 2019
- December 2018
- November 2018
- October 2018
- July 2018
- June 2018
- May 2018
- July 2016
- July 2013
- June 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
Categories
Meta
Tag Archives: SNAP
收集STATSPACK的级别
虽然AWR功能已经完全可以替代STATSPACK的功能,但是目前存在的9i的数据库还有不少,而且却是发现有不少人不了解如何更改STATSPACK的级别。 STATSPACK默认是LEVEL 5收集,而LEVEL 5收集的数据是不包括执行计划的,因此对于关注SQL性能的情况,至少需要调整到LEVEL 6,下面是检查和调整STATSPACK收集等级的方法,比较简单,就不多解释了: SQL> EXEC statspack.snap PL/SQL PROCEDURE successfully completed. SQL> SELECT snap_id, dbid, snap_level FROM stats$snapshot; SNAP_ID DBID SNAP_LEVEL ———- ———- ———- 1 1258229964 5 1 ROW selected. SQL> EXEC statspack.snap(i_snap_level => 6) PL/SQL PROCEDURE successfully completed. … Continue reading
Posted in ORACLE
Tagged LEVEL, MODIFY_STATSPACK_PARAMETER, SNAP, SQL EXECUTE PLAN, STATSPACK
Leave a comment