Oracle ORA-01157: unable to identify/lock data files

Source: Internet
Author: User

Create undo tablespace MOZI datafile 'e: \ Oracle \ product \ 10.2.0 \ oradata \ orcl \ MOZI. dbf' size 2048 M extent management local;
Alter system set undo_tablespace = MOZI;
The ORCL database in WINDOW prompts: the database is not open: it can only be queried in fixed tables/views.
An error occurred while loading the database:
RA-01157: unable to identify/lock data file 7-see DBWR trace file
ORA-01110: data file 7: 'd: \ TCM52.DBF'
SQL> startup
The ORACLE routine has been started.

Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 209715232 bytes
Database Buffers 75497472 bytes
Redo Buffers 7098368 bytes
The database has been loaded.
ORA-01157: unable to identify/lock data file 7-see DBWR trace file
ORA-01110: data file 7: 'd: \ TCM52.DB <span class = "hilite"> F </span>'
Cause: When I stop the data service, I will delete the data file D: \ TCM52.DBF.
Solution:
SQL> startup
The ORACLE routine has been started.

Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 213909536 bytes
Database Buffers 71303168 bytes
Redo Buffers 7098368 bytes
The database has been loaded.
ORA-01157: unable to identify/lock data file 7-see DBWR trace file
ORA-01110: data file 7: 'd: \ TCM52.DBF'

SQL> alter database datafile 'd: \ TCM52.dbf 'offline drop;
The database has been changed.

SQL> alter database open;
The database has been changed.

SQL> drop tablespace TCM52 including contents;
The tablespace has been deleted.

SQL> create undo tablespace TCM52 datafile 'e: \ oracle \ product \ 10.2.0 \ oradata \ TCM52.db <span class = "hilite"> f </span> 'size 2048 M extent management local;
The tablespace has been created.

SQL> alter system set undo_tablespace = TCM52;
The system has been changed.
A similar problem occurs in LINUX,

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.