Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • tab.sql Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • FGA Part-I Oracle
  • Virtual Indexes in Oracle Oracle
  • Export With Query Another Example. Oracle
  • Wait time tuning research Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Find long Running Transaction Linux/Unix
  • Composite Index creation tip from Vivek Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • All Hints for Oracle Databases Oracle
  • Oracle Statspack survival Guide Oracle
  • Check Oracle installed products using one command Oracle
  • find_pk.sql /* Find Primary Key */ 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

  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • find_longsql.sql Oracle
  • Implementing Listener Security Oracle
  • configUOCIOTTO.ora Oracle
  • Ports used by Oracle Software Oracle
  • oracle fast start failover best practice 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
  • Rename Oracle Instance Name Oracle
  • Debugging Shell FIles Linux/Unix
  • Linux CPU info. Linux/Unix
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • online_ts_bkup.sql Oracle
  • PLSQL Table Syntax 1 Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme