If it happens to be a multitenant database, dbca will create subdirectories for the PDB(s).
If you want to skip scanning these, exclude them from your grep command, like below:
cd /orasw/oracle/cfgtoollogs/dbca/cdb export PDBDIR=`ls -d */ | awk -F '/' '{ print $1 }'` export ignorelist='ORA_IGNORE_CVU_ERRORS|exectask.sh|utlrp0.log|RMANUtil\$RMANUtilErrorListener.handleError:1386|RMANUtil\$RMANUtilErrorListener.handleError:1383|RMANEngine.readSqlOutput:1046' grep ERROR --exclude-dir=${PDBDIR} * | egrep -v $ignorelistThe errors I have excluded are based on my own observations on what's important or not during dbca usage.
No comments:
Post a Comment