Ron:
Yep. Do it every night at midnight. But...you can't just rename it!
If you do a command like...
mv alert_SID.log alert_SID_010710.log
touch alert_SID.log
...Oracle will still append new entries to the old file, and your new
alert_SID.log file will continue to have 0 bytes. What you need to
do is...
cp -p alert_SID.log alert_SID_010710.log
> alert_SID.log
...This copies the file while maintaining the timestamp, and then nulls
out the existing file. This should work on most flavors of UNIX.
HTH,
Mike
---
===========================================================================
Michael P. Vergara | I've got a PBS mind in an MTV world
Oracle DBA |
Guidant Corporation |
-----Original Message-----
Sent: Tuesday, July 10, 2001 7:57 AM
To: Multiple recipients of list ORACLE-L
Can the alert log be renamed while the database is up and running?
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Vergara, Michael (TEM)
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).