How to recover a RAC db (raw) to single instance in Oracle

Source: Internet
Author: User
Tags backup

Os:redhat as 4

Oracle:oracle10gr2

The customer presents a request to demonstrate the recovery of RAC DB to single-instance, and their purpose is to verify the backup effectiveness of the production environment

Here are the ideas and the main steps:

1. First generate an init parameter file under RAC DB

2, modify parameters, Cluster_database to false and shielding Local_listener and other parameters related to the cluster

3. Backup of RAC DB via Rman (for simplicity I used catalog)

4. Copy parameter files and RAC DB Backup to Single instance machine

5. Create a directory of Bdump and data files on a single instance machine

6. Modify the Control_files path and name in the parameter file

7. Try to start instance to Nomount state on single instance machine

8. Restore Controlfile via Rman (Restore Controlfile to New Path)

9. Alter DATABASE Mount

10, the main recovery process is as follows

rman> restore Controlfile to '/app/oracle/oradata/rawdb/control01.ctl ';

Start restore at 2011-06-16 21:51:43

Using channel Ora_disk_1

Channel Ora_disk_1: Starting recovery of data file backup set

Channel ora_disk_1: Restoring Control files

Output filename =/app/oracle/oradata/rawdb/control01.ctl

Channel Ora_disk_1: Reading backup segment/app/dbbak/rawdb_20110616_03mf10gp_1_1.bak

Channel Ora_disk_1: restored backup Segment 1

Segment handle =/app/dbbak/rawdb_20110616_03mf10gp_1_1.bak Mark = tag20110616t090953

Channel Ora_disk_1: Restore Complete, spents: 00:00:03

Completing restore at 2011-06-16 21:51:50

rman> restore Controlfile to '/app/oracle/oradata/rawdb/control02.ctl ';

Start restore at 2011-06-16 21:51:55

Using channel Ora_disk_1

Channel Ora_disk_1: Starting recovery of data file backup set

Channel ora_disk_1: Restoring Control files

Output filename =/app/oracle/oradata/rawdb/control02.ctl

Channel Ora_disk_1: Reading backup segment/app/dbbak/rawdb_20110616_03mf10gp_1_1.bak

Channel Ora_disk_1: restored backup Segment 1

Segment handle =/app/dbbak/rawdb_20110616_03mf10gp_1_1.bak Mark = tag20110616t090953

Channel Ora_disk_1: Restore Complete, spents: 00:00:06

Completing restore at 2011-06-16 21:52:05

Rman>

Startup Mount

Rman> Run {

2> set newname for datafile 1 to '/app/oracle/oradata/rawdb/system01.dbf ';

3> set newname for datafile 2 to '/app/oracle/oradata/rawdb/undotbs01.dbf ';

4> set newname for datafile 3 to '/app/oracle/oradata/rawdb/sysaux01.dbf ';

5> set newname for datafile 4 to '/app/oracle/oradata/rawdb/undotbs02.dbf ';

6> set newname for datafile 5 to '/app/oracle/oradata/rawdb/users01.dbf ';

7> Restore Database;

8> switch datafile all;

9>}

Executing command: SET NEWNAME

Executing command: SET NEWNAME

Executing command: SET NEWNAME

Executing command: SET NEWNAME

Executing command: SET NEWNAME

Start restore at 2011-06-16 22:21:41

Allocated channel: Ora_disk_1

Channel ora_disk_1:sid=155 Devtype=disk

Channel Ora_disk_1: Starting recovery of data file backup set

Channel Ora_disk_1: Specifying a data file to recover from a backup set

Restoring data file 00001 to/APP/ORACLE/ORADATA/RAWDB/SYSTEM01.DBF

Restoring data file 00002 to/APP/ORACLE/ORADATA/RAWDB/UNDOTBS01.DBF

Restoring data file 00003 to/APP/ORACLE/ORADATA/RAWDB/SYSAUX01.DBF

Restoring data file 00004 to/APP/ORACLE/ORADATA/RAWDB/UNDOTBS02.DBF

Restoring data file 00005 to/APP/ORACLE/ORADATA/RAWDB/USERS01.DBF

Channel Ora_disk_1: Reading backup segment/app/dbbak/rawdb_20110616_02mf10f1_1_1.bak

Channel Ora_disk_1: restored backup Segment 1

Segment handle =/app/dbbak/rawdb_20110616_02mf10f1_1_1.bak Mark = tag20110616t090953

Channel Ora_disk_1: Restore Complete, spents: 00:02:08

Completing restore at 2011-06-16 22:24:30

This article URL address: http://www.bianceng.cn/database/Oracle/201410/45562.htm

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.