Solution to the accidental deletion of dbf Files in the Oracle database

Source: Internet
Author: User

Problem description:

If you accidentally delete the dbf file of the Oracle database, an error is prompted when you start or close the database.

When startup starts the database, the following message is displayed:

ORA-01157: unable to identify/lock data files

ORA-01110: Data File: '.../x1000_1.dbf' not found

Solution:

1. SQL> alter system set "_ allow_resetlogs_uption" = true scope = spfile;

System altered.

2. SQL> shutdown immediate

ORA-01109: the database is not open

Database uninstalled

ORACLE routine disabled

3. SQL> startup mount

ORACLE routine started

....

....

Database loaded

4. alter database datafile '.../X1000_1.dbf' offline drop;

Database changed

5. alter database open;

Database changed

6. Connect to the database

SQL> conn scada/scada

Connected

Solve the problem.

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.