Aw: RE: looking at alert log

From: <rogel_at_web.de>
Date: Mon, 21 Nov 2016 10:49:30 +0100
Message-ID: <trinity-4922f455-15c7-4ec2-a3e8-233ad551f121-1479721770758_at_3capp-webde-bap23>


... Using tail –f is slightly more complicated in the general case for alert log since the advent of being able to rotate the log file (perhaps to a dated directory) without bouncing the database ...
 
Right, but tail -F (instead of tail -f) can handle that, so I would prefer to use tail -F
 
Matthias Rogel
 
 
Gesendet: Samstag, 19. November 2016 um 15:15 Uhr
Von: "Mark W. Farnham" <mwf_at_rsiz.com>
An: justin_at_n0de.ws, dmarc-noreply_at_freelists.org
Cc: 'oracle-l-freelists' <oracle-l_at_freelists.org>
Betreff: RE: looking at alert log

That is a pipe, not a “wait until I’m done” and then dump output command. Both pipes and redirections “>” and “<” happen as soon as bytes dribble. If the sending program write flushes in a block size rather than each write being flushed, you CAN see a delay until the output buffer is full and flushes, but writing to the alert.log was either always individual flushed line writes or it became so by 1988.

 

So the answer to your question is NO.

 

If you wanted a single scrolling follow window AND routing the output further commands, you’d need to use something like tee as well to split standard out (and probably standard error as well).

 

tail –f

 

has been the standard lightweight (zero RDBMS engine load) way to manage filtering alert.log entries to something more urgent or a more selective repository (or both) since at least 1988.

 

The other ways on the thread are also useful variants. Using tail –f is slightly more complicated in the general case for alert log since the advent of being able to rotate the log file (perhaps to a dated directory) without bouncing the database, but I believe it is still a very good way to do things as Yong Huang demonstrates in his example.

 

And Niall’s note to use greater than instead of equals and a constant subtraction from current time answers the Brian’s question nicely and is useful especially when you are routing the results to yet another log in the database as your preferred means of keeping track of the exceptions you’ve selected for filtering.

mwf

-- http://www.freelists.org/webpage/oracle-l Received on Mon Nov 21 2016 - 10:49:30 CET

Original text of this message