SlideShare une entreprise Scribd logo
1  sur  62
Télécharger pour lire hors ligne
Effective Oracle Home Management
with the New Release Model
Ludovico Caldara
Computing Engineer
IT Department, CERN
ludovico.caldara@cern.ch
@ludodba
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
2
About Ludovico Caldara
■ 18+ Years DBA (Not Only Oracle)
■ ITOUG co-founder
■ OCP (11g, 12c, MySQL) & OCE
■ Italian living in Switzerland
■ http://www.ludovicocaldara.net
■ @ludodba
■ ludovicocaldara
05.12.2018 3
Effective Oracle Home Management
#UKOUG_Tech18
CERN
• CERN - European Laboratory for Particle Physics
• Founded in 1954 by 12 Countries for fundamental
physics research in the post-war Europe
• Today 22 member states and world-wide collaborations
• About ~1100 MCHF yearly budget
• 2’300 CERN personnel
• 10’000 users from 110 countries
405.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
Fundamental Research
• What is 95% of the Universe made of?
• Why do particles have mass?
• Why is there no antimatter
left in the Universe?
• What was the Universe like,
just after the "Big Bang"?
505.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
Effective Oracle Home Management
#UKOUG_Tech18
6
The Large Hadron Collider (LHC)
Largest machine in the world
27km, 6000+ superconducting magnets
Emptiest place in the solar system
High vacuum inside the magnets
Hottest spot in the galaxy
During Lead ion collisions create temperatures 100 000x hotter than the heart of the sun
Fastest racetrack on Earth
Protons circulate 11245 times/s (99.9999991% the speed of light)
Quick overview of the
New Release Model
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
7
What does it change?
Jan 18 Apr Jul Oct Jan 19 Apr Jul Oct
RU 18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0
RUR1 18.2.1 18.3.1 18.4.1 18.5.1 18.6.1 18.7.1
RUR2 18.2.2 18.3.2 18.4.2 18.5.2 18.6.2
RU 19.1.0 19.2.0 19.3.0 19.4.0
RUR1 19.2.1 19.3.1
RUR2 19.2.2
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
8
2
What does it change?
Jan 18 Apr Jul Oct Jan 19 Apr Jul Oct
RU 18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0
RUR1 18.2.1 18.3.1 18.4.1 18.5.1 18.6.1 18.7.1
RUR2 18.2.2 18.3.2 18.4.2 18.5.2 18.6.2
RU 19.1.0 19.2.0 19.3.0 19.4.0
RUR1 19.2.1 19.3.1
RUR2 19.2.2
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
9
2
What does it change?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
10
Short
Development
cycle
Frequent
Upgrades
And Updates
“Patch soon, patch often” vs reality
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
11
Frequent patching?
• Time consuming
• Complex
• Risky
• Unnecessary (?)
• Error-prone
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
12
How many bugs could you encounter?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
13
How many bugs could you encounter?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
14
18.3.0 18.3.1 18.4.0
How many bugs could you encounter?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
15
18.3.0 18.3.1 18.4.0
634
How many bugs could you encounter?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
16
18.3.0 18.3.1 18.4.0
634 1089
How many bugs could you encounter?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
17
18.3.0 18.3.1 18.4.0
634 1089 1257
Which patches should I apply?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
18
Brave vs Fearful
12.1 >= 12.2
Effective Oracle Home Management
#UKOUG_Tech18
19
How
do I
feel?
PSU
Bundle
Patch
BraveFearful How
do I
feel?
Release
Update
Revision
Release
Update
BraveFearful
• 05.12.2018
Brave vs Fearful
12.1 >= 12.2
Effective Oracle Home Management
#UKOUG_Tech18
20
How
do I
feel?
PSU
Bundle
Patch
BraveFearful How
do I
feel?
Release
Update
Revision
Release
Update
BraveFearful
Ludovico(*) Ludovico(*)
(*) yes, it’s Comic Sans
https://mikedietrichde.com/2017/10/24/differences-psu-bp-ru-rur/
• 05.12.2018
Common patching patterns
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
21
Common worst practices in maintaining homes
• Installing software by hand
• Different patch levels for Oracle Homes with the same path
• Not tracking the installed patches
• Oracle Home paths hard-coded in the operational scripts
• Not minding about naming conventions
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
22
Worst approach (big bang)
1. Stop everything
2. In-place binaries patching
3. Database patching, all at once
4. Start everything
Effective Oracle Home Management
#UKOUG_Tech18
23
UP
UP
UP
UP
DOWN
DOWN
DOWN
DOWN
UP
UP
UP
UP
UP DOWN UP
STOP ALL
START ALLPATCH BINARIES
PATCH DBs
• 05.12.2018
Worst approach (big bang)
1. Stop everything
2. In-place binaries patching
3. Database patching, all at once
4. Start everything
Effective Oracle Home Management
#UKOUG_Tech18
2405.12.2018
UP
UP
UP
UP
DOWN
DOWN
DOWN
DOWN
UP
UP
UP
UP
UP DOWN UP
STOP ALL
START ALLPATCH BINARIES
PATCH DBs
No easy
rollback
Long
downtime
Complex
planning
Different approach (still bad)
1. Install new binaries manually
2. Patch the new binaries
3. Stop, change OH, patch
databases one by one
4. Decommission old binaries
Effective Oracle Home Management
#UKOUG_Tech18
2505.12.2018
UP
UP
UP
UP
DOWN
DOWN
DOWN
DOWN
UP
UP
UP
UP
PATCH BINARIES STOP, MOVE, PATCH
ONE BY ONE
Different approach (still bad)
1. Install new binaries manually
2. Patch the new binaries
3. Stop, change OH, patch
databases one by one
4. Decommission old binaries
Effective Oracle Home Management
#UKOUG_Tech18
2605.12.2018
UP
UP
UP
UP
DOWN
DOWN
DOWN
DOWN
UP
UP
UP
UP
PATCH BINARIES STOP, MOVE, PATCH
ONE BY ONE
Complex to
do manually
Repetitive task
when many servers
Automate the installation!
• Automated creation
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
27
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
Automate the installation!
• Automated creation
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
28
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
https://github.com/MarisElsins/getMOSPatch
Automate the installation!
• Automated creation
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
29
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
https://github.com/MarisElsins/getMOSPatch
https://github.com/ilmarkerm/ansible-oracle-home-mgmt
Image repo
Automate the installation!
• Automated creation • Software cloning
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
30
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
18.3.1
18.4.0
Server
18.3.1
Image repo
Automate the installation!
• Automated creation • Software cloning
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
31
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
18.3.1
18.4.0
Server
18.3.1
RUNDECK
ANSIBLE
RHP
OTHER
Less paths
Effective Oracle Home Management
#UKOUG_Tech18
3205.12.2018
18.3.0 18.4.0 18.4.0
+ one-off X
18.5.0
+ one-off X
18.5.0
+ one-off X
+ one-off Y
18.3.0 18.4.0 18.4.0
+ one-off X
18.5.0
+ one-off X
18.5.0
+ one-off X
+ one-off Y
18.4.1 18.4.1
+ one-off Y
GOOD:
BAD:
Workarounds vs one-offs
• Sometimes through underscore parameters
• Mitigate the number of one-offs
• Less merge requests
• Document it! (why, when, who)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
33
1
2
3
alter system set "_px_groupby_pushdown"=off
comment='Ludo, 03.05.16: W/A for bug 18499088'
scope=both sid='*‘;
Rapid Home provisioning
• It might be the perfect product…
• Requires Lifecycle Management Pack
• The technology stack is complex
(Clusterware, ASM, ACFS, NFS, GNS…)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
34
Rapid Home provisioning
• It might be the perfect product…
• Requires Lifecycle Management Pack
• The technology stack is complex
(Clusterware, ASM, ACFS, NFS, GNS…)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
35
Managing Gold Images for Easy Patching &
Upgrading with Oracle RHP
Ian Cookson - Oracle
Room 1A, today 15:20
Custom approach
• Simple script
• Golden images
• Solid naming conventions
• I blogged about it!
http://www.ludovicocaldara.net/dba/oh-mgmt-[1..7]/
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
36
Implementation at CERN
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
37
Naming Conventions
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
38
Central Inventory server 1
<HOME NAME= "OraDB12Home1" LOC="/u01/app/oracle/product/12.2.0.1" TYPE="O" IDX="2">
<HOME NAME= "OraDB12Home2" LOC="/u01/app/oracle/product/12.2.0.1_2" TYPE="O" IDX=“3">
Central Inventory server 2
<HOME NAME= "OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0.2" TYPE="O" IDX=“1">
<HOME NAME= "OraDB12Home2" LOC="/u01/app/oracle/product/12.2.0.1" TYPE="O" IDX="2">
Naming Conventions
• Central Inventory contains OH name
• OH name matches OH location
• No dots (.) allowed (inventory limitation)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
39
Central Inventory
<HOME NAME=“18_3_0"
LOC="/u01/app/oracle/product/18_3_0"
TYPE="O" IDX="2">
• 1 to 1 mapping: easy to code
• 18c read-only OH uses the name
as subdir in `orabasehome`:
consistent naming!
Golden images
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
40
Golden Images Store
18_3_0.zip
18_4_0.zip
18_3_1.zip
SERVER1
18_3_0.zip
18_3_1.zip
SERVER2
18_3_1.zip
SERVER3
18_4_0.zip
Golden Image Metadata
Name Path
------- -----------------
18_3_0 /store/18_3_0.zip
18_3_1 /store/18_3_1.zip
18_4_0 /store/18_4_0.zip
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
42
SERVER1
18_3_0
SERVER2…
First Install
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
43
18_3_0.zip
SERVER1
18_3_0
SERVER2…
$ ohctl -c -n 18_3_0
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
44
18_3_0.zip
SERVER1
18_3_0
SERVER2…
$ ohctl -i 18_3_018_3_0
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
45
18_3_0.zip
SERVER1
18_3_0
SERVER2…
$ ohctl -i 18_3_0 -n 18_4_0
18_3_0
18_4_0
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
46
18_3_0.zip
SERVER1
18_3_0
SERVER2…
Manual patching
18_3_0
18_4_0
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
47
18_3_0.zip
SERVER1
18_3_0
SERVER2…
$ ohctl -c
18_3_0
18_4_0
18_4_0.zip
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
48
18_3_0.zip
SERVER1
18_3_0
SERVER2…
$ ohctl -i 18_4_0
18_3_0
18_4_0
18_4_0.zip
18_4_0
What it actually does
Creation workflow
• Copy the Home
• Clean it up
• Create the zip
• Store the zip in the repo
• Store metadata
Effective Oracle Home Management
#UKOUG_Tech18
4905.12.2018
What it actually does
Creation workflow
• Copy the Home
• Clean it up
• Create the zip
• Store the zip in the repo
• Store metadata
Installation workflow
• Security checks
• Create new path
• Unzip from the store
• Attach home
• Relink (opt. with RAC)
• Run setasmgid
• Other stuff (e.g. TNS)
Effective Oracle Home Management
#UKOUG_Tech18
5005.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
5105.12.2018
DEMO
Further development at CERN
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
52
Read-only Oracle Home
$ roohctl –enable
Enabling Read-Only Oracle home.
Update orabasetab file to enable Read-Only Oracle home.
Orabasetab file has been updated successfully.
Create bootstrap directories for Read-Only Oracle home.
Bootstrap directories have been created successfully.
Bootstrap files have been processed successfully.
Read-Only Oracle home has been enabled successfully.
Check the log file /u01/app/oracle/cfgtoollogs/roohctl/roohctl-
180822AM102911.log.
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
53
Read-only Oracle Home
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
54
18_3_0
18_4_0
/u01/app/oracle/product/
/u01/app/oracle/product/
$ cat $ORACLE_HOME/install/orabasetab
#orabasetab file is used to track Oracle Home associated with Oracle Base
/u01/app/oracle/product/18_3_0:/u01/app/oracle:18_3_0:N:
ORACLE_HOME
ORACLE_HOME
Read only
Read-only Oracle Home
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
55
18_3_0
18_4_0
/u01/app/oracle/product/
/u01/app/oracle/product/
/u01/app/oracle/homes/
$ cat $ORACLE_HOME/install/orabasetab
#orabasetab file is used to track Oracle Home associated with Oracle Base
/u01/app/oracle/product/18_3_0:/u01/app/oracle:18_3_0:N:
ORACLE_HOME
/u01/app/oracle/homes/
ORACLE_HOME
orabasehome
orabasehome
18_3_0
18_4_0
Read only
TNS, init, etc.
AGILE INFRASTRUCTURE
SERVER
Insertion in the Agile Infrastructure
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
56
Image Store Scripts
REST client
Oracle Home
Grid Infrastructure Installation
• Puppet + Rundeck for automatic GI install
• Patched Grid Infrastructure versions beside the first one
https://www.markusdba.net/?p=294
• Out-of-place patching with 18c independent local-mode automaton
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
57
$ rhpctl move gihome –sourcehome old_path -destinationhome new_path
Independent Local-mode Automaton (18c)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
58
# $GI_HOME/srvctl enable volume -volume GHCHKPT -diskgroup mgmt
# $GI_HOME/srvctl enable filesystem -volume GHCHKPT -diskgroup mgmt
# $GI_HOME/srvctl start filesystem -volume GHCHKPT -diskgroup mgmt
$ $GI_HOME/srvctl start rhpserver
Local Resources
---------------------------------------------------------------
ora.MGMT.GHCHKPT.advm
ora.mgmt.ghchkpt.acfs
ora.helper
Cluster Resources
---------------------------------------------------------------
ora.rhpserver
$ opatch lspatches
27908644;UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171
27923415;OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)
28256701;TOMCAT RELEASE UPDATE 18.3.0.0.0 (28256701)
28090564;DBWLM RELEASE UPDATE 18.3.0.0.0 (28090564)
28090557;ACFS RELEASE UPDATE 18.3.0.0.0 (28090557)
28090553;OCW RELEASE UPDATE 18.3.0.0.0 (28090553)
28090523;Database Release Update : 18.3.0.0.180717 (28090523)
OPatch succeeded.
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
59
Independent Local-mode Automaton (18c)
• Damn-easy move of GI HOME
• Automatic resource relocation
• Enable Grid Infrastructure Golden Images
• Patching (apply and rollback) is done automatically
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
60
Back to the demo…
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
61
Questions?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
62
Thank you!
Ludovico Caldara
Computing Engineer
IT Department, CERN
ludovico.caldara@cern.ch
@ludodba
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
63

Contenu connexe

Tendances

Big Data, Fast Data @ PayPal (YOW 2018)
Big Data, Fast Data @ PayPal (YOW 2018)Big Data, Fast Data @ PayPal (YOW 2018)
Big Data, Fast Data @ PayPal (YOW 2018)
Sid Anand
 

Tendances (20)

GoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing
GoldenGate and ODI - A Perfect Match for Real-Time Data WarehousingGoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing
GoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing
 
Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitorin...
Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitorin...Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitorin...
Oracle Enteprise Manager Cloud Control 12c - Setting Up Metrics and Monitorin...
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service Application
 
FOSDEM MySQL & Friends Devroom, February 2018 MySQL Point-in-Time Recovery l...
FOSDEM MySQL & Friends Devroom, February 2018  MySQL Point-in-Time Recovery l...FOSDEM MySQL & Friends Devroom, February 2018  MySQL Point-in-Time Recovery l...
FOSDEM MySQL & Friends Devroom, February 2018 MySQL Point-in-Time Recovery l...
 
Big Data, Fast Data @ PayPal (YOW 2018)
Big Data, Fast Data @ PayPal (YOW 2018)Big Data, Fast Data @ PayPal (YOW 2018)
Big Data, Fast Data @ PayPal (YOW 2018)
 
Oracle Insert Statements for DBAs and Developers
Oracle Insert Statements for DBAs and DevelopersOracle Insert Statements for DBAs and Developers
Oracle Insert Statements for DBAs and Developers
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
 
Enable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgentEnable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgent
 
Examining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail FilesExamining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail Files
 
How to Upgrade Hundreds or Thousands of Databases
How to Upgrade Hundreds or Thousands of DatabasesHow to Upgrade Hundreds or Thousands of Databases
How to Upgrade Hundreds or Thousands of Databases
 
DataOps barcelona - MySQL 8.0 document store: NoSQL with all the benefits of ...
DataOps barcelona - MySQL 8.0 document store: NoSQL with all the benefits of ...DataOps barcelona - MySQL 8.0 document store: NoSQL with all the benefits of ...
DataOps barcelona - MySQL 8.0 document store: NoSQL with all the benefits of ...
 
Real-time Data Warehouse Upgrade – Success Stories
Real-time Data Warehouse Upgrade – Success StoriesReal-time Data Warehouse Upgrade – Success Stories
Real-time Data Warehouse Upgrade – Success Stories
 
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
MySQL InnoDB Cluster in a Nutshell - Hands-on LabMySQL InnoDB Cluster in a Nutshell - Hands-on Lab
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
 
MySQL User Group NL: MySQL 8.0 Document Store- NoSQL with all the benefits of...
MySQL User Group NL: MySQL 8.0 Document Store- NoSQL with all the benefits of...MySQL User Group NL: MySQL 8.0 Document Store- NoSQL with all the benefits of...
MySQL User Group NL: MySQL 8.0 Document Store- NoSQL with all the benefits of...
 
Exachk and oem12c
Exachk and oem12cExachk and oem12c
Exachk and oem12c
 
GoldenGate Monitoring - GOUSER - 4/2014
GoldenGate Monitoring - GOUSER - 4/2014GoldenGate Monitoring - GOUSER - 4/2014
GoldenGate Monitoring - GOUSER - 4/2014
 
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
MySQL Document Store - How to replace a NoSQL database by MySQL without effor...
MySQL Document Store - How to replace a NoSQL database by MySQL without effor...MySQL Document Store - How to replace a NoSQL database by MySQL without effor...
MySQL Document Store - How to replace a NoSQL database by MySQL without effor...
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 

Similaire à Effective Oracle Home Management - UKOUG_Tech18

PostgreSQL major version upgrade using built in Logical Replication
PostgreSQL major version upgrade using built in Logical ReplicationPostgreSQL major version upgrade using built in Logical Replication
PostgreSQL major version upgrade using built in Logical Replication
Atsushi Torikoshi
 

Similaire à Effective Oracle Home Management - UKOUG_Tech18 (20)

Software Realibility on the Big Data Era
Software Realibility on the Big Data EraSoftware Realibility on the Big Data Era
Software Realibility on the Big Data Era
 
Elasticsearch : petit déjeuner du 13 mars 2014
Elasticsearch : petit déjeuner du 13 mars 2014Elasticsearch : petit déjeuner du 13 mars 2014
Elasticsearch : petit déjeuner du 13 mars 2014
 
My sql 56_roadmap_april2012
My sql 56_roadmap_april2012My sql 56_roadmap_april2012
My sql 56_roadmap_april2012
 
PostgreSQL major version upgrade using built in Logical Replication
PostgreSQL major version upgrade using built in Logical ReplicationPostgreSQL major version upgrade using built in Logical Replication
PostgreSQL major version upgrade using built in Logical Replication
 
Apache kylin meetup berlin olx v1.0
Apache kylin meetup berlin olx v1.0Apache kylin meetup berlin olx v1.0
Apache kylin meetup berlin olx v1.0
 
Apache Kylin Meetup: Berlin - With OLX Group
Apache Kylin Meetup: Berlin - With OLX GroupApache Kylin Meetup: Berlin - With OLX Group
Apache Kylin Meetup: Berlin - With OLX Group
 
Michael Stonebraker: Big Data, Disruption, and the 800 Pound Gorilla in the ...
Michael Stonebraker:  Big Data, Disruption, and the 800 Pound Gorilla in the ...Michael Stonebraker:  Big Data, Disruption, and the 800 Pound Gorilla in the ...
Michael Stonebraker: Big Data, Disruption, and the 800 Pound Gorilla in the ...
 
Big data & frameworks: no book for you anymore
Big data & frameworks: no book for you anymoreBig data & frameworks: no book for you anymore
Big data & frameworks: no book for you anymore
 
Big data & frameworks: no book for you anymore.
Big data & frameworks: no book for you anymore.Big data & frameworks: no book for you anymore.
Big data & frameworks: no book for you anymore.
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle CloudA Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle Cloud
 
19 features you will miss if you leave Oracle Database
19 features you will miss if you leave Oracle Database19 features you will miss if you leave Oracle Database
19 features you will miss if you leave Oracle Database
 
The True Cost of NoSQL DBaaS Options
The True Cost of NoSQL DBaaS OptionsThe True Cost of NoSQL DBaaS Options
The True Cost of NoSQL DBaaS Options
 
Novinky ve světě Oracle DB a koncept konvergované databáze
Novinky ve světě Oracle DB a koncept konvergované databázeNovinky ve světě Oracle DB a koncept konvergované databáze
Novinky ve světě Oracle DB a koncept konvergované databáze
 
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database SystemLinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
 
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
 
State of the Dolphin - May 2022
State of the Dolphin - May 2022State of the Dolphin - May 2022
State of the Dolphin - May 2022
 
Christo kutrovsky oracle rac solving common scalability problems
Christo kutrovsky   oracle rac solving common scalability problemsChristo kutrovsky   oracle rac solving common scalability problems
Christo kutrovsky oracle rac solving common scalability problems
 
Deploying spark ml models
Deploying spark ml models Deploying spark ml models
Deploying spark ml models
 
Percona Live 2022 - The Evolution of a MySQL Database System
Percona Live 2022 - The Evolution of a MySQL Database SystemPercona Live 2022 - The Evolution of a MySQL Database System
Percona Live 2022 - The Evolution of a MySQL Database System
 
Dibi Conference 2012
Dibi Conference 2012Dibi Conference 2012
Dibi Conference 2012
 

Plus de Ludovico Caldara

Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Ludovico Caldara
 

Plus de Ludovico Caldara (19)

Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?
 
Long live to CMAN!
Long live to CMAN!Long live to CMAN!
Long live to CMAN!
 
Let your DBAs get some REST(api)
Let your DBAs get some REST(api)Let your DBAs get some REST(api)
Let your DBAs get some REST(api)
 
Oracle Active Data Guard 12cR2. Is it the best option?
Oracle Active Data Guard 12cR2. Is it the best option?Oracle Active Data Guard 12cR2. Is it the best option?
Oracle Active Data Guard 12cR2. Is it the best option?
 
How to bake a Customer Story with With Windows, NVM-e, Data Guard, ACFS Snaps...
How to bake a Customer Story with With Windows, NVM-e, Data Guard, ACFS Snaps...How to bake a Customer Story with With Windows, NVM-e, Data Guard, ACFS Snaps...
How to bake a Customer Story with With Windows, NVM-e, Data Guard, ACFS Snaps...
 
Get the most out of Oracle Data Guard - OOW version
Get the most out of Oracle Data Guard - OOW versionGet the most out of Oracle Data Guard - OOW version
Get the most out of Oracle Data Guard - OOW version
 
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMBADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
 
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
 
Migrating to Oracle Database 12c: 300 DBs in 300 days.
Migrating to Oracle Database 12c: 300 DBs in 300 days.Migrating to Oracle Database 12c: 300 DBs in 300 days.
Migrating to Oracle Database 12c: 300 DBs in 300 days.
 
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
 
Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!
 
Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?Oracle Database on ACFS: a perfect marriage?
Oracle Database on ACFS: a perfect marriage?
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical OverviewOracle RAC 12c and Policy-Managed Databases, a Technical Overview
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
 
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
 
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
 
Boost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed DatabasesBoost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed Databases
 
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databasesRACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
 
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
Galera Cluster: Synchronous Multi-Master Replication for MySQL HAGalera Cluster: Synchronous Multi-Master Replication for MySQL HA
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

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...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Effective Oracle Home Management - UKOUG_Tech18

  • 1.
  • 2. Effective Oracle Home Management with the New Release Model Ludovico Caldara Computing Engineer IT Department, CERN ludovico.caldara@cern.ch @ludodba 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 2
  • 3. About Ludovico Caldara ■ 18+ Years DBA (Not Only Oracle) ■ ITOUG co-founder ■ OCP (11g, 12c, MySQL) & OCE ■ Italian living in Switzerland ■ http://www.ludovicocaldara.net ■ @ludodba ■ ludovicocaldara 05.12.2018 3 Effective Oracle Home Management #UKOUG_Tech18
  • 4. CERN • CERN - European Laboratory for Particle Physics • Founded in 1954 by 12 Countries for fundamental physics research in the post-war Europe • Today 22 member states and world-wide collaborations • About ~1100 MCHF yearly budget • 2’300 CERN personnel • 10’000 users from 110 countries 405.12.2018 Effective Oracle Home Management #UKOUG_Tech18
  • 5. Fundamental Research • What is 95% of the Universe made of? • Why do particles have mass? • Why is there no antimatter left in the Universe? • What was the Universe like, just after the "Big Bang"? 505.12.2018 Effective Oracle Home Management #UKOUG_Tech18
  • 6. Effective Oracle Home Management #UKOUG_Tech18 6 The Large Hadron Collider (LHC) Largest machine in the world 27km, 6000+ superconducting magnets Emptiest place in the solar system High vacuum inside the magnets Hottest spot in the galaxy During Lead ion collisions create temperatures 100 000x hotter than the heart of the sun Fastest racetrack on Earth Protons circulate 11245 times/s (99.9999991% the speed of light)
  • 7. Quick overview of the New Release Model 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 7
  • 8. What does it change? Jan 18 Apr Jul Oct Jan 19 Apr Jul Oct RU 18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0 RUR1 18.2.1 18.3.1 18.4.1 18.5.1 18.6.1 18.7.1 RUR2 18.2.2 18.3.2 18.4.2 18.5.2 18.6.2 RU 19.1.0 19.2.0 19.3.0 19.4.0 RUR1 19.2.1 19.3.1 RUR2 19.2.2 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 8 2
  • 9. What does it change? Jan 18 Apr Jul Oct Jan 19 Apr Jul Oct RU 18.1.0 18.2.0 18.3.0 18.4.0 18.5.0 18.6.0 18.7.0 18.8.0 RUR1 18.2.1 18.3.1 18.4.1 18.5.1 18.6.1 18.7.1 RUR2 18.2.2 18.3.2 18.4.2 18.5.2 18.6.2 RU 19.1.0 19.2.0 19.3.0 19.4.0 RUR1 19.2.1 19.3.1 RUR2 19.2.2 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 9 2
  • 10. What does it change? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 10 Short Development cycle Frequent Upgrades And Updates
  • 11. “Patch soon, patch often” vs reality 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 11
  • 12. Frequent patching? • Time consuming • Complex • Risky • Unnecessary (?) • Error-prone 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 12
  • 13. How many bugs could you encounter? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 13
  • 14. How many bugs could you encounter? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 14 18.3.0 18.3.1 18.4.0
  • 15. How many bugs could you encounter? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 15 18.3.0 18.3.1 18.4.0 634
  • 16. How many bugs could you encounter? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 16 18.3.0 18.3.1 18.4.0 634 1089
  • 17. How many bugs could you encounter? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 17 18.3.0 18.3.1 18.4.0 634 1089 1257
  • 18. Which patches should I apply? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 18
  • 19. Brave vs Fearful 12.1 >= 12.2 Effective Oracle Home Management #UKOUG_Tech18 19 How do I feel? PSU Bundle Patch BraveFearful How do I feel? Release Update Revision Release Update BraveFearful • 05.12.2018
  • 20. Brave vs Fearful 12.1 >= 12.2 Effective Oracle Home Management #UKOUG_Tech18 20 How do I feel? PSU Bundle Patch BraveFearful How do I feel? Release Update Revision Release Update BraveFearful Ludovico(*) Ludovico(*) (*) yes, it’s Comic Sans https://mikedietrichde.com/2017/10/24/differences-psu-bp-ru-rur/ • 05.12.2018
  • 21. Common patching patterns 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 21
  • 22. Common worst practices in maintaining homes • Installing software by hand • Different patch levels for Oracle Homes with the same path • Not tracking the installed patches • Oracle Home paths hard-coded in the operational scripts • Not minding about naming conventions 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 22
  • 23. Worst approach (big bang) 1. Stop everything 2. In-place binaries patching 3. Database patching, all at once 4. Start everything Effective Oracle Home Management #UKOUG_Tech18 23 UP UP UP UP DOWN DOWN DOWN DOWN UP UP UP UP UP DOWN UP STOP ALL START ALLPATCH BINARIES PATCH DBs • 05.12.2018
  • 24. Worst approach (big bang) 1. Stop everything 2. In-place binaries patching 3. Database patching, all at once 4. Start everything Effective Oracle Home Management #UKOUG_Tech18 2405.12.2018 UP UP UP UP DOWN DOWN DOWN DOWN UP UP UP UP UP DOWN UP STOP ALL START ALLPATCH BINARIES PATCH DBs No easy rollback Long downtime Complex planning
  • 25. Different approach (still bad) 1. Install new binaries manually 2. Patch the new binaries 3. Stop, change OH, patch databases one by one 4. Decommission old binaries Effective Oracle Home Management #UKOUG_Tech18 2505.12.2018 UP UP UP UP DOWN DOWN DOWN DOWN UP UP UP UP PATCH BINARIES STOP, MOVE, PATCH ONE BY ONE
  • 26. Different approach (still bad) 1. Install new binaries manually 2. Patch the new binaries 3. Stop, change OH, patch databases one by one 4. Decommission old binaries Effective Oracle Home Management #UKOUG_Tech18 2605.12.2018 UP UP UP UP DOWN DOWN DOWN DOWN UP UP UP UP PATCH BINARIES STOP, MOVE, PATCH ONE BY ONE Complex to do manually Repetitive task when many servers
  • 27. Automate the installation! • Automated creation 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 27 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply
  • 28. Automate the installation! • Automated creation 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 28 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply https://github.com/MarisElsins/getMOSPatch
  • 29. Automate the installation! • Automated creation 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 29 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply https://github.com/MarisElsins/getMOSPatch https://github.com/ilmarkerm/ansible-oracle-home-mgmt
  • 30. Image repo Automate the installation! • Automated creation • Software cloning 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 30 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply 18.3.1 18.4.0 Server 18.3.1
  • 31. Image repo Automate the installation! • Automated creation • Software cloning 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 31 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply 18.3.1 18.4.0 Server 18.3.1 RUNDECK ANSIBLE RHP OTHER
  • 32. Less paths Effective Oracle Home Management #UKOUG_Tech18 3205.12.2018 18.3.0 18.4.0 18.4.0 + one-off X 18.5.0 + one-off X 18.5.0 + one-off X + one-off Y 18.3.0 18.4.0 18.4.0 + one-off X 18.5.0 + one-off X 18.5.0 + one-off X + one-off Y 18.4.1 18.4.1 + one-off Y GOOD: BAD:
  • 33. Workarounds vs one-offs • Sometimes through underscore parameters • Mitigate the number of one-offs • Less merge requests • Document it! (why, when, who) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 33 1 2 3 alter system set "_px_groupby_pushdown"=off comment='Ludo, 03.05.16: W/A for bug 18499088' scope=both sid='*‘;
  • 34. Rapid Home provisioning • It might be the perfect product… • Requires Lifecycle Management Pack • The technology stack is complex (Clusterware, ASM, ACFS, NFS, GNS…) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 34
  • 35. Rapid Home provisioning • It might be the perfect product… • Requires Lifecycle Management Pack • The technology stack is complex (Clusterware, ASM, ACFS, NFS, GNS…) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 35 Managing Gold Images for Easy Patching & Upgrading with Oracle RHP Ian Cookson - Oracle Room 1A, today 15:20
  • 36. Custom approach • Simple script • Golden images • Solid naming conventions • I blogged about it! http://www.ludovicocaldara.net/dba/oh-mgmt-[1..7]/ 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 36
  • 37. Implementation at CERN 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 37
  • 38. Naming Conventions 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 38 Central Inventory server 1 <HOME NAME= "OraDB12Home1" LOC="/u01/app/oracle/product/12.2.0.1" TYPE="O" IDX="2"> <HOME NAME= "OraDB12Home2" LOC="/u01/app/oracle/product/12.2.0.1_2" TYPE="O" IDX=“3"> Central Inventory server 2 <HOME NAME= "OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0.2" TYPE="O" IDX=“1"> <HOME NAME= "OraDB12Home2" LOC="/u01/app/oracle/product/12.2.0.1" TYPE="O" IDX="2">
  • 39. Naming Conventions • Central Inventory contains OH name • OH name matches OH location • No dots (.) allowed (inventory limitation) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 39 Central Inventory <HOME NAME=“18_3_0" LOC="/u01/app/oracle/product/18_3_0" TYPE="O" IDX="2"> • 1 to 1 mapping: easy to code • 18c read-only OH uses the name as subdir in `orabasehome`: consistent naming!
  • 40. Golden images 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 40 Golden Images Store 18_3_0.zip 18_4_0.zip 18_3_1.zip SERVER1 18_3_0.zip 18_3_1.zip SERVER2 18_3_1.zip SERVER3 18_4_0.zip Golden Image Metadata Name Path ------- ----------------- 18_3_0 /store/18_3_0.zip 18_3_1 /store/18_3_1.zip 18_4_0 /store/18_4_0.zip
  • 41. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 42 SERVER1 18_3_0 SERVER2… First Install
  • 42. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 43 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -c -n 18_3_0
  • 43. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 44 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -i 18_3_018_3_0
  • 44. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 45 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -i 18_3_0 -n 18_4_0 18_3_0 18_4_0
  • 45. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 46 18_3_0.zip SERVER1 18_3_0 SERVER2… Manual patching 18_3_0 18_4_0
  • 46. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 47 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -c 18_3_0 18_4_0 18_4_0.zip
  • 47. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 48 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -i 18_4_0 18_3_0 18_4_0 18_4_0.zip 18_4_0
  • 48. What it actually does Creation workflow • Copy the Home • Clean it up • Create the zip • Store the zip in the repo • Store metadata Effective Oracle Home Management #UKOUG_Tech18 4905.12.2018
  • 49. What it actually does Creation workflow • Copy the Home • Clean it up • Create the zip • Store the zip in the repo • Store metadata Installation workflow • Security checks • Create new path • Unzip from the store • Attach home • Relink (opt. with RAC) • Run setasmgid • Other stuff (e.g. TNS) Effective Oracle Home Management #UKOUG_Tech18 5005.12.2018
  • 50. Effective Oracle Home Management #UKOUG_Tech18 5105.12.2018 DEMO
  • 51. Further development at CERN 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 52
  • 52. Read-only Oracle Home $ roohctl –enable Enabling Read-Only Oracle home. Update orabasetab file to enable Read-Only Oracle home. Orabasetab file has been updated successfully. Create bootstrap directories for Read-Only Oracle home. Bootstrap directories have been created successfully. Bootstrap files have been processed successfully. Read-Only Oracle home has been enabled successfully. Check the log file /u01/app/oracle/cfgtoollogs/roohctl/roohctl- 180822AM102911.log. 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 53
  • 53. Read-only Oracle Home 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 54 18_3_0 18_4_0 /u01/app/oracle/product/ /u01/app/oracle/product/ $ cat $ORACLE_HOME/install/orabasetab #orabasetab file is used to track Oracle Home associated with Oracle Base /u01/app/oracle/product/18_3_0:/u01/app/oracle:18_3_0:N: ORACLE_HOME ORACLE_HOME Read only
  • 54. Read-only Oracle Home 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 55 18_3_0 18_4_0 /u01/app/oracle/product/ /u01/app/oracle/product/ /u01/app/oracle/homes/ $ cat $ORACLE_HOME/install/orabasetab #orabasetab file is used to track Oracle Home associated with Oracle Base /u01/app/oracle/product/18_3_0:/u01/app/oracle:18_3_0:N: ORACLE_HOME /u01/app/oracle/homes/ ORACLE_HOME orabasehome orabasehome 18_3_0 18_4_0 Read only TNS, init, etc.
  • 55. AGILE INFRASTRUCTURE SERVER Insertion in the Agile Infrastructure 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 56 Image Store Scripts REST client Oracle Home
  • 56. Grid Infrastructure Installation • Puppet + Rundeck for automatic GI install • Patched Grid Infrastructure versions beside the first one https://www.markusdba.net/?p=294 • Out-of-place patching with 18c independent local-mode automaton 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 57 $ rhpctl move gihome –sourcehome old_path -destinationhome new_path
  • 57. Independent Local-mode Automaton (18c) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 58 # $GI_HOME/srvctl enable volume -volume GHCHKPT -diskgroup mgmt # $GI_HOME/srvctl enable filesystem -volume GHCHKPT -diskgroup mgmt # $GI_HOME/srvctl start filesystem -volume GHCHKPT -diskgroup mgmt $ $GI_HOME/srvctl start rhpserver Local Resources --------------------------------------------------------------- ora.MGMT.GHCHKPT.advm ora.mgmt.ghchkpt.acfs ora.helper Cluster Resources --------------------------------------------------------------- ora.rhpserver
  • 58. $ opatch lspatches 27908644;UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171 27923415;OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415) 28256701;TOMCAT RELEASE UPDATE 18.3.0.0.0 (28256701) 28090564;DBWLM RELEASE UPDATE 18.3.0.0.0 (28090564) 28090557;ACFS RELEASE UPDATE 18.3.0.0.0 (28090557) 28090553;OCW RELEASE UPDATE 18.3.0.0.0 (28090553) 28090523;Database Release Update : 18.3.0.0.180717 (28090523) OPatch succeeded. 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 59
  • 59. Independent Local-mode Automaton (18c) • Damn-easy move of GI HOME • Automatic resource relocation • Enable Grid Infrastructure Golden Images • Patching (apply and rollback) is done automatically 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 60
  • 60. Back to the demo… 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 61
  • 61. Questions? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 62
  • 62. Thank you! Ludovico Caldara Computing Engineer IT Department, CERN ludovico.caldara@cern.ch @ludodba 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 63