Remote recovery of Oracle Database cold backup

Source: Internet
Author: User
1. Copy the cold backup data files, log files, and control files to the target folder. 2. Create a pfile of init: $ ORACLE_SID.ora.

1. Copy the cold backup data files, log files, and control files to the target folder. 2. Create a pfile of init: $ ORACLE_SID.ora.

1. Copy the cold backup data files, log files, and control files to the target folder.

2. Create a pfile of init: $ Oracle_SID.ora, which can be copied from the template in the samples folder.

3. Modify the control_files parameter of the pfile and specify it as the location of the control file with recovery.

Modify the db_name attribute to make it consistent with the db_name of the cold backup (you can also change it in the next step and a prompt will appear)

4. sqlplus/nolog; conn/as sysdba; startup mount;

Mount the instance (errors may occur during the process. Follow the prompts to modify the. ora file) until the instance is successfully loaded.

5. select name from v $ datafile;

The result is that all data files and log files are located in the original database. If the folder you copied is consistent with the original database, you do not need to modify this attribute.

Alter database rename file 'source. dir' to dest. dir;

6. After completing the above steps, you can start your database.

Alter database open;

7. Verify that the database is successfully started.

Select user_name from user_tables; you can obtain information about all users.

Obtain the username of the data table space and log on to the database.

Select count (*) from user_tables;

If it is not 0, it indicates that there is data. select any table from the table to see if there is any data.

,

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.