Restoration of Oracle tablespace data file loss

Source: Internet
Author: User

If you cannot create an Oracle table, log on to the server and check it. I tried to create a table, prompting you That the tablespace is insufficient. If you want to expand the tablespace, you will be OK, the following two errors are reported:

ORA-01157: cannot identify/lock data file 10-see DBWR trace file

ORA-01110: data file 10: '/home/oracle/oradata/ora10/xxt_mt_ms1_9.ora'

Depressed, an error occurred. I read the current directory and did not know Who deleted the file. I went crazy and found a solution through great efforts:

SQL> startup mount;
SQL> alter database create datafile '/home/oracle/oradata/ora10/xxt_mt_ms1_9.ora ';
SQL> set autorecovery on;
SQL> recover datafile '/home/oracle/oradata/ora10/xxt_mt_ms1_9.ora ';
SQL> alter database datafile '/home/oracle/oradata/ora10/xxt_mt_ms1_9.ora' online;

SQL> alter tablespace XXT_mt_as_msg online;

SQL> alter database open;

Now, go to the current database file directory and find that xxt_mt_ms1_9.ora has been restored. Then, the tablespace is expanded again, and the table can be created again.

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.