Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • newupload.html PHP/MYSQL/Wordpress
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Oracle Identifiers Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Changing Instance Name ( No DB_NAME) Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • find_longsql.sql Oracle
  • Explain Plan Output 2 Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Jai Shree Ram Linux/Unix
  • CPU speed on solaris Linux/Unix
  • ORA-01220 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

  • AWR settings- MMON is not taking snapshot. Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Clean up Oracle
  • V$ROLLSTAT status is Full Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Changing default shell Linux/Unix
  • Generating XML from SQLPLUS Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • move_arch_files.ksh Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • Small sample shell program Linux/Unix
  • Clean up Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme