Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

0

好友

8

主题
1#
发表于 2015-7-3 14:41:23 | 查看: 2292| 回复: 1
DG  环境下,在主库,删除2015/6/26 之前的归档日志
  1. SQL> select * from v$$version;

  2. BANNER
  3. --------------------------------------------------------------------------------
  4. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  5. PL/SQL Release 11.2.0.1.0 - Production
  6. CORE    11.2.0.1.0      Production
  7. TNS for Linux: Version 11.2.0.1.0 - Production
  8. NLSRTL Version 11.2.0.1.0 - Production
复制代码
  1. SQL> select NAME,SEQUENCE#,RESETLOGS_TIME,FIRST_TIME,NEXT_TIME,ARCHIVED,APPLIED,DELETED,STATUS,COMPLETION_TIME from v$$ARCHIVED_LOG where SEQUENCE#='106166';

  2. NAME                  SEQUENCE# RESETLOGS_TIME      FIRST_TIME          NEXT_TIME           ARC APPLIED   DEL S COMPLETION_TIME
  3. -------------------- ---------- ------------------- ------------------- ------------------- --- --------- --- - -------------------
  4. 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
  5.                          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
复制代码

  1. RMAN> show all;

  2. RMAN configuration parameters for database with db_unique_name ERPBIDW2 are:
  3. CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
  4. CONFIGURE BACKUP OPTIMIZATION OFF; # default
  5. CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
  6. CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
  7. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
  8. CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
  9. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  10. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  11. CONFIGURE MAXSETSIZE TO UNLIMITED; # default
  12. CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
  13. CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
  14. CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
  15. CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
  16. CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0.2/dbs/snapcf_ERPBIDW2.f'; # default

  17. RMAN>
复制代码
  1. delete archivelog until sequence 113469;
复制代码
上面的语句,删除 113469 之前的全部归档,但是在操作系统下查看
  1. -rw-r----- 1 oracle oinstall    48640 May 11 17:31 1_105_879184664.dbf
  2. -rw-r----- 1 oracle oinstall     1024 May 11 17:30 1_104_879184664.dbf
  3. -rw-r----- 1 oracle oinstall    14848 May 11 17:23 1_103_879184664.dbf
  4. -rw-r----- 1 oracle oinstall    12800 May 11 17:23 1_102_879184664.dbf
  5. -rw-r----- 1 oracle oinstall  1912832 May 11 17:23 1_101_879184664.dbf
  6. -rw-r----- 1 oracle oinstall    51712 May 11 17:07 1_100_879184664.dbf
  7. -rw-r----- 1 oracle oinstall     1024 May 11 17:07 1_99_879184664.dbf
  8. -rw-r----- 1 oracle oinstall    13312 May 11 16:59 1_98_879184664.dbf
  9. -rw-r----- 1 oracle oinstall    13312 May 11 16:59 1_97_879184664.dbf
  10. -rw-r----- 1 oracle oinstall   825344 May 11 16:59 1_96_879184664.dbf
  11. -rw-r----- 1 oracle oinstall    81408 May 11 16:40 1_95_879184664.dbf
  12. -rw-r----- 1 oracle oinstall    64512 May 11 16:38 1_94_879184664.dbf
  13. -rw-r----- 1 oracle oinstall    44032 May 11 16:38 1_93_879184664.dbf
  14. -rw-r----- 1 oracle oinstall    63488 May 11 16:36 1_92_879184664.dbf
  15. -rw-r----- 1 oracle oinstall     9216 May 11 16:36 1_91_879184664.dbf
  16. -rw-r----- 1 oracle oinstall    65024 May 11 16:36 1_90_879184664.dbf
  17. -rw-r----- 1 oracle oinstall   189952 May 11 16:35 1_89_879184664.dbf
  18. -rw-r----- 1 oracle oinstall    44544 May 11 16:30 1_88_879184664.dbf
  19. -rw-r----- 1 oracle oinstall    63488 May 11 16:28 1_87_879184664.dbf
  20. -rw-r----- 1 oracle oinstall   199168 May 11 16:28 1_86_879184664.dbf
  21. -rw-r----- 1 oracle oinstall  1850368 May 11 16:17 1_85_879184664.dbf
  22. -rw-r----- 1 oracle oinstall   336384 May 11 16:07 1_84_879184664.dbf
  23. -rw-r----- 1 oracle oinstall    63488 May 11 15:57 1_83_879184664.dbf
  24. -rw-r----- 1 oracle oinstall  2573312 May 11 15:57 1_82_879184664.dbf
  25. -rw-r----- 1 oracle oinstall    48640 May 11 15:37 1_81_879184664.dbf
  26. -rw-r----- 1 oracle oinstall 22585856 May 11 15:37 1_80_879184664.dbf
复制代码
求解答?
2#
发表于 2015-7-3 14:43:49
只能是 在 操作系统 rm 删除 ,之后再 crosscheck archivelog all  ??

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-20 18:59 , Processed in 0.046149 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569