Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • USER_TABLES.Freelists Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Drop database in Oracle 10g Oracle
  • Find Plan Hash value fphv.sql Oracle
  • sql_plan9i.sql Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • find checksum of a file. Linux/Unix
  • Insert cause enqueue locks Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • My Minimum Tuning Programs Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle 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

  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Implementing Listener Security Oracle
  • Goldengate Tutorial Oracle
  • TOP-N Sql to find Nth max or Top N rows 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to see which patches are applied. Oracle
  • Error Handling in Proc Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • grep multuple patterns Linux/Unix
  • Jai Shree Ram Oracle
  • useful dg links Oracle
  • ORA-01220 Oracle
  • Transfer SQL Profiles from One database to other database. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme