Performance
Oracle Statspack Installation Guide: spcreate Setup
Sep 5, 2025 / · 8 min read · oracle database performance monitoring administration dba statspack tuning dbms_job dba_jobs ·Oracle Database Statspack Installation Guide - Complete Setup and Configuration Purpose Statspack is a snapshot-based way to see what an Oracle database did between two points in time. AWR is the better-known alternative, and the license position differs. Oracle's Licensing Information guide lists the Automatic …
Read MoreOracle Statspack: List Snapshots with stats$snapshot
Sep 4, 2025 / · 2 min read · oracle statspack performance monitoring dba sql snapshots administration v$database ·Statspack keeps its snapshot history in the stats$snapshot table. This query lists every snapshot with its ID, level and capture time. Statspack is Oracle's built-in tool that captures database statistics at regular intervals. Purpose of the Code Run it to see which snapshot IDs exist and when each was taken, so you …
Read MoreOracle Statspack Snapshot Levels: statspack.snap Guide
Sep 1, 2025 / · 3 min read · Oracle Statspack Performance DBA Monitoring Database Administration Tuning ·Oracle Statspack Snapshot Levels: Complete Guide to Database Performance Monitoring Oracle Statspack snapshots are essential tools for database performance monitoring that capture system statistics at different granularity levels. Understanding how to properly execute snapshots and choose appropriate levels is crucial …
Read MoreMonitoring PGA Usage by Username in Oracle Database Purpose V$SESSTAT is the view that holds one statistic value per session, and two of its statistics describe how much Program Global Area (PGA) memory a session uses right now and the most it has used. The script below joins V$SESSTAT to V$STATNAME, filters the …
Read MoreOracle SGA Breakdown Script Using v$sgastat
Aug 20, 2025 / · 3 min read · oracle database dba performance sql tuning scripts memory management v$sgastat ·Oracle Database SGA Breakdown Script for Performance Monitoring Monitoring memory usage in an Oracle Database is one of the most important tasks for a DBA. The System Global Area (SGA) plays a crucial role in the performance of the database, as it stores data and control information used by Oracle processes. In this …
Read MoreOracle SQL Hash Lookup: Retrieve SQL Text from V$SQLAREA
Aug 8, 2025 / · 3 min read · oracle sql dba performance monitoring hash troubleshooting scripts v$sqlarea v$sql ·Oracle SQL Hash Lookup Query - Retrieving SQL Text from V$SQLAREA Purpose This Oracle Database query is designed to retrieve the SQL statement text (the first 1,000 characters) from the V$SQLAREA view using a specific hash value. This is particularly useful for database administrators and developers who need to …
Read MoreOracle Database: Find Query Hash Value Using V$SQLAREA
Aug 7, 2025 / · 4 min read · oracle database sql performance monitoring dba scripts tuning v$sqlarea ·Oracle Database: Find Query Hash Value Using V$SQLAREA Finding specific SQL queries in Oracle Database can be challenging when dealing with large systems running thousands of statements. This guide demonstrates how to efficiently locate query hash values using the V$SQLAREA system view by searching for unique text …
Read MoreOracle: Find Tables with Outdated Statistics via DBA_TABLES
Jul 1, 2025 / · 2 min read · dba_tables oracle database dba statistics performance monitoring sql tuning dbms_output ·Purpose You started a large ANALYZE run and need to know how many tables are still waiting. This query counts the tables in one schema whose last analyze date is before today. SQL Code 1select count(last_analyzed) left_to_do 2from dba_tables 3where owner = '&schema' 4and trunc(last_analyzed) < trunc(sysdate) 5order by …
Read MoreShow a Count of Analyzed Tables Broken Down by Schema in Oracle Database Purpose: This post explains how to use Oracle SQL to report the total number of tables and the number of analyzed tables for each schema in your Oracle Database. This is crucial for database administrators who want to monitor the health and …
Read MoreOracle PLAN_TABLE Setup and EXPLAIN PLAN Usage Guide
Jun 29, 2025 / · 3 min read · oracle database sql performance optimization explain-plan query-tuning dba dbms_xplan ·What is the Oracle PLAN_TABLE and how do you use it? PLAN_TABLE is the table where EXPLAIN PLAN stores the execution plan for a SQL statement. SQL Code 1@?/rdbms/admin/utlxplan.sql Understanding The Oracle PLAN_TABLE The PLAN_TABLE is the default output table for EXPLAIN PLAN. It stores how the optimizer plans to run a …
Read More