Oracle Scripts
Enable a 10046 Trace for an Oracle Session
Jul 10, 2026 / · 13 min read · Oracle DBA SQL Trace 10046 Trace Performance Diagnostics ORADEBUG DBMS_MONITOR Oracle Performance Trace File ·Enable a 10046 Trace for an Oracle Session Purpose A 10046 trace returns wait events only if the level includes them. Enabling the trace at level 1 and then wondering why the file shows no waits is the most common 10046 mistake in production diagnosis — the output has elapsed times and call counts, but none of the db …
Read MoreRun a Consistent Export with expdp FLASHBACK_TIME
Jul 10, 2026 / · 11 min read · Oracle DBA Data Pump expdp FLASHBACK_TIME Consistent Export Oracle Administration Undo Retention Oracle Backup ·Run a Consistent Export with expdp FLASHBACK_TIME Purpose A Data Pump export that reads one table at 02:00 and the next at 02:15 is not a consistent snapshot — it is a photograph taken in pieces over time. For schemas where rows in one table reference rows in another, that time spread means the export can capture …
Read MoreMonitor Data Pump Progress with V$SESSION_LONGOPS
Jul 5, 2026 / · 10 min read · Oracle DBA V$SESSION_LONGOPS Data Pump expdp impdp Oracle Monitoring Dynamic Performance Views Oracle Administration ·Monitor Data Pump Progress with V$SESSION_LONGOPS Purpose Where the expdp and impdp log files record a status line per completed object — writing output at each table boundary, not while a large table is mid-transfer — V$SESSION_LONGOPS records progress while the operation is still running. That gap matters on a …
Read MoreInsert Control Characters in vi with Ctrl-V for Oracle Prompts
Jun 20, 2026 / · 7 min read · Oracle DBA Unix Commands vi SQL*Plus Shell Terminal Oracle Administration Text Editing ·Insert Control Characters in vi with Ctrl-V for Oracle Prompts Purpose A custom SQL*Plus prompt that prints the connected instance name in colour, or a login script that clears the screen before the banner, both need one thing the keyboard cannot type directly: a literal control character embedded in the file. Press …
Read MoreCheck RESUMABLE_TIMEOUT and RESUMABLE Status in V$SESSION
Jun 19, 2026 / · 6 min read · Oracle DBA V$SESSION Resumable Space Allocation Oracle Administration Session Management Space Management Oracle Performance Dynamic Performance Views ·Check RESUMABLE_TIMEOUT and RESUMABLE Status in V$SESSION Purpose V$SESSION carries two columns that tell you whether a session can survive running out of space: RESUMABLE and the resumable timeout that governs it. When resumable space allocation is enabled, a statement that hits a space error — a full tablespace, a …
Read MoreMonitor PGA Aggregate Target with V$PGASTAT in Oracle
Jun 18, 2026 / · 6 min read · Oracle DBA V$PGASTAT PGA Memory Management Oracle Performance Oracle Administration Dynamic Performance Views Instance Tuning ·Monitor PGA Aggregate Target with V$PGASTAT in Oracle Purpose Is PGA_AGGREGATE_TARGET set high enough for the work the instance actually does? V$PGASTAT answers that question. It is the instance-level statistics view for the Program Global Area — the private memory Oracle hands to each server process for sorting, …
Read MoreOracle Scheduler Job Monitoring with DBA_SCHEDULER_RUNNING_JOBS
Jun 9, 2026 / · 7 min read · Oracle Scheduler DBA_SCHEDULER_RUNNING_JOBS DBA_SCHEDULER_JOBS Job Monitoring Oracle DBA Scripts DBMS_SCHEDULER ·Oracle Scheduler Job Monitoring with DBA_SCHEDULER_RUNNING_JOBS Purpose Which Oracle Scheduler jobs are executing at this instant, and how long has each been running? DBA_SCHEDULER_RUNNING_JOBS answers that directly. It lists only the jobs that are active right now — not the full job catalog, not the run history, just …
Read MoreOracle DBMS_SCHEDULER: Create and Manage Jobs with PL/SQL
Jun 8, 2026 / · 7 min read · Oracle Scheduler DBMS_SCHEDULER CREATE_JOB PL/SQL Job Scheduling Oracle DBA Scripts ·Oracle DBMS_SCHEDULER: Create and Manage Jobs with PL/SQL Purpose Automating a recurring task — a nightly statistics gather, a log purge, an end-of-month rollup — is a standard part of running an Oracle database. DBMS_SCHEDULER.CREATE_JOB is the procedure that registers that task with the database so it runs on a …
Read MoreQuery Wait Events by Session with Oracle V$SESSION_WAIT
Jun 7, 2026 / · 6 min read · V$SESSION_WAIT V$SESSION Wait Events Wait Class Performance Tuning Oracle DBA Scripts ·Query Wait Events by Session with Oracle V$SESSION_WAIT Purpose V$SESSION_WAIT is the real-time view that shows what each Oracle session is waiting on this very second. For every session it exposes the wait event name, how long the session has been in that wait, and three event-specific parameters (P1, P2, P3) that …
Read MoreOracle Index Rebuild and Coalesce with ALTER INDEX
Jun 6, 2026 / · 6 min read · ALTER INDEX Index Rebuild Index Coalesce Index Maintenance Oracle Structure Oracle DBA Scripts ·Oracle Index Rebuild and Coalesce with ALTER INDEX Purpose Over months of heavy delete and update activity, a B-tree index can accumulate empty and half-full leaf blocks. The index keeps working, but it grows wider than the data it points to, so range scans read more blocks than they need and the segment holds space …
Read More