CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
启用归档删除策略:
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
新的 RMAN 配置参数:
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
已成功存储新的 RMAN 配置参数
配置归档删除策略,只要求归档备份一次到磁盘,之后归档就允许被删除。
RMAN> backup archivelog all delete all input;
从位于 02-2月 -18 的 backup 开始
当前日志已存档
使用通道 ORA_DISK_1
通道 ORA_DISK_1: 正在启动归档日志备份集
通道 ORA_DISK_1: 正在指定备份集内的归档日志
输入归档日志线程 = 1 序列 = 1 RECID=86 STAMP=966098143
输入归档日志线程 = 1 序列 = 12 RECID=97 STAMP=966181095
输入归档日志线程 = 1 序列 = 13 RECID=98 STAMP=966204231
输入归档日志线程 = 1 序列 = 14 RECID=99 STAMP=966214774
输入归档日志线程 = 1 序列 = 15 RECID=100 STAMP=966249490
输入归档日志线程 = 1 序列 = 16 RECID=101 STAMP=966290451
输入归档日志线程 = 1 序列 = 17 RECID=102 STAMP=966301443
输入归档日志线程 = 1 序列 = 18 RECID=103 STAMP=966681162
输入归档日志线程 = 1 序列 = 19 RECID=104 STAMP=966682974
输入归档日志线程 = 1 序列 = 20 RECID=105 STAMP=966693752
输入归档日志线程 = 1 序列 = 21 RECID=106 STAMP=966722515
输入归档日志线程 = 1 序列 = 22 RECID=107 STAMP=966759560
输入归档日志线程 = 1 序列 = 23 RECID=111 STAMP=966778358
通道 ORA_DISK_1: 正于 02-2月 -18 启动段 1
通道 ORA_DISK_1: 完成了于 02-2月 -18 启动段 1
片段句柄 = E:\RECOVERYFLASH\NEWTEST\BACKUPSET\2018_02_02\O1_MF_ANNNN_TAG20180202T103836F77MSF62.BKP 标记 = TAG20180202T103836 注释 = NONE
通道 ORA_DISK_1: 备份集完成, 用时: 00:05:06
通道 ORA_DISK_1: 正在删除归档日志
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000001_0966075864.0001 RECID=86 STAMP=966098143
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000012_0966075864.0001 RECID=97 STAMP=966181095
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000013_0966075864.0001 RECID=98 STAMP=966204231
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000014_0966075864.0001 RECID=99 STAMP=966214774
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000015_0966075864.0001 RECID=100 STAMP=966249490
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000016_0966075864.0001 RECID=101 STAMP=966290451
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000017_0966075864.0001 RECID=102 STAMP=966301443
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000018_0966075864.0001 RECID=103 STAMP=966681162
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000019_0966075864.0001 RECID=104 STAMP=966682974
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000020_0966075864.0001 RECID=105 STAMP=966693752
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000021_0966075864.0001 RECID=106 STAMP=966722515
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000022_0966075864.0001 RECID=107 STAMP=966759560
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000023_0966075864.0001 RECID=111 STAMP=966778358
通道 ORA_DISK_1: 正在启动归档日志备份集
通道 ORA_DISK_1: 正在指定备份集内的归档日志
输入归档日志线程 = 1 序列 = 1 RECID=119 STAMP=966963208
输入归档日志线程 = 1 序列 = 2 RECID=120 STAMP=966963209
输入归档日志线程 = 1 序列 = 3 RECID=121 STAMP=966963211
输入归档日志线程 = 1 序列 = 4 RECID=122 STAMP=966963469
输入归档日志线程 = 1 序列 = 5 RECID=123 STAMP=966963470
输入归档日志线程 = 1 序列 = 6 RECID=124 STAMP=966963473
输入归档日志线程 = 1 序列 = 7 RECID=125 STAMP=966964031
输入归档日志线程 = 1 序列 = 8 RECID=126 STAMP=966964599
输入归档日志线程 = 1 序列 = 9 RECID=127 STAMP=966981651
输入归档日志线程 = 1 序列 = 10 RECID=128 STAMP=966991659
输入归档日志线程 = 1 序列 = 11 RECID=129 STAMP=967022631
输入归档日志线程 = 1 序列 = 12 RECID=130 STAMP=967022631
输入归档日志线程 = 1 序列 = 13 RECID=131 STAMP=967023107
输入归档日志线程 = 1 序列 = 14 RECID=132 STAMP=967023648
通道 ORA_DISK_1: 正于 02-2月 -18 启动段 1
通道 ORA_DISK_1: 完成了于 02-2月 -18 启动段 1
片段句柄 = E:\RECOVERYFLASH\NEWTEST\BACKUPSET\2018_02_02\O1_MF_ANNNN_TAG20180202T103836F77N3535.BKP 标记 = TAG20180202T103836 注释 = NONE
通道 ORA_DISK_1: 备份集完成, 用时: 00:01:17
通道 ORA_DISK_1: 正在启动归档日志备份集
通道 ORA_DISK_1: 正在指定备份集内的归档日志
输入归档日志线程 = 1 序列 = 1 RECID=112 STAMP=966778394
输入归档日志线程 = 1 序列 = 2 RECID=113 STAMP=966778395
输入归档日志线程 = 1 序列 = 3 RECID=114 STAMP=966778395
通道 ORA_DISK_1: 正于 02-2月 -18 启动段 1
通道 ORA_DISK_1: 完成了于 02-2月 -18 启动段 1
片段句柄 = E:\RECOVERYFLASH\NEWTEST\BACKUPSET\2018_02_02\O1_MF_ANNNN_TAG20180202T103836F77N5KV5.BKP 标记 = TAG20180202T103836 注释 = NONE
通道 ORA_DISK_1: 备份集完成, 用时: 00:00:08
通道 ORA_DISK_1: 正在删除归档日志
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000001_0966768541.0001 RECID=112 STAMP=966778394
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000002_0966768541.0001 RECID=113 STAMP=966778395
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000003_0966768541.0001 RECID=114 STAMP=966778395
通道 ORA_DISK_1: 正在启动归档日志备份集
通道 ORA_DISK_1: 正在指定备份集内的归档日志
输入归档日志线程 = 1 序列 = 1 RECID=118 STAMP=966780967
通道 ORA_DISK_1: 正于 02-2月 -18 启动段 1
通道 ORA_DISK_1: 完成了于 02-2月 -18 启动段 1
片段句柄 = E:\RECOVERYFLASH\NEWTEST\BACKUPSET\2018_02_02\O1_MF_ANNNN_TAG20180202T103836F77N5TMR.BKP 标记 = TAG20180202T103836 注释 = NONE
通道 ORA_DISK_1: 备份集完成, 用时: 00:00:03
通道 ORA_DISK_1: 正在删除归档日志
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000001_0966778394.0001 RECID=118 STAMP=966780967
通道 ORA_DISK_1: 正在删除归档日志
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000001_0966780966.0001 RECID=119 STAMP=966963208
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000002_0966780966.0001 RECID=120 STAMP=966963209
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000003_0966780966.0001 RECID=121 STAMP=966963211
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000004_0966780966.0001 RECID=122 STAMP=966963469
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000005_0966780966.0001 RECID=123 STAMP=966963470
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000006_0966780966.0001 RECID=124 STAMP=966963473
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000007_0966780966.0001 RECID=125 STAMP=966964031
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000008_0966780966.0001 RECID=126 STAMP=966964599
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000009_0966780966.0001 RECID=127 STAMP=966981651
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000010_0966780966.0001 RECID=128 STAMP=966991659
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000011_0966780966.0001 RECID=129 STAMP=967022631
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000012_0966780966.0001 RECID=130 STAMP=967022631
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000013_0966780966.0001 RECID=131 STAMP=967023107
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000014_0966780966.0001 RECID=132 STAMP=967023648
通道 ORA_DISK_1: 正在启动归档日志备份集
通道 ORA_DISK_1: 正在指定备份集内的归档日志
输入归档日志线程 = 1 序列 = 1 RECID=133 STAMP=967025059
输入归档日志线程 = 1 序列 = 2 RECID=134 STAMP=967025061
输入归档日志线程 = 1 序列 = 3 RECID=135 STAMP=967027115
通道 ORA_DISK_1: 正于 02-2月 -18 启动段 1
通道 ORA_DISK_1: 完成了于 02-2月 -18 启动段 1
片段句柄 = E:\RECOVERYFLASH\NEWTEST\BACKUPSET\2018_02_02\O1_MF_ANNNN_TAG20180202T103836F77N5ZPR.BKP 标记 = TAG20180202T103836 注释 = NONE
通道 ORA_DISK_1: 备份集完成, 用时: 00:00:01
通道 ORA_DISK_1: 正在删除归档日志
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000001_0967023648.0001 RECID=133 STAMP=967025059
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000002_0967023648.0001 RECID=134 STAMP=967025061
归档日志文件名 = C:\APP\ADMINISTRATOR\VIRTUAL\ARCHIVELOG\ARC0000000003_0967023648.0001 RECID=135 STAMP=967027115
在 02-2月 -18 完成了 backup
从位于 02-2月 -18 的 Control File and SPFILE Autobackup 开始
片段句柄 = E:\CONTROLBACKUP\CF-C-1779551310-20180202-03 注释 = NONE
在 02-2月 -18 完成了 Control File and SPFILE Autobackup
再次查看归档日志文件,发现已经被删除。
原文地址:http://blog.51cto.com/shurk/2068037