When Oracle moves data files, the system reports that file n requires medium recovery errors.

Source: Internet
Author: User

Procedure:

    1. Sqlplus/nolog
    2. Connect/As sysdba;
    3. Shutdown immediate;
    4. Startup Mount;
    5. Alter database rename file 'C: \ ora92 \ oradata \ trans \ Trans. dbf' to 'd: \ ora92 \ oradata \ trans \ Trans. dbf ';
    6. Alter database open;
 
Note:
    • The data file in the temp tablespace cannot be moved.

when you use alter database to move data files, after executing the alter database rename to command, try to open {< br> tagshow (event, '% Ca % fd % be % DD % BF % e2');
} "href =" http: // W Ww.cnblogs.com/wuhenke/admin/javascript:; "target =" _ Self "> database
: Alter database open. Error:

ORA-01113: file 7 media recovery required

ORA-01110: data files 7 : 'e: oracle \ product \ 10.2.0 \ oradata \ orcl \ test01. Dbf '.

This is because the database considers this data file to be damaged and needs to be usedRecoverCommand{
Tagshow (event, '% B1 % B8 % B7 % dd ');
} "Href =" http://www.cnblogs.com/wuhenke/admin/javascript:; "target =" _ Self ">Backup
And log information. Database Backup Recovery is a complex problem, but the solution for this instance is relatively simple.

Run the following command:

Recover datafile 'e: oracle \ product \ 10.2.0 \ oradata \ orcl \ test01.dbf'

Prompt for media recovery, and then open the database: Alter database open. Everything works.

Run the alter database open command to check whether other data files are damaged and restore them until all files are normal.

 

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.