Compressed size EXP [message #323287] |
Wed, 28 May 2008 01:31 |
weekend79
Messages: 198 Registered: April 2005 Location: Islamabad
|
Senior Member |
|
|
Hi
I use EXP to backup users, is there any option to get compressed in size resultant backup file?
Wishes
|
|
|
|
Re: Compressed size EXP [message #323312 is a reply to message #323298] |
Wed, 28 May 2008 03:05 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I'm not sure I understood the question but - if you want to compress export file, there are numerous archivers (Winzip, Winrar, just to mention the most popular in my part of the world). GUI versions won't let you compress DMP file without doing it manually, but there's a command line version available as well. It may be included into a batch file you use to perform export and - once the export is done - it will compress the DMP file.
So, if that's what you are looking for, ZIP line in the batch script might look like this:c:\pkzip -a -ex F:\baza.zip F:\baza.dmp
Also, although you didn't ask for it, perhaps you'll be interested in adding current date to DMP file name:@echo off
setlocal
for /f "tokens=2" %%i in ("%date:/=_%") do set vdate=%%i
for /f "tokens=1,2 delims=:" %%i in ("%time: =%") do set vdate=%vdate%_%%i%%j
c:\oracle\product\10.2.0\db_1\bin\exp.exe userid=scott/tiger@orcl file=e:\syr%vdate%.dmp owner=scott
endlocal
echo on
When executed:
c:\> test.bat
c:\oracle\product\10.2.0\db_1\bin\exp.exe userid=scott/tiger@orcl file=e:\syr07_19_2006_803.dmp owner=scott
|
|
|
|