SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
Quick Start Guide 
Oracle Database 12c: Manual Rolling Upgrade 
from Single Instance to RAC 
Joel Pérez – Senior DBA Oracle 
Oracle ACE Director 
Bangkok, Thailand 2014
Joel Pérez 
About me Quick Start Guide 
 Oracle Technology Network Expert “OTN” Expert 2003 
 First Latin American to be published as Expert on Oracle 
Web Site 2003 
 Oracle ACE 2004  Oracle ACE Director 2012 
 Consulting Tasks, Conferences and activities related to, in 
over 50 countries around the world 
 More than 25 Oracle certifies 
 One of the first the OCM Cloud 
Administrator In the world 
 Articles Writer for OTN Spanish 
 OTN Portuguese with more than 
40 Published Articles 
 Reviewer of Oracle Books 
Oracle Speaker at many International Oracle Events 
 more and counting 
 …
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Oracle Database 12c: Manual Rolling Upgrade 
from Single Instance to RAC 
 What’s Rolling.. ? 
 Upgrade.. ? a.- A database Upgrade is called 
“Upgrade” because the data dictionary will get 
upgrated to a later version.. 
 Conversion from Single Instance to RAC.. ? 
 Zero Downtime.. ? 
 Real Case: Upgrade a database from 11g to 12c ( 
Single Instance to RAC in a Zero Downtime Fashion 
). All Servers are based on Linux Operating System 
 Graphical  Code Steps
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Let’s go to 
Start..
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Production Database working in 
Archive Log Mode 
Full Database Backup 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Archive Redo Log Backup 
Full Database Backup 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Controlfile Backup 
Archive Redo Log Backup 
Full Database Backup 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Where will be the Backup location ? 
Controlfile Backup 
Archive Redo Log Backup 
Full Database Backup 
/u01/MyBackups 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Controlfile Backup 
Archive Redo Log Backup 
Full Database Backup ( 2:00pm – 2:30pm ) 
/u01/MyBackups 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Controlfile Backup 
Archive Redo log Backup = 2:00pm .. 
Full Database Backup ( 2:00pm – 2:30pm ) 
/u01/MyBackups 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Controlfile Backup 
( Whatever time after last 2 Steps ) 
Archive Redolog Backup 
Full Database Backup 
/u01/MyBackups 
PROD
Installing RAC 12c JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Quick Start Guide 
Linux 
Operating 
System in 
All 
Identical Endian 
Formats.. We can use 
RMAN for the DB Carry 
PROD
Creating Backup Directorie on a Node in RAC JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Quick Start Guide 
PROD 
/u01/ MyBackups 
/u01/MyBackups
Transfering Backup Files JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Quick Start Guide 
PROD 
/u01/ MyBackups 
/u01/MyBackups
Creating PROD db RAC JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Quick Start Guide 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
DBCA 
Recommended 
DB Directories 
DB Configuration Files ( 
SPfiles, Pwfiles,.. ) 
OCR File Entries
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Shuting Down PROD db RAC  Removing Controlfiles 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
Controlfiles 
PROD 
Set DB Parameter 
CLUSTER_DATABASE=FALSE 
SCOPE=SPFILE
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Removing Redo Logs Files 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
Controlfiles 
Redo Log Files PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Removing Datafiles 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
Controlfiles 
Redo Log Files 
Datafiles 
PROD
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Restore Controlfiles 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
No Mount
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Startup mount / “Alter Database mount” 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
Mount
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Restore Database 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
Mount 
RMAN 
Restore Database 
Rolling in Progress…
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Restore Database 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
Mount 
RMAN 
Restore Database 
Rolling in Progress…
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Recovering Database 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
Mount 
RMAN 
Recovering Database 
Rolling in Progress…
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Recovering Database 
PROD 
/u01/MyBackups 
/u01/MyBackups 
PROD 
Mount 
RMAN 
Recovering Database 
Recovering until the last 
Archive Redo Log found 
In the first ARL Backup..
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Recovering Database 
PROD 
/u01/ MyBackups 
/u01/MyBackups 
PROD 
Mount 
RMAN 
Recovering Database 
Rolling in Progress…
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Rolling Upgrade Core 
PROD 
/u01/MyBackups 
/u01/MyBackups 
PROD 
Mount 
1.- Take backup of 
new ARLs regarding 
the last ARL taken at 
Previous backup on 
them 
2.- Transfer the new 
gotten RMAN Backup 
sets 
3.- Catalog new 
Taken backups 
4.- Recover Again the 
database until the 
last ARL brought 
 do it again until 
reach the time of last 
syncronization of 
databases
Rolling Upgrate Core JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Quick Start Guide 
Single PROD db RAC PROD db 
Full Database Backup Restore Database 
ARL Backup (50…120) 
Recovering Database based 
on ARL from 50 to 120 
ARL Backup (121…200) Recovering Database based 
on ARL from 121…200 
and Repeat backup  Recovery of ARL 
until reach the real break time to upgrade…
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Following Steps to Complete the Task.. 
 SQL Alter Database Open Resetlogs Upgrade; 
 Upgrade DB Catalog with the new “Parallel 
Upgrade Utility”
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
 Run the “Oracle Database Post-Upgrade Status 
Tool”
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Run Script “utlrp.sql” to recompile invalid objects
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
. 
 Create an Undo Tablespace for each one of rest 
instances 
 Change the Database Parameter 
“CLUSTER_DATABASE=true”
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
. 
Add Log file groups in new “Threads” for rest of 
instances
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
Following Steps to Complete the Task.. 
And finally.. 
Shutdown Database and Start it Up function in RAC 
 And that’s all.. 
 You’ve done a Zero Downtime Upgrade from Single 
to RAC
Quick Start Guide 
Direct Contact: 
JJJJooooeeeellll PPPPéééérrrreeeezzzz 
 ACE Director Profile: 
https://apex.oracle.com/pls/otn/f?p=19297:4:1711390 
987197101::NO:4:P4_ID:157 
 OCM Profile: 
http://education.oracle.com/education/otn/JoelPerez. 
htm 
 Linked in: 
https://apex.oracle.com/pls/otn/f?p=19297:4:1711390 
987197101::NO:4:P4_ID:157
Quick Start Guide 
JJJJooooeeeellll PPPPéééérrrreeeezzzz

Weitere ähnliche Inhalte

Was ist angesagt?

Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
uzzal basak
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Database Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event SchedulersDatabase Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event Schedulers
Abdul Rahman Sherzad
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 

Was ist angesagt? (20)

Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden Gate
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
 
Lightning fast with Varnish
Lightning fast with VarnishLightning fast with Varnish
Lightning fast with Varnish
 
Percona Live London 2014 - MySQL Backup Strategy @ IEDR
Percona Live London 2014 - MySQL Backup Strategy @ IEDRPercona Live London 2014 - MySQL Backup Strategy @ IEDR
Percona Live London 2014 - MySQL Backup Strategy @ IEDR
 
Deploying E.L.K stack w Puppet
Deploying E.L.K stack w PuppetDeploying E.L.K stack w Puppet
Deploying E.L.K stack w Puppet
 
Pluggable database 3
Pluggable database 3Pluggable database 3
Pluggable database 3
 
Setup oracle golden gate 11g replication
Setup oracle golden gate 11g replicationSetup oracle golden gate 11g replication
Setup oracle golden gate 11g replication
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus caging
 
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
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Database Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event SchedulersDatabase Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event Schedulers
 
Rac questions
Rac questionsRac questions
Rac questions
 
Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination Oracle Linux and Oracle Database - A Trusted Combination
Oracle Linux and Oracle Database - A Trusted Combination
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 
Lotny start z testami kontraktowymi
Lotny start z testami kontraktowymiLotny start z testami kontraktowymi
Lotny start z testami kontraktowymi
 
ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)
 

Ähnlich wie Presentation joelperez thailand2014

2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
4392091081755796971 emea10 zero_downtimeoperations
4392091081755796971 emea10 zero_downtimeoperations4392091081755796971 emea10 zero_downtimeoperations
4392091081755796971 emea10 zero_downtimeoperations
Locuto Riorama
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
Amit Sharma
 

Ähnlich wie Presentation joelperez thailand2014 (20)

2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c
 
Oracle 11g to 12c Rolling Upgrade
Oracle 11g to 12c Rolling UpgradeOracle 11g to 12c Rolling Upgrade
Oracle 11g to 12c Rolling Upgrade
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
Go Replicator
Go ReplicatorGo Replicator
Go Replicator
 
4392091081755796971 emea10 zero_downtimeoperations
4392091081755796971 emea10 zero_downtimeoperations4392091081755796971 emea10 zero_downtimeoperations
4392091081755796971 emea10 zero_downtimeoperations
 
Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
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
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 
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
 
Ungooglable
UngooglableUngooglable
Ungooglable
 
oracle upgrade 2015_509_Swonger_ppt.pptx
oracle upgrade 2015_509_Swonger_ppt.pptxoracle upgrade 2015_509_Swonger_ppt.pptx
oracle upgrade 2015_509_Swonger_ppt.pptx
 
Data guard
Data guardData guard
Data guard
 
A Little Prep Goes a Long Way: Planning your next Jira Server Upgrade
A Little Prep Goes a Long Way: Planning your next Jira Server UpgradeA Little Prep Goes a Long Way: Planning your next Jira Server Upgrade
A Little Prep Goes a Long Way: Planning your next Jira Server Upgrade
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? Presentation
 
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
♨️How To Use DataPump (EXPDP) To Export From Physical Standby….pdf
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 

Mehr von OUGTH Oracle User Group in Thailand

Mehr von OUGTH Oracle User Group in Thailand (18)

Quarterly leader-call-dec-2014
Quarterly leader-call-dec-2014Quarterly leader-call-dec-2014
Quarterly leader-call-dec-2014
 
Oracle Database Monitoring with AAS
Oracle Database Monitoring with AASOracle Database Monitoring with AAS
Oracle Database Monitoring with AAS
 
How oracle 12c flexes its muscles against oracle 11g r2
How oracle 12c flexes its muscles against oracle 11g r2How oracle 12c flexes its muscles against oracle 11g r2
How oracle 12c flexes its muscles against oracle 11g r2
 
How to-work-with-the-oracle-user-group-team
How to-work-with-the-oracle-user-group-teamHow to-work-with-the-oracle-user-group-team
How to-work-with-the-oracle-user-group-team
 
Apouc 2014-java-8-create-the-future
Apouc 2014-java-8-create-the-futureApouc 2014-java-8-create-the-future
Apouc 2014-java-8-create-the-future
 
Apouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12cApouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12c
 
Apouc 2014-learn-from-oracle-support
Apouc 2014-learn-from-oracle-supportApouc 2014-learn-from-oracle-support
Apouc 2014-learn-from-oracle-support
 
Apouc 2014-business-analytics-and-big-data
Apouc 2014-business-analytics-and-big-dataApouc 2014-business-analytics-and-big-data
Apouc 2014-business-analytics-and-big-data
 
Apouc 2014-oracle-applications-update
Apouc 2014-oracle-applications-updateApouc 2014-oracle-applications-update
Apouc 2014-oracle-applications-update
 
Apouc 2014-oracle mobile platform
Apouc 2014-oracle mobile platformApouc 2014-oracle mobile platform
Apouc 2014-oracle mobile platform
 
Apouc 2014-oracle-ace-program
Apouc 2014-oracle-ace-programApouc 2014-oracle-ace-program
Apouc 2014-oracle-ace-program
 
Apouc 2014-oracle-community-programs
Apouc 2014-oracle-community-programsApouc 2014-oracle-community-programs
Apouc 2014-oracle-community-programs
 
