`

How to disable flush of ASH data to AWR?

 
阅读更多

MMON process will periodically flush ASH data into AWR tables.
Oracle introduced WF enqueue which is used to serialize the flushing of snapshots.

If for any reason ( space issue, bugs, hanging etc..) you need to disable flushing the run time statistics for
particular table than following procedure needs to be done.

First, locate the exact AWR Table Info (KEW layer):

SQL> select table_id_kewrtb, table_name_kewrtb from x$kewrtb order by 1

TABLE_ID_KEWRTB TABLE_NAME_KEWRTB
--------------- --------------------------------------------------------
0 WRM$_DATABASE_INSTANCE
1 WRM$_SNAPSHOT
2 WRM$_BASELINE
3 WRM$_WR_CONTROL
4 WRH$_STAT_NAME
5 WRH$_PARAMETER_NAME
6 WRH$_EVENT_NAME
7 WRH$_LATCH_NAME
8 WRH$_FILESTATXS
9 WRH$_TEMPSTATXS
10 WRH$_DATAFILE
11 WRH$_TEMPFILE
12 WRH$_SQLSTAT
13 WRH$_SQLTEXT
14 WRH$_SQL_SUMMARY
15 WRH$_SQL_PLAN
16 WRH$_SYSTEM_EVENT
17 WRH$_BG_EVENT_SUMMARY
18 WRH$_WAITSTAT
19 WRH$_ENQUEUE_STAT
20 WRH$_LATCH
21 WRH$_LATCH_CHILDREN
22 WRH$_LATCH_PARENT
23 WRH$_LATCH_MISSES_SUMMARY
24 WRH$_LIBRARYCACHE
25 WRH$_DB_CACHE_ADVICE
26 WRH$_BUFFER_POOL_STATISTICS
27 WRH$_ROWCACHE_SUMMARY
28 WRH$_SGA
29 WRH$_SGASTAT
30 WRH$_PGASTAT
31 WRH$_RESOURCE_LIMIT
32 WRH$_SHARED_POOL_ADVICE
33 WRH$_SQL_WORKAREA_HISTOGRAM
34 WRH$_PGA_TARGET_ADVICE
35 WRH$_INSTANCE_RECOVERY
36 WRH$_SYSSTAT
37 WRH$_PARAMETER
38 WRH$_UNDOSTAT
39 WRH$_PROCESS_MEMORY_SUMMARY
40 WRH$_SEG_STAT
41 WRH$_SEG_STAT_OBJ
42 WRH$_DLM_MISC
43 WRH$_SERVICE_NAME
44 WRH$_SERVICE_STAT
45 WRH$_ACTIVE_SESSION_HISTORY
46 WRH$_SYSMETRIC_HISTORY
47 WRH$_FILEMETRIC_HISTORY
48 WRH$_WAITCLASSMETRIC_HISTORY
49 WRI$_ALERT_HISTORY
50 WRH$_TABLESPACE_STAT
51 WRH$_LOG
52 WRH$_MTTR_TARGET_ADVICE
53 WRH$_TABLESPACE_SPACE_USAGE
54 WRH$_METRIC_NAME
55 WRH$_SYSMETRIC_SUMMARY
56 WRH$_SQL_BIND_METADATA
57 WRH$_JAVA_POOL_ADVICE
58 WRH$_THREAD
59 WRH$_SESSMETRIC_HISTORY
60 WRH$_OSSTAT
61 WRH$_OSSTAT_NAME
62 WRH$_SYS_TIME_MODEL
63 wri$_optstat_opr
64 WRH$_OPTIMIZER_ENV
65 WRM$_SNAP_ERROR
66 WRH$_SERVICE_WAIT_CLASS
67 WRH$_CR_BLOCK_SERVER
68 WRH$_CURRENT_BLOCK_SERVER
69 WRH$_INST_CACHE_TRANSFER
70 SQL Group
71 Segment Group
72 Datafile Group
73 Tempfile Group
74 Service Group
75 Undo Group
76 WRH$_STREAMS_POOL_ADVICE
77 WRI$_SEGADV_OBJLIST
78 WRI$_SEGADV_CNTRLTAB
79 WRH$_COMP_IOSTAT
80 WRH$_SGA_TARGET_ADVICE
81 WRH$_SESS_TIME_STATS
82 WRH$_STREAMS_CAPTURE
83 WRH$_STREAMS_APPLY_SUM
84 WRH$_BUFFERED_QUEUES
85 WRH$_BUFFERED_SUBSCRIBERS
86 WRH$_RULE_SET
87 WRH$_EVENT_HISTOGRAM
88 WRH$_MUTEX_SLEEP
89 WRH$_MEMORY_TARGET_ADVICE
90 WRH$_MEMORY_RESIZE_OPS
91 WRH$_PERSISTENT_QUEUES
92 WRH$_PERSISTENT_SUBSCRIBERS
93 WRM$_COLORED_SQL
94 WRH$_IOSTAT_FUNCTION
95 WRH$_IOSTAT_FUNCTION_NAME
96 WRH$_IOSTAT_FILETYPE
97 WRH$_IOSTAT_FILETYPE_NAME
98 WRH$_RSRC_CONSUMER_GROUP
99 WRH$_RSRC_PLAN
100 WRM$_BASELINE_DETAILS
101 WRM$_BASELINE_TEMPLATE
102 WRH$_CLUSTER_INTERCON
103 WRH$_MEM_DYNAMIC_COMP
104 WRH$_IC_CLIENT_STATS
105 WRH$_IC_DEVICE_STATS
106 WRH$_INTERCONNECT_PINGS
107 WRH$_DISPATCHER
108 WRH$_SHARED_SERVER_SUMMARY
109 WRH$_IOSTAT_DETAIL
110 WRH$_DYN_REMASTER_STATS
111 WRH$_PLAN_OPERATION_NAME
112 WRH$_PLAN_OPTION_NAME
113 WRH$_SQLCOMMAND_NAME
114 WRH$_TOPLEVELCALL_NAME
115 WRM$_WR_USAGE
116 WRH$_MVPARAMETER
117 WRH$_PERSISTENT_QMN_CACHE
118 WRH$_TABLESPACE
119 WRM$_SNAPSHOT_DETAILS
120 WRI$_SQLTEXT_REFCOUNT

121 rows selected.

1st option :

SQL> alter system set “_awr_disabled_flush_tables”=’<table_name>’;

e.g.

alter system set “_awr_disabled_flush_tables”=’WRH$_INTERCONNECT_PINGS,WRH$_RSRC_PLAN’;

System altered.

2nd option:

SQL> alter session set events ‘immediate trace name awr_flush_table_off level 106′;
SQL> alter session set events ‘immediate trace name awr_flush_table_off level 99′

If you decide to turn on flushing statistics than

SQL> alter session set events ‘immediate trace name awr_flush_table_on level 106′;
SQL> alter session set events ‘immediate trace name awr_flush_table_on level 99′;

分享到:
评论

相关推荐

    This shows how to disable control alt and delete by tricking

    This shows how to disable control alt and delete by tricking the computer into thinking that the screensaver is running.

    Android代码-屏蔽home按键

    Android - Is It possible to disable the click of home button How to disable Home and other system buttons in Android? This library provide a easy way to do this job. NOTICE This library doesn't ...

    This is a straight forward example of how to disable any Win

    标题中的“如何禁用Win95/98窗口”表明这是一个关于操作系统,特别是Windows 95和98的教程,具体涉及的是系统界面的自定义和管理。在早期的Windows操作系统中,用户可能会出于安全、性能优化或者个性化需求,想要...

    How to disable_enable a timing check in a design.pdf

    后仿

    KBA_160615010248_2_how_to_disable_QC3_0_.pdf

    ### 如何关闭QC3.0 #### 背景与概述 QC3.0(Quick Charge 3.0)是高通公司推出的一种快速充电技术,旨在为移动设备提供更加快速、高效的充电体验。然而,在某些情况下,用户或制造商可能需要禁用这一功能,比如在...

    VS错误提示:To disable deprecation, use _CRT_SECURE_NO_WARNINGS.

    Severity Code Description ... To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 解决方案:更改预处理定义 右击项目名,选择Properties 在c/c++下选择Preprocessor 点击图

    Redis-Essentials.pdf

    explains how to manage data through commands, and shares experiences from big players in the industry. What this book covers Chapter 1, Getting Started (The Baby Steps), shows you how to install Redis...

    MIPS Data Memory (练习)

    0 -&gt; disable writing to data memory - Address for read/write operand (A -&gt; n_bits_address bits = 32 bits) - Write Data for write operand (WD -&gt; data_mem_width bits) • Outputs - Read Data for ...

    UE(官方下载)

    This power tip demonstrates how to calculate the sum from a column of numeric data. Column mode How to use the features of UltraEdit's powerful column mode Advanced and column-based sort How to sort ...

    微软内部资料-SQL性能优化2

    Before we look at how SQL Server uses and manages its memory, we need to ensure a full understanding of the more common memory related terms. The following definitions will help you understand how SQL...

    Updated Analysis of PatchGuard on Microsoft Windows 10 RS4

    This paper will present a complete overview of PatchGuard mecanisms, from the initialization to the Blue Screen Of Death, and insights about how we implemented a driver able to disable it. Especially,...

    eac3to V3.17

    * added a flush after every log line to help GUIs * "eac3to some.mpls" now also works if the stream files aren't there, anymore * fixed: number of subtitles was not appended to demuxed subtitles' file...

    Android代码-锁屏应用。

    LockScreenSample-Disable HomeButton or HomeKey Event Android LockScreenSample Using Service - Disable HomeButton Key Event LockScreenSample use ...Android - Is It possible to disable the click of home b

    BURNINTEST--硬件检测工具

    - Minor change to the serial port test where, if "Disable RTS/CTS and DSR/DTR test phase" was selected the DTR and RTS lines would be explicitly disabled to prevent any toggling of these lines. ...

    Vagaa哇嘎画时代--体验群体智慧的力量!

    2.4 Forge headers or otherwise manipulate identifiers in order to disguise the origin of any data transmitted to other users; 2.5 Transmit, access or communicate any data that you do not have a right...

    VB编程资源大全(英文源码 API)

    The code has been tested under NT4 SP6a&lt;END&gt;&lt;br&gt;31,passdemo.zip This is a very good example of how to use the registry to save data. It shows how to create, store and save a password to the ...

    无 adb disable-verity 命令的adb应用程序

    此adb中无adb disable-verity命令,如果在cmd中输入以上命令会报 /system/bin/sh: disable-verity: not found 的错误。具体可看本人的文章 ”/system/bin/sh: disable-verity: not found 的解决方案“ 【使用方式】...

    Active Directory Cookbook, 3rd Edition.pdf

    Covers how to trigger and disable the Knowledge Consistency Checker (KCC), how to query metadata, force replication, and determine what changes have yet to replicate between domain controllers. ...

    (免费)提供 adb -disable-verity 支持

    此adb工具包中包含了adb disable-verity命令,这里免费提供给大家使用,具体可看本人的文章 ”/system/bin/sh: disable-verity: not found 的解决方案“ 【使用方式】 platform-tools解压后即可使用。在cmd中通过cd...

    STC89C58RD +宏芯(driver)驱动

    1. How to change different panel? Simply remove the marked tag the panel you want to use and mark the original one in the "System.h". 2. How to change different IC (T100A/T101/T101A/T102)? Just ...

Global site tag (gtag.js) - Google Analytics