ON CALL DBA SUPPORT

— Database blog

Archive for June, 2014

ALERT LOG OF A PARTICULAR DATE INTO A FILE

Posted by ssgottik on 16/06/2014

vi alert_orcl.log

:set nu

:wq!

by doing above it will set the number for all the lines in the alert log. Save and come out of the log and give the below sed command.

$sed ‘12345, 56677p’ alert_orcl.og > alert_orcl_new.log

 

Posted in SCRIPTS | Leave a Comment »