Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Rman Notes -1 Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • DB Console Mainenance. Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Export With Query Another Example. Oracle
  • Oracle 11g Environment Setup Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • Renaming the column name Oracle
  • create user with unlimited quota Oracle
  • purge_trc.sh Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • move_arch_files.ksh Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix

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

  • find_idle_cpu.sql Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Explain Plan Output 2 Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • proc.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • good note for shared pool tunnig Oracle
  • DBMS_SQL for alter session. Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • Rename Tablespace Oracle
  • Search and replace editor command in vi Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme