RMAN Recovery Scenario -Datafile Lost or Datafile Corrupt - How to restore & Recover the Datafile?
Vložit
- čas přidán 24. 07. 2024
- Only one data file is lost or corrupted
SCENARIO-1: DATABASE IS NOT OPEN
SCENARIO-2: DATABASE IS OPEN
CASE 1: Datafile image copy from FRA
CASE 2: Datafile restore from backup
SCENARIO-1: DATABASE IS NOT OPEN
===========
startup mount;
rman taregt /
list backup;
restore datafile 4;
recover datafile 4;
alter database open;
SCENARIO-2: DATABASE IS OPEN
==========
CASE 1: Datafile image copy from FRA
==============================
report schema;
list copy of datafile 4;
--- backup as copy database tag 'FullImageBackup';
sql ‘alter database datafile 4 offline’;
switch datafile 4 to copy;
recover datafile 4;
sql ‘alter database datafile 4 online’;
report schema;
cd /u01/app/oracle/oradata/DEVDB/
mv users01.dbf users01.dbf_backup
backup as copy datafile 4 format ‘/u01/app/oracle/oradata/DEVDB/users01.dbf’;
sql ‘alter database datafile 4 offline’;
switch datafile 4 to copy;
recover datafile 4;
sql ‘alter database datafile 4 online’;
report schema;
CASE 2: Datafile restore from backup
====================================
rman target /
sql “alter database datafile ”/u01/app/oracle/oradata/DEVDB/users01.dbf” offline”;
restore datafile '/u01/app/oracle/oradata/DEVDB/users01.dbf';
recover datafile '/u01/app/oracle/oradata/DEVDB/users01.dbf';
sql “alter database datafile ”/u01/app/oracle/oradata/DEVDB/users01.dbf” online”;
select file_name from dba_data_files;
#RMAN #DataFileLost #DatafileCorrupt #Backup #Restore #Recovery #Oracle #RAC #Database #Exadata #ASM
Please do follow me and support me on,
LinkedIn: / mallik034
CZcams: / mallik034
Fakebook: / mallik034
Blog: mallik034.blogspot.com
twitter: / mallik034
Instagram: / mallik034
FBPage: / mallik034oracledba
Skype: malluramadurg
Regards,
Mallikarjun Ramadurg
Mobile: +91 9880616848
WhatsApp: +91 9880616848
Email: malluramadurg@gmail.com
LinkedIn: / mallik034
CZcams: / mallik034
Fakebook: / mallik034
Blog: mallik034.blogspot.com
twitter: / mallik034
Instagram: / mallik034
FBPage: / mallik034oracledba
Skype: malluramadurg
Thanks Mallik for making useful videos
Thanks for liking!!! Keep watching my sessions
Very Good Explanation. thank you Bro
Nice explanation Sir.
very good explanation ,awesome :)
Glad you liked it!
Best channel I must say
Great efforts sir
Thanks
Hi sir.thanks for your videos nd explanation..May I get the document for rman restore and Recovery..
thank
❤
Thanks