飞道的博客

只需这10步,通过历史控制文件恢复数据库

349人阅读  评论(0)

1. 记录控制文件、数据文件头的scn


   
  1. SYS@enmo> select checkpoint_change # from v$database;
  2. CHECKPOINT_CHANGE #
  3. ------------------
  4. 18502624
  5. SYS@enmo> select name,checkpoint_change # from v$datafile;
  6. NAME CHECKPOINT_CHANGE #
  7. -------------------------------------------------- ------------------
  8. /u01/app /dbfile/enmo /system01.dbf 18502624
  9. /u01/app/dbfile/enmo/sysaux01.dbf 18502624
  10. /u01/app/dbfile/enmo/undotbs1.dbf 18502624
  11. /u01/app/dbfile/enmo/users01.dbf 18502624
  12. /u01/app/dbfile/enmo/chang01.dbf 18502624
  13. /u01/app/dbfile/enmo/lob_data01.dbf 18502624
  14. /u01/app/dbfile/enmo/oggdata.dbf 18502624
  15. /u01/app/dbfile/reccat.dbf 18502624
  16. 8 rows selected.
  17. SYS@enmo> select name,checkpoint_change # from v$datafile_header;
  18. NAME CHECKPOINT_CHANGE #
  19. -------------------------------------------------- ------------------
  20. /u01/app /dbfile/enmo /system01.dbf 18502624
  21. /u01/app/dbfile/enmo/sysaux01.dbf 18502624
  22. /u01/app/dbfile/enmo/undotbs1.dbf 18502624
  23. /u01/app/dbfile/enmo/users01.dbf 18502624
  24. /u01/app/dbfile/enmo/chang01.dbf 18502624
  25. /u01/app/dbfile/enmo/lob_data01.dbf 18502624
  26. /u01/app/dbfile/enmo/oggdata.dbf 18502624
  27. /u01/app/dbfile/reccat.dbf 18502624
  28. 8 rows selected.
  29. --正常运行时last_change #的值就是空
  30. SYS@enmo> select name,last_change # from v$datafile;
  31. NAME LAST_CHANGE #
  32. -------------------------------------------------- ------------
  33. /u01/app /dbfile/enmo /system01.dbf
  34. /u01/app/dbfile/enmo/sysaux01.dbf
  35. /u01/app/dbfile/enmo/undotbs1.dbf
  36. /u01/app/dbfile/enmo/users01.dbf
  37. /u01/app/dbfile/enmo/chang01.dbf
  38. /u01/app/dbfile/enmo/lob_data01.dbf
  39. /u01/app/dbfile/enmo/oggdata.dbf
  40. /u01/app/dbfile/reccat.dbf
  41. 8 rows selected.

2. 关闭数据库并移动控制文件


   
  1. SYS@enmo>shutdown immediate;
  2. Database closed.
  3. Database dismounted.
  4. ORACLE instance shut down.
  5. [oracle@ora :enmo enmo]$mv control01.ctl control01.ctl.bak
  6. [oracle@ora :enmo enmo]$mv control02.ctl control02.ctl.bak

3. 开启数据库到nomount;


   
  1. SYS@ enmo> startup nomount;
  2. ORACLE instance started.
  3. Total System Global Area 1048576000 bytes
  4. Fixed Size 8628640 bytes
  5. Variable Size 796919392 bytes
  6. Database Buffers 234881024 bytes
  7. Redo Buffers 8146944 bytes
  8. SYS@ enmo> select status from v$instance;
  9. STATUS
  10. ------------------------------------
  11. STARTED

4. 使用rman恢复历史备份的控制文件


   
  1. RMAN> restore controlfile from autobackup;
  2. Starting restore at 2020-03-13 12:51:11
  3. allocated channel: ORA_DISK_1
  4. channel ORA_DISK_1: SID=10 device type=DISK
  5. recovery area destination: /u01/app/fra
  6. database name (or database unique name) used for search: ENMO
  7. channel ORA_DISK_1: AUTOBACKUP /u01/app/fra/ENMO/autobackup/2020_03_10/o1_mf_s_1034681351_h6g2d7x3_.bkp found in the recovery area
  8. AUTOBACKUP search with format "%F" not attempted because DBID was not set
  9. channel ORA_DISK_1: restoring control file from AUTOBACKUP /u01/app/fra/ENMO/autobackup/2020_03_10/o1_mf_s_1034681351_h6g2d7x3_.bkp
  10. channel ORA_DISK_1: control file restore from AUTOBACKUP complete
  11. output file name=/u01/app/dbfile/enmo/control01.ctl
  12. output file name=/u01/app/dbfile/enmo/control02.ctl
  13. Finished restore at 2020-03-13 12:51:13

5. 更新数据库到mount


   
  1. SYS@ enmo> alter database mount;
  2. Database altered.

6. 查看控制文件和数据文件中的scn号


   
  1. --可以看到数据文件头中记录的scn( 18504054)大于控制文件中记录的scn( 18261588)
  2. SYS@enmo>set line 999
  3. SYS@enmo>col name for a5 0
  4. SYS@enmo> select status from v$instance;
  5. STATUS
  6. ------------------------------------
  7. MOUNTED
  8. SYS@enmo> select checkpoint_change # from v$database;
  9. CHECKPOINT_CHANGE #
  10. ------------------
  11. 18261588
  12. SYS@enmo> select name,checkpoint_change # from v$datafile;
  13. NAME CHECKPOINT_CHANGE #
  14. -------------------------------------------------- ------------------
  15. /u01/app /dbfile/enmo /system01.dbf 18261588
  16. /u01/app/dbfile/enmo/sysaux01.dbf 18261588
  17. /u01/app/dbfile/enmo/undotbs1.dbf 18261588
  18. /u01/app/dbfile/enmo/users01.dbf 18261588
  19. /u01/app/dbfile/enmo/chang01.dbf 18261588
  20. /u01/app/dbfile/enmo/lob_data01.dbf 18261588
  21. /u01/app/dbfile/enmo/oggdata.dbf 18261588
  22. /u01/app/dbfile/reccat.dbf 18261588
  23. 8 rows selected.
  24. SYS@enmo> select name,checkpoint_change # from v$datafile_header;
  25. NAME CHECKPOINT_CHANGE #
  26. -------------------------------------------------- ------------------
  27. /u01/app /dbfile/enmo /system01.dbf 18504054
  28. /u01/app/dbfile/enmo/sysaux01.dbf 18504054
  29. /u01/app/dbfile/enmo/undotbs1.dbf 18504054
  30. /u01/app/dbfile/enmo/users01.dbf 18504054
  31. /u01/app/dbfile/enmo/chang01.dbf 18504054
  32. /u01/app/dbfile/enmo/lob_data01.dbf 18504054
  33. /u01/app/dbfile/enmo/oggdata.dbf 18504054
  34. /u01/app/dbfile/reccat.dbf 18504054
  35. 8 rows selected.
  36. SYS@enmo> select name,last_change # from v$datafile;
  37. NAME LAST_CHANGE #
  38. -------------------------------------------------- ------------
  39. /u01/app /dbfile/enmo /system01.dbf
  40. /u01/app/dbfile/enmo/sysaux01.dbf
  41. /u01/app/dbfile/enmo/undotbs1.dbf
  42. /u01/app/dbfile/enmo/users01.dbf
  43. /u01/app/dbfile/enmo/chang01.dbf
  44. /u01/app/dbfile/enmo/lob_data01.dbf
  45. /u01/app/dbfile/enmo/oggdata.dbf
  46. /u01/app/dbfile/reccat.dbf
  47. 8 rows selected.

