Advertisement
ExaGridDba

12c pdb backup, "corrupt", restore, recover

Sep 2nd, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.31 KB | None | 0 0
  1. backup pluggable database hilo;
  2.  
  3.  
  4. Spooling started in log file: backupCdb.txt
  5.  
  6. Recovery Manager12.1.0.1.0
  7.  
  8. RMAN> backup pluggable database hilo;
  9. Starting backup at 02-SEP-13
  10. using target database control file instead of recovery catalog
  11. allocated channel: ORA_DISK_1
  12. channel ORA_DISK_1: SID=7 device type=DISK
  13. allocated channel: ORA_DISK_2
  14. channel ORA_DISK_2: SID=68 device type=DISK
  15. channel ORA_DISK_1: starting full datafile backup set
  16. channel ORA_DISK_1: specifying datafile(s) in backup set
  17. input datafile file number=00046 name=+DATA/POLOLU/DATAFILE/system.278.824993643
  18. input datafile file number=00050 name=+DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/ts.263.824999673
  19. channel ORA_DISK_1: starting piece 1 at 02-SEP-13
  20. channel ORA_DISK_2: starting full datafile backup set
  21. channel ORA_DISK_2: specifying datafile(s) in backup set
  22. input datafile file number=00047 name=+DATA/POLOLU/DATAFILE/sysaux.277.824993597
  23. input datafile file number=00048 name=+DATA/POLOLU/DATAFILE/users.260.824993699
  24. channel ORA_DISK_2: starting piece 1 at 02-SEP-13
  25. channel ORA_DISK_1: finished piece 1 at 02-SEP-13
  26. piece handle=+DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.267.825110579 tag=TAG20130902T212258 comment=NONE
  27. channel ORA_DISK_1: backup set complete, elapsed time: 00:02:16
  28. channel ORA_DISK_2: finished piece 1 at 02-SEP-13
  29. piece handle=+DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.265.825110581 tag=TAG20130902T212258 comment=NONE
  30. channel ORA_DISK_2: backup set complete, elapsed time: 00:02:15
  31. Finished backup at 02-SEP-13
  32.  
  33. Starting Control File and SPFILE Autobackup at 02-SEP-13
  34. piece handle=+DATA/KILAUEA/AUTOBACKUP/2013_09_02/s_825110715.257.825110719 comment=NONE
  35. Finished Control File and SPFILE Autobackup at 02-SEP-13
  36.  
  37. RMAN>
  38. RMAN> quit
  39.  
  40. Recovery Manager complete.
  41.  
  42.  
  43.  
  44. [oracle@waipio1 KILAUEA rman]$ sqlplus / as sysdba
  45.  
  46. SQL*Plus: Release 12.1.0.1.0 Production on Mon Sep 2 22:22:23 2013
  47.  
  48. Copyright (c) 1982, 2013, Oracle. All rights reserved.
  49.  
  50.  
  51. Connected to:
  52. Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
  53. With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics
  54. and Real Application Testing options
  55.  
  56. SQL> shutdown immediate
  57. Database closed.
  58. Database dismounted.
  59. ORACLE instance shut down.
  60.  
  61. [grid@waipio1 ~]$ asmcmd ls +DATA/POLOLU/DATAFILE
  62. SYSAUX.277.824993597
  63. SYSTEM.278.824993643
  64. UNDOTBS1.280.824993699
  65. USERS.260.824993699
  66. [grid@waipio1 ~]$ asmcmd rm -rf +DATA/POLOLU/DATAFILE
  67. ORA-29261: bad argument
  68. ORA-00600: internal error code, arguments: [ORA_NPI_ERROR], [600], [ORA-00600: internal error code, arguments: [KFCHK_ERRRET], [kfa.c], [3025], [], [], [], [], [], [], [], [], []
  69. ], [], [], [], [], [], [], [], [], []
  70. ORA-06512: at line 4 (DBD ERROR: OCIStmtExecute)
  71.  
  72. SQL> startup
  73. ORACLE instance started.
  74.  
  75. Total System Global Area 4993982464 bytes
  76. Fixed Size 2691856 bytes
  77. Variable Size 1090522352 bytes
  78. Database Buffers 3892314112 bytes
  79. Redo Buffers 8454144 bytes
  80. Database mounted.
  81. Database opened.
  82. SQL> alter pluggable database kona open;
  83.  
  84. Pluggable database altered.
  85.  
  86.  
  87. SQL> alter pluggable database hilo open;
  88. alter pluggable database hilo open
  89. *
  90. ERROR at line 1:
  91. ORA-01157: cannot identify/lock data file 48 - see DBWR trace file
  92. ORA-01110: data file 48: '+DATA/POLOLU/DATAFILE/users.260.824993699'
  93.  
  94.  
  95.  
  96. alter pluggable database hilo open
  97. Mon Sep 02 22:28:14 2013
  98. Errors in file /app/oracle/diag/rdbms/kilauea/KILAUEA/trace/KILAUEA_dbw0_637.trc:
  99. ORA-01157: cannot identify/lock data file 48 - see DBWR trace file
  100. ORA-01110: data file 48: '+DATA/POLOLU/DATAFILE/users.260.824993699'
  101. ORA-17503: ksfdopn:2 Failed to open file +DATA/POLOLU/DATAFILE/users.260.824993699
  102. ORA-15012: ASM file '+DATA/POLOLU/DATAFILE/users.260.824993699' does not exist
  103. Mon Sep 02 22:28:14 2013
  104. Errors in file /app/oracle/diag/rdbms/kilauea/KILAUEA/trace/KILAUEA_dbw0_637.trc:
  105. ORA-01157: cannot identify/lock data file 47 - see DBWR trace file
  106. ORA-01110: data file 47: '+DATA/POLOLU/DATAFILE/sysaux.277.824993597'
  107. ORA-17503: ksfdopn:2 Failed to open file +DATA/POLOLU/DATAFILE/sysaux.277.824993597
  108. ORA-15012: ASM file '+DATA/POLOLU/DATAFILE/sysaux.277.824993597' does not exist
  109. Mon Sep 02 22:28:14 2013
  110. Errors in file /app/oracle/diag/rdbms/kilauea/KILAUEA/trace/KILAUEA_dbw0_637.trc:
  111. ORA-01157: cannot identify/lock data file 46 - see DBWR trace file
  112. ORA-01110: data file 46: '+DATA/POLOLU/DATAFILE/system.278.824993643'
  113. ORA-17503: ksfdopn:2 Failed to open file +DATA/POLOLU/DATAFILE/system.278.824993643
  114. ORA-15012: ASM file '+DATA/POLOLU/DATAFILE/system.278.824993643' does not exist
  115. Mon Sep 02 22:28:14 2013
  116. Pluggable database HILO hit error 1157 during open read write
  117. and will be closed.
  118. ALTER SYSTEM: Flushing buffer cache inst=0 container=3 local
  119. ORA-1157 signalled during: alter pluggable database hilo open...
  120. Mon Sep 02 22:28:17 2013
  121. Checker run found 3 new persistent data failures
  122.  
  123.  
  124. Spooling started in log file: restorepdb.hilo.txt
  125.  
  126. Recovery Manager12.1.0.1.0
  127.  
  128. RMAN> restore pluggable database hilo;
  129. Starting restore at 02-SEP-13
  130. using target database control file instead of recovery catalog
  131. allocated channel: ORA_DISK_1
  132. channel ORA_DISK_1: SID=178 device type=DISK
  133. allocated channel: ORA_DISK_2
  134. channel ORA_DISK_2: SID=8 device type=DISK
  135.  
  136. channel ORA_DISK_1: starting datafile backup set restore
  137. channel ORA_DISK_1: specifying datafile(s) to restore from backup set
  138. channel ORA_DISK_1: restoring datafile 00046 to +DATA/POLOLU/DATAFILE/system.278.824993643
  139. channel ORA_DISK_1: restoring datafile 00050 to +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/ts.263.824999673
  140. channel ORA_DISK_1: reading from backup piece +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.267.825110579
  141. channel ORA_DISK_2: starting datafile backup set restore
  142. channel ORA_DISK_2: specifying datafile(s) to restore from backup set
  143. channel ORA_DISK_2: restoring datafile 00047 to +DATA/POLOLU/DATAFILE/sysaux.277.824993597
  144. channel ORA_DISK_2: restoring datafile 00048 to +DATA/POLOLU/DATAFILE/users.260.824993699
  145. channel ORA_DISK_2: reading from backup piece +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.265.825110581
  146. channel ORA_DISK_1: piece handle=+DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.267.825110579 tag=TAG20130902T212258
  147. channel ORA_DISK_1: restored backup piece 1
  148. channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
  149. channel ORA_DISK_2: piece handle=+DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/BACKUPSET/2013_09_02/nnndf0_tag20130902t212258_0.265.825110581 tag=TAG20130902T212258
  150. channel ORA_DISK_2: restored backup piece 1
  151. channel ORA_DISK_2: restore complete, elapsed time: 00:02:25
  152. Finished restore at 02-SEP-13
  153.  
  154. RMAN>
  155. RMAN> quit
  156.  
  157. Recovery Manager complete.
  158.  
  159.  
  160. Checker run found 3 new persistent data failures
  161. Mon Sep 02 22:31:22 2013
  162. Full restore complete of datafile 48 +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/users.278.825114675. Elapsed time: 0:00:02
  163. checkpoint is 3246348
  164. last deallocation scn is 3
  165. Mon Sep 02 22:31:22 2013
  166. Full restore complete of datafile 50 +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/ts.263.824999673. Elapsed time: 0:00:08
  167. checkpoint is 3246348
  168. last deallocation scn is 1720084
  169. Mon Sep 02 22:31:28 2013
  170. Checker run found 1 new persistent data failures
  171. Mon Sep 02 22:33:28 2013
  172. Full restore complete of datafile 47 +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/sysaux.260.825114673. Elapsed time: 0:02:13
  173. checkpoint is 3246348
  174. last deallocation scn is 1854094
  175. Mon Sep 02 22:33:28 2013
  176. Full restore complete of datafile 46 +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/system.280.825114671. Elapsed time: 0:02:16
  177. checkpoint is 3246348
  178. last deallocation scn is 3028184
  179. Undo Optimization current scn is 695278
  180.  
  181.  
  182. Spooling started in log file: recoverpdb.hilo.txt
  183.  
  184. Recovery Manager12.1.0.1.0
  185.  
  186. RMAN> recover pluggable database hilo;
  187. Starting recover at 02-SEP-13
  188. using target database control file instead of recovery catalog
  189. allocated channel: ORA_DISK_1
  190. channel ORA_DISK_1: SID=362 device type=DISK
  191. allocated channel: ORA_DISK_2
  192. channel ORA_DISK_2: SID=419 device type=DISK
  193.  
  194. starting media recovery
  195. media recovery complete, elapsed time: 00:00:19
  196.  
  197. Finished recover at 02-SEP-13
  198.  
  199. RMAN> quit
  200.  
  201. Recovery Manager complete.
  202.  
  203. Mon Sep 02 22:40:10 2013
  204. alter database recover datafile list clear
  205. Completed: alter database recover datafile list clear
  206. alter database recover if needed
  207. datafile 46 , 47 , 48 , 50
  208. Mon Sep 02 22:40:10 2013
  209. Media Recovery Start
  210. Mon Sep 02 22:40:10 2013
  211. Serial Media Recovery started
  212. Mon Sep 02 22:40:11 2013
  213. Recovery of Online Redo Log: Thread 1 Group 1 Seq 151 Reading mem 0
  214. Mem# 0: +DATA/KILAUEA/ONLINELOG/group_1.364.824921903
  215. Mem# 1: +DATA/KILAUEA/ONLINELOG/group_1.681.824921909
  216. Mon Sep 02 22:40:21 2013
  217. Recovery of Online Redo Log: Thread 1 Group 2 Seq 152 Reading mem 0
  218. Mem# 0: +DATA/KILAUEA/ONLINELOG/group_2.674.824921913
  219. Mem# 1: +DATA/KILAUEA/ONLINELOG/group_2.666.824921917
  220. Mon Sep 02 22:40:23 2013
  221. Recovery of Online Redo Log: Thread 1 Group 3 Seq 153 Reading mem 0
  222. Mem# 0: +DATA/KILAUEA/ONLINELOG/group_3.365.824921923
  223. Mem# 1: +DATA/KILAUEA/ONLINELOG/group_3.543.824921927
  224. Mon Sep 02 22:40:29 2013
  225. Media Recovery Complete (KILAUEA)
  226. Completed: alter database recover if needed
  227. datafile 46 , 47 , 48 , 50
  228.  
  229.  
  230. RMAN> alter pluggable database hilo open;
  231.  
  232. using target database control file instead of recovery catalog
  233. Statement processed
  234.  
  235. alter pluggable database hilo open
  236. Mon Sep 02 22:43:09 2013
  237. Opening pdb HILO (3) with no Resource Manager plan active
  238. Pluggable database HILO opened read write
  239. Completed: alter pluggable database hilo open
  240.  
  241.  
  242. RMAN> select name from v$datafile where con_id = 3;
  243.  
  244.  
  245.  
  246. NAME
  247. --------------------------------------------------------------------------------
  248.  
  249. +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/system.280.825114671
  250.  
  251.  
  252. +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/sysaux.260.825114673
  253.  
  254.  
  255. +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/users.278.825114675
  256.  
  257.  
  258. +DATA/KILAUEA/E55656EBC9CD1972E0437901A8C02245/DATAFILE/ts.263.824999673
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement