----------+ grep Linux| ----------+ grep -A 1 -B 1 -C 1 '' where -A 1 --one line after expression match -B 1 --one line befor expression match -C 1 --one line before & after expression match ----------+ grep SunOS| ----------+ nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2 a=4 s="string" file1 where "b" and "a" are the number of lines to print before and after string "s" in file1.
Thursday, June 19, 2014
Search alert log for error, time and occurances
Subscribe to:
Posts (Atom)
NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL
Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...
-
I got a task to estimate RMAN backup size. How much 3days RMAN backup occupy? How long it will take to complete? Is the backup siz...
-
I got the below issue while Cloning ORACLE HOME from source to target. I have copied the binaries from source and initiated adcfclone. It ...
-
We have received an alert in the morning that the Primary Database is out of Sync. Primary and Standby are with difference of 9 archives. ...