Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • How to see which patches are applied. Oracle
  • Mutating Table Error while using database trigger Oracle
  • Privilege to describe the table. Oracle
  • Some useful Unix Commands Linux/Unix
  • sql_doing_fts.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • Handling LOB data in Oracle Oracle
  • Locktree.sql Oracle
  • Explain Plan Output 2 Oracle
  • How to stop OCSSD Daemon Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Implementing Listener Security 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

  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • create database link syntax Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • find_string_in_database.sql Oracle
  • Proc code Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Oracle 10g for solaris 10 Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • longtx.sql Oracle
  • Import and export statements Oracle
  • SQLPLUS COPY command Precautions. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme