Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Checking SQL Server Version SQL Server
  • find_pdbs.sql Uncategorized
  • exp syntax in oracle 10g Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Difference between SYNC and AFFIRM Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • Rename Oracle Instance Name Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • checking connectivity between two servers Linux/Unix
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Identical Dblink Issue… Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • How to specify 2 arch location to avoid any kind of DB hanging. 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

  • fkwoindex.sql /* Find FK without Index */ Oracle
  • find_string_in_database.sql Oracle
  • currwait.sql Oracle
  • JSON/XML Types in Oracle Oracle
  • RAC with RHEL4 and 11g Oracle
  • create trigger syntax Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Jai Shree Ram Oracle
  • USE_NL and INDEX hints example Oracle
  • load SPM baseline from cursor cache Oracle
  • SQL Server: How to see historical transactions SQL Server

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme