Rman: differenze tra le versioni

Da Emigar.
Jump to navigation Jump to search
(Creata pagina con '=Rman script windows= <pre> @echo off for /f "skip=2" %%x in ('wmic Path Win32_LocalTime get Day^,DayOfWeek /Format:List') do set %%x >NUL echo %Day% %DayOfWeek% rem Sovrascr...')
 
Riga 6: Riga 6:
for /f "skip=2" %%x in ('wmic Path Win32_LocalTime get Day^,DayOfWeek /Format:List') do set %%x >NUL
for /f "skip=2" %%x in ('wmic Path Win32_LocalTime get Day^,DayOfWeek /Format:List') do set %%x >NUL


echo %Day% %DayOfWeek%
rem echo %Day% %DayOfWeek%


rem Sovrascrivi per prove
rem Sovrascrivi per prove
set Day=1
rem set Day=1
set DayOfWeek=1
rem set DayOfWeek=1


echo %Day% %DayOfWeek%
rem echo %Day% %DayOfWeek%


set BCK=ORD
set BCK=ORD

Versione delle 16:57, 12 set 2014

Rman script windows

@echo off

for /f "skip=2" %%x in ('wmic Path Win32_LocalTime get Day^,DayOfWeek /Format:List') do set %%x >NUL

rem echo %Day% %DayOfWeek%

rem Sovrascrivi per prove
rem set Day=1
rem set DayOfWeek=1

rem echo %Day% %DayOfWeek%

set BCK=ORD
if %DayOfWeek% EQU 0 set BCK=LT180
if %DayOfWeek% EQU 0 if %Day% GTR 7 set BCK=LT35

echo %BCK%
(
echo spool log to %BCK%.log
echo list expired backup;
echo spool log off;
) > %BCK%.rman

set ORACLE_SID=CADE
set NLS_LANG=ITALIAN_ITALY.WE8MSWIN1252
set NLS_DATE_FORMAT=DD-MM-YYYY HH24:MI:SS

rman target / nocatalog cmdfile %BCK%.rman