You are on page 1of 1

set oracle_sid=orcl

setlocal
for /f "tokens=1-4 delims=/ " %%a in ('date /t') do set DATE=%%c-%%b-%%d
for /f "tokens=1-3 delims=: " %%a in ('time /t') do (
set hours=%%a
set minutes=%%b
set ampm=%%c
)
if {%ampm%}=={AM} if {%hours%}=={12} set hours=00
if {%ampm%}=={PM} (
for /f "delims=0 tokens=*" %%a in ("%hours%") do set hours=%%a
set /a hours+= 12
)

exp system/manager file=J:\full_backup_%date%_%hours%.%minutes%_%ampm%.dmp


log=J:\full_backup_%date%_%hours%.%minutes%_%ampm%.log full=y feedback=10000
buffer=2000000 statistics=none

exit

output:

full_backup_24-11-2008_20.30_PM.DMP -------The DMP output file format


full_backup_24-11-2008_20.30_PM.log ------- The LOG file output file format

You might also like