Restore the undo file lost when the Oracle database is shut down normally

Source: Internet
Author: User

When the Oracle database is shut down normally, the committed transaction has been written into the data file, and the uncommitted transaction has been rolled back, the data in the control file, log file, and data file is consistent. You do not need to use the rollback information in the undo data file when you start the instance again.

An error is reported during normal startup. the recovery procedure is as follows:

1. log on to the system as an oracle user, sqlplus/as sysdba;
2. start mount;
3. alter database datafile '/u01/app/oracle/oradata/orcl/undotbs01.dbf' offline drop;
4. alter database open;
5. create undo tablespace undotbs2 datafile '/u01/app/oracle/oradata/orcl/undotbs02.dbf' size 200 m autoextend on maxsize 10g;
6. alter system set undo_tablespace = undotbs2;
7. drop tablespace undotbs1 including contents and datafiles;

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.