Removed extraneous modules from httpd.conf.
Added database backup routines using datapump - expdp_task.cmd. Stored the icmeterquotes wallets. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@5326 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
27
WebServer/DatabaseScripts/expdp_task.cmd
Normal file
27
WebServer/DatabaseScripts/expdp_task.cmd
Normal file
@@ -0,0 +1,27 @@
|
||||
VERIFY errors 2>nul
|
||||
SETLOCAL ENABLEEXTENSIONS
|
||||
IF ERRORLEVEL 1 echo Unable to enable extensions
|
||||
|
||||
set dmpbasedir=C:\oracle\admin\webmip\dpdump
|
||||
set dmpfile=%dmpbasedir%\webmip_data_expdp.dmp
|
||||
set logfile=%dmpbasedir%\webmip_data_expdp.log
|
||||
|
||||
erase %dmpfile%
|
||||
erase %logfile%
|
||||
|
||||
expdp 'sys/fmdidgad@webmip as sysdba' parfile=parfile_data.expdp
|
||||
REM expdp 'sys/webmip@webmip as sysdba' parfile=parfile_nodata.expdp
|
||||
|
||||
Set destbasedir=S:\orabackup\webmip\DataPump
|
||||
Set dd=%DATE:~0,2%
|
||||
Set mm=%DATE:~3,2%
|
||||
Set yyyy=%DATE:~6,4%
|
||||
Set hr=%TIME:~0,2%
|
||||
Set destdir=%destbasedir%\%yyyy%-%mm%
|
||||
Set zipfile=webmip_expdp_%yyyy%-%mm%-%dd%-%hr%.zip
|
||||
|
||||
zip %zipfile% %dmpfile% %logfile%
|
||||
|
||||
mkdir %destdir%
|
||||
|
||||
move /Y %zipfile% %destdir% && erase %dmpfile%
|
||||
Reference in New Issue
Block a user