2.释放空间
--实验过程
--通过RMAN查看现有归档
RMAN> list copy; --通过RMAN查看现有归档
specification does not match any control file copy in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - --------------- ---------- ---------------
1 19 A 10-JAN-17 4300404862 10-JAN-17
Name: /u01/app/oracle/oradata/PROD2/tt.dbf
Tag: TAG20170110T160603
List of Archived Log Copies for database with db_unique_name PROD1
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - ---------
1 1 5 A 10-DEC-16
Name: /u01/app/oracle/logbak/1_5_929997369.dbf
2 1 5 A 10-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_929997369.dbf
3 1 6 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_6_929997369.dbf
4 1 6 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_929997369.dbf
5 1 7 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_7_929997369.dbf
6 1 7 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_929997369.dbf
7 1 8 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_8_929997369.dbf
8 1 8 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_929997369.dbf
9 1 9 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_9_929997369.dbf
10 1 9 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_929997369.dbf
11 1 10 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_10_929997369.dbf
12 1 10 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_929997369.dbf
13 1 11 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_11_929997369.dbf
14 1 11 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_929997369.dbf
16 1 12 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_929997369.dbf
15 1 12 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_12_929997369.dbf
25 1 13 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_13_929997369.dbf
26 1 13 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
17 1 13 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_13_929997369.dbf
18 1 13 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
23 1 14 A 26-DEC-16
Name: /u01/app/oracle/logbak/1_14_929997369.dbf
24 1 14 A 26-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
20 1 14 A 26-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
19 1 14 A 26-DEC-16
Name: /u01/app/oracle/logbak/1_14_929997369.dbf
22 1 15 A 29-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_929997369.dbf
21 1 15 A 29-DEC-16
Name: /u01/app/oracle/logbak/1_15_929997369.dbf
27 1 1 A 29-DEC-16
Name: /u01/app/oracle/logbak/1_1_931902281.dbf
28 1 1 A 29-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_1_931902281.dbf
29 1 2 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_2_931902281.dbf
30 1 2 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_2_931902281.dbf
31 1 3 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_3_931902281.dbf
32 1 3 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_3_931902281.dbf
33 1 4 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_4_931902281.dbf
34 1 4 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_4_931902281.dbf
35 1 5 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_5_931902281.dbf
36 1 5 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_931902281.dbf
37 1 6 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_6_931902281.dbf
38 1 6 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_931902281.dbf
39 1 7 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_7_931902281.dbf
40 1 7 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_931902281.dbf
41 1 8 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_8_931902281.dbf
42 1 8 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_931902281.dbf
43 1 9 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_9_931902281.dbf
44 1 9 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_931902281.dbf
45 1 10 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_10_931902281.dbf
46 1 10 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_931902281.dbf
47 1 11 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_11_931902281.dbf
48 1 11 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_931902281.dbf
49 1 12 A 06-JAN-17
Name: /u01/app/oracle/logbak/1_12_931902281.dbf
50 1 12 A 06-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_931902281.dbf
51 1 13 A 06-JAN-17
Name: /u01/app/oracle/logbak/1_13_931902281.dbf
52 1 13 A 06-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_931902281.dbf
53 1 14 A 10-JAN-17
Name: /u01/app/oracle/logbak/1_14_931902281.dbf
54 1 14 A 10-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_931902281.dbf
55 1 15 A 14-JAN-17
Name: /u01/app/oracle/logbak/1_15_931902281.dbf
56 1 15 A 14-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_931902281.dbf
57 1 16 A 14-JAN-17
Name: /u01/app/oracle/logbak/1_16_931902281.dbf
58 1 16 A 14-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_16_931902281.dbf
59 1 17 A 23-JAN-17
Name: /u01/app/oracle/logbak/1_17_931902281.dbf
60 1 17 A 23-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_17_931902281.dbf
--拷贝现有归档日志到备份磁盘
--删除现有归档
RMAN> delete copy;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=45 device type=DISK
specification does not match any control file copy in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - --------------- ---------- ---------------
1 19 A 10-JAN-17 4300404862 10-JAN-17
Name: /u01/app/oracle/oradata/PROD2/tt.dbf
Tag: TAG20170110T160603
List of Archived Log Copies for database with db_unique_name PROD1
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - ---------
1 1 5 A 10-DEC-16
Name: /u01/app/oracle/logbak/1_5_929997369.dbf
2 1 5 A 10-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_929997369.dbf
3 1 6 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_6_929997369.dbf
4 1 6 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_929997369.dbf
5 1 7 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_7_929997369.dbf
6 1 7 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_929997369.dbf
7 1 8 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_8_929997369.dbf
8 1 8 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_929997369.dbf
9 1 9 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_9_929997369.dbf
10 1 9 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_929997369.dbf
11 1 10 A 11-DEC-16
Name: /u01/app/oracle/logbak/1_10_929997369.dbf
12 1 10 A 11-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_929997369.dbf
13 1 11 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_11_929997369.dbf
14 1 11 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_929997369.dbf
16 1 12 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_929997369.dbf
15 1 12 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_12_929997369.dbf
25 1 13 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_13_929997369.dbf
26 1 13 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
17 1 13 A 25-DEC-16
Name: /u01/app/oracle/logbak/1_13_929997369.dbf
18 1 13 A 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
23 1 14 A 26-DEC-16
Name: /u01/app/oracle/logbak/1_14_929997369.dbf
24 1 14 A 26-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
20 1 14 A 26-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
19 1 14 A 26-DEC-16
Name: /u01/app/oracle/logbak/1_14_929997369.dbf
22 1 15 A 29-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_929997369.dbf
21 1 15 A 29-DEC-16
Name: /u01/app/oracle/logbak/1_15_929997369.dbf
27 1 1 A 29-DEC-16
Name: /u01/app/oracle/logbak/1_1_931902281.dbf
28 1 1 A 29-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_1_931902281.dbf
29 1 2 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_2_931902281.dbf
30 1 2 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_2_931902281.dbf
31 1 3 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_3_931902281.dbf
32 1 3 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_3_931902281.dbf
33 1 4 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_4_931902281.dbf
34 1 4 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_4_931902281.dbf
35 1 5 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_5_931902281.dbf
36 1 5 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_931902281.dbf
37 1 6 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_6_931902281.dbf
38 1 6 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_931902281.dbf
39 1 7 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_7_931902281.dbf
40 1 7 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_931902281.dbf
41 1 8 A 30-DEC-16
Name: /u01/app/oracle/logbak/1_8_931902281.dbf
42 1 8 A 30-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_931902281.dbf
43 1 9 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_9_931902281.dbf
44 1 9 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_931902281.dbf
45 1 10 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_10_931902281.dbf
46 1 10 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_931902281.dbf
47 1 11 A 01-JAN-17
Name: /u01/app/oracle/logbak/1_11_931902281.dbf
48 1 11 A 01-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_931902281.dbf
49 1 12 A 06-JAN-17
Name: /u01/app/oracle/logbak/1_12_931902281.dbf
50 1 12 A 06-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_931902281.dbf
51 1 13 A 06-JAN-17
Name: /u01/app/oracle/logbak/1_13_931902281.dbf
52 1 13 A 06-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_931902281.dbf
53 1 14 A 10-JAN-17
Name: /u01/app/oracle/logbak/1_14_931902281.dbf
54 1 14 A 10-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_931902281.dbf
55 1 15 A 14-JAN-17
Name: /u01/app/oracle/logbak/1_15_931902281.dbf
56 1 15 A 14-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_931902281.dbf
57 1 16 A 14-JAN-17
Name: /u01/app/oracle/logbak/1_16_931902281.dbf
58 1 16 A 14-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_16_931902281.dbf
59 1 17 A 23-JAN-17
Name: /u01/app/oracle/logbak/1_17_931902281.dbf
60 1 17 A 23-JAN-17
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_17_931902281.dbf
Do you really want to delete the above objects (enter YES or NO)? y
deleted datafile copy
datafile copy file name=/u01/app/oracle/oradata/PROD2/tt.dbf RECID=1 STAMP=932918765
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_5_929997369.dbf RECID=1 STAMP=930339755
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_929997369.dbf RECID=2 STAMP=930339755
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_6_929997369.dbf RECID=3 STAMP=930339757
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_929997369.dbf RECID=4 STAMP=930339757
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_7_929997369.dbf RECID=5 STAMP=930339759
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_929997369.dbf RECID=6 STAMP=930339759
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_8_929997369.dbf RECID=7 STAMP=930343374
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_929997369.dbf RECID=8 STAMP=930343374
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_9_929997369.dbf RECID=9 STAMP=930352710
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_929997369.dbf RECID=10 STAMP=930352710
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_10_929997369.dbf RECID=11 STAMP=931530909
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_929997369.dbf RECID=12 STAMP=931530909
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_11_929997369.dbf RECID=13 STAMP=931532791
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_929997369.dbf RECID=14 STAMP=931532791
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_929997369.dbf RECID=16 STAMP=931534841
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_12_929997369.dbf RECID=15 STAMP=931534841
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_13_929997369.dbf RECID=25 STAMP=931902291
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf RECID=26 STAMP=931902291
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_14_929997369.dbf RECID=23 STAMP=931902289
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf RECID=24 STAMP=931902289
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_929997369.dbf RECID=22 STAMP=931902284
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_15_929997369.dbf RECID=21 STAMP=931902284
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_1_931902281.dbf RECID=27 STAMP=931979122
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_1_931902281.dbf RECID=28 STAMP=931979122
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_2_931902281.dbf RECID=29 STAMP=931984157
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_2_931902281.dbf RECID=30 STAMP=931984157
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_3_931902281.dbf RECID=31 STAMP=931985038
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_3_931902281.dbf RECID=32 STAMP=931985038
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_4_931902281.dbf RECID=33 STAMP=931985366
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_4_931902281.dbf RECID=34 STAMP=931985366
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_5_931902281.dbf RECID=35 STAMP=931985981
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_5_931902281.dbf RECID=36 STAMP=931985981
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_6_931902281.dbf RECID=37 STAMP=931986427
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_6_931902281.dbf RECID=38 STAMP=931986427
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_7_931902281.dbf RECID=39 STAMP=931986749
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_7_931902281.dbf RECID=40 STAMP=931986749
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_8_931902281.dbf RECID=41 STAMP=932138618
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_8_931902281.dbf RECID=42 STAMP=932138618
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_9_931902281.dbf RECID=43 STAMP=932140939
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_9_931902281.dbf RECID=44 STAMP=932140939
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_10_931902281.dbf RECID=45 STAMP=932142268
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_10_931902281.dbf RECID=46 STAMP=932142268
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_11_931902281.dbf RECID=47 STAMP=932574099
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_11_931902281.dbf RECID=48 STAMP=932574099
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_12_931902281.dbf RECID=49 STAMP=932576033
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_12_931902281.dbf RECID=50 STAMP=932576033
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_13_931902281.dbf RECID=51 STAMP=932917400
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_931902281.dbf RECID=52 STAMP=932917400
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_14_931902281.dbf RECID=53 STAMP=933278875
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_931902281.dbf RECID=54 STAMP=933278875
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_15_931902281.dbf RECID=55 STAMP=933280727
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_15_931902281.dbf RECID=56 STAMP=933280727
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_16_931902281.dbf RECID=57 STAMP=934054890
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_16_931902281.dbf RECID=58 STAMP=934054890
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_17_931902281.dbf RECID=59 STAMP=934142283
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_17_931902281.dbf RECID=60 STAMP=934142283
Deleted 57 objects
RMAN-06207: WARNING: 4 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Archivelog /u01/app/oracle/logbak/1_13_929997369.dbf
RMAN-06214: Archivelog /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
RMAN-06214: Archivelog /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
RMAN-06214: Archivelog /u01/app/oracle/logbak/1_14_929997369.dbf
--发现有部分无法删除,使用crosscheck
RMAN> crosscheck copy;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=45 device type=DISK
specification does not match any datafile copy in the repository
specification does not match any control file copy in the repository
validation failed for archived log
archived log file name=/u01/app/oracle/logbak/1_13_929997369.dbf RECID=17 STAMP=931640548
validation failed for archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf RECID=18 STAMP=931640548
validation failed for archived log
archived log file name=/u01/app/oracle/logbak/1_14_929997369.dbf RECID=19 STAMP=931898433
validation failed for archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf RECID=20 STAMP=931898433
Crosschecked 4 objects
--再次删除可完全删除
RMAN> delete copy;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=45 device type=DISK
specification does not match any datafile copy in the repository
specification does not match any control file copy in the repository
List of Archived Log Copies for database with db_unique_name PROD1
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - ---------
17 1 13 X 25-DEC-16
Name: /u01/app/oracle/logbak/1_13_929997369.dbf
18 1 13 X 25-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf
19 1 14 X 26-DEC-16
Name: /u01/app/oracle/logbak/1_14_929997369.dbf
20 1 14 X 26-DEC-16
Name: /u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_13_929997369.dbf RECID=17 STAMP=931640548
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_13_929997369.dbf RECID=18 STAMP=931640548
deleted archived log
archived log file name=/u01/app/oracle/logbak/1_14_929997369.dbf RECID=19 STAMP=931898433
deleted archived log
archived log file name=/u01/app/oracle/fast_recovery_area/PROD1/archivelog/1_14_929997369.dbf RECID=20 STAMP=931898433
Deleted 4 objects
--查看空间,释放了部分空间
[oracle@ocm1 ~]$ du -sh /u01/app/oracle/fast_recovery_area/PROD1/archivelog/
2.0G /u01/app/oracle/fast_recovery_area/PROD1/archivelog/
--删除后需要进行全备份
--backup database