Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple exp script

Status
Not open for further replies.

ErrolDC

MIS
May 26, 2004
72
0
0
US
Hi. For the life of me, I cannot seem to figure out how to pass the exp utility variables from within a script. The variables are not recognized by exp and are substituted with white space which makes exp complain about being supplied two values for a parameter. This is a *nix script so if someone can shine the light on my error, I'd be really appreciative.

Thanks

Errol Neal
 
Post your script.


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
It's not much. It's just a few lines.
Code:
#!/sbin/sh
date="date '+%Y%m%d'"
HOME=/export/home/oracle

ORACLE_SID=tkbpre; export ORACLE_SID
echo "Exporting a copy of the mipttkb schema from tkbpre.."
$ORACLE_HOME/bin/exp log=$HOME/logs/exp-mipttkb\"{$date}".txt  parfile=$HOME/scripts/exp.par
 
Hi ErrolDC,

Please post the exact error message from EXP.

Regards,

- ProblemSolver
 
Try:

Code:
#!/sbin/sh
curdt=`date +%Y%m%d`
HOME=/export/home/oracle

ORACLE_SID=tkbpre; export ORACLE_SID
echo "Exporting a copy of the mipttkb schema from tkbpre.."
$ORACLE_HOME/bin/exp log=$HOME/logs/exp-mipttkb-${curdt}.txt  parfile=$HOME/scripts/exp.par


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thank you very much LKBrwnDBA. I really appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top