Oracle archive mode supports backup and recovery of lost data files

Source: Internet
Author: User

1. Create full database backup

2. Construct test data under the test2 user

3. Simulate file loss: log on to and close the database as sysdba, and try to restart the database.

4. Execute recovery: Enter the RMAN command line Environment

You can see from the above: Restore data file 7 (you can also specify the file name) is read from the backup set db_bak_15p31koh_1_1

5. Repair data files

6. Open the database and check that the recovery is successful!

Additional:

Query table spaces and their associated data files

Select ts. tablespace_name, df. file_name, df. file_id, df. statusfrom dba_tablespaces ts, (select tablespace_name, file_id, file_name, statusfrom dba_data_filesunion allselect tablespace_name, file_id, file_name, statusfrom dba_temp_files) dfwhere ts. tablespace_name = df. tablespace_name;


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.