Hello rammaghentharji,
angelIII's solution would be perfect, but I think you only have AIX's 'find', which does not recognize things like "-path"
So I'd suggest you tried this -
find /tmp -mtime +7 -print | grep -v "/tmp/.oracle" | xargs -i{} rm -f {}
Looks rather inelegant, but with AIX-find I can't imagine a better way to accomplish what you want.
I recommend you checked the results of the above command first by issuing
find /tmp -mtime +7 -print | grep -v "/tmp/.oracle" | xargs -i{} echo {}
Alternatively, you could of course install GNU findutils (from the AIX toolbox) and use angelIII's version above.
Cheers
wmp