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

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

0

积分

0

好友

8

主题
1#
发表于 2015-3-4 18:11:23 | 查看: 4409| 回复: 3
  1. SQL> select * from v$$version;

  2. BANNER
  3. --------------------------------------------------------------------------------
  4. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  5. PL/SQL Release 11.2.0.3.0 - Production
  6. CORE    11.2.0.3.0      Production
  7. TNS for Linux: Version 11.2.0.3.0 - Production
  8. NLSRTL Version 11.2.0.3.0 - Production

  9. SQL> archive log list
  10. Database log mode              Archive Mode
  11. Automatic archival             Enabled
  12. Archive destination            USE_DB_RECOVERY_FILE_DEST
  13. Oldest online log sequence     151687
  14. Next log sequence to archive   151688
  15. Current log sequence           151688
  16. SQL>
  17. SQL>
  18. SQL> show parameter db_recovery_file_dest     

  19. NAME                                 TYPE        VALUE
  20. ------------------------------------ ----------- ------------------------------
  21. db_recovery_file_dest                string      +ARCH
  22. db_recovery_file_dest_size           big integer 1500G

  23. RMAN> show all;

  24. using target database control file instead of recovery catalog
  25. RMAN configuration parameters for database with db_unique_name BIDB are:
  26. CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
  27. CONFIGURE BACKUP OPTIMIZATION ON;
  28. CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
  29. CONFIGURE CONTROLFILE AUTOBACKUP ON;
  30. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
  31. CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
  32. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  33. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  34. CONFIGURE MAXSETSIZE TO UNLIMITED; # default
  35. CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
  36. CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
  37. CONFIGURE COMPRESSION ALGORITHM 'MEDIUM' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
  38. CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
  39. CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+ARCH/snapcf_bidb.f';

  40. $$RMAN target / nocatalog msglog $$RMAN_LOG_FILE append <<EOF
  41. configure channel device type 'SBT_TAPE' clear;
  42. crosscheck archivelog all;
  43. crosscheck backup;
  44. delete noprompt expired archivelog all;
  45. delete noprompt obsolete device type disk;
  46. delete noprompt expired backup;
  47. run
  48. {
  49.   allocate channel c1 device type disk;
  50.   allocate channel c2 device type disk;
  51.   allocate channel c3 device type disk;
  52.   allocate channel c4 device type disk;
  53.   backup format='$$OUTPUT_HOME/data_%T_%d_ID%I_%N' tag='backup_level"$$BACKUP_LEVEL"' incremental level=$$BACKUP_LEVEL skip inaccessible filesperset 1 database;
  54.   backup archivelog all format='$$OUTPUT_HOME/arch_%T_%d_%U' tag='backup_archivelog' skip inaccessible filesperset 1 not backed up 1 times delete input;
  55.   backup current controlfile format='$$OUTPUT_HOME/ctrl_%T_%d' tag='backup_control';
  56.   backup spfile format='$$OUTPUT_HOME/spfl_%T_%d' tag='backup_spfile';
  57.   release channel c1;
  58.   release channel c2;
  59.   release channel c3;
  60.   release channel c4;
  61. }
  62. report obsolete;
  63. delete noprompt obsolete device type disk;
  64. crosscheck backup;
  65. delete noprompt expired backup;
  66. list backup summary;
  67. EOF

复制代码
2#
发表于 2015-3-4 18:11:50
  1. Starting backup at 03-MAR-15
  2. current log archived
  3. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150772.346.873251205 not found or out of sync with catalog
  4. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150772.346.873251205
  5. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275 not found or out of sync with catalog
  6. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275
  7. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417 not found or out of sync with catalog
  8. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417
  9. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150775.1699.873251537 not found or out of sync with catalog
  10. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150775.1699.873251537
  11. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150776.12462.873251629 not found or out of sync with catalog
  12. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150776.12462.873251629
  13. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150777.1813.873251727 not found or out of sync with catalog
  14. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150777.1813.873251727
  15. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150778.1716.873251851 not found or out of sync with catalog
  16. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150778.1716.873251851
  17. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150779.12430.873252225 not found or out of sync with catalog
  18. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150779.12430.873252225
  19. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150780.1809.873252417 not found or out of sync with catalog
  20. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150780.1809.873252417
  21. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150781.1778.873252685 not found or out of sync with catalog
  22. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150781.1778.873252685
  23. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150782.472.873252779 not found or out of sync with catalog
  24. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150782.472.873252779
  25. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150783.1630.873252849 not found or out of sync with catalog
  26. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150772.346.873251205
  27. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275 not found or out of sync with catalog
  28. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275
  29. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417 not found or out of sync with catalog
  30. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417
  31. channel c3: finished piece 1 at 03-MAR-15
  32. piece handle=/u01/rman-backup/20150302.level0/data_20150303_BIDB_ID761205897_DEVFOCUSBAK_BIPLATFORM tag=BACKUP_LEVEL0 comment=NONE
  33. channel c3: backup set complete, elapsed time: 00:00:19
  34. channel c1: finished piece 1 at 03-MAR-15
  35. piece handle=/u01/rman-backup/20150302.level0/data_20150303_BIDB_ID761205897_DEVFOCUSMOB_BIPLATFORM tag=BACKUP_LEVEL0 comment=NONE
  36. channel c1: backup set complete, elapsed time: 00:00:07
  37. Finished backup at 03-MAR-15

  38. Starting backup at 03-MAR-15
  39. current log archived
  40. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150772.346.873251205 not found or out of sync with catalog
  41. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150772.346.873251205
  42. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275 not found or out of sync with catalog
  43. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150773.1723.873251275
  44. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417 not found or out of sync with catalog
  45. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150774.901.873251417
  46. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150775.1699.873251537 not found or out of sync with catalog
  47. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150775.1699.873251537
  48. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150776.12462.873251629 not found or out of sync with catalog
  49. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150776.12462.873251629
  50. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150777.1813.873251727 not found or out of sync with catalog
  51. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150777.1813.873251727
  52. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150778.1716.873251851 not found or out of sync with catalog
  53. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150778.1716.873251851
  54. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150779.12430.873252225 not found or out of sync with catalog
  55. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150779.12430.873252225
  56. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150780.1809.873252417 not found or out of sync with catalog
  57. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150780.1809.873252417
  58. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150781.1778.873252685 not found or out of sync with catalog
  59. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150781.1778.873252685
  60. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150782.472.873252779 not found or out of sync with catalog
  61. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150782.472.873252779
  62. archived log +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150783.1630.873252849 not found or out of sync with catalog
  63. skipping inaccessible file +ARCH/bidb/archivelog/2015_03_02/thread_2_seq_150783.1630.873252849
  64. RMAN-06061: WARNING: skipping archived log compromises recoverability
  65. channel c1: starting archived log backup set
  66. RMAN-03009: failure of backup command on c1 channel at 03/03/2015 02:40:43
  67. ORA-19588: archived log RECID 301863 STAMP 873251307 is no longer valid
  68. channel c1 disabled, job failed on it will be run on another channel
  69. channel c2: starting archived log backup set
  70. RMAN-03009: failure of backup command on c2 channel at 03/03/2015 02:40:43
  71. ORA-19588: archived log RECID 301864 STAMP 873251353 is no longer valid
  72. channel c2 disabled, job failed on it will be run on another channel
  73. channel c3: starting archived log backup set
  74. RMAN-03009: failure of backup command on c3 channel at 03/03/2015 02:40:43
  75. ORA-19588: archived log RECID 301867 STAMP 873251596 is no longer valid
  76. channel c3 disabled, job failed on it will be run on another channel
  77. channel c4: starting archived log backup set
  78. released channel: c1
  79. released channel: c2
  80. released channel: c3
  81. released channel: c4
  82. RMAN-00571: ===========================================================
  83. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  84. RMAN-00571: ===========================================================
  85. RMAN-03009: failure of backup command on c4 channel at 03/03/2015 02:40:43
  86. ORA-19588: archived log RECID 301868 STAMP 873251636 is no longer valid

  87. RMAN> RMAN>
复制代码

回复 只看该作者 道具 举报

3#
发表于 2015-3-4 18:12:59
找不到日志?为何呢 ?

回复 只看该作者 道具 举报

4#
发表于 2015-3-6 12:29:52
你到对应的磁盘组目录下去找找看,那些文件到底在没在

回复 只看该作者 道具 举报

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

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

GMT+8, 2024-12-21 01:16 , Processed in 0.048053 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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