RAC Migration with RCONFIG

download RAC Migration with RCONFIG

of 31

Transcript of RAC Migration with RCONFIG

  • 8/7/2019 RAC Migration with RCONFIG

    1/31

    Convert your single instance toRAC database with RCONFIG

    360 Degrees

    March 17 2011 1Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    2/31

    DisclaimerThis views/content in this slides are those of the author and

    do not necessarily reflect that of Oracle Corporation and/or itsaffiliates/subsidiaries. The material in this document is for

    informational purposes only and is published with no

    guarantee or warranty, express or implied..

    This material should not be reproduced or used without the

    authors' written permission.

    March 17 2011 2Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    3/31

    Know your presenter DBA Team Lead at Alinma Bank Nearly 20 years of IT experience

    Over 10 years of DBA hands-on experience

    Oracle ACE Oracle Certified Master (OCM) 10g

    OCP DBA v8i,9i,10g,11g

    RAC expert certified

    Co-author Oracle 11g R1/R2 RAC Essentials Official Oracle RAC SIG Representative for Saudi Arabian region

    (http://www.oracleracsig.org/)

    Recently acquired - ITIL v3 Foundation certification

    March 17 2011 3Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    4/31

    Question

    What is the uphill task usually a DBAcome across after migrating from the

    existing non-RAC environment to RAC?

    March 17 2011 4Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    5/31

    AgendaOverview of existing conversion methods.

    Convert single instance to RAC with RCONFIG utility

    RCONFIG overview Prerequisites

    Demonstration

    Testing the conversion process.

    Tips to accelerate conversion time for VLDB.How to resume from a failed conversion.

    Logs to monitor.

    Post conversion steps.

    Q&A.

    March 17 2011 5Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    6/31

    Existing conversion methods Grid Control / Enterprise Manager(EM)

    Database Configuration Assistant (DBCA) RCONFIG

    Manual

    Streams & Data pumps *

    Image courtesy: Oracle UniversityMarch 17 2011 6Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    7/31

    Convert single instance toRAC with RCONFIG

    RCONFIG overview

    Prerequisites

    Demonstration

    March 17 2011 7Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    8/31

    RCONFIG overview A non interactive command line utility introduced with 10gR2 to

    make the life of DBAs easier for converting a single-instance database

    to RAC database.

    rconfig executable (binary) installed by default, located

    under $GRID_HOME/bin & $ORACLE_HOME/bin locations.

    Takes in a xml input file and process the conversion procedure.ConvertToRAC.xml (pre 11gR2)

    ConvertToRAC_AdminManaged.xml (11gR2)ConvertToRAC_PolicyManaged.xml (11gR2)

    March 17 2011 8Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    9/31

    RCONFIG overview

    A pretty cool, a very light and easy to use utility for conversion. Comes by default, no additional configuration steps are required.

    Not much DBA intervention is required.

    Fully automated conversion process.

    Provides testing capabilities without actually converting to RAC.

    Ability to migrate the non-ASM DB to ASM storage.

    Creates RAC DB instances on the specified nodes.

    Configure required tnsname and Listeners entries.

    Register CRS resources (instance, database, listener) to thecluster.

    Startup RAC DB all instances on the specified nodes.

    Advantages

    March 17 2011 9Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    10/31

    RCONFIG overview

    Database downtime is required. Additional space requirements.

    Disadvantages

    March 17 2011 10Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    11/31

    Migrate single instance toRAC with RCONFIG

    RCONFIG overview

    Prerequisites Demonstration

    March 17 2011 11Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    12/31

    Prerequisites Ensure the clusterware is configured, up and running on the nodes.

    Oracle RDBMS binaries for RAC must be installed.

    Active ASM instance across the nodes. Create and mount required ASM diskgroups.

    Stand alone database running on the local node.

    Stand alone db and RAC must be of same db versions.

    March 17 2011 12Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    13/31

    ConvertToRAC_AdminManaged.xml contents/u00/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs

    March 17 2011 13Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    14/31

    ConvertToRAC_AdminManaged.xml contents

    The Convert verify option in the ConvertToRAC.xml file has three options:

    Convert verify="YES

    Runs through verification checks to ensure that the prerequisites for single-instanceto RAC db conversion have been met before it actually starts the conversion.

    Convert verify="NOBypass the prerequisite verification checks, and starts conversion straight away.

    Convert verify="ONLYDo not perform the actual conversion process. Rather, just run through the

    prerequisite verification checks and ends.

    March 17 2011 14Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    15/31

    ConvertToRAC_AdminManaged.xml modified contents/u00/app/oracle/product/11.2.0/db_1/assistants/rconfig/sampleXMLs

    March 17 2011 15Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    16/31

  • 8/7/2019 RAC Migration with RCONFIG

    17/31

    The following has been used for the demonstration purpose:

    Oracle single-instance db (RACDB), db files configured on

    the filesystem.

    Oracle 11.2.0.2.

    ASM storage for RAC db.

    HPUX Itanium 64-bit v11.31 OS.

    Convert single instance to RAC with RCONFIG

    March 17 2011 17Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    18/31

    Ensure necessary configuration changes are done in the

    xml file.

    Ensure the single-instance db is up and running on thelocal node.

    Execute the following command, typically as oracle user:

    ./$ORACLE_HOME/bin/rconfig ConverToRAC_AdminManaged.xml

    Convert single instance to RAC with RCONFIG Ensure you have a valid and latest backup copy for the single-instance database.

    Copy the original xml file before you modify the contents.

    March 17 2011 18Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    19/31

    Convert single instance to RAC with RCONFIG

    March 17 2011 19Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    20/31

    Convert single instance to RAC with RCONFIG

    March 17 2011 20Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    21/31

    Convert single instance to RAC with RCONFIG

    alert_RACDB1.log file contents

    March 17 2011 21Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    22/31

    Convert single instance to RAC with RCONFIG

    alert_RACDB1.log file contents

    March 17 2011 22Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    23/31

    Testing the conversion process$ORACLE_HOME/bin/rconfig ConvertToRAC_AdminManaged.xml

    Operation Succeeded

    There is no return value for this step

    Set the parameter

  • 8/7/2019 RAC Migration with RCONFIG

    24/31

    Testing the conversion process$ORACLE_HOME/bin/rconfig ConvertToRAC_AdminManaged.xml

  • 8/7/2019 RAC Migration with RCONFIG

    25/31

    Tips to accelerate conversion time for VLDB

    Is there any way to accelerate the conversion time while converting

    a very large database (VLDB)?

    o Unfortunately, there is no direct option available.

    Applying some degree of parallelism in the RMAN might help.

    Saved 4 hours of time when converted 1TB Oracle 10g db to RAC.

    oWith no parallelism, took almost 9 hours to finish.

    o With parallelism (6), took just 4 hours to finish.

    RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 6;

    March 17 2011 25Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    26/31

  • 8/7/2019 RAC Migration with RCONFIG

    27/31

    Logs to monitor

    March 17 2011 27Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    28/31

    Post conversion steps Adjust the SGA for the RAC database, at least 15% for buffer cache

    and shared pool.

    Create SERVICE and apply TAF & Load balancing options, if required.

    Backup the RAC database.

    Backup OCR.

    Remove single-instance database.

    March 17 2011 28Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    29/31

    ReferencesRCONFIG : Frequently Asked Questions [ID 387046.1]

    http://sabdarsyed.blogspot.com/2009/08/how-we-faster-process-of-converting-non.html

    http://jaffardba.blogspot.com/2008/09/my-experience-of-converting-cross.html

    Much more real-world scenarios in our upcoming book Oracle 11g R1/R2 RAC Essentials.

    March 17 2011 29Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    30/31

    Thank you for listening

    You can mail me at sjaffarhussainATgmail.com

    I blog at http://jaffardba.blogspot.com

    Follow me on twitter http://twitter.com/sjaffarhussain

    March 17 2011 30Prepared by : Syed Jaffer Hussain

  • 8/7/2019 RAC Migration with RCONFIG

    31/31

    Q&AQ&A

    March 17 2011 31Prepared by : Syed Jaffer Hussain