<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Grep on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/grep/</link><description>Recent content in Grep on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Sun, 17 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/grep/index.xml" rel="self" type="application/rss+xml"/><item><title>Scan Every Oracle Alert and Trace Log for ORA- Errors with grep</title><link>https://www.oraclescripts.com/post/grep-ora-errors-across-all-oracle-logs/</link><pubDate>Sun, 17 May 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/grep-ora-errors-across-all-oracle-logs/</guid><description>
&lt;h2 id="scan-every-oracle-alert-and-trace-log-for-ora--errors-with-grep"&gt;Scan Every Oracle Alert and Trace Log for ORA- Errors with grep&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Every Oracle environment generates alert logs and process trace files recording instance events, errors, and diagnostics. When a support call comes in — &amp;quot;the database was slow last night, can you check the logs?&amp;quot; — the fastest first pass is a single grep across every log file in the diagnostic directory. This one-liner, drawn from the shutdownabort.com DBA Quick Guides (Andrew Barry, 2007–2013, preserved via the Wayback Machine), scans all alert logs under the Oracle diagnostic root and prints every line containing an ORA- error code.&lt;/p&gt;</description></item><item><title>Recursive find and grep to Search Oracle Trace Files for Any String</title><link>https://www.oraclescripts.com/post/find-grep-recursive-oracle-tracefiles/</link><pubDate>Fri, 15 May 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/find-grep-recursive-oracle-tracefiles/</guid><description>
&lt;h2 id="recursive-find-and-grep-to-search-oracle-trace-files-for-any-string"&gt;Recursive find and grep to Search Oracle Trace Files for Any String&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;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 evidence of a specific error or a specific SQL statement requires searching the content of all of them, not just their names. The two-command pipeline below — from the shutdownabort.com DBA Quick Guides (Andrew Barry, 2007–2013, preserved via the Wayback Machine) — uses &lt;code&gt;find&lt;/code&gt; to enumerate trace files and &lt;code&gt;grep -l&lt;/code&gt; to identify which ones contain the target string.&lt;/p&gt;</description></item></channel></rss>