Silent Export [message #172180] |
Mon, 15 May 2006 07:10 |
matthiasgress
Messages: 2 Registered: May 2006
|
Junior Member |
|
|
Hi folks,
is there a way calling export-utility in a script, so that the export doesn't stop for asking for wrong usr/pwd or file name, but instead writes into log file and returning exit code EX_FAIL?
Regards
Matthias
|
|
|
|
Re: Silent Export [message #172189 is a reply to message #172182] |
Mon, 15 May 2006 07:51 |
matthiasgress
Messages: 2 Registered: May 2006
|
Junior Member |
|
|
Hi,
tahnk you so far. Tested it, but did not achive all I wanted:
Suppose script is called with usr, pwd and alias as params. Inside script you find the code:
echo "userid=$1/$2@$3" 2>&1 > par.dat
echo "file=../dumps/$1" 2>&1 >> par.dat
echo "log=../log/exp$1.log" 2>&1 >> par.dat
echo "statistics=none" 2>&1 >> par.dat
echo "grants=n" 2>&1 >> par.dat
echo "consistent=y" 2>&1 >> par.dat
exp PARFILE=par.dat
Having explicitly given the wrong path, export asks for it:
EXP-00028: failed to open ../dumps/usr.dmp for write
Export file: expdat.dmp >
How can this be suppressed?
Regards
Matthias
|
|
|
|
|
|
Re: Silent Export [message #350802 is a reply to message #219169] |
Fri, 26 September 2008 07:15 |
MrBassman
Messages: 1 Registered: September 2008 Location: Lelystad, Netherlands
|
Junior Member |
|
|
Maybe kind of a late reply, but I just ran into the same question. As I world like to pick up the output of EXP and parse it for errors, I do not want to see the repeated username and password prompts in my log file. What I did was the following:
1. Create an empty dummy file: null
2. Use this as input on the command line:
$ EXP user/pass@instance param=... < null
Now EXP gets an EOF from the file and shuts up its mouth...
Regards,
Paul
|
|
|