ON CALL DBA SUPPORT

— Database blog

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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: