Ask the Expert

How to trim the Oracle listener log in Unix/Linux

How do I trim the Oracle listener log? My database is 24*7 and if I move the file I have to bounce the listener.

    Requires Free Membership to View

In Unix/Linux servers, I do the following:

cp listener.log listener_copy.log
cp /dev/null listener.log

The above makes a copy of the listener log and then overwrites the log with an empty file, thus zeroing out the log's contents. If you do not need the old copy, you can remove it, or skip the first copy command above.

This was first published in June 2009

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: