Effective Oracle Home Management in the new Release Model era
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)
“Patch soon, patch often” vs reality
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
7
Frequent patching?
• Patching is time consuming
• It is complex
• It introduces some risks
• It is not always really necessary
• It leads to human errors
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
8
How many bugs could you encounter?
$ opatch lspatches
27923320;Database PSU 12.1.0.2.180717, Oracle JavaVM Component (JUL2018)
22243983;
27762253;OCW PATCH SET UPDATE 12.1.0.2.180717 (27762253)
27547374;Database Bundle Patch : 12.1.0.2.180717 (27547374)
OPatch succeeded.
$ cd $ORACLE_HOME/inventory
$ grep -r "bug description" * | wc -l
2132
$ grep -r "bug description" * | grep -i "wrong result" | wc -l
66
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
9
Quick overview of the
New Release Model
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
10
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
11
2
What does it change?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
12
Short
Development
cycle
Frequent
Upgrades
And Updates
Which patches should I apply?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
13
Brave vs Fearful
12.1 >= 12.2
Effective Oracle Home Management
#UKOUG_Tech18
14
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
15
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
16
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
17
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
18
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
1905.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
2005.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
2105.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
22
Soft
ware Patch Patch
Patched
Software
• runInstaller -silent
• opatch apply
Image repo
Automate the installation!
• Automated creation • Software cloning
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
23
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
24
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
2505.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
26
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
27
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
28
Implementation at Etat de Vaud
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
29
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
30
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
31
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
33
SERVER1
18_3_0
SERVER2…
First Install
Image store
Typical workflow
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
34
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
35
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
36
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
37
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
38
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
39
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
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
4005.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
4105.12.2018
DEMO
Further development at CERN
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
42
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
43
AGILE INFRASTRUCTURE
SERVER
Insertion in the Agile Infrastructure
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
44
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
45
$ rhpctl move gihome –sourcehome old_path -destinationhome new_path
Independent Local-mode Automaton (18c)
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
46
# $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
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
47
Back to the demo…
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
48
Questions?
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
49
Thank you!
Ludovico Caldara
Computing Engineer
IT Department, CERN
ludovico.caldara@cern.ch
@ludodba
05.12.2018
Effective Oracle Home Management
#UKOUG_Tech18
50

More Related Content

PDF
Effective Oracle Home Management - UKOUG_Tech18
PDF
Oracle Drivers configuration for High Availability
PPTX
Oracle Active Data Guard 12cR2. Is it the best option?
PPTX
How to bake a Customer Story with With Windows, NVM-e, Data Guard, ACFS Snaps...
PDF
Oracle Client Failover - Under The Hood
PDF
Oracle Active Data Guard and Global Data Services in Action!
PPTX
Get the most out of Oracle Data Guard - POUG version
PPTX
Database Migration Assistant for Unicode (DMU)
Effective Oracle Home Management - UKOUG_Tech18
Oracle Drivers configuration for High Availability
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...
Oracle Client Failover - Under The Hood
Oracle Active Data Guard and Global Data Services in Action!
Get the most out of Oracle Data Guard - POUG version
Database Migration Assistant for Unicode (DMU)

What's hot (20)

PDF
Rapid Home Provisioning
PPTX
Get the most out of Oracle Data Guard - OOW version
PDF
Oracle GoldenGate for Oracle DBAs
PPTX
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
PDF
GoldenGate and Oracle Data Integrator - A Perfect Match...
PDF
Migration to Oracle Multitenant
PDF
Oracle Rac Performance Tunning Tips&Tricks
PPTX
Examining Oracle GoldenGate Trail Files
PPT
Real-Time Data Replication to Hadoop using GoldenGate 12c Adaptors
PDF
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
PDF
Maximum Availability Architecture - Best Practices for Oracle Database 19c
PDF
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
PDF
Oracle12c data guard farsync and whats new - Nassyam Basha
PDF
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
PDF
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
PDF
GoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing
PDF
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
PPTX
Oracle Database 12.1.0.2: New Features
PPTX
Enable GoldenGate Monitoring with OEM 12c/JAgent
PDF
OOW 17 - database consolidation using the oracle multitenant architecture
Rapid Home Provisioning
Get the most out of Oracle Data Guard - OOW version
Oracle GoldenGate for Oracle DBAs
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
GoldenGate and Oracle Data Integrator - A Perfect Match...
Migration to Oracle Multitenant
Oracle Rac Performance Tunning Tips&Tricks
Examining Oracle GoldenGate Trail Files
Real-Time Data Replication to Hadoop using GoldenGate 12c Adaptors
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
GoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing
GoldenGate and Oracle Data Integrator - A Perfect Match- Upgrade to 12c
Oracle Database 12.1.0.2: New Features
Enable GoldenGate Monitoring with OEM 12c/JAgent
OOW 17 - database consolidation using the oracle multitenant architecture
Ad

