Oracle Scripts
Scan Every Oracle Alert and Trace Log for ORA- Errors with grep
May 17, 2026 / · 6 min read · Oracle Database Unix Commands Oracle DBA grep Alert Log Error Diagnostics Troubleshooting Oracle Administration ·Scan Every Oracle Alert and Trace Log for ORA- Errors with grep Purpose Every Oracle environment generates alert logs and process trace files recording instance events, errors, and diagnostics. When a support call comes in — "the database was slow last night, can you check the logs?" — the fastest first pass is a …
Read MoreFind the Biggest Files First When an Oracle Filesystem Fills Up
May 16, 2026 · 6 min read · Oracle Database Unix Commands Oracle DBA Filesystem Disk Management Troubleshooting Space Management ls du Commands ·Find the Biggest Files First When an Oracle Filesystem Fills Up Purpose A full Oracle filesystem is a five-alarm incident. Whether it is the /u01/oradata mount holding datafiles, the Fast Recovery Area filling with archive logs, or the diag directory overflowing with trace files, the first question is always the same: …
Read MoreRecursive find and grep to Search Oracle Trace Files for Any String
May 15, 2026 / · 7 min read · Oracle Database Unix Commands Oracle DBA Trace Files grep find Diagnostics Troubleshooting ·Recursive find and grep to Search Oracle Trace Files for Any String Purpose Oracle's Automatic Diagnostic Repository (ADR) accumulates hundreds or thousands of trace files — one per background process event, one per incident, one per session that hits an error deep enough to dump. Finding the trace file that contains …
Read MoreOracle Export Through a Named Pipe with mknod for Space-Constrained Hosts
May 14, 2026 / · 7 min read · Oracle Database Unix Commands Oracle DBA Export Named Pipe Legacy Export mknod Backup ·Oracle Export Through a Named Pipe with mknod for Space-Constrained Hosts Purpose Oracle's original Export utility (exp) writes a binary dump file. On production hosts where disk space is tight — where staging a full-database dump and its compressed copy simultaneously would exhaust the filesystem — the classic …
Read MoreUnpacking Oracle Patch and Install Media with cpio
May 13, 2026 / · 7 min read · Oracle Database Unix Commands Oracle DBA Patching cpio Installation OPatch Archive ·Unpacking Oracle Patch and Install Media with cpio Purpose Before Oracle began shipping all patches as .zip files, the standard delivery format for Oracle install media and large patch bundles was cpio — a tape archive format that predates tar and is still the underlying format used inside every RPM package. DBAs …
Read MoreDiagnose Oracle Net and RAC Interconnect Routing with netstat -r
May 12, 2026 / · 7 min read · Oracle Database Unix Commands Oracle DBA Oracle Net RAC netstat Networking Routing Diagnostics ·Diagnose Oracle Net and RAC Interconnect Routing with netstat -r Purpose Oracle Net connections and Oracle RAC private interconnect traffic both depend on correct IP routing. When an Oracle client cannot connect to the listener, when RAC Cache Fusion or heartbeat traffic is routing over the wrong interface, or when …
Read MoreFind Oracle Archive Logs Older Than N Days with find -mtime
May 3, 2026 / · 5 min read · Oracle Database Archive Logs Unix Commands Database Maintenance Oracle DBA Storage Management Archived Redo Logs find ·Find Oracle Archive Logs Older Than N Days with find -mtime Purpose Oracle databases in archivelog mode write a stream of .ARC (archived redo log) files to a destination directory. The directory fills up. When it fills up, the database hangs. The four find -mtime commands below let a DBA list, delete, compress, or move …
Read MoreWrite Text Files from Oracle PLSQL with UTL_FILE Example
May 2, 2026 / · 5 min read · Oracle Database PLSQL UTL_FILE File IO Oracle DBA Database Programming Directory Object Stored Procedures ·Write Text Files from Oracle PL/SQL with UTL_FILE Example Purpose UTL_FILE is the built-in Oracle PL/SQL package for reading and writing operating-system files from inside the database. The procedure below — taken straight from the shutdownabort.com DBA Quick Guides (Andrew Barry, 2007–2013, preserved via the Wayback …
Read MoreSample tnsnames.ora Dedicated Server Entry (with ASM)
May 1, 2026 / · 5 min read · Oracle Database SQL*Net tnsnames.ora Oracle Net Oracle DBA Database Connectivity ASM TNS ·Sample tnsnames.ora Dedicated Server Entry (with ASM) Purpose The tnsnames.ora file is the client-side address book for Oracle Net. Each entry maps a short alias (SCR9) to a full network address — protocol, host, port, and target service. Without a working tnsnames.ora entry, sqlplus, rman, and any application using …
Read MoreSample listener.ora with Static SID_LIST and Extproc
Apr 30, 2026 / · 6 min read · Oracle Database SQL*Net listener.ora Oracle Net Oracle DBA Database Connectivity extproc Listener ·Sample listener.ora with Static SID_LIST and Extproc Purpose The listener.ora file is the server-side configuration for the Oracle Net listener — the process that accepts incoming client connections and hands them off to a database server process. The sample below — taken straight from the shutdownabort.com DBA Quick …
Read More