Wednesday, 30 January 2019

/bin/rm: Argument list too long


$ rm test_*.aud
-bash: /usr/bin/rm: Argument list too long



for i in /u01/app/oracle/admin/test/adump/test_*.aud            -->>This is the path of the file where he is located.
do
echo rm $i >> /u01/app/oracle/admin/test/adump/test.log -->>This is the parameter which generate the log file which we can check which file is going to be deleted.
rm $i    -->>It will delete the files to read $i where in "i" we have inserted the file with first command.
done

Thanks
DB Tech Solution

Prerequisite Check “CheckActiveFilesAndExecutables” Failed

While applying a patch to oracle binary using opatch utility, got below error. Error -  $ORACLE_HOME/OPatch/opatch apply Oracle Interim Patc...