7. 更新数据库为open


   
  1. SYS@enmo>alter database open;
  2. alter database open
  3. *
  4. ERROR at line 1:
  5. ORA -01589: must use RESETLOGS or NORESETLOGS option for database open
  6. SYS@enmo>alter database open noresetlogs;
  7. alter database open noresetlogs
  8. *
  9. ERROR at line 1:
  10. ORA -01610: recovery using the BACKUP CONTROLFILE option must be done --恢复备份的控制文件不可以noresetlogs方式开库
  11. SYS@enmo>alter database open resetlogs;
  12. alter database open resetlogs
  13. *
  14. ERROR at line 1:
  15. ORA -01152: file 1 was not restored from a sufficiently old backup --说明使用了一个旧的控制文件与现有的数据文件的scn对不上
  16. ORA -01110: data file 1: '/u01/app/dbfile/enmo/system01.dbf'
  17. SYS@enmo>recover database;
  18. ORA -00283: recovery session canceled due to errors
  19. ORA -01610: recovery using the BACKUP CONTROLFILE option must be done --直接恢复报错,必须执行使用备份的控制文件进行恢复数据库
  20. SYS@enmo>recover database using backup controlfile;
  21. ORA -00279: change 18282978 generated at 03/ 10/ 2020 09: 25: 09 needed for thread 1
  22. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_123_1033390448.arc
  23. ORA -00280: change 18282978 for thread 1 is in sequence # 123
  24. Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
  25. auto
  26. ORA -00279: change 18292695 generated at 03/ 10/ 2020 13: 24: 26 needed for thread 1
  27. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_124_1033390448.arc
  28. ORA -00280: change 18292695 for thread 1 is in sequence # 124
  29. ORA -00278: log file '/u01/app/orarch/enmo/1_123_1033390448.arc' no longer needed for this recovery
  30. ORA -00279: change 18293343 generated at 03/ 10/ 2020 13: 37: 38 needed for thread 1
  31. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_125_1033390448.arc
  32. ORA -00280: change 18293343 for thread 1 is in sequence # 125
  33. ORA -00278: log file '/u01/app/orarch/enmo/1_124_1033390448.arc' no longer needed for this recovery
  34. ORA -00279: change 18354143 generated at 03/ 11/ 2020 09: 36: 32 needed for thread 1
  35. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_126_1033390448.arc
  36. ORA -00280: change 18354143 for thread 1 is in sequence # 126
  37. ORA -00278: log file  '/u01/app/orarch/enmo/1_125_1033390448.arc' no longer needed  for  this recovery
  38. ORA -00279: change 18454671 generated at 03/ 12/ 2020 15: 35: 37 needed for thread 1
  39. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_127_1033390448.arc
  40. ORA -00280: change 18454671 for thread 1 is in sequence # 127
  41. ORA -00278: log file '/u01/app/orarch/enmo/1_126_1033390448.arc' no longer needed for this recovery
  42. ORA -00279: change 18460259 generated at 03/ 12/ 2020 15: 41: 41 needed for thread 1
  43. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_128_1033390448.arc
  44. ORA -00280: change 18460259 for thread 1 is in sequence # 128
  45. ORA -00278: log file '/u01/app/orarch/enmo/1_127_1033390448.arc' no longer needed for this recovery
  46. ORA -00279: change 18463068 generated at 03/ 12/ 2020 15: 56: 59 needed for thread 1
  47. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_129_1033390448.arc
  48. ORA -00280: change 18463068 for thread 1 is in sequence # 129
  49. ORA -00278: log file '/u01/app/orarch/enmo/1_128_1033390448.arc' no longer needed for this recovery
  50. ORA -00279: change 18464597 generated at 03/ 12/ 2020 16: 03: 39 needed for thread 1
  51. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_130_1033390448.arc
  52. ORA -00280: change 18464597 for thread 1 is in sequence # 130
  53. ORA -00278: log file '/u01/app/orarch/enmo/1_129_1033390448.arc' no longer needed for this recovery
  54. ORA -00279: change 18465698 generated at 03/ 12/ 2020 16: 04: 21 needed for thread 1
  55. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_131_1033390448.arc
  56. ORA -00280: change 18465698 for thread 1 is in sequence # 131
  57. ORA -00278: log file '/u01/app/orarch/enmo/1_130_1033390448.arc' no longer needed for this recovery
  58. ORA -00279: change 18465714 generated at 03/ 12/ 2020 16: 04: 27 needed for thread 1
  59. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_132_1033390448.arc
  60. ORA -00280: change 18465714 for thread 1 is in sequence # 132
  61. ORA -00278: log file '/u01/app/orarch/enmo/1_131_1033390448.arc' no longer needed for this recovery
  62. ORA -00279: change 18465757 generated at 03/ 12/ 2020 16: 04: 47 needed for thread 1
  63. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_133_1033390448.arc
  64. ORA -00280: change 18465757 for thread 1 is in sequence # 133
  65. ORA -00278: log file '/u01/app/orarch/enmo/1_132_1033390448.arc' no longer needed for this recovery
  66. ORA -00279: change 18467282 generated at 03/ 12/ 2020 16: 16: 58 needed for thread 1
  67. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_134_1033390448.arc
  68. ORA -00280: change 18467282 for thread 1 is in sequence # 134
  69. ORA -00278: log file '/u01/app/orarch/enmo/1_133_1033390448.arc' no longer needed for this recovery
  70. ORA -00279: change 18469175 generated at 03/ 12/ 2020 16: 25: 01 needed for thread 1
  71. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_135_1033390448.arc
  72. ORA -00280: change 18469175 for thread 1 is in sequence # 135
  73. ORA -00278: log file '/u01/app/orarch/enmo/1_134_1033390448.arc' no longer needed for this recovery
  74. ORA -00279: change 18469629 generated at 03/ 12/ 2020 16: 28: 31 needed for thread 1
  75. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_136_1033390448.arc
  76. ORA -00280: change 18469629 for thread 1 is in sequence # 136
  77. ORA -00278: log file '/u01/app/orarch/enmo/1_135_1033390448.arc' no longer needed for this recovery
  78. ORA -00279: change 18469828 generated at 03/ 12/ 2020 16: 30: 07 needed for thread 1
  79. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_137_1033390448.arc
  80. ORA -00280: change 18469828 for thread 1 is in sequence # 137
  81. ORA -00278: log file '/u01/app/orarch/enmo/1_136_1033390448.arc' no longer needed for this recovery
  82. ORA -00279: change 18470068 generated at 03/ 12/ 2020 16: 31: 32 needed for thread 1
  83. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_138_1033390448.arc
  84. ORA -00280: change 18470068 for thread 1 is in sequence # 138
  85. ORA -00278: log file '/u01/app/orarch/enmo/1_137_1033390448.arc' no longer needed for this recovery
  86. ORA -00279: change 18470071 generated at 03/ 12/ 2020 16: 33: 14 needed for thread 1
  87. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_139_1033390448.arc
  88. ORA -00280: change 18470071 for thread 1 is in sequence # 139
  89. ORA -00278: log file '/u01/app/orarch/enmo/1_138_1033390448.arc' no longer needed for this recovery
  90. ORA -00279: change 18470909 generated at 03/ 12/ 2020 16: 33: 18 needed for thread 1
  91. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_140_1033390448.arc
  92. ORA -00280: change 18470909 for thread 1 is in sequence # 140
  93. ORA -00278: log file '/u01/app/orarch/enmo/1_139_1033390448.arc' no longer needed for this recovery
  94. ORA -00279: change 18484607 generated at 03/ 13/ 2020 09: 24: 42 needed for thread 1
  95. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_141_1033390448.arc
  96. ORA -00280: change 18484607 for thread 1 is in sequence # 141
  97. ORA -00278: log file '/u01/app/orarch/enmo/1_140_1033390448.arc' no longer needed for this recovery
  98. ORA -00279: change 18485561 generated at 03/ 13/ 2020 09: 29: 58 needed for thread 1
  99. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_142_1033390448.arc
  100. ORA -00280: change 18485561 for thread 1 is in sequence # 142
  101. ORA -00278: log file '/u01/app/orarch/enmo/1_141_1033390448.arc' no longer needed for this recovery
  102. ORA -00279: change 18502620 generated at 03/ 13/ 2020 11: 35: 04 needed for thread 1
  103. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_143_1033390448.arc
  104. ORA -00280: change 18502620 for thread 1 is in sequence # 143
  105. ORA -00278: log file '/u01/app/orarch/enmo/1_142_1033390448.arc' no longer needed for this recovery
  106. ORA -00279: change 18502623 generated at 03/ 13/ 2020 12: 42: 33 needed for thread 1
  107. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_144_1033390448.arc
  108. ORA -00280: change 18502623 for thread 1 is in sequence # 144
  109. ORA -00278: log file '/u01/app/orarch/enmo/1_143_1033390448.arc' no longer needed for this recovery
  110. ORA -00279: change 18502793 generated at 03/ 13/ 2020 12: 42: 37 needed for thread 1
  111. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_145_1033390448.arc
  112. ORA -00280: change 18502793 for thread 1 is in sequence # 145
  113. ORA -00278: log file '/u01/app/orarch/enmo/1_144_1033390448.arc' no longer needed for this recovery
  114. ORA -00279: change 18504054 generated at 03/ 13/ 2020 12: 45: 47 needed for thread 1
  115. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_146_1033390448.arc
  116. ORA -00280: change 18504054 for thread 1 is in sequence # 146
  117. ORA -00278: log file '/u01/app/orarch/enmo/1_145_1033390448.arc' no longer needed for this recovery
  118. ORA -00308: cannot open archived log '/u01/app/orarch/enmo/1_146_1033390448.arc' --提示需要 146日志,但是归档目录没有,手动指定redo日志(具体是redo那个日志不太清楚,分别尝试每个redo)
  119. ORA -27037: unable to obtain file status
  120. Linux-x86_64 Error: 2: No such file or directory
  121. Additional information: 7==
  122. SYS@enmo>recover database using backup controlfile;
  123. ORA -00279: change 18504054 generated at 03/ 13/ 2020 12: 45: 47 needed for thread 1
  124. ORA -00289: suggestion : /u01/app/orarch/enmo/ 1_146_1033390448.arc
  125. ORA -00280: change 18504054 for thread 1 is in sequence # 146
  126. Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
  127. /u01/app/oraredo/enmo/redo04a.rdo
  128. Log applied.
  129. Media recovery complete.

8. 再次查看控制文件、数据文件头记录的scn号


   
  1. SYS@enmo>set line 999
  2. SYS@enmo>col name for a5 0
  3. SYS@enmo> select status from v$instance;
  4. STATUS
  5. ------------------------------------
  6. MOUNTED
  7. SYS@enmo> select checkpoint_change # from v$database;
  8. CHECKPOINT_CHANGE #
  9. ------------------
  10. 18261588
  11. SYS@enmo> select name,checkpoint_change # from v$datafile;
  12. NAME CHECKPOINT_CHANGE #
  13. -------------------------------------------------- ------------------
  14. /u01/app /dbfile/enmo /system01.dbf 18504055
  15. /u01/app/dbfile/enmo/sysaux01.dbf 18504055
  16. /u01/app/dbfile/enmo/undotbs1.dbf 18504055
  17. /u01/app/dbfile/enmo/users01.dbf 18504055
  18. /u01/app/dbfile/enmo/chang01.dbf 18504055
  19. /u01/app/dbfile/enmo/lob_data01.dbf 18504055
  20. /u01/app/dbfile/enmo/oggdata.dbf 18504055
  21. /u01/app/dbfile/reccat.dbf 18504055
  22. 8 rows selected.
  23. SYS@enmo> select name,checkpoint_change # from v$datafile_header;
  24. NAME CHECKPOINT_CHANGE #
  25. -------------------------------------------------- ------------------
  26. /u01/app /dbfile/enmo /system01.dbf 18504055
  27. /u01/app/dbfile/enmo/sysaux01.dbf 18504055
  28. /u01/app/dbfile/enmo/undotbs1.dbf 18504055
  29. /u01/app/dbfile/enmo/users01.dbf 18504055
  30. /u01/app/dbfile/enmo/chang01.dbf 18504055
  31. /u01/app/dbfile/enmo/lob_data01.dbf 18504055
  32. /u01/app/dbfile/enmo/oggdata.dbf 18504055
  33. /u01/app/dbfile/reccat.dbf 18504055
  34. 8 rows selected.
  35. SYS@enmo> select name,last_change # from v$datafile;
  36. NAME LAST_CHANGE #
  37. -------------------------------------------------- ------------
  38. /u01/app /dbfile/enmo /system01.dbf 18504055
  39. /u01/app/dbfile/enmo/sysaux01.dbf 18504055
  40. /u01/app/dbfile/enmo/undotbs1.dbf 18504055
  41. /u01/app/dbfile/enmo/users01.dbf 18504055
  42. /u01/app/dbfile/enmo/chang01.dbf 18504055
  43. /u01/app/dbfile/enmo/lob_data01.dbf 18504055
  44. /u01/app/dbfile/enmo/oggdata.dbf 18504055
  45. /u01/app/dbfile/reccat.dbf 18504055
  46. 8 rows selected.

9. 使用resetlogs方式开启数据库


   
  1. SYS@enmo>alter database open resetlogs;
  2. Database altered.
  3. SYS@enmo>set line 999
  4. SYS@enmo>col name for a5 0
  5. SYS@enmo> select status from v$instance;
  6. STATUS
  7. ------------
  8. OPEN
  9. SYS@enmo> select checkpoint_change # from v$database;
  10. CHECKPOINT_CHANGE #
  11. ------------------
  12. 18504060
  13. SYS@enmo> select name,checkpoint_change # from v$datafile;
  14. NAME CHECKPOINT_CHANGE #
  15. -------------------------------------------------- ------------------
  16. /u01/app /dbfile/enmo /system01.dbf 18504060
  17. /u01/app/dbfile/enmo/sysaux01.dbf 18504060
  18. /u01/app/dbfile/enmo/undotbs1.dbf 18504060
  19. /u01/app/dbfile/enmo/users01.dbf 18504060
  20. /u01/app/dbfile/enmo/chang01.dbf 18504060
  21. /u01/app/dbfile/enmo/lob_data01.dbf 18504060
  22. /u01/app/dbfile/enmo/oggdata.dbf 18504060
  23. /u01/app/dbfile/reccat.dbf 18504060
  24. 8 rows selected.
  25. SYS@enmo> select name,checkpoint_change # from v$datafile_header;
  26. NAME CHECKPOINT_CHANGE #
  27. -------------------------------------------------- ------------------
  28. /u01/app /dbfile/enmo /system01.dbf 18504060
  29. /u01/app/dbfile/enmo/sysaux01.dbf 18504060
  30. /u01/app/dbfile/enmo/undotbs1.dbf 18504060
  31. /u01/app/dbfile/enmo/users01.dbf 18504060
  32. /u01/app/dbfile/enmo/chang01.dbf 18504060
  33. /u01/app/dbfile/enmo/lob_data01.dbf 18504060
  34. /u01/app/dbfile/enmo/oggdata.dbf 18504060
  35. /u01/app/dbfile/reccat.dbf 18504060
  36. 8 rows selected.
  37. SYS@enmo> select name,last_change # from v$datafile;
  38. NAME LAST_CHANGE #
  39. -------------------------------------------------- ------------
  40. /u01/app /dbfile/enmo /system01.dbf
  41. /u01/app/dbfile/enmo/sysaux01.dbf
  42. /u01/app/dbfile/enmo/undotbs1.dbf
  43. /u01/app/dbfile/enmo/users01.dbf
  44. /u01/app/dbfile/enmo/chang01.dbf
  45. /u01/app/dbfile/enmo/lob_data01.dbf
  46. /u01/app/dbfile/enmo/oggdata.dbf
  47. /u01/app/dbfile/reccat.dbf
  48. 8 rows selected.

10. 查看化身的数据


   
  1. RMAN> list incarnation;
  2. List of Database Incarnations
  3. DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
  4. ------- ------- -------- ---------------- --- ---------- ----------
  5. 2 2 ENMO 850702656 PARENT 6835695 2019 -09-20 18 :11 :28
  6. 1 1 ENMO 850702656 PARENT 16566762 2020 -02-26 12 :54 :08
  7. 3       3        ENMO     850702656         CURRENT 18504056   2020 -03-13 13 :24 :09   --从18504056开始新的数据库化身

墨天轮原文链接:https://www.modb.pro/db/22574(复制到浏览器中打开或者点击“阅读原文”)

推荐阅读:144页!分享珍藏已久的数据库技术年刊

数据和云

ID:OraNews

如有收获,请划至底部,点击“在看”,谢谢!

点击下图查看更多 ↓

云和恩墨大讲堂 | 一个分享交流的地方

长按,识别二维码,加入万人交流社群

请备注:云和恩墨大讲堂

  点个“在看”

你的喜欢会被看到❤


转载:https://blog.csdn.net/enmotech/article/details/106561212
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场