SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
RMAN best practices for
                         Real Application Clusters (RAC)




Presented by : Syed Jaffer Hussain                         Slide # 1
Know your presenter
                                                                       Syed Jaffer Hussain
                                                               Database Support Manager
                                                                    20 years IT experience
                                                               11+ years as an Oracle DBA
                                                                       Oracle ACE Director
                                                        Oracle 10g Certified Master(OCM)
                                                           Oracle 10g RAC Certified Expert
                                       Oracle Certified Professional(OCP) v8i,9i,10g & 11g
                                                              ITIL v3 Foundation Certified
                                     Authored Oracle 11g R1/R2 Real Application Clusters
                                                                                 Essentials
                                                                  Twitter: @sjaffarhussain
                                                            http://jaffardba.blogspot.com




Presented by : Syed Jaffer Hussain                                                    Slide # 2
Managing backup and recovery operations in
     RMAN for RAC and non-RAC databases
             are nearly identical ….




Presented by : Syed Jaffer Hussain        Slide # 3
What will be covered

            •   RAC Vs RMAN – why and when.
            •   RMAN overview.
            •   Multi-channel configuration
            •   Parallel recovery in RAC database.
            •   Instance Vs Crash recovery in RAC.
            •   Fast Recovery Area (FRA) for RAC database.
            •   Snapshot Controlfile backup for RAC db in 11gR2.
            •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                       Slide # 4
RAC Vs RMAN – why and when

         Real Application Clusters (RAC)            Recovery Manager (RMAN)

                 •   High Availability(HA)             •   A command-line and EM tool.
                        • Failover.
                                                       • Best used for all sort of database
                 • Scalability                             backup & recovery operations.
                      • Load balancing.


                 • It doesn’t safeguard your data      • It doesn’t provide high availability
                 from hardware failures or from
                 any disasters.




Presented by : Syed Jaffer Hussain                                                            Slide # 5
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Multi-channel configuration.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery using Enterprise Manager(EM).




Presented by : Syed Jaffer Hussain                                        Slide # 6
RMAN overview
      Recovery Manager

           •   Was first commercially introduced with Oracle v8.
           •   A command-line and EM based tool.
           •   Comes for absolutely free of cost, installed and
                  configured by default.
           •   Intended for:
                  o Online/Offline backup and restore procedures.
                  o Can back up Database, Tablespace, Datafile, and
                             Archived logs.
           •   Supports incremental, fast incremental,
                  compressed & encrypted backups.
           •   Detects [ALSO can repair ] data block corruptions.       Courtesy from Oracle docs.
           •   Must required to backup datafiles configured on
                  Automatic Storage Management (ASM).
           •   Can validate (test) backup without actually restoring.




Presented by : Syed Jaffer Hussain                                                                   Slide # 7
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 8
Configure multiple channels
      Multiple channel configuration for RAC db instances

           •   Scale up the back up load on to multiple instances of RAC
                  database by configuring multiple channels.

                                                              RACDB1



                                           Channel 1


                     RMAN>                                                 RACDB



                                           Channel 2

                                                             RACDB2




Presented by : Syed Jaffer Hussain                                                 Slide # 9
Configure multiple channels
      Working examples

           One time configuration in RMAN

           RMAN> CONFIGURE DEVICE TYPE disk/tape PARALLELISM 2;
           RMAN> CONFIGURE CHANNEL ch1 CONNECT ‘sys/password@tns_inst1’;
           RMAN> CONFIGURE CHANNEL ch2 CONNECT ‘sys/password@tns_inst2’;

           One time configuration with service name

           RMAN> CONFIGURE DEVICE TYPE disk/tape PARALLELISM 2;
           RMAN> CONFIGURE CHANNEL ch1 CONNECT ‘sys/password@service_name’;   Ensue
                                                                              LOAD_BALANCE
                                                                              turned on
                                                                              no TO
           Run time configuration                                             TAF (failover)

           RUN {
            ALLOCATE CHANNEL ch1 CONNECT ‘sys/password@tns_inst1’;
            ALLOCATE CHANNEL ch2 CONNECT ‘sys/password@tns_inst2’;
                 backup database …;
            RELEASE CHANNEL ch1;
            RELEASE CHANNEL ch2;
           }




Presented by : Syed Jaffer Hussain                                                             Slide # 10
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 11
Parallel recovery in RAC

       Apply parallelism to faster restore/recovery operations

              •   Parallelism can be applied for instance, crash and media recovery operations to faster
                     the process.

              • During instance/crash recovery, Oracle database automatically applies the optimum
                  degree of parallelism.

              • Based on the CPU count, Oracle sets an optimum number of parallelism while applying
                  archive logs.

              • Setting RECOVERY_PARALLELISM initialization parameter value to 0 or 1 disables
                   instance/crash parallelism.




Presented by : Syed Jaffer Hussain                                                                         Slide # 12
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 13
Instance Vs Crash recovery in RAC


        o When an instance goes down abruptly for a various reasons, the
              subsequent instance startup requires the instance recovery.

        o No manual intervention is required for instance/crash recovery. Oracle
               (SMON background process) automatically manages the process
               by applying online redo information.

        o The mechanism of an instance recovery is to ensure the database
               consistency post instance failure.




Presented by : Syed Jaffer Hussain                                                 Slide # 14
Instance Vs Crash recovery in RAC



           Instance recovery = one or more [not ALL] instance(s) failure of a RAC
                                   database.

           Crash recovery = failure of ALL instances of a RAC database.




Presented by : Syed Jaffer Hussain                                                  Slide # 15
Instance Vs Crash recovery in RAC



           Instance or Crash recovery done in TWO phases for a RAC database.

                         - Global Enqueue Service (LMS) background process

                         - System Monitor (SMON) background process




Presented by : Syed Jaffer Hussain                                             Slide # 16
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database



                            Instance 1                                                 Instance 2



            SMON       PMON          LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                      Redo Logs                                                   Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 17
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database



                            Instance 1                                                 Instance B
                                                                                            down


            SMON       PMON          LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                      Redo Logs                                                   Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 18
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database



                            Instance 1                                                 Instance B

                                                                                                up

            SMON       PMON          LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                      Redo Logs                                                   Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 19
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database




    LMS              GRD      Instance 1                                               Instance B
                   recovery

                                                                                                up

            SMON        PMON         LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                        Redo Logs                                                 Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 20
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database




    LMS              GRD      Instance A                                               Instance B
                   recovery




            SMON        PMON         LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                        Redo Logs                                                 Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 21
Instance Vs Crash recovery in RAC
      Instance recovery of RAC database




    LMS              GRD      Instance A                                               Instance B
                   recovery




            SMON        PMON         LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                        Redo Logs                                                 Redo Logs
                                            Archive logs                                             Archive logs




                                                                  RAC DB



Presented by : Syed Jaffer Hussain                                                                              Slide # 22
Instance Vs Crash recovery in RAC
      Crash recovery in a RAC database




                                     Failure of all instances>>



                                             Instance 2           Instance 2
                        Instance 1




                                              RAC DB




Presented by : Syed Jaffer Hussain                                             Slide # 23
Instance Vs Crash recovery in RAC
      Crash recovery in a RAC database




                                         Instance 2   Instance 3
                        Instance 1




                                         RAC DB




Presented by : Syed Jaffer Hussain                                 Slide # 24
Instance Vs Crash recovery in RAC
      Crash recovery in a RAC database




                                             Instance 2                 Instance 3
                        Instance 1



                                                    RAC DB


   The instance that comes up first performs the instance recovery for all instances of a RAC
   database


Presented by : Syed Jaffer Hussain                                                        Slide # 25
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 26
Fast Recovery Area(FRA) for RAC

                            Instance 1                                                 Instance 2



            SMON       PMON          LGWR   CKPT           ARCn            SMON   PMON        LGWR   CKPT           ARCn




                      Redo Logs                                                   Redo Logs
                                            Archive logs                                             Archive logs

                       Location destination                                       Location destination
                                                                  RAC DB




Presented by : Syed Jaffer Hussain                                                                              Slide # 27
Flash Recovery Area(FRA) for RAC

                            Instance 1                                                          Instance 2



            SMON       PMON          LGWR   CKPT           ARCn                     SMON   PMON        LGWR   CKPT           ARCn


                                                                  Read permission


                      Redo Logs                                                            Redo Logs
                                            Archive logs                                                      Archive logs

                       Location destination                                                Location destination

                                                                        RAC DB




Presented by : Syed Jaffer Hussain                                                                                       Slide # 28
Flash Recovery Area(FRA) for RAC

                            Instance 1                                          Instance 2


                                         Fast Recovery Area (FRA)

                                         1         2     1         2     Identified by the thread number

                                                    2    1         2
                                         1
                                         Redo Logs        Archive logs

                                                                         FRA =
                                                                               ASM
                                                                               CFS
                                                                               Shared Location (NFS)



                                                    RAC DB




Presented by : Syed Jaffer Hussain                                                                         Slide # 29
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 30
Snapshot Controlfile backup in 11gR2


             • Must reside on a shared device in 11gR2 or later.

             • All instances must have access to the snapshot controlfile.

             • Same snapshot controlfile will be shared by all nodes of RAC db.


      RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO <shared_location>;
                                                                   This must be done on EACH instance.




              ORA-00245: control file backup operation failed



Presented by : Syed Jaffer Hussain                                                           Slide # 31
What will be covered


             •   RAC Vs RMAN – why and when.
             •   RMAN overview.
             •   Configure multiple channels.
             •   Parallel recovery in RAC database.
             •   Instance Vs Crash recovery in RAC.
             •   Fast Recovery Area (FRA) for RAC database.
             •   Snapshot Controlfile backup for RAC db in 11gR2.
             •   Manage backup & recovery with Oracle Grid Control /EM.




Presented by : Syed Jaffer Hussain                                        Slide # 32
Manage B&R using Enterprise Manager




Presented by : Syed Jaffer Hussain    Slide # 33
Manage B&R using Enterprise Manager




Presented by : Syed Jaffer Hussain    Slide # 34
A big thank you to all
                                               for
                                          listening ...
                                                     You can write me at sjaffarhussain@gmail.com




Presented by : Syed Jaffer Hussain                                                       Slide # 35

Weitere ähnliche Inhalte

Was ist angesagt?

Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
 

Was ist angesagt? (20)

TFA Collector - what can one do with it
TFA Collector - what can one do with it TFA Collector - what can one do with it
TFA Collector - what can one do with it
 
High Availability for Oracle SE2
High Availability for Oracle SE2High Availability for Oracle SE2
High Availability for Oracle SE2
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21c
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Oracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High AvailabilityOracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High Availability
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & How
 

Andere mochten auch

Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Yury Velikanov
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
Satishbabu Gunukula
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
Anar Godjaev
 
Oracle rac 10g best practices
Oracle rac 10g best practicesOracle rac 10g best practices
Oracle rac 10g best practices
Haseeb Alam
 

Andere mochten auch (20)

Backup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RACBackup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RAC
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Rac questions
Rac questionsRac questions
Rac questions
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup script
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Troug 11 gnf
Troug 11 gnfTroug 11 gnf
Troug 11 gnf
 
Oracle rac 10g best practices
Oracle rac 10g best practicesOracle rac 10g best practices
Oracle rac 10g best practices
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper
 
Oracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesOracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New Features
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
Alphorm.com Support de la formation Vmware Esxi 6.0
Alphorm.com Support de la formation Vmware Esxi 6.0Alphorm.com Support de la formation Vmware Esxi 6.0
Alphorm.com Support de la formation Vmware Esxi 6.0
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 
Upgrading to Oracle 11gR2
Upgrading to Oracle 11gR2Upgrading to Oracle 11gR2
Upgrading to Oracle 11gR2
 

Ähnlich wie RMAN best practices for RAC

Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
Satishbabu Gunukula
 
Oracle 11g rac administration
Oracle 11g rac administrationOracle 11g rac administration
Oracle 11g rac administration
elshiekh1980
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision
Ermando
 
Dipesh Singh 01112016
Dipesh Singh 01112016Dipesh Singh 01112016
Dipesh Singh 01112016
Dipesh Singh
 
Muhammad Hameed Chaudhry
Muhammad Hameed ChaudhryMuhammad Hameed Chaudhry
Muhammad Hameed Chaudhry
Aamir Chaudhry
 

Ähnlich wie RMAN best practices for RAC (20)

Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
 
Oracle 11g rac administration
Oracle 11g rac administrationOracle 11g rac administration
Oracle 11g rac administration
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision
 
Resume
ResumeResume
Resume
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Building an Oracle Grid with Oracle VM on Dell Blade Servers and EqualLogic i...
Building an Oracle Grid with Oracle VM on Dell Blade Servers and EqualLogic i...Building an Oracle Grid with Oracle VM on Dell Blade Servers and EqualLogic i...
Building an Oracle Grid with Oracle VM on Dell Blade Servers and EqualLogic i...
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
Oracle database high availability solutions
Oracle database high availability solutionsOracle database high availability solutions
Oracle database high availability solutions
 
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
 
Oracle RAC - New Generation
Oracle RAC - New GenerationOracle RAC - New Generation
Oracle RAC - New Generation
 
Dipesh Singh 01112016
Dipesh Singh 01112016Dipesh Singh 01112016
Dipesh Singh 01112016
 
Oracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One NodeOracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One Node
 
Muhammad Hameed Chaudhry
Muhammad Hameed ChaudhryMuhammad Hameed Chaudhry
Muhammad Hameed Chaudhry
 
Database backup 110810
Database backup 110810Database backup 110810
Database backup 110810
 
Collaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mysteryCollaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mystery
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
Clustering van IT-componenten
Clustering van IT-componentenClustering van IT-componenten
Clustering van IT-componenten
 
Unlocking Business Potential with Oracle Real
Unlocking Business Potential with Oracle RealUnlocking Business Potential with Oracle Real
Unlocking Business Potential with Oracle Real
 

Kürzlich hochgeladen

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Kürzlich hochgeladen (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 

RMAN best practices for RAC

  • 1. RMAN best practices for Real Application Clusters (RAC) Presented by : Syed Jaffer Hussain Slide # 1
  • 2. Know your presenter Syed Jaffer Hussain Database Support Manager 20 years IT experience 11+ years as an Oracle DBA Oracle ACE Director Oracle 10g Certified Master(OCM) Oracle 10g RAC Certified Expert Oracle Certified Professional(OCP) v8i,9i,10g & 11g ITIL v3 Foundation Certified Authored Oracle 11g R1/R2 Real Application Clusters Essentials Twitter: @sjaffarhussain http://jaffardba.blogspot.com Presented by : Syed Jaffer Hussain Slide # 2
  • 3. Managing backup and recovery operations in RMAN for RAC and non-RAC databases are nearly identical …. Presented by : Syed Jaffer Hussain Slide # 3
  • 4. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Multi-channel configuration • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 4
  • 5. RAC Vs RMAN – why and when Real Application Clusters (RAC) Recovery Manager (RMAN) • High Availability(HA) • A command-line and EM tool. • Failover. • Best used for all sort of database • Scalability backup & recovery operations. • Load balancing. • It doesn’t safeguard your data • It doesn’t provide high availability from hardware failures or from any disasters. Presented by : Syed Jaffer Hussain Slide # 5
  • 6. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Multi-channel configuration. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery using Enterprise Manager(EM). Presented by : Syed Jaffer Hussain Slide # 6
  • 7. RMAN overview Recovery Manager • Was first commercially introduced with Oracle v8. • A command-line and EM based tool. • Comes for absolutely free of cost, installed and configured by default. • Intended for: o Online/Offline backup and restore procedures. o Can back up Database, Tablespace, Datafile, and Archived logs. • Supports incremental, fast incremental, compressed & encrypted backups. • Detects [ALSO can repair ] data block corruptions. Courtesy from Oracle docs. • Must required to backup datafiles configured on Automatic Storage Management (ASM). • Can validate (test) backup without actually restoring. Presented by : Syed Jaffer Hussain Slide # 7
  • 8. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 8
  • 9. Configure multiple channels Multiple channel configuration for RAC db instances • Scale up the back up load on to multiple instances of RAC database by configuring multiple channels. RACDB1 Channel 1 RMAN> RACDB Channel 2 RACDB2 Presented by : Syed Jaffer Hussain Slide # 9
  • 10. Configure multiple channels Working examples One time configuration in RMAN RMAN> CONFIGURE DEVICE TYPE disk/tape PARALLELISM 2; RMAN> CONFIGURE CHANNEL ch1 CONNECT ‘sys/password@tns_inst1’; RMAN> CONFIGURE CHANNEL ch2 CONNECT ‘sys/password@tns_inst2’; One time configuration with service name RMAN> CONFIGURE DEVICE TYPE disk/tape PARALLELISM 2; RMAN> CONFIGURE CHANNEL ch1 CONNECT ‘sys/password@service_name’; Ensue LOAD_BALANCE turned on no TO Run time configuration TAF (failover) RUN { ALLOCATE CHANNEL ch1 CONNECT ‘sys/password@tns_inst1’; ALLOCATE CHANNEL ch2 CONNECT ‘sys/password@tns_inst2’; backup database …; RELEASE CHANNEL ch1; RELEASE CHANNEL ch2; } Presented by : Syed Jaffer Hussain Slide # 10
  • 11. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 11
  • 12. Parallel recovery in RAC Apply parallelism to faster restore/recovery operations • Parallelism can be applied for instance, crash and media recovery operations to faster the process. • During instance/crash recovery, Oracle database automatically applies the optimum degree of parallelism. • Based on the CPU count, Oracle sets an optimum number of parallelism while applying archive logs. • Setting RECOVERY_PARALLELISM initialization parameter value to 0 or 1 disables instance/crash parallelism. Presented by : Syed Jaffer Hussain Slide # 12
  • 13. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 13
  • 14. Instance Vs Crash recovery in RAC o When an instance goes down abruptly for a various reasons, the subsequent instance startup requires the instance recovery. o No manual intervention is required for instance/crash recovery. Oracle (SMON background process) automatically manages the process by applying online redo information. o The mechanism of an instance recovery is to ensure the database consistency post instance failure. Presented by : Syed Jaffer Hussain Slide # 14
  • 15. Instance Vs Crash recovery in RAC Instance recovery = one or more [not ALL] instance(s) failure of a RAC database. Crash recovery = failure of ALL instances of a RAC database. Presented by : Syed Jaffer Hussain Slide # 15
  • 16. Instance Vs Crash recovery in RAC Instance or Crash recovery done in TWO phases for a RAC database. - Global Enqueue Service (LMS) background process - System Monitor (SMON) background process Presented by : Syed Jaffer Hussain Slide # 16
  • 17. Instance Vs Crash recovery in RAC Instance recovery of RAC database Instance 1 Instance 2 SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 17
  • 18. Instance Vs Crash recovery in RAC Instance recovery of RAC database Instance 1 Instance B down SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 18
  • 19. Instance Vs Crash recovery in RAC Instance recovery of RAC database Instance 1 Instance B up SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 19
  • 20. Instance Vs Crash recovery in RAC Instance recovery of RAC database LMS GRD Instance 1 Instance B recovery up SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 20
  • 21. Instance Vs Crash recovery in RAC Instance recovery of RAC database LMS GRD Instance A Instance B recovery SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 21
  • 22. Instance Vs Crash recovery in RAC Instance recovery of RAC database LMS GRD Instance A Instance B recovery SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs RAC DB Presented by : Syed Jaffer Hussain Slide # 22
  • 23. Instance Vs Crash recovery in RAC Crash recovery in a RAC database Failure of all instances>> Instance 2 Instance 2 Instance 1 RAC DB Presented by : Syed Jaffer Hussain Slide # 23
  • 24. Instance Vs Crash recovery in RAC Crash recovery in a RAC database Instance 2 Instance 3 Instance 1 RAC DB Presented by : Syed Jaffer Hussain Slide # 24
  • 25. Instance Vs Crash recovery in RAC Crash recovery in a RAC database Instance 2 Instance 3 Instance 1 RAC DB The instance that comes up first performs the instance recovery for all instances of a RAC database Presented by : Syed Jaffer Hussain Slide # 25
  • 26. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 26
  • 27. Fast Recovery Area(FRA) for RAC Instance 1 Instance 2 SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Redo Logs Redo Logs Archive logs Archive logs Location destination Location destination RAC DB Presented by : Syed Jaffer Hussain Slide # 27
  • 28. Flash Recovery Area(FRA) for RAC Instance 1 Instance 2 SMON PMON LGWR CKPT ARCn SMON PMON LGWR CKPT ARCn Read permission Redo Logs Redo Logs Archive logs Archive logs Location destination Location destination RAC DB Presented by : Syed Jaffer Hussain Slide # 28
  • 29. Flash Recovery Area(FRA) for RAC Instance 1 Instance 2 Fast Recovery Area (FRA) 1 2 1 2 Identified by the thread number 2 1 2 1 Redo Logs Archive logs FRA = ASM CFS Shared Location (NFS) RAC DB Presented by : Syed Jaffer Hussain Slide # 29
  • 30. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 30
  • 31. Snapshot Controlfile backup in 11gR2 • Must reside on a shared device in 11gR2 or later. • All instances must have access to the snapshot controlfile. • Same snapshot controlfile will be shared by all nodes of RAC db. RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO <shared_location>; This must be done on EACH instance. ORA-00245: control file backup operation failed Presented by : Syed Jaffer Hussain Slide # 31
  • 32. What will be covered • RAC Vs RMAN – why and when. • RMAN overview. • Configure multiple channels. • Parallel recovery in RAC database. • Instance Vs Crash recovery in RAC. • Fast Recovery Area (FRA) for RAC database. • Snapshot Controlfile backup for RAC db in 11gR2. • Manage backup & recovery with Oracle Grid Control /EM. Presented by : Syed Jaffer Hussain Slide # 32
  • 33. Manage B&R using Enterprise Manager Presented by : Syed Jaffer Hussain Slide # 33
  • 34. Manage B&R using Enterprise Manager Presented by : Syed Jaffer Hussain Slide # 34
  • 35. A big thank you to all for listening ... You can write me at sjaffarhussain@gmail.com Presented by : Syed Jaffer Hussain Slide # 35