Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • metalink all dynamic view reference notes. Oracle
  • For Search and replace unix command. Linux/Unix
  • How to check current redo log progress redo_progress.sql Oracle
  • PLSQL Table Syntax 2 Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Error Handling in Proc Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • DBA_HIST_SQLSTAT contents Oracle
  • How to know current SID Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Running select from V$ views from remote server Linux/Unix
  • All About Trace Fils Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Set Role explaination. 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

  • Committing distributed transaction using commit force Oracle
  • All About Trace Fils Oracle
  • Database logon trigger issue Oracle
  • Oracle Data Direct to TAPE Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Good Oracle Architecture In Short and point to point 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 (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • 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.sql23-Apr-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Vivek Tuning for Row Locks. Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • secure crt settings Linux/Unix
  • set_env_dba Linux/Unix
  • Changing default shell Linux/Unix
  • How can I tell if ASO is installed ? Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Reading config file from other folder inside class Python/PySpark

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme