删除归档日志
DG 环境下,在主库,删除2015/6/26 之前的归档日志SQL> select * from v$$version;BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionSQL> select NAME,SEQUENCE#,RESETLOGS_TIME,FIRST_TIME,NEXT_TIME,ARCHIVED,APPLIED,DELETED,STATUS,COMPLETION_TIME from v$$ARCHIVED_LOG where SEQUENCE#='106166';
NAME SEQUENCE# RESETLOGS_TIME FIRST_TIME NEXT_TIME ARC APPLIED DEL S COMPLETION_TIME
-------------------- ---------- ------------------- ------------------- ------------------- --- --------- --- - -------------------
ERPBIDW2 106166 2015-05-08 17:57:44 2015-06-24 00:00:03 2015-06-24 00:00:06 YES YES NO A 2015-06-24 00:00:06
106166 2015-05-08 17:57:44 2015-06-24 00:00:03 2015-06-24 00:00:06 YES NO YES D 2015-06-24 00:00:06
RMAN> show all;
RMAN configuration parameters for database with db_unique_name ERPBIDW2 are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0.2/dbs/snapcf_ERPBIDW2.f'; # default
RMAN>delete archivelog until sequence 113469;上面的语句,删除 113469 之前的全部归档,但是在操作系统下查看-rw-r----- 1 oracle oinstall 48640 May 11 17:31 1_105_879184664.dbf
-rw-r----- 1 oracle oinstall 1024 May 11 17:30 1_104_879184664.dbf
-rw-r----- 1 oracle oinstall 14848 May 11 17:23 1_103_879184664.dbf
-rw-r----- 1 oracle oinstall 12800 May 11 17:23 1_102_879184664.dbf
-rw-r----- 1 oracle oinstall 1912832 May 11 17:23 1_101_879184664.dbf
-rw-r----- 1 oracle oinstall 51712 May 11 17:07 1_100_879184664.dbf
-rw-r----- 1 oracle oinstall 1024 May 11 17:07 1_99_879184664.dbf
-rw-r----- 1 oracle oinstall 13312 May 11 16:59 1_98_879184664.dbf
-rw-r----- 1 oracle oinstall 13312 May 11 16:59 1_97_879184664.dbf
-rw-r----- 1 oracle oinstall 825344 May 11 16:59 1_96_879184664.dbf
-rw-r----- 1 oracle oinstall 81408 May 11 16:40 1_95_879184664.dbf
-rw-r----- 1 oracle oinstall 64512 May 11 16:38 1_94_879184664.dbf
-rw-r----- 1 oracle oinstall 44032 May 11 16:38 1_93_879184664.dbf
-rw-r----- 1 oracle oinstall 63488 May 11 16:36 1_92_879184664.dbf
-rw-r----- 1 oracle oinstall 9216 May 11 16:36 1_91_879184664.dbf
-rw-r----- 1 oracle oinstall 65024 May 11 16:36 1_90_879184664.dbf
-rw-r----- 1 oracle oinstall 189952 May 11 16:35 1_89_879184664.dbf
-rw-r----- 1 oracle oinstall 44544 May 11 16:30 1_88_879184664.dbf
-rw-r----- 1 oracle oinstall 63488 May 11 16:28 1_87_879184664.dbf
-rw-r----- 1 oracle oinstall 199168 May 11 16:28 1_86_879184664.dbf
-rw-r----- 1 oracle oinstall 1850368 May 11 16:17 1_85_879184664.dbf
-rw-r----- 1 oracle oinstall 336384 May 11 16:07 1_84_879184664.dbf
-rw-r----- 1 oracle oinstall 63488 May 11 15:57 1_83_879184664.dbf
-rw-r----- 1 oracle oinstall 2573312 May 11 15:57 1_82_879184664.dbf
-rw-r----- 1 oracle oinstall 48640 May 11 15:37 1_81_879184664.dbf
-rw-r----- 1 oracle oinstall 22585856 May 11 15:37 1_80_879184664.dbf求解答? 只能是 在 操作系统 rm 删除 ,之后再 crosscheck archivelog all ??
页:
[1]