Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Explain Plan Output 2 Oracle
  • Rownum with Order by Oracle
  • Jai Shree Ram Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • create user with unlimited quota Oracle
  • grep multuple patterns Linux/Unix
  • Find_table_size.sql Oracle
  • find checksum of a file. Linux/Unix
  • Rman Notes -1 Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Export With Query Another Example. Oracle
  • EXTPROC Oracle

How to Modify the statistics collection by MMON for AWR repository

Posted on 06-Sep-2005 By Admin No Comments on How to Modify the statistics collection by MMON for AWR repository

From 10g onwards the MMON process wakes up by default every hour and does statistics collection for AWR (Automatic Workload Repository).

10g provides the following procedure for modify this statistics collection routine:

DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS((

retention IN NUMBER DEFAULT NULL,

interval IN NUMBER DEFAULT NULL,

dbid IN NUMBER DEFAULT NULL);

This example changes the interval setting to two hours and the retention setting to two weeks for the local database:

execute dbms_workload_repository.modify_snapshot_settings(interval => 120,retention => 20160);

If you query the DBA_HIST_WR_CONTROL table after this procedure is executed, you will see the changes to these settings.

execute DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(interval => 0);

By setting the value of the interval as 0 we set the new interval between each snapshot collection as 110 years.

Oracle, SQL scripts

Post navigation

Previous Post: Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR
Next Post: Global Unique Identifier Generation in Oracle 9.2 SYS_GUID()

Related Posts

  • Drop specific SQL plan baseline – spm Oracle
  • standard Monitoring – 1 Oracle
  • reset Sequence Oracle
  • oracle 11g RAC on vmware Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Pending Distributed Transations Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (9)
  • Videos (0)

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • Getting started with notebook Python/PySpark
  • Resolving RMAN Hung Jobs Oracle
  • find_arc.sql Oracle
  • Giving Grant on v$DATABASE Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • Parallel DML Oracle
  • 10g oem configuration Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme