----------+ 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:
Comments (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 the below issue while Cloning ORACLE HOME from source to target. I have copied the binaries from source and initiated adcfclone. It ...
-
Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...
-
ORA-16047: DGID mismatch between destination setting and target database The error shows a miss-match of DG_CONFIG parameter. Check th...