Database Administration
Oracle Statspack sppurge: Snapshot Purge Script Guide
Sep 2, 2025 / · 4 min read · oracle-database statspack performance monitoring database administration snapshot management storage optimization dba scripts oracle tuning ·Oracle Database Statspack Snapshot Purge Script: Complete Guide to sppurge Administration The Oracle Database @?/rdbms/admin/sppurge; command is a critical administrative script used to delete old Statspack snapshots and manage storage space in the PERFSTAT schema. This comprehensive guide explores the purpose, …
Read MoreOracle Autotrace Commands: SQL Execution Plan Analysis
Aug 5, 2025 / · 4 min read · oracle database performance tuning sql optimization autotrace execution plan database administration query analysis autotrace ·Oracle Database Autotrace Commands: Complete Guide to SQL Execution Plan Analysis Oracle Database's autotrace feature is a powerful built-in tool that enables database administrators and developers to analyze SQL statement performance by displaying execution plans and runtime statistics. This comprehensive guide covers …
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 DBMS_STATS: Delete Database Statistics
Jan 16, 2025 / · 2 min read · Oracle Database Performance Tuning SQL Database Administration Statistics Management DBMS_STATS ·Oracle Database: Deleting Statistics with DBMS_STATS Package The Oracle Database DBMS_STATS package provides powerful procedures for managing database statistics. This post explores the delete_stats procedures, which are crucial for maintaining accurate query optimization. Understanding DBMS_STATS.DELETE_STATS …
Read MoreOracle DBMS_STATS.GATHER_SYSTEM_STATS for Query Tuning
Jan 15, 2025 / · 2 min read · Oracle Database Performance Tuning SQL Database Administration Query Optimization GATHER_SYSTEM_STATS DBMS_STATS ·Optimizing Oracle Database Performance with GATHER_SYSTEM_STATS Oracle Database's DBMS_STATS package is a powerful tool for gathering and managing database statistics. This post focuses on the GATHER_SYSTEM_STATS procedure, which is crucial for optimizing query performance by collecting system-level statistics. …
Read MoreOracle Lock Conflicts with dba_lock and SQL*Plus Format
Sep 6, 2024 / · 2 min read · Database SQL Performance Troubleshooting Oracle Database Administration Performance Tuning dba_lock ·Oracle Database: Understanding Lock Conflicts with dba_lock and Column Formatting Purpose This Oracle SQL query is designed to investigate and understand lock conflicts within your database, particularly those causing performance bottlenecks. It leverages the dba_lock view to expose critical lock information in a …
Read MoreIdentifying Locked Rows in Oracle Database using tables v$session and dba_objects Purpose This Oracle query pinpoints the exact row a specific session is waiting on due to a lock. It first finds the locked object and row location, then constructs a ROWID to fetch and display the entire locked row from the table. Sample …
Read MoreIdentify Locked Objects in Oracle Database
Sep 3, 2024 / · 3 min read · Oracle Database Administration SQL v$locked_object dba_objects v$lock v$session ·Identify Locked Objects in Oracle Database using v$locked_object, dba_objects, v$lock and v$session Purpose The provided Oracle Database code is a SQL query designed to identify locked objects within a database. It provides detailed information about the locked objects, including the username, session ID, object name, …
Read MoreOracle: Enable Disabled Foreign Key Constraints
Aug 3, 2024 / · 2 min read · Oracle SQL database DBA troubleshooting constraints Database Administration dba_constraints ·Enabling Disabled Foreign Key Constraints in Oracle Database using dba_constraints Purpose This SQL query generates a list of SQL statements that can be executed to enable all disabled foreign key constraints in an Oracle database. Sample SQL Command 1set lines 100 pages 999 2select 'alter table …
Read MoreOracle Undo Retention Tuning: ALTER SYSTEM Guide
May 12, 2024 / · 2 min read · Database Administration SQL Commands Performance Optimization Data Management undo_retention oracle dba v$undostat ·Optimizing Undo Retention in Oracle Databases We will explain how to optimize the undo_retention parameter in Oracle databases using the SQL command ALTER SYSTEM SET undo_retention = 500 SCOPE = MEMORY;. Understanding this parameter is crucial for effective transaction management, rollback capabilities, and maintaining …
Read More