Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • catall.sh Linux/Unix
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • online_ts_bkup.sql Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • oradebug ipcrm ipcs Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • dbinv.sql Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Jai Shree Ram Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • Renaming Oracle Instance Name Oracle
  • find_cons.sql Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • good linux notes Linux/Unix

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

  • Order by with ROWNUM Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • How to analyze statspack or AWR report. Oracle
  • Exadata Basics Oracle
  • pvm_pre_change.sql 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Temporary tablespace explaination Oracle
  • sql_doing_fts.sql Oracle
  • eplan9i.sql Oracle
  • process id based files and processes Linux/Unix
  • Oracle Connections expire_time and firewall Oracle
  • good linux notes Linux/Unix
  • plan10g.sql good Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme