Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • findobj.sql Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • For Search and replace unix command. Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Facts about SCN and Rollback Segment Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • cp_filesystem.sql Oracle
  • This is from Temi Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • ORA-01220 Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Changing the Global Database Name Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • Read CSV File using Python Python/PySpark

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

  • SQL_PLAN.sql for checking real execution plan Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • Create type and Grant on it. Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • sess_server.sql 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
  • login.sql Oracle
  • sid_wise_sql.sql Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • move_arch_files.ksh Linux/Unix
  • create user with unlimited quota Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • Temporary tablespace explaination Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme