SlideShare ist ein Scribd-Unternehmen logo
1 von 28
MIGRATING FROM SINGLE INSTANCE TO RAC AND
 UPGRADING: A DATA GUARD SUCCESS STORY

          Fuad Arshad @fuadar
            Walgreen Company
Me, Myself & I

•   More than 15 years of Oracle experience
•   Worked in textiles, telecom & retail/healthcare
•   Currently work for Walgreens in the Enterprise Shared
    Services area
•   Areas of Interest: backup & recovery, high availability,
    MAA, performance tuning
Socially Networkable
•   Twitter @fuadar

•   Linkedin http://www.linkedin.com/in/fuadar

•   G+ +Fuad Arshad

•   Blog http://www.fuadarshad.com
Agenda
•   Problem
•   Analysis
•   Decision
•   Strategy
•   Migration
•   Things to look out for!
•   Credits
Community Access
•       RAC Attack                 Ask Questions
•       IOUG RAC SIG
                                    •   Freelists Oracle L
•       IOUG
                                    •   Stack Overflow
Blogs / Blogs /Blogs .
                                    •   Quora
    •    http://www.orana.info
                                    •   MOS Communities
    •    http://blogs.oracle.com
                                    •   Oracle Forums
    •    http://www.oaktable.net
The Problem

“It was very early, and we were still like beta or alpha
stage, and so we started receiving a ton of download.
The server became overloaded, and that's when I
realized that this had a huge market.”
Shawn Fanning (Napster)



                         Paper #371                        7
Our Problem


• The application was growing and adding features
• Customer access slowdown was reported


                      Paper #371                    8
Our Problem

• System built in the early 2000’s to handle the new
  wave of technology
• More work as newer features were rolled out
• Architecture & design not intended to handle the
  rate of change
• Database is always the bottleneck
                        Paper #371                     9
Analysis
• Active/Passive servers
• Oracle database version close to desupport
• Old OS version
• Old SAN infrastructure
• CPU and disk I/O issues
         Result -----> IT WAS OLD
                    Paper #371                 10
Analysis
• Active/Passive Servers
• Oracle Database version close to desupport
• Old OS version
• Old SAN infrastructure

     • Result ---------------- IT WAS OLD
                     Paper #371                11
Paper #371   12
Decision
• Let’s migrate to RAC
• Can it be done yesterday?
• Can we do it with zero downtime?
• The application team doesn’t want to change
  anything


                    Paper #371                  13
Strategy
• Export/Import
• Transportable Table spaces
• Disk based replication
• GoldenGate
• Data Guard - The Choice
                   Paper #371   14
Pre-Migration


• Build of servers
• Build of network
• RAC starter kits

                     Paper #371   15
Pre-Migration

•   The strategy was to build a RAC database from a single
    instance environment
•   Oracle provided instructions on how to prep the single instance
    environment so that it is RAC-aware. This includes running
    catclust scripts and adding undo tablespaces for the number of
    nodes that the new cluster will have



                             Paper #371                               16
Pre-Migration
•   The server builds need to have all the patches based on the OS
    that is being used
•   Oracle provides a variety of starter kits that can be used to
    validate the configuration
•   It is also important that the network be configured and available
    based on best practices
•   11.2.0.2 and above have added requirements like SCAN that
    need to be accounted for

                              Paper #371                            17
Pre-Migration
•   RAC Check is important tool to ensure that the environment is
    built based on best practices
•   RAC Check can be downloaded at MOS # 1268927.1 and is
    updated frequently
    – OS settings including kernel parameters and patches
    – CRS/Grid Infrastructure
    – RDBMS memory and database parameters
    – ASM parameters and statistics


                            Paper #371                              18
Pre-Migration (Primary)
Data Guard setup steps need to be followed which include :
  •   Enable supplemental logging & force logging on primary

  •   Add additional REDO threads (Based on # of RAC nodes)

  •   Add additional UNDO tablespaces (Based on # of RAC nodes)

  •   Backup the primary database

  •   Create a PFILE from the primary database

  •   Copy TNSNAMES and LISTENER files into a staging directory

  •   Configure the primary database for Data Guard

                                 Paper #371                       19
Pre-Migration
•   RAC Check is important tool to ensure that the environment is
    built based on best practices
•   RAC Check can be downloaded at MOS # 1268927.1 and is
    updated frequently
    – OS settings including kernel parameters and patches
    – CRS/Grid Infrastructure
    – RDBMS memory and database parameters
    – ASM parameters and statistics


                            Paper #371                              20
Pre-Migration (Standby RAC)
•   Data Guard setup steps need to be followed which include:
    •   NFS mount or copy backup and auxiliary files
    •   Configure Oracle Net which includes setting up TNSNAMES and LISTENER
        for 11.2.0.2 (This will be done in the Grid infrastructure home)
    •   Modify the TNSNAMES.ORA to include the primary as well as the standby
        tns entries
    •   Create a tns entry for the listener and make sure it is referenced in the
        REMOTE_LISTENER (REMOTE_LISTENER specifies the global list of
        listeners in a RAC configuration)
    •   Make sure the listener alias referenced by the LOCAL_LISTENER
        initialization parameter is in each standby tnsnames.ora file
    •   Ensure that the standby server has the same software version and patches
        installed as the primary   Paper #371                                    21
Pre-Migration (Standby RAC, cont.)
Data Guard setup steps need to be followed which include:
  •   Ensure that a password file is configured on both the primary and the
      standby
  •   Copy the PFILE to the $ORACLE_HOME/dbs in the standby node
  •   Add DB_UNIQUE_NAME and CLUSTER_DATABASE parameters in the
      PFILE
  •   Modify all the other parameters outlined in the white paper
  •   Connect to the standby and create an SPFILE in the ASM diskgroup
  •   Startup the proposed standby environment in NOMOUNT mode
  •   Duplicate the database using “DUPLICATE TARGET DATABASE FOR
      STANDBY”
  •   Setup Server Control (SRVCTL) to register the instances
                                  Paper #371                                  22
Pre-Migration (Standby RAC, cont.)
Data Guard setup steps need to be followed which include:
  •   Add additional standby REDO logs (The number of standby redo logs should
      be one more than the number of online REDO logs per thread and should be
      the same size)
  •   Enable Managed Recovery Mode on the standby database
  •   Enable archive destination on the primary to start shipping logs to the
      standby
  •   Validate the transfer
  •   Setup Data Guard Broker
  •   Validate the configuration and ensure that logs are being applied
  •   Bring up the other nodes in the RAC environment
                                   Paper #371                                   23
Migration
Migrating is simple after the Data Guard database is setup
   •   Ensure all ARCHIVELOGS have been applied
   •   Put the primary database in restricted mode and switch ARCHIVELOGS
   •   After all the outstanding logs have been applied, shutdown REDO apply on
       the standby
   •   Validate SCN across the primary and the standby
   •   Two options from here:
       - Switchover & upgrade
       - Shutdown & upgrade
   **We Chose Shutdown & Upgrade**
                                  Paper #371                                  24
Migration

•   All standby RAC nodes can be up if using DBUA

•   Ensure pre-checks are done

•   DBUA is brutal if you don’t remove the obsolete parameters

•   DST changes are important

•   If manually upgrading DBMS_DST needs to be run to upgrade DST




                                Paper #371                          25
Things to Look Out For
Ensure Environments Are Validated
  •   RDA should be run and all issues fixed
  •   RAC check will give you a detailed overview of the system
  •   Ensure all starter kits and the RAC manuals are consulted: the result can be
      a good best practices evolving document
  •   Use services to better manage how the application connects and load
      balance your system
  •   Private network is key with RAC: follow Oracle’s best practices.
  •   XA changes in 11.2.0.2 & can cause issues: important to understand them
  •   “Compatible” parameter testing is important.
  •   Monitoring the environment after go-live is very important
                                    Paper #371                                       26
Credits
I’d like to thank the following people for helping me with the
presentation and accompanying white paper:
    •    Matthew Gallagher, Architect -- Walgreens

    •    Brice Lahl, Manager DB Architecture -- Walgreens

    •    Daniel Morgan, ACE Director -- Drugstore.com

A special shout out to Arup Nanda & Alex Gorbachev for encouraging me to present and
Leighton Smith for reviewing my session

Also special credit to the RAC Assurance Team at Oracle for helping is get through this migration and
subsequent issues. Some content in the whitepaper and presentation has been republished with permission from
the Oracle RAC Assurance Team whose goal had been to proactively provide input to customers with new and
existing CRS, RAC, ASM and MAA implementations.

                                             Paper #371                                                  27
Questions
• Please fill
  out
  evaluations

    Paper #371   28

Weitere ähnliche Inhalte

Was ist angesagt?

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 RACPaulo Fagundes
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data GuardMartin Meyer
 
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 InternalsAnil Nair
 
Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentationVimlendu Kumar
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Osama Mustafa
 
Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Raghu Udiyar
 
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 hostOsama Mustafa
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerZohar Elkayam
 
Oracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RACOracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RACMarkus Michalewicz
 
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 EditionMarkus Michalewicz
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONMarkus Michalewicz
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Glen Hawkins
 
Rman Presentation
Rman PresentationRman Presentation
Rman PresentationRick van Ek
 
PostgreSQL at 20TB and Beyond
PostgreSQL at 20TB and BeyondPostgreSQL at 20TB and Beyond
PostgreSQL at 20TB and BeyondChris Travers
 
RecuperaciĂłn de la base de datos en Oracle
RecuperaciĂłn de la base de datos en OracleRecuperaciĂłn de la base de datos en Oracle
RecuperaciĂłn de la base de datos en OracleCarmen Soler
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...Sandesh Rao
 

Was ist angesagt? (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
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
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
 
Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
ASM
ASMASM
ASM
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
 
Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6 Transparent Hugepages in RHEL 6
Transparent Hugepages in RHEL 6
 
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
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
 
Oracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RACOracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RAC
 
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
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
PostgreSQL at 20TB and Beyond
PostgreSQL at 20TB and BeyondPostgreSQL at 20TB and Beyond
PostgreSQL at 20TB and Beyond
 
RecuperaciĂłn de la base de datos en Oracle
RecuperaciĂłn de la base de datos en OracleRecuperaciĂłn de la base de datos en Oracle
RecuperaciĂłn de la base de datos en Oracle
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
 

Ähnlich wie MIgrating from Single Instance to RAC via Dataguard

MIgrating to RAC using Dataguard
MIgrating to RAC  using Dataguard MIgrating to RAC  using Dataguard
MIgrating to RAC using Dataguard Fuad Arshad
 
Dipesh Singh 01112016
Dipesh Singh 01112016Dipesh Singh 01112016
Dipesh Singh 01112016Dipesh Singh
 
Are You Ready for 12c? Data Migration and Upgrade Best Practices
Are You Ready for 12c? Data Migration and Upgrade Best PracticesAre You Ready for 12c? Data Migration and Upgrade Best Practices
Are You Ready for 12c? Data Migration and Upgrade Best PracticesPerformance Tuning Corporation
 
Oracle big data appliance and solutions
Oracle big data appliance and solutionsOracle big data appliance and solutions
Oracle big data appliance and solutionssolarisyougood
 
Yugandhar uppala oracle dba_2016
Yugandhar uppala oracle dba_2016Yugandhar uppala oracle dba_2016
Yugandhar uppala oracle dba_2016Yugandhar Uppala
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScyllaDB
 
Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Fuad Arshad
 
Deepak_Singh_CV
Deepak_Singh_CVDeepak_Singh_CV
Deepak_Singh_CVdeepak singh
 
Rohit_Panot
Rohit_PanotRohit_Panot
Rohit_PanotRohit Panot
 
Chaitanyadba profile (1) (1) gg
Chaitanyadba profile  (1) (1)   ggChaitanyadba profile  (1) (1)   gg
Chaitanyadba profile (1) (1) ggChaitanya Dba
 
NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5UniFabric
 
Oracle_DBA_Biswachetak_palo
Oracle_DBA_Biswachetak_paloOracle_DBA_Biswachetak_palo
Oracle_DBA_Biswachetak_paloBiswachetak Palo
 
Razak
RazakRazak
Razakrazak md
 
Modern MySQL Monitoring and Dashboards.
Modern MySQL Monitoring and Dashboards.Modern MySQL Monitoring and Dashboards.
Modern MySQL Monitoring and Dashboards.Mydbops
 
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Bobby Curtis
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 
I one Service Offerings
I one Service OfferingsI one Service Offerings
I one Service OfferingsiONE ITSolutions
 

Ähnlich wie MIgrating from Single Instance to RAC via Dataguard (20)

MIgrating to RAC using Dataguard
MIgrating to RAC  using Dataguard MIgrating to RAC  using Dataguard
MIgrating to RAC using Dataguard
 
Dipesh Singh 01112016
Dipesh Singh 01112016Dipesh Singh 01112016
Dipesh Singh 01112016
 
Are You Ready for 12c? Data Migration and Upgrade Best Practices
Are You Ready for 12c? Data Migration and Upgrade Best PracticesAre You Ready for 12c? Data Migration and Upgrade Best Practices
Are You Ready for 12c? Data Migration and Upgrade Best Practices
 
ChaitanyaPrati
ChaitanyaPratiChaitanyaPrati
ChaitanyaPrati
 
Oracle big data appliance and solutions
Oracle big data appliance and solutionsOracle big data appliance and solutions
Oracle big data appliance and solutions
 
Yugandhar uppala oracle dba_2016
Yugandhar uppala oracle dba_2016Yugandhar uppala oracle dba_2016
Yugandhar uppala oracle dba_2016
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the Database
 
Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard Migrating from Single Instance to RAC Data guard
Migrating from Single Instance to RAC Data guard
 
Deepak_Singh_CV
Deepak_Singh_CVDeepak_Singh_CV
Deepak_Singh_CV
 
rakesh_resume
rakesh_resumerakesh_resume
rakesh_resume
 
Rohit_Panot
Rohit_PanotRohit_Panot
Rohit_Panot
 
Chaitanyadba profile (1) (1) gg
Chaitanyadba profile  (1) (1)   ggChaitanyadba profile  (1) (1)   gg
Chaitanyadba profile (1) (1) gg
 
NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5
 
Oracle_DBA_Biswachetak_palo
Oracle_DBA_Biswachetak_paloOracle_DBA_Biswachetak_palo
Oracle_DBA_Biswachetak_palo
 
Razak
RazakRazak
Razak
 
Modern MySQL Monitoring and Dashboards.
Modern MySQL Monitoring and Dashboards.Modern MySQL Monitoring and Dashboards.
Modern MySQL Monitoring and Dashboards.
 
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 
Sitaram_Chalasani_CV
Sitaram_Chalasani_CVSitaram_Chalasani_CV
Sitaram_Chalasani_CV
 
I one Service Offerings
I one Service OfferingsI one Service Offerings
I one Service Offerings
 

KĂźrzlich hochgeladen

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vĂĄzquez
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 

KĂźrzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

MIgrating from Single Instance to RAC via Dataguard

  • 1.
  • 2. MIGRATING FROM SINGLE INSTANCE TO RAC AND UPGRADING: A DATA GUARD SUCCESS STORY Fuad Arshad @fuadar Walgreen Company
  • 3. Me, Myself & I • More than 15 years of Oracle experience • Worked in textiles, telecom & retail/healthcare • Currently work for Walgreens in the Enterprise Shared Services area • Areas of Interest: backup & recovery, high availability, MAA, performance tuning
  • 4. Socially Networkable • Twitter @fuadar • Linkedin http://www.linkedin.com/in/fuadar • G+ +Fuad Arshad • Blog http://www.fuadarshad.com
  • 5. Agenda • Problem • Analysis • Decision • Strategy • Migration • Things to look out for! • Credits
  • 6. Community Access • RAC Attack Ask Questions • IOUG RAC SIG • Freelists Oracle L • IOUG • Stack Overflow Blogs / Blogs /Blogs . • Quora • http://www.orana.info • MOS Communities • http://blogs.oracle.com • Oracle Forums • http://www.oaktable.net
  • 7. The Problem “It was very early, and we were still like beta or alpha stage, and so we started receiving a ton of download. The server became overloaded, and that's when I realized that this had a huge market.” Shawn Fanning (Napster) Paper #371 7
  • 8. Our Problem • The application was growing and adding features • Customer access slowdown was reported Paper #371 8
  • 9. Our Problem • System built in the early 2000’s to handle the new wave of technology • More work as newer features were rolled out • Architecture & design not intended to handle the rate of change • Database is always the bottleneck Paper #371 9
  • 10. Analysis • Active/Passive servers • Oracle database version close to desupport • Old OS version • Old SAN infrastructure • CPU and disk I/O issues Result -----> IT WAS OLD Paper #371 10
  • 11. Analysis • Active/Passive Servers • Oracle Database version close to desupport • Old OS version • Old SAN infrastructure • Result ---------------- IT WAS OLD Paper #371 11
  • 13. Decision • Let’s migrate to RAC • Can it be done yesterday? • Can we do it with zero downtime? • The application team doesn’t want to change anything Paper #371 13
  • 14. Strategy • Export/Import • Transportable Table spaces • Disk based replication • GoldenGate • Data Guard - The Choice Paper #371 14
  • 15. Pre-Migration • Build of servers • Build of network • RAC starter kits Paper #371 15
  • 16. Pre-Migration • The strategy was to build a RAC database from a single instance environment • Oracle provided instructions on how to prep the single instance environment so that it is RAC-aware. This includes running catclust scripts and adding undo tablespaces for the number of nodes that the new cluster will have Paper #371 16
  • 17. Pre-Migration • The server builds need to have all the patches based on the OS that is being used • Oracle provides a variety of starter kits that can be used to validate the configuration • It is also important that the network be configured and available based on best practices • 11.2.0.2 and above have added requirements like SCAN that need to be accounted for Paper #371 17
  • 18. Pre-Migration • RAC Check is important tool to ensure that the environment is built based on best practices • RAC Check can be downloaded at MOS # 1268927.1 and is updated frequently – OS settings including kernel parameters and patches – CRS/Grid Infrastructure – RDBMS memory and database parameters – ASM parameters and statistics Paper #371 18
  • 19. Pre-Migration (Primary) Data Guard setup steps need to be followed which include : • Enable supplemental logging & force logging on primary • Add additional REDO threads (Based on # of RAC nodes) • Add additional UNDO tablespaces (Based on # of RAC nodes) • Backup the primary database • Create a PFILE from the primary database • Copy TNSNAMES and LISTENER files into a staging directory • Configure the primary database for Data Guard Paper #371 19
  • 20. Pre-Migration • RAC Check is important tool to ensure that the environment is built based on best practices • RAC Check can be downloaded at MOS # 1268927.1 and is updated frequently – OS settings including kernel parameters and patches – CRS/Grid Infrastructure – RDBMS memory and database parameters – ASM parameters and statistics Paper #371 20
  • 21. Pre-Migration (Standby RAC) • Data Guard setup steps need to be followed which include: • NFS mount or copy backup and auxiliary files • Configure Oracle Net which includes setting up TNSNAMES and LISTENER for 11.2.0.2 (This will be done in the Grid infrastructure home) • Modify the TNSNAMES.ORA to include the primary as well as the standby tns entries • Create a tns entry for the listener and make sure it is referenced in the REMOTE_LISTENER (REMOTE_LISTENER specifies the global list of listeners in a RAC configuration) • Make sure the listener alias referenced by the LOCAL_LISTENER initialization parameter is in each standby tnsnames.ora file • Ensure that the standby server has the same software version and patches installed as the primary Paper #371 21
  • 22. Pre-Migration (Standby RAC, cont.) Data Guard setup steps need to be followed which include: • Ensure that a password file is configured on both the primary and the standby • Copy the PFILE to the $ORACLE_HOME/dbs in the standby node • Add DB_UNIQUE_NAME and CLUSTER_DATABASE parameters in the PFILE • Modify all the other parameters outlined in the white paper • Connect to the standby and create an SPFILE in the ASM diskgroup • Startup the proposed standby environment in NOMOUNT mode • Duplicate the database using “DUPLICATE TARGET DATABASE FOR STANDBY” • Setup Server Control (SRVCTL) to register the instances Paper #371 22
  • 23. Pre-Migration (Standby RAC, cont.) Data Guard setup steps need to be followed which include: • Add additional standby REDO logs (The number of standby redo logs should be one more than the number of online REDO logs per thread and should be the same size) • Enable Managed Recovery Mode on the standby database • Enable archive destination on the primary to start shipping logs to the standby • Validate the transfer • Setup Data Guard Broker • Validate the configuration and ensure that logs are being applied • Bring up the other nodes in the RAC environment Paper #371 23
  • 24. Migration Migrating is simple after the Data Guard database is setup • Ensure all ARCHIVELOGS have been applied • Put the primary database in restricted mode and switch ARCHIVELOGS • After all the outstanding logs have been applied, shutdown REDO apply on the standby • Validate SCN across the primary and the standby • Two options from here: - Switchover & upgrade - Shutdown & upgrade **We Chose Shutdown & Upgrade** Paper #371 24
  • 25. Migration • All standby RAC nodes can be up if using DBUA • Ensure pre-checks are done • DBUA is brutal if you don’t remove the obsolete parameters • DST changes are important • If manually upgrading DBMS_DST needs to be run to upgrade DST Paper #371 25
  • 26. Things to Look Out For Ensure Environments Are Validated • RDA should be run and all issues fixed • RAC check will give you a detailed overview of the system • Ensure all starter kits and the RAC manuals are consulted: the result can be a good best practices evolving document • Use services to better manage how the application connects and load balance your system • Private network is key with RAC: follow Oracle’s best practices. • XA changes in 11.2.0.2 & can cause issues: important to understand them • “Compatible” parameter testing is important. • Monitoring the environment after go-live is very important Paper #371 26
  • 27. Credits I’d like to thank the following people for helping me with the presentation and accompanying white paper: • Matthew Gallagher, Architect -- Walgreens • Brice Lahl, Manager DB Architecture -- Walgreens • Daniel Morgan, ACE Director -- Drugstore.com A special shout out to Arup Nanda & Alex Gorbachev for encouraging me to present and Leighton Smith for reviewing my session Also special credit to the RAC Assurance Team at Oracle for helping is get through this migration and subsequent issues. Some content in the whitepaper and presentation has been republished with permission from the Oracle RAC Assurance Team whose goal had been to proactively provide input to customers with new and existing CRS, RAC, ASM and MAA implementations. Paper #371 27
  • 28. Questions • Please fill out evaluations Paper #371 28

Hinweis der Redaktion

  1. While the chart shows about an average CPU consumption. What is doesn’t show it the what you see in the High Value Seasonal Adjustment which was 92 %. Now we Always had and Still have What Tom /Graham and Andrew talk about too many connections ratio to the the cores available
  2. This was a plan presented to upgrade the hardware in current form.
  3. Decisions are always hard and are always made late. The users expect that time to market after a decision to be immediate.
  4. Adding the dg_config,archive_dest fal_server and fal_client can be done ahead of time with the log_archive_dest_state be disabled till the standby instance is up
  5. It is very important to understand that the infrastructure has to be ready and support a RAC environment. The SPFILE shouldb e on a shared Accessible point as well as all nodes need to be in the GI already
  6. It is very important to ensure that fal_client and fal_server are set up correctly. Dataguard Broker can be setup with a few caveats since it is not officially supported on an Active/Passive Cluster. The Solution to Having a Active/Passive Cluster Working with a Broker is setting the local_listener parameter to the Virtual NodeName/IP
  7. Prechecks like utl112i not being run and validated can cause issue. We have seen cases where if too many versions are in between the upgrades utl112 might not catch an obsolete parameter and cause issues with DBUA. We tested the process with manual upgrades and DBUA. DBUA is much cleaner in newer versions and allows for getting everything right. Logging is better.
  8. Prechecks like utl112i not being run and validated can cause issue. We have seen cases where if too many versions are in between the upgrades utl112 might not catch an obsolete parameter and cause issues with DBUA. We tested the process with manual upgrades and DBUA. DBUA is much cleaner in newer versions and allows for getting everything right. Logging is better.
  9. RDA can show various errors as as allow for a DBA to health check their environment. Raccheck is a health Audit Tool. Starter Kits are important.Services can help your application. Look and understand before impl