An error occurred while deleting Oracle datafile.

Source: Internet
Author: User

1. in Oracle open mode, the datafile file is directly deleted from the OS.

Rm/u02/rmants. dbf

2. After the database is closed, the database cannot be opened and can only be mounted.

SQL> alter database open;
Alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 7-see DBWR trace file
ORA-01110: data file 7: '/u02/rmants. dbf'
3. Delete the data file in the mount status.

Alter database datafile '/u02/rmants. dbf' offline drop;

4. Open the database

Alter database open;

5. Verification status

Select open_mode from v $ database


OPEN_MODE
--------------------
READ WRITE

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.