migrating from singel instance to rac and upgrading via data guard
TRANSCRIPT
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
1/29
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
2/29
MIGRATINGFROM SINGLE INSTANCETO RAUPGRADING: A DATA GUARD SUCCESS ST
Fuad Arshad @fuadar
Walgreen Company
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
3/29
Me, Myself & I
More than 15 years of Oracle experience Worked in textiles, telecom & retail/healthcare Currently work for Walgreens in the Enterprise
Services area
Areas of Interest: backup & recovery, high avaMAA, performance tuning
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
4/29
Socially Networkable
Twitter @fuadar Linkedin http://www.linkedin.com/in/fuadar
G+ +Fuad Arshad
Blog http://www.fuadarshad.com
http://www.fuadarshad.com/http://www.fuadarshad.com/ -
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
5/29
$67B 2010 sales
244,000 employees
7,800 locations
In 36th consecutiveyear of record sales
To be My Walgreensfor everyone in America, and the firsthealth and daily living.
Fortune:Most Admired Compayears
Fast Company: Named as 6th
health care company for leadecare services
Computerworld: CIO Tim The2012 Premier 100 IT Lea
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
6/29
Agenda
Problem Analysis Decision Strategy Migration Things to look out for! Credits
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
7/29
Community Access
RAC Attack
IOUG RAC SIG
IOUG
Blogs / Blogs /Blogs .
http://www.orana.info
http://blogs.oracle.com
http://www.oaktable.net
Ask Questions
Freelists Oracle L
Stack Overflow
Quora
MOS Communities
Oracle Forums
http://www.racattack.org/http://www.oracleracsig.org/http://www.ioug.org/http://www.orana.info/http://blogs.oracle.com/http://www.oaktable.net/http://www.freelists.org/oracle-l%20aclehttp://stackoverflow.com/questions/tagged/oraclehttp://www.quora.com/https://communities.oracle.com/portal/server.pt/community/support/219http://forums.oracle.com/http://stackoverflow.com/questions/tagged/oraclehttp://stackoverflow.com/questions/tagged/oraclehttp://forums.oracle.com/https://communities.oracle.com/portal/server.pt/community/support/219http://www.quora.com/http://stackoverflow.com/questions/tagged/oraclehttp://www.freelists.org/oracle-l%20aclehttp://www.oaktable.net/http://blogs.oracle.com/http://www.orana.info/http://www.orana.info/http://www.ioug.org/http://www.oracleracsig.org/http://www.racattack.org/ -
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
8/29
The Problem
It was very early, and we were still like beta ostage, and so we started receiving a ton of do
The server became overloaded, and that's wh
realized that this had a huge market.
Shawn Fanning (Napster)
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
9/29
Our Problem
The application was growing and adding fe Customer access slowdown was reported
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
10/29
Our Problem
System built in the early 2000s to handle thwave of technology More work as newer features were rolled ou
Architecture & design not intended to handlrate of change Database is always the bottleneck
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
11/29
Analysis
Active/Passive servers Oracle database version close to desupp Old OS version
Old SAN infrastructure CPU and disk I/O issues
Result -----> IT WAS OLDPaper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
12/29
Analysis
Active/Passive Servers Oracle Database version close to desupp Old OS version
Old SAN infrastructure
Result ---------------- IT WAS OLDPaper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
13/29
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
14/29
Decision
Lets migrate to RAC Can it be done yesterday? Can we do it with zero downtime?
The application team doesnt want to chaanything
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
15/29
Strategy
Export/Import Transportable Table spaces Disk based replication
GoldenGate Data Guard - The Choice
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
16/29
Pre-Migration
Build of servers Build of network
RAC starter kits
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
17/29
Pre-Migration
The strategy was to build a RAC database from a sininstance environment
Oracle provided instructions on how to prep the singleenvironment so that it is RAC-aware. This includes ru
catclust scripts and adding undo tablespaces for the nnodes that the new cluster will have
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
18/29
Pre-Migration
The server builds need to have all the patches basedthat is being used
Oracle provides a variety of starter kits that can be usvalidate the configuration
It is also important that the network be configured andbased on best practices
11.2.0.2 and above have added requirements like SCneed to be accounted for
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
19/29
Pre-Migration
RAC Check is important tool to ensure that the envirobuilt based on best practices
RAC Check can be downloaded at MOS # 1268927.1updated frequently
OS settings including kernel parameters and patch CRS/Grid Infrastructure RDBMS memory and database parameters ASM parameters and statistics
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
20/29
Pre-Migration (Primary)
Data Guard setup steps need to be followed which inclu
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
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
21/29
Pre-Migration
RAC Check is important tool to ensure that the envirobuilt based on best practices
RAC Check can be downloaded at MOS # 1268927.1updated frequently
OS settings including kernel parameters and patch CRS/Grid Infrastructure RDBMS memory and database parameters ASM parameters and statistics
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
22/29
Pre-Migration (Standby RAC) Data Guard setup steps need to be followed which in
NFS mount or copy backup and auxiliary files Configure Oracle Net which includes setting up TNSNAMES anfor 11.2.0.2 (This will be done in the Grid infrastructure home)
Modify the TNSNAMES.ORA to include the primary as well as ttns entries
Create a tns entry for the listener and make sure it is referenceREMOTE_LISTENER (REMOTE_LISTENER specifies the globlisteners in a RAC configuration)
Make sure the listener alias referenced by the LOCAL_LISTENinitialization parameter is in each standby tnsnames.ora file
Ensure that the standby server has the same software version installed as the primary Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
23/29
Pre-Migration (Standby RAC, conData Guard setup steps need to be followed which includ
Ensure that a password file is configured on both the primary anstandby Copy the PFILE to the $ORACLE_HOME/dbs in the standby no Add DB_UNIQUE_NAME and CLUSTER_DATABASE paramet
PFILE
Modify all the other parameters outlined in the white paper Connect to the standby and create an SPFILE in the ASM diskg Startup the proposed standby environment in NOMOUNT mode Duplicate the database using DUPLICATE TARGET DATABAS
STANDBY
Setup Server Control (SRVCTL) to register the instances
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
24/29
Pre-Migration (Standby RAC, conData Guard setup steps need to be followed which includ
Add additional standby REDO logs (The number of standby redbe one more than the number of online REDO logs per thread athe same size)
Enable Managed Recovery Mode on the standby database Enable archive destination on the primary to start shipping logs
standby Validate the transfer Setup Data Guard Broker Validate the configuration and ensure that logs are being applie
Bring up the other nodes in the RAC environment
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
25/29
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 ARCHI After all the outstanding logs have been applied, shutdown RE
the standby
Validate SCN across the primary and the standby Two options from here:
- Switchover & upgrade
- Shutdown & upgrade
**We Chose Shutdown & Upgrade**
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
26/29
Migration
All standby RAC nodes can be up if using DBUA
Ensure pre-checks are done
DBUA is brutal if you dont remove the obsolete parameters
DST changes are important If manually upgrading DBMS_DST needs to be run to upgrade
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
27/29
Things to Look Out ForEnsure 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 re
a good best practices evolving document
Use services to better manage how the application connects and
balance your system Private network is key with RAC: follow Oracles best practices. XA changes in 11.2.0.2 & can cause issues: important to unders Compatible parameter testing is important. Monitoring the environment after go-live is very important
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
28/29
CreditsId like to thank the following people for helping me with t
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 Leighton Smith for reviewing my session
Also special credit to the RAC Assurance Team at Oracle for helping is get through subsequent issues. Some content in the whitepaper and presentation has been republished wthe Oracle RAC Assurance Team whose goal had been to proactivelyprovide input to custoexisting CRS, RAC, ASM and MAA implementations.
Paper #371
-
8/2/2019 MIgrating from Singel Instance to RAC and Upgrading via Data Guard
29/29
Questions
Please fill
outevaluations
Paper #371