DB Has NO Regular RMAN Backups, Recent Archivelogs Are Available
We cannot restore datafiles from an RMAN backupset. We use AMDU to extract the datafile from the diskgroup.
1. Use AMDU to report on metadata from the unmountable disk group.
View the report produced for corruptions or any issues.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| $ amdu -diskstring '/dev/asm-disk4' -dump TESTamdu_2016_05_25_14_25_22/$ ls -lrt ./amdu_2016_05_25_14_25_22/total 52244-rw-r--r--. 1 oracle oinstall 4240 May 25 14:25 TEST.map-rw-r--r--. 1 oracle oinstall 53485568 May 25 14:25 TEST_0001.img-rw-r--r--. 1 oracle oinstall 2981 May 25 14:25 report.txt$ cat report.txt-*-amdu-*-******************************* AMDU Settings ********************************ORACLE_HOME = /u01/app/12.1.0.2/gridSystem name: LinuxMachine: x86_64amdu run: 25-MAY-16 14:25:22Endianess: 1...************************** SCANNING DISKGROUP TEST ***************************---------------------------- SCANNING DISK N0001 -----------------------------Disk N0001: '/dev/asm-disk4'------------------------- SUMMARY FOR DISKGROUP TEST -------------------------Allocated AU's: 53Free AU's: 5061AU's read for dump: 53Block images saved: 13058Map lines written: 53Heartbeats seen: 0Corrupt metadata blocks: 0Corrupt AT blocks: 0 |
2. Use AMDU to extract the datafiles from the unmountable disk group.
1
2
3
4
5
6
7
| $ amdu -diskstring '/dev/asm-disk4' -extract TEST.256amdu_2016_05_25_15_30_12/$ ls -lrth ./amdu_2016_05_25_15_30_12total 11M-rw-r--r--. 1 oracle oinstall 11M May 25 15:30 TEST_256.flt-rw-r--r--. 1 oracle oinstall 3.7K May 25 15:30 report.txt |
3. Rename the datafile in the controlfile to point to the AMDU extracted datafiles, apply recovery and open the database.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| SQL> startup mountSQL> alter database open;alter database open*ERROR at line 1:ORA-01157: cannot identify/lock data file 15 - see DBWR trace fileORA-01110: data file 15: '+TEST/CDBRAC/DATAFILE/test_tbs.256.912785223'SQL> alter database rename file '+TEST/CDBRAC/DATAFILE/test_tbs.256.912785223' to '/home/oracle/extract/amdu_2016_05_25_15_30_12/TEST_256.f';Database altered.SQL> recover datafile 15;Media recovery complete.SQL> alter database open;Database altered. |
No comments:
Post a Comment