http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
batch file for automatic dataexporter.
echo off
set baseDir=c:\backup\
set vDirName=%date:~0,2%%date:~3,2%%date:~6,4%
set vDumpFileName=%vDirName%-%time:~0,2%-%time:~3,2%-%time:~6,2%
set backupDir=%baseDir%%vDirName%
mkdir %backupDir%
echo direcotr create Date:%baseDir%%vDirName%
echo %vDumpFileName%
expdp scott/naveed schemas=SCOTT directory=TEST_DIR dumpfile=%vDumpFileName%.DMP logfile=%vDumpFileName%.log
move c:\backup\%vDumpFileName%.log c:\backup\%vDirName%
move c:\backup\%vDumpFileName%.DMP c:\backup\%vDirName%
echo successfuly moved.
Tuesday, August 2, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment