Oracle Database case study-Oracle system running failure-Data File status changes to RECOVER due to power failure

Source: Internet
Author: User

1.1 symptom description

Abnormal power failure: the database data file status changes from ONLINE to RECOVER. The system displays the following information:

SQL> select file_name, tablespace_name, online_status from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
TABLESPACE_NAME                ONLINE_
------------------------------ -------
/enip/oracle_data/CBS_LOG_IDX
CBS_LOG_IDX                    RECOVER
1.2 possible causes

Abnormal power failure, resulting in abnormal data file status.

1.3 Procedure
  1. ToOracleThe machine on which the user logs on to the data.
  2. ToSysdbaThe user connects to the database.

% Sqlplus/as sysdba

  1. Recover database data files.

SQL> recover datafile '/enip/oracle_data/CBS_LOG_IDX ';

  1. Check the status of the database data file.

SQL> select file_name, tablespace_name, online_status from dba_data_files;

The database data file is successfully restored and the system displays the following information:

FILE_NAME
--------------------------------------------------------------------------------
TABLESPACE_NAME                ONLINE_
------------------------------ -------
/enip/oracle_data/CBS_LOG_IDX
CBS_LOG_IDX                    ONLINE

If the problem persists, use the RMAN tool to restore the file.

1.4 references

Use RMAN to restore files:

1. Start the RMAN tool.

% Rman target/

2. Restore the data file.

RMAN> restore datafile'Data file Path';

RMAN> recover datafile;

RMAN> exit;

 

Related Article

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.