Use Oracle RMAN for tablespace-based recovery

Source: Internet
Author: User

The following articles mainly describe how to use Oracle RMAN to restore table space, we use the example case to describe Oracle RMAN recovery based on the relevant tablespace. The following describes the relevant content for your reference only:

1. view the backup file

Copy code $ rman target/

 
 
  1. Recovery Manager: Release 10.1.0.2.0 - 64bit Production  
  2.  
  3. Copyright (c) 1995, 2004, Oracle. All rights reserved.  
  4.  
  5. connected to target database: EYGLE (DBID=1337390772)  
  6.  
  7. RMAN> list backup of datafile 1;  
  8. List of Backup Sets 
  9. ===================  
  10. BS Key Type LV Size Device Type Elapsed Time Completion Time  
  11. ------- ---- -- ---------- ----------- ------------ ---------------  
  12. 17 Full 131M DISK 00:01:50 29-MAR-05  
  13. BP Key: 17 Status: AVAILABLE Compressed: NO Tag: TAG20050329T065513  
  14. Piece Name: /data5/flash_recovery_area/EYGLE/backupset/  
  15. 2005_03_29/o1_mf_nnndf_TAG20050329T065513_14k2tmx7_.bkp  
  16. List of Datafiles in backup set 17  
  17. File LV Type Ckp SCN Ckp Time Name  
  18. ---- -- ---- ---------- --------- ----  

1 Full 10605717 29-MAR-05/opt/oracle/oradata/eygle/system01.dbf
2. mount the database

Copy code

 
 
  1. Oracle RMAN> startup mount;  
  2. connected to target database (not started)  
  3. Oracle instance started  
  4. database mounted  
  5. Total System Global Area 314572800 bytes  
  6. Fixed Size 1301704 bytes  
  7. Variable Size 261890872 bytes  
  8. Database Buffers 50331648 bytes  
  9. Redo Buffers 1048576 bytes 

3. Restore data files

Copy the code Oracle RMAN> restore datafile 1;
 

 
 
  1. Starting restore at 30-MAR-05  
  2. allocated channel: ORA_DISK_1  
  3. channel ORA_DISK_1: sid=160 devtype=DISK 
  4. channel ORA_DISK_1: starting datafile backupset restore  
  5. channel ORA_DISK_1: specifying datafile(s) to restore from backup set  
  6. restoring datafile 00001 to /opt/oracle/oradata/eygle/system01.dbf  
  7. channel ORA_DISK_1: restored backup piece 1  
  8. piece handle=/data5/flash_recovery_area/EYGLE/backupset/2005_03_29/  
  9. o1_mf_nnndf_TAG20050329T065513_14k2tmx7_.bkp tag=TAG20050329T065513 
  10. channel ORA_DISK_1: restore complete  
  11. Finished restore at 30-MAR-05 


The above content describes the tablespace-based recovery using Oracle RMAN, hoping to help you in this regard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.