Similar to Effective Oracle Home Management in the new Release Model era (20)

PDF
2024_05_16_doag_out-of-place_patching.pdf
PDF
Out-of-Place Oracle Database Patching and Provisioning Golden Images
PDF
upgrade_migrate_consolidate_19999c (1).pdf
PPTX
SAOUG 2018 - Rapid Home Provisioning
PPTX
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
PDF
Streamline it management
PDF
Data Base Upgrade
PPTX
Database Upgrades Automation using Enterprise Manager 12c
PDF
Release and patching strategy
PDF
11158682984719608417 emea11 fallback
PDF
11158682984719608417 emea11 fallback
PPT
Less18 support
PDF
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
PPTX
OEM13c_PPT.pptx
PPTX
Hyderabad Mar 2019 - Autonomous Database
PDF
ILOUG 2019 - Autonomous, what does it mean for DBAs
PPTX
Perth APAC Groundbreakers tour - The Autonomous Database
PDF
Mike_Salt.pdf
PDF
Fujitsu Services _Large Scale EBS 12.2 Upgrade Licking the Wounds_Mike_Salt.pdf
PDF
Living with the Oracle Database Appliance
2024_05_16_doag_out-of-place_patching.pdf
Out-of-Place Oracle Database Patching and Provisioning Golden Images
upgrade_migrate_consolidate_19999c (1).pdf
SAOUG 2018 - Rapid Home Provisioning
Meetup Oracle Database MAD_BCN: 1.3 Gestión del ciclo de vida de Oracle Datab...
Streamline it management
Data Base Upgrade
Database Upgrades Automation using Enterprise Manager 12c
Release and patching strategy
11158682984719608417 emea11 fallback
11158682984719608417 emea11 fallback
Less18 support
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
OEM13c_PPT.pptx
Hyderabad Mar 2019 - Autonomous Database
ILOUG 2019 - Autonomous, what does it mean for DBAs
Perth APAC Groundbreakers tour - The Autonomous Database
Mike_Salt.pdf
Fujitsu Services _Large Scale EBS 12.2 Upgrade Licking the Wounds_Mike_Salt.pdf
Living with the Oracle Database Appliance
Ad

More from Ludovico Caldara (12)

PDF
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
PDF
Oracle Drivers configuration for High Availability, is it a developer's job?
PDF
Long live to CMAN!
PDF
Let your DBAs get some REST(api)
PDF
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
PPTX
Migrating to Oracle Database 12c: 300 DBs in 300 days.
PDF
Oracle Database on ACFS: a perfect marriage?
PDF
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
PDF
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
PDF
Boost your Oracle RAC manageability with Policy-Managed Databases
PDF
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
PDF
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Drivers configuration for High Availability, is it a developer's job?
Long live to CMAN!
Let your DBAs get some REST(api)
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
Migrating to Oracle Database 12c: 300 DBs in 300 days.
Oracle Database on ACFS: a perfect marriage?
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Boost your Oracle RAC manageability with Policy-Managed Databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA

Recently uploaded (20)

PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Five Habits of High-Impact Board Members
PPT
What is a Computer? Input Devices /output devices
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Unlock new opportunities with location data.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
O2C Customer Invoices to Receipt V15A.pptx
sustainability-14-14877-v2.pddhzftheheeeee
observCloud-Native Containerability and monitoring.pptx
Five Habits of High-Impact Board Members
What is a Computer? Input Devices /output devices
WOOl fibre morphology and structure.pdf for textiles
Unlock new opportunities with location data.pdf
Benefits of Physical activity for teenagers.pptx
DP Operators-handbook-extract for the Mautical Institute
1 - Historical Antecedents, Social Consideration.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Chapter 5: Probability Theory and Statistics
A comparative study of natural language inference in Swahili using monolingua...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Assigned Numbers - 2025 - Bluetooth® Document
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Zenith AI: Advanced Artificial Intelligence
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
NewMind AI Weekly Chronicles – August ’25 Week III

Effective Oracle Home Management in the new Release Model era

  • 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. “Patch soon, patch often” vs reality 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 7
  • 8. Frequent patching? • Patching is time consuming • It is complex • It introduces some risks • It is not always really necessary • It leads to human errors 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 8
  • 9. How many bugs could you encounter? $ opatch lspatches 27923320;Database PSU 12.1.0.2.180717, Oracle JavaVM Component (JUL2018) 22243983; 27762253;OCW PATCH SET UPDATE 12.1.0.2.180717 (27762253) 27547374;Database Bundle Patch : 12.1.0.2.180717 (27547374) OPatch succeeded. $ cd $ORACLE_HOME/inventory $ grep -r "bug description" * | wc -l 2132 $ grep -r "bug description" * | grep -i "wrong result" | wc -l 66 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 9
  • 10. Quick overview of the New Release Model 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 10
  • 11. 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 11 2
  • 12. What does it change? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 12 Short Development cycle Frequent Upgrades And Updates
  • 13. Which patches should I apply? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 13
  • 14. Brave vs Fearful 12.1 >= 12.2 Effective Oracle Home Management #UKOUG_Tech18 14 How do I feel? PSU Bundle Patch BraveFearful How do I feel? Release Update Revision Release Update BraveFearful • 05.12.2018
  • 15. Brave vs Fearful 12.1 >= 12.2 Effective Oracle Home Management #UKOUG_Tech18 15 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
  • 16. Common patching patterns 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 16
  • 17. 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 17
  • 18. 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 18 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
  • 19. 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 1905.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
  • 20. 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 2005.12.2018 UP UP UP UP DOWN DOWN DOWN DOWN UP UP UP UP PATCH BINARIES STOP, MOVE, PATCH ONE BY ONE
  • 21. 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 2105.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
  • 22. Automate the installation! • Automated creation 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 22 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply
  • 23. Image repo Automate the installation! • Automated creation • Software cloning 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 23 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply 18.3.1 18.4.0 Server 18.3.1
  • 24. Image repo Automate the installation! • Automated creation • Software cloning 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 24 Soft ware Patch Patch Patched Software • runInstaller -silent • opatch apply 18.3.1 18.4.0 Server 18.3.1 RUNDECK ANSIBLE RHP OTHER
  • 25. Less paths Effective Oracle Home Management #UKOUG_Tech18 2505.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:
  • 26. 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 26 1 2 3 alter system set "_px_groupby_pushdown"=off comment='Ludo, 03.05.16: W/A for bug 18499088' scope=both sid='*‘;
  • 27. 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 27
  • 28. 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 28
  • 29. Implementation at Etat de Vaud 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 29
  • 30. 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 30 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!
  • 31. Golden images 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 31 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
  • 32. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 33 SERVER1 18_3_0 SERVER2… First Install
  • 33. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 34 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -c -n 18_3_0
  • 34. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 35 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -i 18_3_018_3_0
  • 35. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 36 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -i 18_3_0 -n 18_4_0 18_3_0 18_4_0
  • 36. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 37 18_3_0.zip SERVER1 18_3_0 SERVER2… Manual patching 18_3_0 18_4_0
  • 37. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 38 18_3_0.zip SERVER1 18_3_0 SERVER2… $ ohctl -c 18_3_0 18_4_0 18_4_0.zip
  • 38. Image store Typical workflow 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 39 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
  • 39. 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 4005.12.2018
  • 40. Effective Oracle Home Management #UKOUG_Tech18 4105.12.2018 DEMO
  • 41. Further development at CERN 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 42
  • 42. 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 43
  • 43. AGILE INFRASTRUCTURE SERVER Insertion in the Agile Infrastructure 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 44 Image Store Scripts REST client Oracle Home
  • 44. 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 45 $ rhpctl move gihome –sourcehome old_path -destinationhome new_path
  • 45. Independent Local-mode Automaton (18c) 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 46 # $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
  • 46. 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 47
  • 47. Back to the demo… 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 48
  • 48. Questions? 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 49
  • 49. Thank you! Ludovico Caldara Computing Engineer IT Department, CERN ludovico.caldara@cern.ch @ludodba 05.12.2018 Effective Oracle Home Management #UKOUG_Tech18 50