Originally posted by: orphy
Since you have a few lines to run as the oracle user, why not just put all
those commands in a script and call it whatever.ksh then you can fix impDB.sh
to something like:
cd /ora_import/dump
chmod o+r expBaan201.dmp*
mv expBaan201.dmp* expBaan201.dmp
su - oracle -c "/path-to/whatever.ksh"
Just make sure whatever.ksh is executable and possibly owned by oracle.
I'm curious though. Why can't you run the whole thing as oracle? Are there
any reasons why the dumps are not owned by oracle or that /ora_import/dump is
owned by root?
And I'm a bit confused about this: mv expBaan201.dmp* expBaan201.dmp. Maybe
I'm not seeing the whole picture...
Orphy
#AIX-Forum