I was just having a discussion here. We had a Tomcat log file exhaust all
the space on a filesystem. An Oracle person said that they often
"truncate" Oracle logs, while Oracle is still running by doing something
like:

cp oracle.log /some/other/filesystem
tail -20 /some/other/filesystem/oracle.log oracle.log

He indicated that this causes the file to shrink in size and Oracle then
continues logging after the 20 records copied.

I'm thinking that this is dependant on Oracle, or whatever application,
using the O_APPEND option on the fopen() call. If the program doesn't use
O_APPEND, then the space is not released and the program continues writing
at the end and the file continues to increase in size.

Am I understanding this correctly?

--
Q: What do theoretical physicists drink beer from?
A: Ein Stein.

Maranatha!
John McKown

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to