Home » Infrastructure » Unix » Oracle 11G - How to manage listener log files (Oracle 11G)
Oracle 11G - How to manage listener log files [message #439108] Thu, 14 January 2010 05:17 Go to next message
kiwicyh
Messages: 3
Registered: January 2010
Location: Malaysia
Junior Member
Dear expert,

I'm newbie in oracle, I have a problem regarding the listener log files under alert directory and trace directory(please refer to below). As the oracle installation partition size only 10GB, I have to manually delete the log files under alert directory and trace directory.

Is that anyway for oracle to auto compress the log files and only keep for 5days and it will be automatically deleted? Please advice !!! your help is much appreciate!!!
THanks!


oracle@OLP:/oracle/app/diag/tnslsnr/OLP/listener/alert>
oracle@OLP:/oracle/app/diag/tnslsnr/OLP/listener/trace>

For current situation is
OLP:/oracle/app/diag/tnslsnr/OLP/listener/alert # ls -lrt
total 8188
-rw-r----- 1 oracle oinstall 3003540200 Jan 14 19:14 log.xml

as you see, the above log already consume about 3GB. Need your advice!
Re: Oracle 11G - How to manage listener log files [message #439112 is a reply to message #439108] Thu, 14 January 2010 05:55 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
Is that anyway for oracle to auto compress the log files and only keep for 5days and it will be automatically deleted?

No but there are many scripts do to it.
You'll find them here in Unix forum or on the web.
Come back if you are unable to find any.

Regards
Michel
Re: Oracle 11G - How to manage listener log files [message #439122 is a reply to message #439112] Thu, 14 January 2010 07:52 Go to previous messageGo to next message
kiwicyh
Messages: 3
Registered: January 2010
Location: Malaysia
Junior Member
appreciate if you could provide the keywords. I'm new in unix too.
thanks alot!!!
Re: Oracle 11G - How to manage listener log files [message #439123 is a reply to message #439122] Thu, 14 January 2010 07:55 Go to previous messageGo to next message
ThomasG
Messages: 3211
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
The standard UNIX / Linux tool that does that is logrotate
Re: Oracle 11G - How to manage listener log files [message #439125 is a reply to message #439123] Thu, 14 January 2010 08:08 Go to previous messageGo to next message
kiwicyh
Messages: 3
Registered: January 2010
Location: Malaysia
Junior Member
Thanks, I will figure it out. If any problem, I will revert here.
Thanks alot Smile
Re: Oracle 11G - How to manage listener log files [message #452599 is a reply to message #439108] Thu, 22 April 2010 23:39 Go to previous message
rock333
Messages: 1
Registered: April 2010
Location: new york
Junior Member
hi friends ,,, its a nice place and fun to be here with you guys i am student and doing my mcse these days i am very interested in Unix i have some knowledge about and the scripts i get if from the forum and one other site its helpful u know ,, well thank you for the post on this topic and keep posting nice informative posts:)
Previous Topic: Authentication
Next Topic: Quarterly delete files older than 3 months
Goto Forum:
  


Current Time: Thu Mar 28 18:50:16 CDT 2024