Skip to content

Commit

Permalink
1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerWordTree committed Dec 25, 2020
1 parent 0e26c32 commit ad8140a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
10 changes: 6 additions & 4 deletions BackupOracleTools.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
::Oracle备份脚本
::@author FB
::@version 1.12
::@version 1.13

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
Expand All @@ -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 ================================================
Expand Down Expand Up @@ -137,7 +139,7 @@ IF "_%RETURN%" == "_1" (
ECHO.
)
::执行结束
GOTO :EOF
GOTO :END

::生成当前时间
:: 参数1: 前缀文字
Expand Down
16 changes: 9 additions & 7 deletions History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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和SPFile功能。
1.13:
BUGFIX.解决成功执行返回ERRORLEVEL==1问题。

8 changes: 5 additions & 3 deletions Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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';
======================================================

#���ù鵵ģʽ
Expand Down

0 comments on commit ad8140a

Please sign in to comment.