Quick_Tip_Linux

The Easiest Way To Truncate the Oracle Database listener.log On A Linux Server

Read Time:20 Sec

Quick_Tip_Linux

On Linux, locate the listener.log file of the Oracle Database. Then, use the following procedure to zip & truncate the listener.log file of an Oracle Database:

$ zip listener.log.zip listener.log
$ cat /dev/null > listener.log

This will zip and truncate the listener.log file and the Oracle Database will automatically create a new listener.log file and start writing to it.

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

E1Tips Qucik Tip Previous post Create a Backup of a Table in an Oracle Database
E1Tips Qucik Tip Next post Monitor a Log File While It Is Being Written To Using The PowerShell Tail Parameter