Apouc 2014-oracle-cloud-strategy
Apouc 2014-oracle-cloud-strategyApouc 2014-oracle-cloud-strategy
Apouc 2014-oracle-cloud-strategy
 
Apouc 2014-wrapup
Apouc 2014-wrapupApouc 2014-wrapup
Apouc 2014-wrapup
 
How to install oracle 12c release 1
How to install oracle 12c release 1How to install oracle 12c release 1
How to install oracle 12c release 1
 
User 2013-oracle-big-data-analytics-1971985
User 2013-oracle-big-data-analytics-1971985User 2013-oracle-big-data-analytics-1971985
User 2013-oracle-big-data-analytics-1971985
 
Session 307 ravi pendekanti engineered systems
Session 307  ravi pendekanti engineered systemsSession 307  ravi pendekanti engineered systems
Session 307 ravi pendekanti engineered systems
 
Session 203 iouc summit database
Session 203 iouc summit databaseSession 203 iouc summit database
Session 203 iouc summit database
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Presentation joelperez thailand2014

  • 1. Quick Start Guide Oracle Database 12c: Manual Rolling Upgrade from Single Instance to RAC Joel Pérez – Senior DBA Oracle Oracle ACE Director Bangkok, Thailand 2014
  • 2. Joel Pérez About me Quick Start Guide Oracle Technology Network Expert “OTN” Expert 2003 First Latin American to be published as Expert on Oracle Web Site 2003 Oracle ACE 2004 Oracle ACE Director 2012 Consulting Tasks, Conferences and activities related to, in over 50 countries around the world More than 25 Oracle certifies One of the first the OCM Cloud Administrator In the world Articles Writer for OTN Spanish OTN Portuguese with more than 40 Published Articles Reviewer of Oracle Books Oracle Speaker at many International Oracle Events more and counting …
  • 3. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Oracle Database 12c: Manual Rolling Upgrade from Single Instance to RAC What’s Rolling.. ? Upgrade.. ? a.- A database Upgrade is called “Upgrade” because the data dictionary will get upgrated to a later version.. Conversion from Single Instance to RAC.. ? Zero Downtime.. ? Real Case: Upgrade a database from 11g to 12c ( Single Instance to RAC in a Zero Downtime Fashion ). All Servers are based on Linux Operating System Graphical Code Steps
  • 4. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Let’s go to Start..
  • 5. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Production Database working in Archive Log Mode Full Database Backup PROD
  • 6. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Archive Redo Log Backup Full Database Backup PROD
  • 7. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Controlfile Backup Archive Redo Log Backup Full Database Backup PROD
  • 8. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Where will be the Backup location ? Controlfile Backup Archive Redo Log Backup Full Database Backup /u01/MyBackups PROD
  • 9. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Controlfile Backup Archive Redo Log Backup Full Database Backup ( 2:00pm – 2:30pm ) /u01/MyBackups PROD
  • 10. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Controlfile Backup Archive Redo log Backup = 2:00pm .. Full Database Backup ( 2:00pm – 2:30pm ) /u01/MyBackups PROD
  • 11. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Controlfile Backup ( Whatever time after last 2 Steps ) Archive Redolog Backup Full Database Backup /u01/MyBackups PROD
  • 12. Installing RAC 12c JJJJooooeeeellll PPPPéééérrrreeeezzzz Quick Start Guide Linux Operating System in All Identical Endian Formats.. We can use RMAN for the DB Carry PROD
  • 13. Creating Backup Directorie on a Node in RAC JJJJooooeeeellll PPPPéééérrrreeeezzzz Quick Start Guide PROD /u01/ MyBackups /u01/MyBackups
  • 14. Transfering Backup Files JJJJooooeeeellll PPPPéééérrrreeeezzzz Quick Start Guide PROD /u01/ MyBackups /u01/MyBackups
  • 15. Creating PROD db RAC JJJJooooeeeellll PPPPéééérrrreeeezzzz Quick Start Guide PROD /u01/ MyBackups /u01/MyBackups PROD DBCA Recommended DB Directories DB Configuration Files ( SPfiles, Pwfiles,.. ) OCR File Entries
  • 16. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Shuting Down PROD db RAC Removing Controlfiles PROD /u01/ MyBackups /u01/MyBackups Controlfiles PROD Set DB Parameter CLUSTER_DATABASE=FALSE SCOPE=SPFILE
  • 17. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Removing Redo Logs Files PROD /u01/ MyBackups /u01/MyBackups Controlfiles Redo Log Files PROD
  • 18. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Removing Datafiles PROD /u01/ MyBackups /u01/MyBackups Controlfiles Redo Log Files Datafiles PROD
  • 19. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Restore Controlfiles PROD /u01/ MyBackups /u01/MyBackups PROD No Mount
  • 20. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Startup mount / “Alter Database mount” PROD /u01/ MyBackups /u01/MyBackups PROD Mount
  • 21. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Restore Database PROD /u01/ MyBackups /u01/MyBackups PROD Mount RMAN Restore Database Rolling in Progress…
  • 22. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Restore Database PROD /u01/ MyBackups /u01/MyBackups PROD Mount RMAN Restore Database Rolling in Progress…
  • 23. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Recovering Database PROD /u01/ MyBackups /u01/MyBackups PROD Mount RMAN Recovering Database Rolling in Progress…
  • 24. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Recovering Database PROD /u01/MyBackups /u01/MyBackups PROD Mount RMAN Recovering Database Recovering until the last Archive Redo Log found In the first ARL Backup..
  • 25. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Recovering Database PROD /u01/ MyBackups /u01/MyBackups PROD Mount RMAN Recovering Database Rolling in Progress…
  • 26. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Rolling Upgrade Core PROD /u01/MyBackups /u01/MyBackups PROD Mount 1.- Take backup of new ARLs regarding the last ARL taken at Previous backup on them 2.- Transfer the new gotten RMAN Backup sets 3.- Catalog new Taken backups 4.- Recover Again the database until the last ARL brought do it again until reach the time of last syncronization of databases
  • 27. Rolling Upgrate Core JJJJooooeeeellll PPPPéééérrrreeeezzzz Quick Start Guide Single PROD db RAC PROD db Full Database Backup Restore Database ARL Backup (50…120) Recovering Database based on ARL from 50 to 120 ARL Backup (121…200) Recovering Database based on ARL from 121…200 and Repeat backup Recovery of ARL until reach the real break time to upgrade…
  • 28. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Following Steps to Complete the Task.. SQL Alter Database Open Resetlogs Upgrade; Upgrade DB Catalog with the new “Parallel Upgrade Utility”
  • 29. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Run the “Oracle Database Post-Upgrade Status Tool”
  • 30. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Run Script “utlrp.sql” to recompile invalid objects
  • 31. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz . Create an Undo Tablespace for each one of rest instances Change the Database Parameter “CLUSTER_DATABASE=true”
  • 32. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz . Add Log file groups in new “Threads” for rest of instances
  • 33. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz Following Steps to Complete the Task.. And finally.. Shutdown Database and Start it Up function in RAC And that’s all.. You’ve done a Zero Downtime Upgrade from Single to RAC
  • 34. Quick Start Guide Direct Contact: JJJJooooeeeellll PPPPéééérrrreeeezzzz ACE Director Profile: https://apex.oracle.com/pls/otn/f?p=19297:4:1711390 987197101::NO:4:P4_ID:157 OCM Profile: http://education.oracle.com/education/otn/JoelPerez. htm Linked in: https://apex.oracle.com/pls/otn/f?p=19297:4:1711390 987197101::NO:4:P4_ID:157
  • 35. Quick Start Guide JJJJooooeeeellll PPPPéééérrrreeeezzzz