Hi all,
What I am trying to do is set date on every daily produced exp*.dmp file. Thus, today's export file should be exp20090331.dmp, tomorrows will be exp20090401.dmp etc etc. Anyone has an idea how to settle that??
Regards
Printable View
Hi all,
What I am trying to do is set date on every daily produced exp*.dmp file. Thus, today's export file should be exp20090331.dmp, tomorrows will be exp20090401.dmp etc etc. Anyone has an idea how to settle that??
Regards
if you are using unix you can create a variable that has the date.
export CURR_DATE=`/bin/date +%y%m%d_%H%M%S`
And then use that variable in you shell script.
exp system full=y file=mydb_${CURR_DATE}_full.dmp ...
Just remember exp is not a good backup strategy.