diff --git a/BackupOracleTools.cmd b/BackupOracleTools.cmd index b946bbd..6f789e2 100644 --- a/BackupOracleTools.cmd +++ b/BackupOracleTools.cmd @@ -1,6 +1,6 @@ ::Oracle备份脚本 ::@author FB -::@version 1.12 +::@version 1.13 @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION @@ -26,8 +26,10 @@ IF NOT EXIST "%BACKUP_PATH%" ( ) ::检查参数 -IF /I "_%~1" == "_DATABASE" (SET "BACKUP_OP=DATABASE" & GOTO :START) -IF /I "_%~1" == "_ARCHIVELOG" (SET "BACKUP_OP=ARCHIVELOG" & GOTO :START) +IF /I "_%~1" == "_DATABASE" (SET "BACKUP_OP=DATABASE" & GOTO :START) +IF /I "_%~1" == "_ARCHIVELOG" (SET "BACKUP_OP=ARCHIVELOG" & GOTO :START) +IF /I "_%~1" == "_CONTROLFILE" (SET "BACKUP_OP=CONTROLFILE" & GOTO :START) +IF /I "_%~1" == "_SPFILE" (SET "BACKUP_OP=SPFILE" & GOTO :START) ::参数错误 ECHO. ECHO ================================================ @@ -137,7 +139,7 @@ IF "_%RETURN%" == "_1" ( ECHO. ) ::执行结束 -GOTO :EOF +GOTO :END ::生成当前时间 :: 参数1: 前缀文字 diff --git a/History.txt b/History.txt index 61b9479..fc52029 100644 --- a/History.txt +++ b/History.txt @@ -6,20 +6,22 @@ 娣诲姞鍚屾鍒拌繙绋嬭矾寰勫姛鑳姐 1.04: 鍙栨秷鍚屾鍒拌繙绋嬭矾寰勬椂鐨勬棩蹇椼 -1.05锛 +1.05: 娣诲姞杩滅▼澶囦唤璺緞妫鏌ャ 1.06: 鍒嗙閰嶇疆鏂囦欢涓衡滄壒澶勭悊鏂囦欢鍚.cfg鈥濄 -1.07 +1.07: 娣诲姞閫鍑虹爜鍔熻兘銆傛墽琛屾垚鍔0锛屾墽琛屽け璐1銆 -1.08 +1.08: 淇璇诲彇閰嶇疆鏂囦欢鍓嶏紝閰嶇疆鏂囦欢鐩稿叧鐜鍙橀噺鏈竻鐞嗛棶棰樸 -1.09 +1.09: 娣诲姞寮哄埗鍘嬬缉閫夐」锛岄檺鍒跺悓姝ュ埌杩滅閲嶈瘯10娆° -1.10 +1.10: 鍘婚櫎鍚屾鍒拌繙绋嬬洰褰曞姛鑳姐 -1.11 +1.11: 鍏ㄥ簱澶囦唤寮哄埗鍖呭惈鎺у埗鏂囦欢銆 -1.12 +1.12: 娣诲姞澶囦唤ControlFile鍜孲PFile鍔熻兘銆 +1.13: + BUGFIX.瑙e喅鎴愬姛鎵ц杩斿洖ERRORLEVEL==1闂銆 \ No newline at end of file diff --git a/Readme.txt b/Readme.txt index 824d17c..3cfb883 100644 --- a/Readme.txt +++ b/Readme.txt @@ -9,11 +9,13 @@ ====================================================== # 需要设置“备份保留策略”, 推荐“恢复窗口的保留策略” -configure retention policy to recovery window of 7 days; +CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS; # 设置备份分片 -configure channel device type disk maxpiecesize 10G; +CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 10G; # 设置并行通道 -configure device type disk parallelism 1; +CONFIGURE DEVICE TYPE DISK PARALLELISM 1; +# 设置压缩模式 +CONFIGURE COMPRESSION ALGORITHM 'LOW'; ====================================================== #设置归档模式