Hi,
Having a simple issue with find command on Sun. The command works fine if the variable is set to the actual filesystem but fails when the variable is set to a link which is pointing to the same filesystem.
export DUMPDEST=/oradata1/exports/pbm - Set the variable
oracle@gbo6020d:[PBM]:/home/oracle> find ${DUMPDEST} -name "${ORACLE_SID}*FULL*" -mtime +2 -exec ls -l {} \;
-rw-r--r-- 1 oracle dba 398239993 Aug 15 01:24 /oradata1/exports/pbm/PBM_15Aug05_FULL_3.dmp.Z
-rw-r--r-- 1 oracle dba 367997548 Aug 15 01:09 /oradata1/exports/pbm/PBM_15Aug05_FULL_1.dmp.Z
-rw-r--r-- 1 oracle dba 306083283 Aug 15 01:17 /oradata1/exports/pbm/PBM_15Aug05_FULL_2.dmp.Z
export DUMPDEST=/u01/app/oracle/admin/PBM/exports - Set the path with the value as link.
oracle@gbo6020d:[PBM]:/u01/app/oracle/admin/PBM> find ${DUMPDEST} -name "${ORACLE_SID}*FULL*" -mtime +2 -exec ls -l {} \;
oracle@gbo6020d:[PBM]:/u01/app/oracle/admin/PBM>
oracle@gbo6020d:[PBM]:/u01/app/oracle/admin/PBM> pwd
/u01/app/oracle/admin/PBM
oracle@gbo6020d:[PBM]:/u01/app/oracle/admin/PBM> ls -l
total 176
lrwxrwxrwx 1 oracle dba 21 Dec 13 2004 exports -> /oradata1/exports/pbm
It sounds like a small problem or is it a bug ?
Any help will be appreciated.