2
Most read
3
Most read
4
Most read
Backup and Restore of database on 2-Node RAC 
Introduction: 
This document provides a high level overview and steps to restore a 2-node RAC database 
which we did in one of our environments recently. 
Environment Details: 
DBName : TEST1 
Oracle version: 11gR2 
Steps: 
1. Take a backup of the database or else use the last successful backup from tape / disk 
2. Created the parameter file with the bare minimum parameters for the database to 
startup. 
vi initTEST1.ora 
*.audit_file_dest='/u01/app/oracle/admin/TEST1/adump' 
*.audit_trail='db' 
*.compatible='11.2.0.2.0' 
*.control_files='+DATA','+FRA' 
*.db_block_size=8192 
*.db_create_file_dest='+DATA' 
*.db_create_online_log_dest_1='+DATA' 
*.db_name='RAC' 
*.diagnostic_dest='/u01/app/oracle' 
*.log_archive_dest_1='LOCATION=+FRA' 
*.log_archive_format='%t_%s_%r.dbf' 
*.memory_target=1658847232 
*.open_cursors=300 
*.processes=150 
*.remote_login_passwordfile='EXCLUSIVE' 
*.undo_tablespace='UNDOTBS1' 
*.cluster_database=false 
3. Start the database in NOMOUNT stage for restore and recovery from the backup: 
[oracle@MYHOST1 dbs]$ sqlplus / as sysdba 
SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 1 05:58:30 2013 
Copyright (c) 1982, 2009, Oracle. All rights reserved. 
Connected to an idle instance. 
SQL> startup nomount pfile='initTEST1.ora'
ORACLE instance started. 
Total System Global Area 1653518336 bytes 
Fixed Size 2213896 bytes 
Variable Size 956303352 bytes 
Database Buffers 687865856 bytes 
Redo Buffers 7135232 bytes 
SQL> exit 
4. Connect to the Oracle Recovery Manager and restore the control file associated with the 
recent backup that is planned to be restored. 
Connect to RMAN: 
[oracle@MYHOST1 dbs]$ rman target / 
Recovery Manager: Release 11.2.0.2.0 - Production on Thu Aug 1 05:59:28 2013 
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. 
connected to target database: RAC (not mounted) 
RMAN> restore controlfile from autobackup 
Starting restore at 17-JUN-14 
using target database control file instead of recovery catalog 
allocated channel: ORA_DISK_1 
channel ORA_DISK_1: SID=29 device type=DISK 
channel ORA_DISK_1: restoring control file 
channel ORA_DISK_1: restore complete, elapsed time: 00:00:08 
output file name=+DATA/TEST1/controlfile/current.236.7445645 
output file name=+FRA/TEST1/controlfile/current.235.7445645 
Finished restore at 17-JUN-14 
RMAN> alter database mount; 
database mounted 
released channel: ORA_DISK_1 
5. Initiate a restore of the database once the control file is restored and the DB is in 
mount state as shown below. 
RMAN> restore database; 
Starting restore at 17-JUN-14 
allocated channel: ORA_DISK_1 
channel ORA_DISK_1: SID=29 device type=DISK 
channel ORA_DISK_1: starting datafile backup set restore 
channel ORA_DISK_1: specifying datafile(s) to restore from backup set 
channel ORA_DISK_1: restoring datafile 00001 to +DATA/TEST1/system.356.1123822
channel ORA_DISK_1: restoring datafile 00004 to +DATA/TEST1/users. 356.1223822 
channel ORA_DISK_1: reading from backup piece 
channel ORA_DISK_1: piece 
channel ORA_DISK_1: restored backup piece 1 
channel ORA_DISK_1: restore complete, elapsed time: 00:00:45 
channel ORA_DISK_1: starting datafile backup set restore 
channel ORA_DISK_1: specifying datafile(s) to restore from backup set 
channel ORA_DISK_1: restoring datafile 00003 to 
+DATA/rac/datafile/undotbs1.314.822277039 
channel ORA_DISK_1: restoring datafile 00005 to 
+DATA/rac/datafile/undotbs2.315.822277039 
channel ORA_DISK_1: reading from backup piece channel ORA_DISK_1: piece 
channel ORA_DISK_1: restored backup piece 1 
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15 
channel ORA_DISK_1: starting datafile backup set restore 
channel ORA_DISK_1: specifying datafile(s) to restore from backup set 
channel ORA_DISK_1: restoring datafile 00002 to +DATA/ TEST1/sysaux.311.822277081 
channel ORA_DISK_1: reading from backup piece 
channel ORA_DISK_1: piece 
channel ORA_DISK_1: restored backup piece 1 
channel ORA_DISK_1: restore complete, elapsed time: 00:00:36 
Finished restore at 17-JUN-14 
Recover the database 
RMAN> recover database; 
Starting recover at 17-JUN-14 
using channel ORA_DISK_1 
starting media recovery 
archived log for thread 1 with sequence 8 is already on disk as file 
+FRA/TEST1/2014_06_17/thread_1_seq_8.412.822282953 
archived log for thread 2 with sequence 6 is already on disk as file 
+FRA/TEST1/2014_06_17/thread_2_seq_6.413.822282955 
archived log file name=+FRA/TEST1/2014_06_17/thread_1_seq_8.412.822282953 thread=1 
sequence=8 
archived log file name=+FRA/TEST1/2014_06_17/thread_2_seq_6.413.822282955 thread=2 
sequence=6 
archived log file name=+FRA/TEST1/2014_06_17/thread_1_seq_9.415.822287039 thread=1 
sequence=9 
archived log file name=+FRA/TEST1/2014_06_17/thread_2_seq_7.414.822286061 thread=2 
sequence=7 
unable to find archived log 
archived log thread=2 sequence=8 
6. Open the database with resetlogs:
RMAN> alter database open resetlogs; 
database opened 
RMAN> exit 
Recovery Manager complete. 
7. Start the database 
SQL> startup 
ORACLE instance started. 
Total System Global Area 1068937216 bytes 
Fixed Size 2220200 bytes 
Variable Size 616566616 bytes 
Database Buffers 444596224 bytes 
Redo Buffers 5554176 bytes 
Database mounted. 
Database opened. 
8. Once the DB is started, add the entries and start using the server control utility. 
Start the database using SRVCTL: 
[oracle@MYHOST1 dbs]$ srvctl status database -d RAC 
Instance TEST1 is not running on node MYHOST1 
[oracle@MYHOST1 dbs]$ srvctl start database -d RAC 
[oracle@MYHOST1 dbs]$ srvctl status database -d RAC 
Instance TEST1 is running on node MYHOST1

