Oracle Database RMAN recovery of data files

Source: Internet
Author: User

Oracle Database REAN recovery data file recovery is what we will introduce in this article. We know that apart from the system tablespace data file (mount, other data files can be restored in the open (mount) state. restoring data files in the open state can reduce the database downtime, so you should restore these data files in the open state.

Example 1: the data file is deleted by mistake.

Delete non-system tablespace data files when the database is closed.

Start the database to the mount status.

Offline data files lost, alter database datafile n offline.

Open the database and alter database open.

Dump data file, restore datafile n.

Use recover datafile n to archive logs.

Online data file, alter database datafile n online.

-- Delete non-system tablespace data files when the database is closed.

[Oracle @ localhost ~] $ Rm $ ORACLE_BASE/product/10.2.0/oradatabak/example01.dbf;

SQL> select file #, error from v $ recover_file;

FILE # ERROR

---------------------------------------------------------------------------

5 FILE NOT FOUND

SQL> select file #, name from v $ datafile where file # = 5;

FILE # NAME

------------------------------------------------------------------------------------------

  • 1
  • 2
  • 3
  • Next Page

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.