Oracle Database
Find 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 PL/SQL with UTL_FILE Example
May 2, 2026 / · 5 min read · Oracle Database PL/SQL UTL_FILE File I/O 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 MoreDelete the 500 Oldest Files in a Directory (Oracle DBA)
Apr 29, 2026 / · 5 min read · Oracle Database Unix Commands Oracle DBA Trace Files Audit Files Database Maintenance Storage Management Diagnostic Dest ·Delete the 500 Oldest Files in a Directory (Oracle DBA) Purpose Oracle's diagnostic destination (DIAGNOSTIC_DEST), audit file destination (AUDIT_FILE_DEST, also known as adump), and per-process trace directories collect thousands of small files over time. Inode counts, not bytes, are usually the limit that bites first …
Read MoreList Files Opened by an Oracle Process with lsof -p
Apr 28, 2026 / · 5 min read · Oracle Database Unix Commands Oracle DBA lsof Process Diagnostics File Handles Troubleshooting Background Processes ·List Files Opened by an Oracle Process with lsof -p Purpose lsof (LiSt Open Files) is the UNIX tool for inspecting which processes have which files open. For an Oracle DBA it is the fastest answer to four common questions: which datafiles is this server process touching, which trace file is PMON writing into right now, …
Read MoreOracle Flashback Query: Copy Historical Data to a Table
Mar 10, 2026 / · 6 min read · oracle database flashback query sql dba data recovery insert append ctas oracle admin ·Oracle Flashback Query: Copy Historical Data Into a New Table Sometimes you need to go back in time and recover data the way it looked at a specific moment — without restoring the full database. Oracle makes this possible with Flashback Query, using the AS OF TIMESTAMP clause to read historical data directly from the …
Read MoreOracle RMAN REPORT SCHEMA Command: Display Database Files
Feb 14, 2026 / · 5 min read · Oracle Database RMAN Database Administration Backup and Recovery Oracle Commands DBA Scripts Database Files Oracle RMAN Reporting dba_data_files dba_temp_files ·Oracle RMAN REPORT SCHEMA Command: Display Database Files Purpose The REPORT SCHEMA command is an essential Oracle RMAN (Recovery Manager) tool that displays comprehensive information about all database files in your Oracle database. This command provides database administrators with a quick view of the current …
Read MoreOracle RMAN Report Obsolete Redundancy Command Guide
Feb 11, 2026 / · 6 min read · Oracle Database RMAN Backup Management Retention Policy Database Administration Recovery Manager Oracle DBA Backup Strategy ·Oracle RMAN Report Obsolete Redundancy Command Guide Purpose The report obsolete redundancy = 2 command in Oracle Recovery Manager (RMAN) identifies database backups that are no longer necessary for recovery operations based on a redundancy-based retention policy. This command helps database administrators determine …
Read MoreOracle RMAN List Backup of Database Command
Feb 8, 2026 / · 4 min read · Oracle RMAN Database Backup Recovery Manager DBA Commands Backup Verification Oracle Database Database Administration Backup Management ·Oracle RMAN List Backup of Database Command Purpose The LIST BACKUP OF DATABASE command is an Oracle Recovery Manager (RMAN) utility that displays all existing database backups stored in the RMAN repository. This command helps database administrators verify backup availability, review backup history, and plan recovery …
Read More