91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

windows 全量+增量備份腳本bat

發布時間:2020-08-10 11:21:21 來源:ITPUB博客 閱讀:279 作者:abin1703 欄目:關系型數據庫

@set ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1

@rem echo %ORACLE_HOME%

@set ORACLE_SID=orcl

@rem echo %ORACLE_SID%

@set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

@rem echo %NLS_LANG%

@set PATH=%ORACLE_HOME%\bin

@rem echo %PATH%

@set RMAN=%ORACLE_HOME%\BIN\rman.exe

@rem *******************獲取系統時間,截取yyyy-dd-mm ******************************

@rem*******************如果獲取的時間不對,請修改系統時間格式 yyyy-mm-dd dddd*****************************

@rem MONTH=%date:~0,10%

@set MONTH=%date:~0,4%%date:~5,2%%date:~8,2%

@set BACKUP_DIR=C:\%MONTH%

@IF NOT EXIST %BACKUP_DIR% (

mkdir %BACKUP_DIR%

)

@set RQ=%date:~0,4%%date:~5,2%%date:~8,2%

@set RMAN_LOG_FILE=%BACKUP_DIR%\rman_%RQ%.log

@rem echo %RMAN_LOG_FILE%

@rem *******************連接rman 根據實際情況修改******************************

@rem TARGET_CONNECT_STR=/

@set DAY=%date:~12,13%

@REM 0級備份就是進行全庫備份,level 1就是備份level 0后改變的數據,level 2就是備份level 1或level 0后改變的數據

@REM 如果前一個備份是level 1那么就備份這之后修改的數據,如果前個備份是level 0那么就備份level 0后的數據

@echo ==== started on %DATE% ====  >>%RMAN_LOG_FILE%

@set BACKUPTYPE=incremental level 2 database

@set NAME=L2_%%d_%%T_%%s_%%U

@if "%DAY%" EQU "一" (

set BACKUPTYPE=incremental level 2 database

set NAME=inc2_%%d_%%T_%%s_%%U

set ARCHIVE=arch3_%%d_%%T_%%U

)

@if "%DAY%" EQU "二" (

set BACKUPTYPE=incremental level 2 database

set NAME=inc2_%%d_%%T_%%s_%%U

set ARCHIVE=arch3_%%d_%%T_%%U

)

@if "%DAY%" EQU "三" (

set BACKUPTYPE=incremental level 1 database

set NAME=inc1_%%d_%%T_%%s_%%U

set ARCHIVE=arch2_%%d_%%T_%%U

)

@if "%DAY%" EQU "四" (

set BACKUPTYPE=incremental level 2 database

set NAME=inc2_%%d_%%T_%%s_%%U

set ARCHIVE=arch3_%%d_%%T_%%U

)

@if "%DAY%" EQU "五" (

set BACKUPTYPE=incremental level 2 database

set NAME=inc2_%%d_%%T_%%s_%%U

set ARCHIVE=arch3_%%d_%%T_%%U

)

@if "%DAY%" EQU "六" (

set BACKUPTYPE=incremental level 2 database

set NAME=inc2_%%d_%%T_%%s_%%U

set ARCHIVE=arch3_%%d_%%T_%%U

)

@if "%DAY%" EQU "日" (

set BACKUPTYPE=incremental level 0 database

set NAME=full0_%%d_%%T_%%s_%%U

set ARCHIVE=arch0_%%d_%%T_%%U

)

@REM backup format 'e:\backup\dbL0_%d_%T.arc' archivelog all delete input;

@rem echo backup %BACKUPTYPE% include current controlfile;

@rem echo sql "ALTER SYSTEM ARCHIVE LOG CURRENT";

@(

echo run {

echo allocate channel Channel1 type disk format '%BACKUP_DIR%\%NAME%';

echo allocate channel Channel2 type disk format '%BACKUP_DIR%\%NAME%';

echo allocate channel Channel3 type disk format '%BACKUP_DIR%\%NAME%';

echo allocate channel Channel4 type disk format '%BACKUP_DIR%\%NAME%';

echo backup section size 4G filesperset 1 %BACKUPTYPE% include current controlfile;

echo sql "ALTER SYSTEM ARCHIVE LOG CURRENT";

echo backup format '%BACKUP_DIR%\%ARCHIVE%' archivelog all delete input;

echo backup current controlfile format '%BACKUP_DIR%\ctl_%d_%T_%s_%%U';

echo }

) | %RMAN% target / nocatalog msglog '%RMAN_LOG_FILE%'

@set ERRLEVEL=%ERRORLEVEL%

@if %ERRLEVEL% NEQ 0 @goto err

@set LOGMSG="備份成功!!"

@goto end

:err

@set LOGMSG="備份失敗,請重試!!!"

:end

@echo # >> %RMAN_LOG_FILE% 

@echo ==== %LOGMSG% on %DATE% ==== >> %RMAN_LOG_FILE%

@endlocal

@REM End of Main Program -----------------------------------------------------

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

岳阳县| 沁源县| 公主岭市| 商洛市| 房山区| 靖江市| 五常市| 柏乡县| 东源县| 修武县| 建湖县| 湟中县| 汕头市| 清河县| 天门市| 玉溪市| 顺义区| 乌兰浩特市| 丹寨县| 灵台县| 永宁县| 手游| 伊宁市| 武强县| 闽侯县| 防城港市| 道孚县| 乐亭县| 通道| 读书| 凯里市| 丹江口市| 南平市| 凌源市| 图片| 名山县| 鹰潭市| 四子王旗| 冕宁县| 胶州市| 安宁市|