Database Tuning
Oracle Statspack: Automate Snapshots with spauto.sql
Sep 7, 2025 / · 2 min read · oracle database statspack performance monitoring automation dba scripts database tuning oracle administration job scheduling dba_jobs dbms_job ·Oracle Statspack Automation: Scheduling Hourly Database Performance Snapshots The spauto.sql script schedules an hourly Statspack snapshot job with DBMS_JOB. Purpose The script creates a job that takes a Statspack snapshot every hour. A DBA runs it so there is history to compare when a slowdown is reported. Query …
Read MoreOracle SQL Execution Statistics Query with v$sqlarea
Aug 9, 2025 / · 3 min read · oracle sql performance database tuning v$sqlarea performance monitoring query optimization oracle dba sql statistics v$sql v$sql_plan ·Oracle SQL Performance Analysis Query - Monitor SQL Execution Statistics Purpose The v$sqlarea view holds run totals for each SQL statement in the shared pool. This query reads executions, CPU time, disk reads and buffer gets for one statement. A DBA runs it when one statement is slow and needs to see how much work …
Read More