More Related Content

PDF
Step by Step Restore rman to different host
PDF
Data guard oracle
PDF
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
DOCX
Oracle 12c far sync standby instance
PDF
Understanding oracle rac internals part 2 - slides
PDF
A Deep Dive into ASM Redundancy in Exadata
PDF
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
PDF
Oracle 12c and its pluggable databases
Step by Step Restore rman to different host
Data guard oracle
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Oracle 12c far sync standby instance
Understanding oracle rac internals part 2 - slides
A Deep Dive into ASM Redundancy in Exadata
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Oracle 12c and its pluggable databases

What's hot (20)

PDF
Understanding oracle rac internals part 1 - slides
PDF
Backup and recovery in oracle
PPTX
Data Guard Architecture & Setup
PPTX
Why oracle data guard new features in oracle 18c, 19c
PPTX
2.6 backup and recovery
PPT
Dataguard presentation
PDF
Architecture of exadata database machine – Part II
PDF
B35 all you wanna know about rman by francisco alvarez
PDF
Oracle RAC in the Oracle Cloud
PDF
Migration to Oracle Multitenant
PPTX
Backup & recovery with rman
PDF
Oracle 12c PDB insights
PDF
Oracle db performance tuning
PPTX
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
PPSX
RAC - The Savior of DBA
PDF
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
PPT
Linux basic commands
PPTX
Linux Initialization Process (2)
PPT
Oracle Data Guard
PDF
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 1
Understanding oracle rac internals part 1 - slides
Backup and recovery in oracle
Data Guard Architecture & Setup
Why oracle data guard new features in oracle 18c, 19c
2.6 backup and recovery
Dataguard presentation
Architecture of exadata database machine – Part II
B35 all you wanna know about rman by francisco alvarez
Oracle RAC in the Oracle Cloud
Migration to Oracle Multitenant
Backup & recovery with rman
Oracle 12c PDB insights
Oracle db performance tuning
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
RAC - The Savior of DBA
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
Linux basic commands
Linux Initialization Process (2)
Oracle Data Guard
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 1
Ad

Viewers also liked (20)

PDF
RMAN best practices for RAC
DOCX
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
DOCX
Rac questions
DOC
Backup and Recovery Procedure
PDF
153 Oracle dba interview questions
PPSX
Oracle 11g R2 RAC implementation and concept
PPTX
Understand oracle real application cluster
DOCX
Oracle dba interview questions with answer
DOCX
Dba 3+ exp qus
PDF
Managing troubleshooting cluster_360dgrees
PDF
Troug 11 gnf
PDF
Oracle exalytics deployment for high availability
PPT
IEEE Day 2013 - Best 10 New Features of Oracle Database 12c
PPTX
Oracle Day in Baku State University - Oracle Database Overview
PPTX
Oracle Database In-Memory & Multitenant - TROUG Days'16 Istanbul
PDF
You most probably dont need rman catalog database white paper
PPTX
PDF
Installation and configuration 11g r2 asm using job role separation(grid & or...
PDF
Deploying Oracle 11g R2 on Linux RHEL6
PPSX
Fonctionnalités JBoss ESB
RMAN best practices for RAC
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Rac questions
Backup and Recovery Procedure
153 Oracle dba interview questions
Oracle 11g R2 RAC implementation and concept
Understand oracle real application cluster
Oracle dba interview questions with answer
Dba 3+ exp qus
Managing troubleshooting cluster_360dgrees
Troug 11 gnf
Oracle exalytics deployment for high availability
IEEE Day 2013 - Best 10 New Features of Oracle Database 12c
Oracle Day in Baku State University - Oracle Database Overview
Oracle Database In-Memory & Multitenant - TROUG Days'16 Istanbul
You most probably dont need rman catalog database white paper
Installation and configuration 11g r2 asm using job role separation(grid & or...
Deploying Oracle 11g R2 on Linux RHEL6
Fonctionnalités JBoss ESB
Ad

Similar to Backup and Restore of database on 2-Node RAC (20)

DOCX
Rman cloning when both directory and db name are same.
DOCX
Rman cloning when both directory and db name are same.
TXT
Oracle ORA Errors
DOCX
Cloning database using srdf copy
PDF
Rman workshop short
DOC
Rman duplicate-database-on-the-same-host1
PDF
Oracle backup
DOC
br_test_lossof-datafile_10g.doc
PPT
Les 07 rman_rec
DOCX
Rman backup and recovery 11g new features
PPT
2011 384 hackworth_ppt
PPTX
What’s new in oracle 12c recovery manager (rman)
PPT
Les 02 config
PPT
5895640.ppt
PDF
Completerecovery
PPT
Les 07 Rman Rec
PDF
Backup andrecoverychecklist
PPT
Xpp c user_rec
PDF
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
DOCX
Moving 12c database from NON-ASM to ASM
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
Oracle ORA Errors
Cloning database using srdf copy
Rman workshop short
Rman duplicate-database-on-the-same-host1
Oracle backup
br_test_lossof-datafile_10g.doc
Les 07 rman_rec
Rman backup and recovery 11g new features
2011 384 hackworth_ppt
What’s new in oracle 12c recovery manager (rman)
Les 02 config
5895640.ppt
Completerecovery
Les 07 Rman Rec
Backup andrecoverychecklist
Xpp c user_rec
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
Moving 12c database from NON-ASM to ASM

More from Paulo Fagundes (10)

PDF
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
PDF
PPTX
MongoDB for the SQL Server
ODP
MongoDB - Javascript for your Data
PPTX
Capacityplanning
PDF
The Little MongoDB Book - Karl Seguin
PPTX
PDF
Oracle NoSQL Database Compared to Cassandra and HBase
PDF
The Power of Relationships in Your Big Data
PDF
Oracle NoSQL Database release 3.0 overview
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
MongoDB for the SQL Server
MongoDB - Javascript for your Data
Capacityplanning
The Little MongoDB Book - Karl Seguin
Oracle NoSQL Database Compared to Cassandra and HBase
The Power of Relationships in Your Big Data
Oracle NoSQL Database release 3.0 overview

Recently uploaded (20)

PDF
Melt Flow Index Tester from Perfect Group India
PPTX
Fabrication 1.pptx from electronics circuits and devices
PPTX
Malnutrition_Presentation_Revised.pptxhwjsjjsjs
PPTX
UAV WHAT MINERAL ARE REQUIRED FOR MAKING OF UAV
DOCX
Buy Abortion Pills Best Prices In Qatar$
PPTX
Operating_Systems_Presentation_With_Icons (1).pptx
PPTX
5. PPT Bersikap Kreatif.pptxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
PPTX
ppt to the world finance to the world in growing
DOC
咨询SBC毕业证学历认证,林顿伍德大学毕业证买大学文凭
PPTX
Magnesium_and_Phosphorus_Presentation.pptx
PPTX
美国乔治华盛顿大学硕士毕业证{GWU毕业完成信GWU成绩单}如何办理学历认证
PPTX
Presentation utk shar baurlah bhhkuaie.pptx
PPTX
SAI-CAO-24CSEN2021-PPT-UNIT-------1.pptx
PDF
Instit16health2.pdfghujjjgjkkggikjhgghhhjj
PPTX
Computer Hardware - Technology and Livelihood Education
PPT
Soldering technics Aerospace electronic assembly
PPTX
Java_Basics_Grade6 powerpoint prese.pptx
PDF
Cattle Scales (https://cattlescales.com.au/)
PPTX
加拿大埃德蒙顿康考迪亚大学毕业证书{CUE海牙认证CUE成绩单防伪}100%复刻
PPTX
vinay_mahavar_enhanddsfsdfssdfssfced.pptx
Melt Flow Index Tester from Perfect Group India
Fabrication 1.pptx from electronics circuits and devices
Malnutrition_Presentation_Revised.pptxhwjsjjsjs
UAV WHAT MINERAL ARE REQUIRED FOR MAKING OF UAV
Buy Abortion Pills Best Prices In Qatar$
Operating_Systems_Presentation_With_Icons (1).pptx
5. PPT Bersikap Kreatif.pptxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
ppt to the world finance to the world in growing
咨询SBC毕业证学历认证,林顿伍德大学毕业证买大学文凭
Magnesium_and_Phosphorus_Presentation.pptx
美国乔治华盛顿大学硕士毕业证{GWU毕业完成信GWU成绩单}如何办理学历认证
Presentation utk shar baurlah bhhkuaie.pptx
SAI-CAO-24CSEN2021-PPT-UNIT-------1.pptx
Instit16health2.pdfghujjjgjkkggikjhgghhhjj
Computer Hardware - Technology and Livelihood Education
Soldering technics Aerospace electronic assembly
Java_Basics_Grade6 powerpoint prese.pptx
Cattle Scales (https://cattlescales.com.au/)
加拿大埃德蒙顿康考迪亚大学毕业证书{CUE海牙认证CUE成绩单防伪}100%复刻
vinay_mahavar_enhanddsfsdfssdfssfced.pptx

Backup and Restore of database on 2-Node RAC

  • 1. Backup and Restore of database on 2-Node RAC Introduction: This document provides a high level overview and steps to restore a 2-node RAC database which we did in one of our environments recently. Environment Details: DBName : TEST1 Oracle version: 11gR2 Steps: 1. Take a backup of the database or else use the last successful backup from tape / disk 2. Created the parameter file with the bare minimum parameters for the database to startup. vi initTEST1.ora *.audit_file_dest='/u01/app/oracle/admin/TEST1/adump' *.audit_trail='db' *.compatible='11.2.0.2.0' *.control_files='+DATA','+FRA' *.db_block_size=8192 *.db_create_file_dest='+DATA' *.db_create_online_log_dest_1='+DATA' *.db_name='RAC' *.diagnostic_dest='/u01/app/oracle' *.log_archive_dest_1='LOCATION=+FRA' *.log_archive_format='%t_%s_%r.dbf' *.memory_target=1658847232 *.open_cursors=300 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.undo_tablespace='UNDOTBS1' *.cluster_database=false 3. Start the database in NOMOUNT stage for restore and recovery from the backup: [oracle@MYHOST1 dbs]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 1 05:58:30 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount pfile='initTEST1.ora'
  • 2. ORACLE instance started. Total System Global Area 1653518336 bytes Fixed Size 2213896 bytes Variable Size 956303352 bytes Database Buffers 687865856 bytes Redo Buffers 7135232 bytes SQL> exit 4. Connect to the Oracle Recovery Manager and restore the control file associated with the recent backup that is planned to be restored. Connect to RMAN: [oracle@MYHOST1 dbs]$ rman target / Recovery Manager: Release 11.2.0.2.0 - Production on Thu Aug 1 05:59:28 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: RAC (not mounted) RMAN> restore controlfile from autobackup Starting restore at 17-JUN-14 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=29 device type=DISK channel ORA_DISK_1: restoring control file channel ORA_DISK_1: restore complete, elapsed time: 00:00:08 output file name=+DATA/TEST1/controlfile/current.236.7445645 output file name=+FRA/TEST1/controlfile/current.235.7445645 Finished restore at 17-JUN-14 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 5. Initiate a restore of the database once the control file is restored and the DB is in mount state as shown below. RMAN> restore database; Starting restore at 17-JUN-14 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=29 device type=DISK channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00001 to +DATA/TEST1/system.356.1123822
  • 3. channel ORA_DISK_1: restoring datafile 00004 to +DATA/TEST1/users. 356.1223822 channel ORA_DISK_1: reading from backup piece channel ORA_DISK_1: piece channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:45 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00003 to +DATA/rac/datafile/undotbs1.314.822277039 channel ORA_DISK_1: restoring datafile 00005 to +DATA/rac/datafile/undotbs2.315.822277039 channel ORA_DISK_1: reading from backup piece channel ORA_DISK_1: piece channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:15 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00002 to +DATA/ TEST1/sysaux.311.822277081 channel ORA_DISK_1: reading from backup piece channel ORA_DISK_1: piece channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:36 Finished restore at 17-JUN-14 Recover the database RMAN> recover database; Starting recover at 17-JUN-14 using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 8 is already on disk as file +FRA/TEST1/2014_06_17/thread_1_seq_8.412.822282953 archived log for thread 2 with sequence 6 is already on disk as file +FRA/TEST1/2014_06_17/thread_2_seq_6.413.822282955 archived log file name=+FRA/TEST1/2014_06_17/thread_1_seq_8.412.822282953 thread=1 sequence=8 archived log file name=+FRA/TEST1/2014_06_17/thread_2_seq_6.413.822282955 thread=2 sequence=6 archived log file name=+FRA/TEST1/2014_06_17/thread_1_seq_9.415.822287039 thread=1 sequence=9 archived log file name=+FRA/TEST1/2014_06_17/thread_2_seq_7.414.822286061 thread=2 sequence=7 unable to find archived log archived log thread=2 sequence=8 6. Open the database with resetlogs:
  • 4. RMAN> alter database open resetlogs; database opened RMAN> exit Recovery Manager complete. 7. Start the database SQL> startup ORACLE instance started. Total System Global Area 1068937216 bytes Fixed Size 2220200 bytes Variable Size 616566616 bytes Database Buffers 444596224 bytes Redo Buffers 5554176 bytes Database mounted. Database opened. 8. Once the DB is started, add the entries and start using the server control utility. Start the database using SRVCTL: [oracle@MYHOST1 dbs]$ srvctl status database -d RAC Instance TEST1 is not running on node MYHOST1 [oracle@MYHOST1 dbs]$ srvctl start database -d RAC [oracle@MYHOST1 dbs]$ srvctl status database -d RAC Instance TEST1 is running on node MYHOST1