Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Implementing Listener Security Oracle
  • Roles and Stored Object behaviour Oracle
  • Roles and Stored Procs II Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Directory wise folder wise space usage Linux/Unix
  • Good RAC & Standby Notes Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Zip and unzip with tar Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • UTL_FILE test program Oracle
  • move_arch_files.ksh Linux/Unix
  • block_ident.sql Oracle

DBA_HIST_SQLSTAT contents

Posted on 10-May-202310-May-2023 By Admin No Comments on DBA_HIST_SQLSTAT contents

Query DBA_HIST_WR_CONTROL to see the interval, retention and the TOPNSQL setting.  For TOPNSQL a setting of DEFAULT translates to:

30 where statistics_level is typical

100 where statistics_level is all

Simply because this one SQL appears to consume 7% of the load it may not be in the top SQLs in these categories:

Elapsed Time

CPU Time

Parse Calls

Shareable Memory

Version Count

If the SQL doesn’t make the ‘cut’ it isn’t saved and statistics aren’t collected.

Ref: David Fitzjarrell from Oracle community group

Oracle

Post navigation

Previous Post: Find_planinfo.sql
Next Post: PHP code to add WordPress posts in bulk programmatically

Related Posts

  • Clean up Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • First Entry in RAC Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Query to Generate aggregate on every 30 mins. 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
  • login.sql Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • RAC with RHEL4 and 11g Oracle
  • Absolute file number and relative file number Oracle
  • Implementing Listener Security Oracle
  • GSQ.sql Oracle
  • FRA Information. Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme