I am using a batch script to export a .dmp from my database using the 'exp' command.
Everything runs fine and logs correctly (creating a date stamped log file as well) but the .DMP file itself is nowhere to be found. Not in the designated 'FILE="c:/foo/bar.dmp"' location or anywhere else.
The exporter says it has completed correctly with no errors, but alas, no DMP file.
It's not a permissions problem, the same script generates the .log and temporary .txt files fine.
The script is being run on Windows Server 2008, and even running the exp manually through command prompt doesn't create a file, with no errors.
Really stumped on this one. Extremely difficult to diagnose since everything swears blind it worked fine. Hopefully someone has seen something like this before and can help.
Thanks in advance.
Example of script:
@echo off
REM setlocal enabledelayedexpansion
::Bunch of variable declarations here
echo **Backup run on %DATE% at %TIME%** >> "E:\Backup Logs\FULL_db_%Ffullstamp%_log.txt"
echo **Backing up FULL database** >> "E:\Backup Logs\FULL_db_%Ffullstamp%_log.txt"
exp xxxx/yyyy@zzzz full=Y log="E:\Backup Logs\FULL_TMP.log" file="E:\Backups\FULL\FULL_db_%fullstamp%.dmp"
type "E:\Backup Logs\FULL_TMP.log" >> "E:\Backup Logs\FULL_db_%Ffullstamp%_log.txt"
del "E:\Backup Logs\FULL_TMP.log"
I've removed a bit of fluff and identifying parts but that's the bread and butter of it. The TXT and LOG files are being created and deleted perfectly, but no DMP file.