Solution to Oracle Log File loss

Source: Internet
Author: User

What should I do if the Oracle log file is lost? The following describes how to deal with Oracle Log File loss.

Due to accidental operations, the third Oracle log file in the log group is lost.
SQL> conn/as sysdba
Connected.

SQL> startup
The ORACLE routine has been started.

Total System Global Area 85006980 bytes
Fixed Size 453252 bytes
Variable Size 58720256 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
The database has been loaded.
ORA-00313: Unable to open a member of log group 3 (thread 1)
ORA-00312: Online log 3 thread 1: 'd: \ ORACLE \ ORADATA \ ORA92 \ REDO03.LOG'

The database cannot be started.

Find the file D: \ ORACLE \ ORADATA \ ORA92 \ REDO03.LOG, which does not exist.

The database is not opened at this time:
SQL> select table_name from dict where table_name like '% LOG % ';
Select table_name from dict where table_name like '% LOG %'
*
ERROR is located in row 1st:
ORA-01219: Database not open: Allow queries only in fixed tables/Views

In this case, you need to close the database first.
SQL> shutdown immediate
ORA-01109: the database is not open

The database has been detached.
The ORACLE routine has been disabled.

SQL> startup mount;
The ORACLE routine has been started.

Total System Global Area 85006980 bytes
Fixed Size 453252 bytes
Variable Size 58720256 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
The database has been loaded.
SQL> recover database until cancel
Media recovery is completed.
SQL> alter database open resetlogs;

The database has been changed.

How to modify the oracle user name

How to query Oracle user session information

Measure the test taker's knowledge about the ORACLE user authentication mechanism.

Oracle tablespace statements

Default ORACLE user and password

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.