rman
delete(all) input 在备份之后删除 输入文件
一关于logfile
SQL> show parameter log_archive_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest string
log_archive_dest_1 string location=e:\archivelog
log_archive_dest_10 string
log_archive_dest_2 string location=e:\archivelog2
log_archive_dest_3 string
e:\archivelog 的目录
2009-09-16 14:26
C:\>dir e:\archivelog2
驱动器 E 中的卷没有标签。
卷的序列号是 08BE-AE6F
e:\archivelog2 的目录
2009-09-16 14:26
MAN> backup archivelog all delete input;
只会删除第一个归档位置的archivelog******************
e:\archivelog 的目录
2009-09-16 14:27
C:\>dir e:\archivelog2
驱动器 E 中的卷没有标签。
卷的序列号是 08BE-AE6F
e:\archivelog2 的目录
2009-09-16 14:27
DELETE ALL INPUT 情况
e:\archivelog 的目录
2009-09-16 15:19
C:\>dir e:\archivelog2
驱动器 E 中的卷没有标签。
卷的序列号是 08BE-AE6F
e:\archivelog2 的目录
2009-09-16 15:19
RMAN> backup archivelog all delete all input;
删除所有archivelog_dest的 archivelog*******************
启动 backup 于 16-9月 -09
当前日志已存档
使用通道 ORA_DISK_1
e:\archivelog2 的目录
2009-09-16 15:21
C:\>dir e:\archivelog
驱动器 E 中的卷没有标签。
卷的序列号是 08BE-AE6F
e:\archivelog 的目录
2009-09-16 15:21
二 关于备份备份集
RMAN> list backup;
~~~~~~~~~~~~~~~~~~~~~没有备份集
RMAN> backup copies 2 datafile 6 format='d:\backup\%U';2~~~个副本
C:\>dir d:\backup\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup 的目录
2009-09-16 15:06
RMAN> list backup of datafile 6;
备份集列表
===================
BS 关键字 类型 LV 大小
------- ---- -- ----------
92 Full 152.00K
备份集 92 中的数据文件列表
RMAN> backup backupset 92 delete input;
C:\>dir d:\backup\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup 的目录
2009-09-16 15:08
RMAN> backup copies 2 datafile 6 format='d:\backup\%U' ,'d:\backup1\%U';~~~~放到2个位置
C:\>dir d:\backup\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup 的目录
2009-09-16 15:12
C:\>dir d:\backup1\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup1 的目录
2009-09-16 15:12
备份集列表
===================
BS 关键字 类型 LV 大小 设备类型 经过时间 完成时间
------- ---- -- ---------- ----------- ------------ ----------
93 Full 152.00K DISK 00:00:00 16-9月 -09
RMAN> backup backupset 93 delete input;
C:\>dir d:\backup1\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup1 的目录
2009-09-16 15:15
C:\>dir d:\backup\
驱动器 D 中的卷没有标签。
卷的序列号是 8819-6935
d:\backup 的目录
2009-09-16 15:15
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12020513/viewspace-614800/ ,如需转载,请注明出处,否则将追究法律责任。