SlideShare a Scribd company logo
BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Rapid Home Provisioning
A new Oracle Grid Infrastructure 12.1.0.2 feature
Ludovico Caldara
Oracle ACE, Senior Oracle Consultant
Trivadis SA
About Ludovico Caldara
Rapid Home Provisioning2 09.12.2015
■ 16 Years DBA (Not Only Oracle)
▪ I do it everywhere (even Windows)
■ RAC ATTACK Ninja & co-writer
■ VP, SOUG & ITOUG Board member
■ OCP (11g, 12c, MySQL) & OCE
■ Italian living in Switzerland
■ http://www.ludovicocaldara.net
■ @ludodba
■ ludovicocaldara
Our company.
Rapid Home Provisioning3 09.12.2015
Trivadis is a market leader in IT consulting, system integration, solution engineering
and the provision of IT services focusing on and
technologies in Switzerland, Germany, Austria and Denmark.
We offer our services in the following strategic business fields:
Trivadis Services takes over the interactive operation of your IT systems.
O P E R A T I O N
COPENHAGEN
MUNICH
LAUSANNE
BERN
ZURICH
BRUGG
GENEVA
HAMBURG
DÜSSELDORF
FRANKFURT
STUTTGART
FREIBURG
BASEL
VIENNA
With over 600 specialists and IT experts in your region.
Rapid Home Provisioning4 09.12.2015
14 Trivadis branches and more than
600 employees
200 Service Level Agreements
Over 4,000 training participants
Research and development budget:
CHF 5.0 / EUR 4 million
Financially self-supporting and
sustainably profitable
Experience from more than 1,900
projects per year at over 800
customers
Rapid Home Provisioning5 09.12.2015
Patching, Patching, Patching
(or how I will NOT apply PSUs every quarter)
Patching, Patching, Patching
Rapid Home Provisioning6 09.12.2015
(Original: https://xkcd.com/838/ )
Patching, worst way
Rapid Home Provisioning7 09.12.2015
1. Stop everything
2. In-place binaries patching
3. Database patching, "big bang" mode
4. Start everything
Patching, worst way
Rapid Home Provisioning8 09.12.2015
1. Stop everything
2. In-place binaries patching
3. Database patching, "big bang" mode
4. Start everything
Problem: you seriously need a check-up of your operational practices
Patching, better way
Rapid Home Provisioning9 09.12.2015
1. Re-install binaries, out-of-place binaries patching
2. Stop databases, one by one
3. Move to new ORACLE_HOME, patch one by one
4. Decommission old binaries
Patching, better way
Rapid Home Provisioning10 09.12.2015
1. Re-install binaries, out-of-place binaries patching
2. Stop databases, one by one
3. Move to new ORACLE_HOME, patch one by one
4. Decommission old binaries
Problem: what if you have many servers/environments and patch frequently?
Patching, best way (so far)
Rapid Home Provisioning11 09.12.2015
1. Install binaries somewhere
2. Detach and patch them
3. Keep them as golden images somewhere
4. Deploy them on the servers somehow, attach them
5. Stop databases, one by one
6. Move to new ORACLE_HOME, patch one by one
7. Decommission old binaries
Patching, best way (so far)
Rapid Home Provisioning12 09.12.2015
1. Install binaries somewhere
2. Detach and patch them
3. Keep them as golden images somewhere
4. Deploy them on the servers somehow, attach them
5. Stop databases, one by one
6. Move to new ORACLE_HOME, patch one by one
7. Decommission old binaries
Flexible?
YES!
Patching, best way (so far)
Rapid Home Provisioning13 09.12.2015
1. Install binaries somewhere
2. Detach and patch them
3. Keep them as golden images somewhere
4. Deploy them on the servers somehow, attach them
5. Stop databases, one by one
6. Move to new ORACLE_HOME, patch one by one
7. Decommission old binaries
Flexible?
YES!
Easy?
NO!
Rapid Home Provisioning14 09.12.2015
Rapid Home Provisioning
What is it?
Rapid Home Provisioning is...
Rapid Home Provisioning15 09.12.2015
Usage: srvctl ... asm
Usage: srvctl ... cvu
Usage: srvctl ... database
Usage: srvctl ... diskgroup
Usage: srvctl ... exportfs
Usage: srvctl ... filesystem
Usage: srvctl ... gns
Usage: srvctl ... havip
Usage: srvctl ... home
Usage: srvctl ... instance
Usage: srvctl ... listener
Usage: srvctl ... mgmtdb
Usage: srvctl ... mgmtlsnr
Usage: srvctl ... mountfs
Usage: srvctl ... network
Usage: srvctl ... nodeapps
Usage: srvctl ... oc4j
Usage: srvctl ... rhpclient
Usage: srvctl ... rhpserver
Usage: srvctl ... scan
Usage: srvctl ... scan_listener
Usage: srvctl ... server
Usage: srvctl ... service
Usage: srvctl ... srvpool
Usage: srvctl ... vip
Usage: srvctl ... volume
grid$ srvctl -help | grep Usage: | awk '{printf ("%s %s ... %sn", $1, $2, $4)}' | sort | uniq
Something that messes my srvctl help!
Rapid Home Provisioning is...
Rapid Home Provisioning16 09.12.2015
Usage: rhpctl ... client
Usage: rhpctl ... database
Usage: rhpctl ... image
Usage: rhpctl ... role
Usage: rhpctl ... series
Usage: rhpctl ... server
Usage: rhpctl ... user
Usage: rhpctl ... workingcopy
grid$ rhpctl -help | grep Usage: | awk '{printf ("%s %s ... %sn", $1, $2, $4)}' | sort |uniq
It has its own rhpctl command too! This is how you administer it.
Rapid Home Provisioning - the idea
Rapid Home Provisioning17 09.12.2015
DF
OH_1 OH_2 OH_3
RHP SERVER
-MGMTDB
RHP CLIENT
RHP CLIENT
RHP CLIENT
RHP CLIENT
RHP CLIENT
RHP CLIENT
RHP CLIENT RHP CLIENT
GOLDEN
IMAGE
DB
WORKING
COPY
Rapid Home Provisioning is a tool for...
Rapid Home Provisioning18 09.12.2015
Provisioning and patching
– Oracle Homes
– other Software
Simplifying software deployment
Patching Databases (Mass patching possible)
Centralizing Golden Images
Ensuring standardization within the enterprise
Rapid Home Provisioning has mandatory requirements
Rapid Home Provisioning19 09.12.2015
Oracle Grid Infrastructure release 12.1.0.2 or upwards (use the last PSU)
ASM Cluster File System (ACFS)
Oracle Grid Infrastructure Global Naming Services (GNS)
NFS Server and HAVIP (optional*)
Lifecycle Management Pack Option (optional*)
* how optional is optional? We will see in the next episode (coming soon)
Rapid Home Provisioning has also limitations!
Rapid Home Provisioning20 09.12.2015
The main ones:
Not available on Windows
Cannot upgrade from a release to another (planned in 12.2)
Cannot provision Grid Infrastructure Homes (not yet, maybe 12.2?)
– Bug 19596245 : IMPLEMENT GRID INFRASTRUCTURE SUPPORT IN RAPID HOME PROVISIONING
Cannot provision OS Images or VMs, not in the scope of the tool
Rapid Home Provisioning - Security Roles
Rapid Home Provisioning21 09.12.2015
Several roles -> specific permissions on Working Copies and and Golden Images
But basically three composite roles:
– GH_SA : RHP Server administrator
– GH_CA : RHP Client administrator
– GH_OPER : for generic administration
Rapid Home Provisioning22 09.12.2015
Rapid Home Provisioning
Single Cluster Architecture
(or when you have only one cluster)
Single Cluster Architecture - Setup
Rapid Home Provisioning23 09.12.2015
RHP Server Cluster
ASM RHP DG-MGMTDB
Single Cluster Architecture - Setup
Rapid Home Provisioning24 09.12.2015
RHP Server Cluster
ASM RHP DG-MGMTDB
Existing
OraHome
1
Single Cluster Architecture - Setup
Rapid Home Provisioning25 09.12.2015
RHP Server Cluster
ASM RHP DG-MGMTDB
RHP
Server
Existing
OraHome
1
# srvctl add rhpserver -storage /my/path/to/rhp/ -diskgroup RHP
# srvctl start rhpserver
new resource ora.ghs is created
ASM DG must exist,
ADVM Compatible >= 12.1.0.0
Single Cluster Architecture - Adding Images
Rapid Home Provisioning26 09.12.2015
RHP Server Cluster
ASM RHP DG-MGMTDB
RHP
Server
Existing
OraHome
ACFS Mount
Base
Golden
Image
grid $ rhpctl grant role -role GH_CA -user oracle -client rhps-cluster
oracle $ rhpctl import image -image 12cR1_EE_Base 
-path $OH -imagetype ORACLEDBSOFTWARE
Getting Golden Image details
Rapid Home Provisioning27 09.12.2015
grid $ rhpctl query image -image 12cR1_EE_Base
Image name: 12cR1_EE_Base
Owner: grid@rhps-cluster
Site: rhps-cluster
Access control: USER:oracle@rhps-cluster
Access control: ROLE:OTHER
...
Parent Image:
Image Type: ORACLEDBSOFTWARE
Image Version: 12.1.0.2.0
Software home path:
/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/swhome
Image state: PUBLISHED
Image size: 5332MB
Image platform: Linux_AMD64
Interim patches installed:
Complete: TRUE
Single Cluster Architecture - Adding Working Copies
Rapid Home Provisioning28 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
Existing
OraHome
1
ACFS Mount
Base
Golden
Image
no more needed
oracle $ rhpctl add workingcopy -workingcopy 12cR1_EE_Base_1 
-image 12cR1_EE_Base -oraclebase /u01/app/oracle
ACFS Snap
Base
Working
Copy
Getting Working Copy details
Rapid Home Provisioning29 09.12.2015
oracle $ rhpctl query workingcopy -workingcopy 12cR1_EE_Base_1
Working copy name: 12cR1_EE_Base_1
Image name: 12cR1_EE_Base
Owner: oracle@rhps-cluster
Site: rhps-cluster
Access control: USER:oracle@rhps-cluster
Access control: ROLE:GH_WC_ADMIN
Software home path:
/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1
_EE_Base_1/swhome
Oracle base: /u01/app/oracle
Storage type: RHP Managed
Configured databases:
Interim patches installed:
Complete: TRUE
YOUR ORACLE_HOME
ON RHP SERVER
Single Cluster Architecture - Using Working Copies
Rapid Home Provisioning30 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Base
Working
Copy
DB
You can use the working copy as ORACLE_HOME for databases
$ rhpctl add database -workingcopy 12cR1_EE_base_1 -dbname ORCL 
-datafileDestination DATA -dbtemplate General_Purpose.dbc
... or ...
Single Cluster Architecture - Patching Working Copies
Rapid Home Provisioning31 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Patched
Working
Copy
oracle $ cd PSUx/patchnumber
oracle $ opatch apply
Single Cluster Architecture - Patching Working Copies
Rapid Home Provisioning32 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Patched
Working
Copy
oracle $ cd PSUx/patchnumber
oracle $ opatch apply
oracle $ rhpctl add image –image 12cR1_EE_PSUx 
-workingcopy 12cR1_EE_Base_1
ACFS Snap
Patched
Golden
Image
Single Cluster Architecture - Patching Working Copies
Rapid Home Provisioning33 09.12.2015
$ rhpctl add image -image 12cR1_EE_PSU4 -workingcopy 12cR1_EE_PSU4_1
rhpsh02.trivadistraining.com: Finding ACFS of previous image "12cR1_EE_Base" ...
rhpsh02.trivadistraining.com: Creating snapshot for image "12cR1_EE_PSU4" from
working copy "12cR1_EE_PSU4_1" ...
rhpsh02.trivadistraining.com: Changing the home ownership ...
$
Single Cluster Architecture - Images and Working Copies
Rapid Home Provisioning34 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Patched
Golden
Image
You can have as many Images and Working copies as you need.
ACFS Snap
Patched
Working
Copy
ACFS Snap
Base
Working
Copy
$ rhpctl query workingcopy
Working copy name: 12cR1_EE_Base_1
Working copy name: 12cR1_EE_PSU4_1
Working copy name: 12cR1_EE_PSU4_2
$ rhpctl query image
Image name: 12cR1_EE_PSU4
Image name: 12cR1_EE_Base
ACFS Snap
Patched
Working
Copy
Single Cluster Architecture - Database Patching
Rapid Home Provisioning35 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Patched
Golden
Image
ACFS Snap
Patched
Working
Copy
ACFS Snap
Base
Working
Copy
Unpatched
DB
Database patching is dead simple!
Single Cluster Architecture - Database Patching
Rapid Home Provisioning36 09.12.2015
RHP Server Cluster
ASM DG-MGMTDB
RHP
Server
ACFS Mount
Base
Golden
Image
ACFS Snap
Patched
Golden
Image
ACFS Snap
Patched
Working
Copy
ACFS Snap
Base
Working
Copy
Unpatched
DB
Database patching is dead simple!
$ rhpctl move database -sourcewc 12cR1_EE_Base_1 
-patchedwc 12cR1_EE_PSU4_1 -dbname ORCL
Patched
DB
Database
must be open
Single Cluster Architecture - Database Patching
Rapid Home Provisioning37 09.12.2015
$ rhpctl move database -sourcewc 12cR1_EE_Base_1 -patchedwc 12cR1_EE_PSU4_1 -dbname ORCL
rhpsh02.trivadistraining.com: Starting to move database from
"/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1_EE_Base_1/swhome" to
"/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1_EE_PSU4_1/swhome"
on server cluster
...
SQL Patching tool version 12.1.0.2.0 on Sat Oct 24 17:06:22 2015
...
Adding patches to installation queue and performing prereq checks...done
...
The following patches will be applied:
20831110 (Database Patch Set Update : 12.1.0.2.4 (20831110))
...
Installing patches...
...
rhpsh02.trivadistraining.com: Completed the 'move database' operation on server cluster
Rapid Home Provisioning38 09.12.2015
DEMO?
By Michael Tiemann at en.Wikipedia CC-BY-SA
Rapid Home Provisioning39 09.12.2015
Rapid Home Provisioning
Multi Cluster Architecture
(or when you have a private cloud)
Multi Cluster Architecture - Additional requirements
Rapid Home Provisioning40 09.12.2015
NFS Server and HAVIP
Lifecycle Management Pack Option
Licensed on
all RHP Client
Clusters
Source: https://docs.oracle.com/database/121/DBLIC/editions.htm#DBLIC110
Multi Cluster Architecture - Adding a Client Cluster
Rapid Home Provisioning41 09.12.2015
## SERVER
# srvctl add havip -id rhp -address 192.168.89.202
$ rhpctl add client -client rhpc-cluster -toclientdata
/home/grid
$ scp /home/grid/rhpc-cluster.xml rhpch01:/home/grid
## CLIENT
# srvctl add rhpclient -clientdata /home/grid/rhpc-cluster.xml
# srvctl start rhpclient
# rhpctl query server
Rapid Home Provisioning Server (RHPS): rhps-cluster
Storage base path: /u01/app/12.1.0.2/grid/srvm
Disk Groups: RHP
Port number: 23795
Multi Cluster Architecture - Adding a Client Cluster
Rapid Home Provisioning42 09.12.2015
## SERVER
# srvctl add havip -id rhp -address 192.168.89.202
# rhpctl add client -client rhpc-cluster -toclientdata
/home/grid
# scp /home/grid/rhpc-cluster.xml rhpch01:/home/grid
## CLIENT
# srvctl add rhpclient -clientdata /home/grid/rhpc-cluster.xml
# srvctl start rhpclient
# rhpctl query server
Rapid Home Provisioning Server (RHPS): rhps-cluster
Storage base path: /u01/app/12.1.0.2/grid/srvm
Disk Groups: RHP
Port number: 23795
Multi Cluster Architecture - NFS Provisioning
Rapid Home Provisioning43 09.12.2015
RHP Server Cluster
ASM Volume 1-MGMTDB
RHP
Server
ACFS SnapACFS Mount
Golden
Image
Working
Copy
for NFS
RHP Client Cluster
RHP
Client Node 1
NFS Mount
Node 2
NFS Mount
Multi Cluster Architecture - NFS Provisioning
Rapid Home Provisioning44 09.12.2015
RHP Server Cluster
ASM Volume 1-MGMTDB
RHP
Server
ACFS SnapACFS Mount
Golden
Image
Working
Copy
for NFS
RHP Client Cluster
RHP
Client Node 1
NFS Mount
Node 2
NFS Mount
exportfs
mountfs mountfs
Multi Cluster Architecture - Provisioning via NFS
Rapid Home Provisioning45 09.12.2015
oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc 
-image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 
-oraclebase /u01/app/oracle
rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'...
rhpsh01.trivadistraining.com: Adding storage for working copy ...
rhpsh01.trivadistraining.com: Storing metadata in repository for working copy
"12cR1_EE_PSU4_rhpc" ...
rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4"
...
rhpsh01.trivadistraining.com: Creating snapshot ...
rhpsh01.trivadistraining.com: Adding export file system for image
"12cR1_EE_PSU4_rhpc" ...
...
rhpsh01.trivadistraining.com: Successfully executed attach home operation.
Multi Cluster Architecture - Provisioning via NFS
Rapid Home Provisioning46 09.12.2015
oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc 
-image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 
-oraclebase /u01/app/oracle
rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'...
rhpsh01.trivadistraining.com: Adding storage for working copy ...
rhpsh01.trivadistraining.com: Storing metadata in repository for working copy
"12cR1_EE_PSU4_rhpc" ...
rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4"
...
rhpsh01.trivadistraining.com: Creating snapshot ...
rhpsh01.trivadistraining.com: Adding export file system for image
"12cR1_EE_PSU4_rhpc" ...
...
rhpsh01.trivadistraining.com: Successfully executed attach home operation.
Multi Cluster Architecture - Provisioning via NFS
Rapid Home Provisioning47 09.12.2015
oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc 
-image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 
-oraclebase /u01/app/oracle
rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'...
rhpsh01.trivadistraining.com: Adding storage for working copy ...
rhpsh01.trivadistraining.com: Storing metadata in repository for working copy
"12cR1_EE_PSU4_rhpc" ...
rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4"
...
rhpsh01.trivadistraining.com: Creating snapshot ...
rhpsh01.trivadistraining.com: Adding export file system for image
"12cR1_EE_PSU4_rhpc" ...
...
rhpsh01.trivadistraining.com: Successfully executed attach home operation.
ORACLE_HOME
via NFS. What
can go wrong?
Multi Cluster Architecture - LOCAL Provisioning
Rapid Home Provisioning48 09.12.2015
RHP Server Cluster
ASM Volume 1-MGMTDB
RHP
Server
ACFS Mount
Golden
Image
ACFS Snap
Working
Copy
for Local
Copy
RHP Client Cluster
RHP
Client Node 1 Node 2
Local Copy Local Copy
Multi Cluster Architecture - LOCAL Provisioning
Rapid Home Provisioning49 09.12.2015
RHP Server Cluster
ASM Volume 1-MGMTDB
RHP
Server
ACFS Mount
Golden
Image
ACFS Snap
Working
Copy
for Local
Copy
RHP Client Cluster
RHP
Client Node 1 Node 2
Local Copy Local Copy
local ACFS
or other FS
Multi Cluster Architecture - LOCAL Provisioning
Rapid Home Provisioning50 09.12.2015
oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_c1 
-image 12cR1_EE_PSU4 -storagetype LOCAL -path
/u01/app/oracle/product/12.1.0.2.4/Home_EE_2 -oraclebase /u01/app/oracle
rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'...
rhpsh01.trivadistraining.com: Adding storage for working copy ...
rhpsh01.trivadistraining.com: Creating snapshot ...
rhpsh01.trivadistraining.com: Adding export file system for image "12cR1_EE_PSU4_c1"
...
rhpch02.trivadistraining.com: Mounting file system...
rhpch02.trivadistraining.com: Creating local storage ...
rhpch02.trivadistraining.com: Creating local ACFS file system ...
rhpch02.trivadistraining.com: Starting local ACFS file system ...
rhpch02.trivadistraining.com: Making a local copy ...
...
Multi Cluster Architecture - Mixed Provisioning
Rapid Home Provisioning51 09.12.2015
RHP Server Cluster
ASM Volume 1-MGMTDB
RHP
Server
ACFS SnapACFS Mount
Golden
Image
Working
Copy
for NFS
ACFS Snap
Working
Copy
for Local
Copy
RHP Client Cluster
RHP
Client Node 1
NFS Mount
Node 2
NFS MountLocal Copy Local Copy
Rapid Home Provisioning52 09.12.2015
Rapid Home Provisioning
Repository
RHP Metadata Repository: GHSUSER@-MGMTDB
Rapid Home Provisioning53 09.12.2015
SQL> select table_name from dba_tables where owner='GHSUSER' order by 1;
TABLE_NAME
------------------------------
HOLDER
IMAGE_ROLES
IMGS
IMGSRS
IMGSRS_IMAGES
IMGSRS_USERS
PARENT_CHILD_ROLE
ROLEIMPL_M_PRIVLIST
ROLES
SITES
SWHOMES
USERS
USER_ROLES
WCOPY_ROLES
14 rows selected.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 RHPS_CLUSTER READ WRITE NO
RHP Metadata Repository: GHSUSER@-MGMTDB
Rapid Home Provisioning54 09.12.2015
SQL> select table_name from dba_tables where owner='GHSUSER' order by 1;
TABLE_NAME
------------------------------
HOLDER
IMAGE_ROLES
IMGS
IMGSRS
IMGSRS_IMAGES
IMGSRS_USERS
PARENT_CHILD_ROLE
ROLEIMPL_M_PRIVLIST
ROLES
SITES
SWHOMES
USERS
USER_ROLES
WCOPY_ROLES
14 rows selected.
ORACLE says you
don't need to
backup the GIMR.
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 RHPS_CLUSTER READ WRITE NO
RHP Metadata Repository: GHSUSER@-MGMTDB
Rapid Home Provisioning55 09.12.2015
SQL> select table_name from dba_tables where owner='GHSUSER' order by 1;
TABLE_NAME
------------------------------
HOLDER
IMAGE_ROLES
IMGS
IMGSRS
IMGSRS_IMAGES
IMGSRS_USERS
PARENT_CHILD_ROLE
ROLEIMPL_M_PRIVLIST
ROLES
SITES
SWHOMES
USERS
USER_ROLES
WCOPY_ROLES
14 rows selected.
ORACLE says you
don't need to
backup the GIMR.
If you use RHP, my
recommandation
is to do it!
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
3 RHPS_CLUSTER READ WRITE NO
Rapid Home Provisioning56 09.12.2015
Rapid Home Provisioning
Conclusions
RHP Documentation
Rapid Home Provisioning57 09.12.2015
12c Documentation:
– https://docs.oracle.com/database/121/CWADD/rapidhome.htm#CWADD92402
– https://docs.oracle.com/database/121/RILIN/racrhp.htm
OTN Private Database Cloud Home (whitepaper and video):
– http://www.oracle.com/technetwork/database/database-cloud/private/index.html
Best MOS Note:
– ODA (Oracle Database Appliance): How To Setup a Rapid Home Provisioning
(RHP) Server (Doc ID 2054804.1)
Conclusions
Rapid Home Provisioning58 09.12.2015
Ease of patching
Standardized installations
Free for standalone clusters
Private-Cloud ready
Nice features
Thin documentation
Pricey option for multi-clusters
No GI_HOME Provisioning
It is not free from bugs (not rock-solid)
Embrace it or live without it?
Rapid Home Provisioning59 09.12.2015
What's your question?
Ludovico Caldara
Oracle ACE, Senior Oracle Consultant
Trivadis SA
09.12.2015 Rapid Home Provisioning60

More Related Content

PDF
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
PDF
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
PDF
Oracle RAC One Node 12c Overview
PDF
Oracle Active Data Guard: Best Practices and New Features Deep Dive
PDF
Oracle 21c: New Features and Enhancements of Data Pump & TTS
PPTX
Oracle Data Guard basics and how to create manually 18c plus
PDF
Oracle db performance tuning
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Oracle RAC One Node 12c Overview
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle 21c: New Features and Enhancements of Data Pump & TTS
Oracle Data Guard basics and how to create manually 18c plus
Oracle db performance tuning
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf

What's hot (20)

PDF
Oracle運用Tips大放出! ~ RAC環境のRMANのパラレル化を極める 編 ~ @2016-02-23 JPOUG
PDF
Oracle 12c and its pluggable databases
PDF
Step by Step Restore rman to different host
PDF
Oracle RAC 19c: Best Practices and Secret Internals
PDF
Oracle RAC 19c - the Basis for the Autonomous Database
PPTX
Why oracle data guard new features in oracle 18c, 19c
PDF
Migration to Oracle Multitenant
PDF
Understanding oracle rac internals part 1 - slides
PPTX
Oracle ASM Training
PDF
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
PPTX
Understand oracle real application cluster
PDF
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
PDF
MAA Best Practices for Oracle Database 19c
PDF
Understanding oracle rac internals part 2 - slides
PPTX
Oracle ebs db platform migration
PPT
PDF
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
PDF
Oracle RAC 19c and Later - Best Practices #OOWLON
PPTX
What’s New in Oracle Database 19c - Part 1
PPTX
What to Expect From Oracle database 19c
Oracle運用Tips大放出! ~ RAC環境のRMANのパラレル化を極める 編 ~ @2016-02-23 JPOUG
Oracle 12c and its pluggable databases
Step by Step Restore rman to different host
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c - the Basis for the Autonomous Database
Why oracle data guard new features in oracle 18c, 19c
Migration to Oracle Multitenant
Understanding oracle rac internals part 1 - slides
Oracle ASM Training
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
Understand oracle real application cluster
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
MAA Best Practices for Oracle Database 19c
Understanding oracle rac internals part 2 - slides
Oracle ebs db platform migration
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
Oracle RAC 19c and Later - Best Practices #OOWLON
What’s New in Oracle Database 19c - Part 1
What to Expect From Oracle database 19c
Ad

Viewers also liked (13)

PDF
Oracle Active Data Guard and Global Data Services in Action!
PDF
Oracle Database on ACFS: a perfect marriage?
PDF
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
PDF
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
PDF
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
PDF
Boost your Oracle RAC manageability with Policy-Managed Databases
PDF
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
PDF
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
PDF
Evolve your toolchains dev/ops with OpenStack
PDF
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
PPTX
Oracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and Administer
PPTX
Oracle SQL Developer Tips & Tricks
DOCX
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle Active Data Guard and Global Data Services in Action!
Oracle Database on ACFS: a perfect marriage?
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
Boost your Oracle RAC manageability with Policy-Managed Databases
Oracle Active Data Guard 12c: Far Sync Instance, Real-Time Cascade and Other ...
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
Evolve your toolchains dev/ops with OpenStack
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
Oracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and Administer
Oracle SQL Developer Tips & Tricks
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Ad

Similar to Rapid Home Provisioning (20)

PDF
Oracle Rapid Home Provisioning 12.2
PPTX
SAOUG 2018 - Rapid Home Provisioning
PPTX
RHP like Rapid Home Provisioning
PDF
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
PPTX
Anil nair rac_internals_sangam_2016
PDF
2024_05_16_doag_out-of-place_patching.pdf
PDF
Patch and upgrade databases for Oracle Databases
PDF
Database Provisioning in EM12c: Provision me a Database Now!
PDF
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
PDF
Apouc 2014-learn-from-oracle-support
PPTX
ODA solution in-a-box
PDF
K2 oracle open world highlights
PDF
Out-of-Place Oracle Database Patching and Provisioning Golden Images
PPTX
Oracle Database Lifecycle Management
PPTX
Sesion covergentes 2016
PPTX
Patching: answers to questions you probably were afraid to ask about oracle s...
PDF
C4 optimizing your_application_infrastructure
PPT
Oracle 10g Application Server
PDF
Why everyone speaks about DR but only few use it?
PPTX
Keynote from Cloud Expo West, November 2010
Oracle Rapid Home Provisioning 12.2
SAOUG 2018 - Rapid Home Provisioning
RHP like Rapid Home Provisioning
Suffering from Chronic Patching Pain? Get Relief with Fleet Maintenance [CON6...
Anil nair rac_internals_sangam_2016
2024_05_16_doag_out-of-place_patching.pdf
Patch and upgrade databases for Oracle Databases
Database Provisioning in EM12c: Provision me a Database Now!
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Apouc 2014-learn-from-oracle-support
ODA solution in-a-box
K2 oracle open world highlights
Out-of-Place Oracle Database Patching and Provisioning Golden Images
Oracle Database Lifecycle Management
Sesion covergentes 2016
Patching: answers to questions you probably were afraid to ask about oracle s...
C4 optimizing your_application_infrastructure
Oracle 10g Application Server
Why everyone speaks about DR but only few use it?
Keynote from Cloud Expo West, November 2010

More from Ludovico Caldara (16)

PDF
Oracle Drivers configuration for High Availability, is it a developer's job?
PDF
Oracle Drivers configuration for High Availability
PDF
Long live to CMAN!
PDF
Let your DBAs get some REST(api)
PDF
Effective Oracle Home Management - UKOUG_Tech18
PDF
Effective Oracle Home Management in the new Release Model era
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...
PPTX
Get the most out of Oracle Data Guard - OOW version
PPTX
Get the most out of Oracle Data Guard - POUG version
PDF
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
PDF
Oracle Client Failover - Under The Hood
PPTX
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
PPTX
Database Migration Assistant for Unicode (DMU)
PPTX
Migrating to Oracle Database 12c: 300 DBs in 300 days.
PDF
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability
Long live to CMAN!
Let your DBAs get some REST(api)
Effective Oracle Home Management - UKOUG_Tech18
Effective Oracle Home Management in the new Release Model era
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...
Get the most out of Oracle Data Guard - OOW version
Get the most out of Oracle Data Guard - POUG version
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
Oracle Client Failover - Under The Hood
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
Database Migration Assistant for Unicode (DMU)
Migrating to Oracle Database 12c: 300 DBs in 300 days.
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation theory and applications.pdf
PDF
KodekX | Application Modernization Development
PPTX
MYSQL Presentation for SQL database connectivity
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation theory and applications.pdf
KodekX | Application Modernization Development
MYSQL Presentation for SQL database connectivity
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Electronic commerce courselecture one. Pdf
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Agricultural_Statistics_at_a_Glance_2022_0.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Rapid Home Provisioning

  • 1. BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Rapid Home Provisioning A new Oracle Grid Infrastructure 12.1.0.2 feature Ludovico Caldara Oracle ACE, Senior Oracle Consultant Trivadis SA
  • 2. About Ludovico Caldara Rapid Home Provisioning2 09.12.2015 ■ 16 Years DBA (Not Only Oracle) ▪ I do it everywhere (even Windows) ■ RAC ATTACK Ninja & co-writer ■ VP, SOUG & ITOUG Board member ■ OCP (11g, 12c, MySQL) & OCE ■ Italian living in Switzerland ■ http://www.ludovicocaldara.net ■ @ludodba ■ ludovicocaldara
  • 3. Our company. Rapid Home Provisioning3 09.12.2015 Trivadis is a market leader in IT consulting, system integration, solution engineering and the provision of IT services focusing on and technologies in Switzerland, Germany, Austria and Denmark. We offer our services in the following strategic business fields: Trivadis Services takes over the interactive operation of your IT systems. O P E R A T I O N
  • 4. COPENHAGEN MUNICH LAUSANNE BERN ZURICH BRUGG GENEVA HAMBURG DÜSSELDORF FRANKFURT STUTTGART FREIBURG BASEL VIENNA With over 600 specialists and IT experts in your region. Rapid Home Provisioning4 09.12.2015 14 Trivadis branches and more than 600 employees 200 Service Level Agreements Over 4,000 training participants Research and development budget: CHF 5.0 / EUR 4 million Financially self-supporting and sustainably profitable Experience from more than 1,900 projects per year at over 800 customers
  • 5. Rapid Home Provisioning5 09.12.2015 Patching, Patching, Patching (or how I will NOT apply PSUs every quarter)
  • 6. Patching, Patching, Patching Rapid Home Provisioning6 09.12.2015 (Original: https://xkcd.com/838/ )
  • 7. Patching, worst way Rapid Home Provisioning7 09.12.2015 1. Stop everything 2. In-place binaries patching 3. Database patching, "big bang" mode 4. Start everything
  • 8. Patching, worst way Rapid Home Provisioning8 09.12.2015 1. Stop everything 2. In-place binaries patching 3. Database patching, "big bang" mode 4. Start everything Problem: you seriously need a check-up of your operational practices
  • 9. Patching, better way Rapid Home Provisioning9 09.12.2015 1. Re-install binaries, out-of-place binaries patching 2. Stop databases, one by one 3. Move to new ORACLE_HOME, patch one by one 4. Decommission old binaries
  • 10. Patching, better way Rapid Home Provisioning10 09.12.2015 1. Re-install binaries, out-of-place binaries patching 2. Stop databases, one by one 3. Move to new ORACLE_HOME, patch one by one 4. Decommission old binaries Problem: what if you have many servers/environments and patch frequently?
  • 11. Patching, best way (so far) Rapid Home Provisioning11 09.12.2015 1. Install binaries somewhere 2. Detach and patch them 3. Keep them as golden images somewhere 4. Deploy them on the servers somehow, attach them 5. Stop databases, one by one 6. Move to new ORACLE_HOME, patch one by one 7. Decommission old binaries
  • 12. Patching, best way (so far) Rapid Home Provisioning12 09.12.2015 1. Install binaries somewhere 2. Detach and patch them 3. Keep them as golden images somewhere 4. Deploy them on the servers somehow, attach them 5. Stop databases, one by one 6. Move to new ORACLE_HOME, patch one by one 7. Decommission old binaries Flexible? YES!
  • 13. Patching, best way (so far) Rapid Home Provisioning13 09.12.2015 1. Install binaries somewhere 2. Detach and patch them 3. Keep them as golden images somewhere 4. Deploy them on the servers somehow, attach them 5. Stop databases, one by one 6. Move to new ORACLE_HOME, patch one by one 7. Decommission old binaries Flexible? YES! Easy? NO!
  • 14. Rapid Home Provisioning14 09.12.2015 Rapid Home Provisioning What is it?
  • 15. Rapid Home Provisioning is... Rapid Home Provisioning15 09.12.2015 Usage: srvctl ... asm Usage: srvctl ... cvu Usage: srvctl ... database Usage: srvctl ... diskgroup Usage: srvctl ... exportfs Usage: srvctl ... filesystem Usage: srvctl ... gns Usage: srvctl ... havip Usage: srvctl ... home Usage: srvctl ... instance Usage: srvctl ... listener Usage: srvctl ... mgmtdb Usage: srvctl ... mgmtlsnr Usage: srvctl ... mountfs Usage: srvctl ... network Usage: srvctl ... nodeapps Usage: srvctl ... oc4j Usage: srvctl ... rhpclient Usage: srvctl ... rhpserver Usage: srvctl ... scan Usage: srvctl ... scan_listener Usage: srvctl ... server Usage: srvctl ... service Usage: srvctl ... srvpool Usage: srvctl ... vip Usage: srvctl ... volume grid$ srvctl -help | grep Usage: | awk '{printf ("%s %s ... %sn", $1, $2, $4)}' | sort | uniq Something that messes my srvctl help!
  • 16. Rapid Home Provisioning is... Rapid Home Provisioning16 09.12.2015 Usage: rhpctl ... client Usage: rhpctl ... database Usage: rhpctl ... image Usage: rhpctl ... role Usage: rhpctl ... series Usage: rhpctl ... server Usage: rhpctl ... user Usage: rhpctl ... workingcopy grid$ rhpctl -help | grep Usage: | awk '{printf ("%s %s ... %sn", $1, $2, $4)}' | sort |uniq It has its own rhpctl command too! This is how you administer it.
  • 17. Rapid Home Provisioning - the idea Rapid Home Provisioning17 09.12.2015 DF OH_1 OH_2 OH_3 RHP SERVER -MGMTDB RHP CLIENT RHP CLIENT RHP CLIENT RHP CLIENT RHP CLIENT RHP CLIENT RHP CLIENT RHP CLIENT GOLDEN IMAGE DB WORKING COPY
  • 18. Rapid Home Provisioning is a tool for... Rapid Home Provisioning18 09.12.2015 Provisioning and patching – Oracle Homes – other Software Simplifying software deployment Patching Databases (Mass patching possible) Centralizing Golden Images Ensuring standardization within the enterprise
  • 19. Rapid Home Provisioning has mandatory requirements Rapid Home Provisioning19 09.12.2015 Oracle Grid Infrastructure release 12.1.0.2 or upwards (use the last PSU) ASM Cluster File System (ACFS) Oracle Grid Infrastructure Global Naming Services (GNS) NFS Server and HAVIP (optional*) Lifecycle Management Pack Option (optional*) * how optional is optional? We will see in the next episode (coming soon)
  • 20. Rapid Home Provisioning has also limitations! Rapid Home Provisioning20 09.12.2015 The main ones: Not available on Windows Cannot upgrade from a release to another (planned in 12.2) Cannot provision Grid Infrastructure Homes (not yet, maybe 12.2?) – Bug 19596245 : IMPLEMENT GRID INFRASTRUCTURE SUPPORT IN RAPID HOME PROVISIONING Cannot provision OS Images or VMs, not in the scope of the tool
  • 21. Rapid Home Provisioning - Security Roles Rapid Home Provisioning21 09.12.2015 Several roles -> specific permissions on Working Copies and and Golden Images But basically three composite roles: – GH_SA : RHP Server administrator – GH_CA : RHP Client administrator – GH_OPER : for generic administration
  • 22. Rapid Home Provisioning22 09.12.2015 Rapid Home Provisioning Single Cluster Architecture (or when you have only one cluster)
  • 23. Single Cluster Architecture - Setup Rapid Home Provisioning23 09.12.2015 RHP Server Cluster ASM RHP DG-MGMTDB
  • 24. Single Cluster Architecture - Setup Rapid Home Provisioning24 09.12.2015 RHP Server Cluster ASM RHP DG-MGMTDB Existing OraHome 1
  • 25. Single Cluster Architecture - Setup Rapid Home Provisioning25 09.12.2015 RHP Server Cluster ASM RHP DG-MGMTDB RHP Server Existing OraHome 1 # srvctl add rhpserver -storage /my/path/to/rhp/ -diskgroup RHP # srvctl start rhpserver new resource ora.ghs is created ASM DG must exist, ADVM Compatible >= 12.1.0.0
  • 26. Single Cluster Architecture - Adding Images Rapid Home Provisioning26 09.12.2015 RHP Server Cluster ASM RHP DG-MGMTDB RHP Server Existing OraHome ACFS Mount Base Golden Image grid $ rhpctl grant role -role GH_CA -user oracle -client rhps-cluster oracle $ rhpctl import image -image 12cR1_EE_Base -path $OH -imagetype ORACLEDBSOFTWARE
  • 27. Getting Golden Image details Rapid Home Provisioning27 09.12.2015 grid $ rhpctl query image -image 12cR1_EE_Base Image name: 12cR1_EE_Base Owner: grid@rhps-cluster Site: rhps-cluster Access control: USER:oracle@rhps-cluster Access control: ROLE:OTHER ... Parent Image: Image Type: ORACLEDBSOFTWARE Image Version: 12.1.0.2.0 Software home path: /u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/swhome Image state: PUBLISHED Image size: 5332MB Image platform: Linux_AMD64 Interim patches installed: Complete: TRUE
  • 28. Single Cluster Architecture - Adding Working Copies Rapid Home Provisioning28 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server Existing OraHome 1 ACFS Mount Base Golden Image no more needed oracle $ rhpctl add workingcopy -workingcopy 12cR1_EE_Base_1 -image 12cR1_EE_Base -oraclebase /u01/app/oracle ACFS Snap Base Working Copy
  • 29. Getting Working Copy details Rapid Home Provisioning29 09.12.2015 oracle $ rhpctl query workingcopy -workingcopy 12cR1_EE_Base_1 Working copy name: 12cR1_EE_Base_1 Image name: 12cR1_EE_Base Owner: oracle@rhps-cluster Site: rhps-cluster Access control: USER:oracle@rhps-cluster Access control: ROLE:GH_WC_ADMIN Software home path: /u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1 _EE_Base_1/swhome Oracle base: /u01/app/oracle Storage type: RHP Managed Configured databases: Interim patches installed: Complete: TRUE YOUR ORACLE_HOME ON RHP SERVER
  • 30. Single Cluster Architecture - Using Working Copies Rapid Home Provisioning30 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Base Working Copy DB You can use the working copy as ORACLE_HOME for databases $ rhpctl add database -workingcopy 12cR1_EE_base_1 -dbname ORCL -datafileDestination DATA -dbtemplate General_Purpose.dbc ... or ...
  • 31. Single Cluster Architecture - Patching Working Copies Rapid Home Provisioning31 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Patched Working Copy oracle $ cd PSUx/patchnumber oracle $ opatch apply
  • 32. Single Cluster Architecture - Patching Working Copies Rapid Home Provisioning32 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Patched Working Copy oracle $ cd PSUx/patchnumber oracle $ opatch apply oracle $ rhpctl add image –image 12cR1_EE_PSUx -workingcopy 12cR1_EE_Base_1 ACFS Snap Patched Golden Image
  • 33. Single Cluster Architecture - Patching Working Copies Rapid Home Provisioning33 09.12.2015 $ rhpctl add image -image 12cR1_EE_PSU4 -workingcopy 12cR1_EE_PSU4_1 rhpsh02.trivadistraining.com: Finding ACFS of previous image "12cR1_EE_Base" ... rhpsh02.trivadistraining.com: Creating snapshot for image "12cR1_EE_PSU4" from working copy "12cR1_EE_PSU4_1" ... rhpsh02.trivadistraining.com: Changing the home ownership ... $
  • 34. Single Cluster Architecture - Images and Working Copies Rapid Home Provisioning34 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Patched Golden Image You can have as many Images and Working copies as you need. ACFS Snap Patched Working Copy ACFS Snap Base Working Copy $ rhpctl query workingcopy Working copy name: 12cR1_EE_Base_1 Working copy name: 12cR1_EE_PSU4_1 Working copy name: 12cR1_EE_PSU4_2 $ rhpctl query image Image name: 12cR1_EE_PSU4 Image name: 12cR1_EE_Base ACFS Snap Patched Working Copy
  • 35. Single Cluster Architecture - Database Patching Rapid Home Provisioning35 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Patched Golden Image ACFS Snap Patched Working Copy ACFS Snap Base Working Copy Unpatched DB Database patching is dead simple!
  • 36. Single Cluster Architecture - Database Patching Rapid Home Provisioning36 09.12.2015 RHP Server Cluster ASM DG-MGMTDB RHP Server ACFS Mount Base Golden Image ACFS Snap Patched Golden Image ACFS Snap Patched Working Copy ACFS Snap Base Working Copy Unpatched DB Database patching is dead simple! $ rhpctl move database -sourcewc 12cR1_EE_Base_1 -patchedwc 12cR1_EE_PSU4_1 -dbname ORCL Patched DB Database must be open
  • 37. Single Cluster Architecture - Database Patching Rapid Home Provisioning37 09.12.2015 $ rhpctl move database -sourcewc 12cR1_EE_Base_1 -patchedwc 12cR1_EE_PSU4_1 -dbname ORCL rhpsh02.trivadistraining.com: Starting to move database from "/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1_EE_Base_1/swhome" to "/u01/app/12.1.0.2/grid/srvm/images/i12cR1_EE_Base296880/.ACFS/snaps/w12cR1_EE_PSU4_1/swhome" on server cluster ... SQL Patching tool version 12.1.0.2.0 on Sat Oct 24 17:06:22 2015 ... Adding patches to installation queue and performing prereq checks...done ... The following patches will be applied: 20831110 (Database Patch Set Update : 12.1.0.2.4 (20831110)) ... Installing patches... ... rhpsh02.trivadistraining.com: Completed the 'move database' operation on server cluster
  • 38. Rapid Home Provisioning38 09.12.2015 DEMO? By Michael Tiemann at en.Wikipedia CC-BY-SA
  • 39. Rapid Home Provisioning39 09.12.2015 Rapid Home Provisioning Multi Cluster Architecture (or when you have a private cloud)
  • 40. Multi Cluster Architecture - Additional requirements Rapid Home Provisioning40 09.12.2015 NFS Server and HAVIP Lifecycle Management Pack Option Licensed on all RHP Client Clusters Source: https://docs.oracle.com/database/121/DBLIC/editions.htm#DBLIC110
  • 41. Multi Cluster Architecture - Adding a Client Cluster Rapid Home Provisioning41 09.12.2015 ## SERVER # srvctl add havip -id rhp -address 192.168.89.202 $ rhpctl add client -client rhpc-cluster -toclientdata /home/grid $ scp /home/grid/rhpc-cluster.xml rhpch01:/home/grid ## CLIENT # srvctl add rhpclient -clientdata /home/grid/rhpc-cluster.xml # srvctl start rhpclient # rhpctl query server Rapid Home Provisioning Server (RHPS): rhps-cluster Storage base path: /u01/app/12.1.0.2/grid/srvm Disk Groups: RHP Port number: 23795
  • 42. Multi Cluster Architecture - Adding a Client Cluster Rapid Home Provisioning42 09.12.2015 ## SERVER # srvctl add havip -id rhp -address 192.168.89.202 # rhpctl add client -client rhpc-cluster -toclientdata /home/grid # scp /home/grid/rhpc-cluster.xml rhpch01:/home/grid ## CLIENT # srvctl add rhpclient -clientdata /home/grid/rhpc-cluster.xml # srvctl start rhpclient # rhpctl query server Rapid Home Provisioning Server (RHPS): rhps-cluster Storage base path: /u01/app/12.1.0.2/grid/srvm Disk Groups: RHP Port number: 23795
  • 43. Multi Cluster Architecture - NFS Provisioning Rapid Home Provisioning43 09.12.2015 RHP Server Cluster ASM Volume 1-MGMTDB RHP Server ACFS SnapACFS Mount Golden Image Working Copy for NFS RHP Client Cluster RHP Client Node 1 NFS Mount Node 2 NFS Mount
  • 44. Multi Cluster Architecture - NFS Provisioning Rapid Home Provisioning44 09.12.2015 RHP Server Cluster ASM Volume 1-MGMTDB RHP Server ACFS SnapACFS Mount Golden Image Working Copy for NFS RHP Client Cluster RHP Client Node 1 NFS Mount Node 2 NFS Mount exportfs mountfs mountfs
  • 45. Multi Cluster Architecture - Provisioning via NFS Rapid Home Provisioning45 09.12.2015 oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc -image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 -oraclebase /u01/app/oracle rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'... rhpsh01.trivadistraining.com: Adding storage for working copy ... rhpsh01.trivadistraining.com: Storing metadata in repository for working copy "12cR1_EE_PSU4_rhpc" ... rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4" ... rhpsh01.trivadistraining.com: Creating snapshot ... rhpsh01.trivadistraining.com: Adding export file system for image "12cR1_EE_PSU4_rhpc" ... ... rhpsh01.trivadistraining.com: Successfully executed attach home operation.
  • 46. Multi Cluster Architecture - Provisioning via NFS Rapid Home Provisioning46 09.12.2015 oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc -image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 -oraclebase /u01/app/oracle rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'... rhpsh01.trivadistraining.com: Adding storage for working copy ... rhpsh01.trivadistraining.com: Storing metadata in repository for working copy "12cR1_EE_PSU4_rhpc" ... rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4" ... rhpsh01.trivadistraining.com: Creating snapshot ... rhpsh01.trivadistraining.com: Adding export file system for image "12cR1_EE_PSU4_rhpc" ... ... rhpsh01.trivadistraining.com: Successfully executed attach home operation.
  • 47. Multi Cluster Architecture - Provisioning via NFS Rapid Home Provisioning47 09.12.2015 oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_rhpc -image 12cR1_EE_PSU4 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2.4 -oraclebase /u01/app/oracle rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'... rhpsh01.trivadistraining.com: Adding storage for working copy ... rhpsh01.trivadistraining.com: Storing metadata in repository for working copy "12cR1_EE_PSU4_rhpc" ... rhpsh01.trivadistraining.com: Finding ACFS file system of the image "12cR1_EE_PSU4" ... rhpsh01.trivadistraining.com: Creating snapshot ... rhpsh01.trivadistraining.com: Adding export file system for image "12cR1_EE_PSU4_rhpc" ... ... rhpsh01.trivadistraining.com: Successfully executed attach home operation. ORACLE_HOME via NFS. What can go wrong?
  • 48. Multi Cluster Architecture - LOCAL Provisioning Rapid Home Provisioning48 09.12.2015 RHP Server Cluster ASM Volume 1-MGMTDB RHP Server ACFS Mount Golden Image ACFS Snap Working Copy for Local Copy RHP Client Cluster RHP Client Node 1 Node 2 Local Copy Local Copy
  • 49. Multi Cluster Architecture - LOCAL Provisioning Rapid Home Provisioning49 09.12.2015 RHP Server Cluster ASM Volume 1-MGMTDB RHP Server ACFS Mount Golden Image ACFS Snap Working Copy for Local Copy RHP Client Cluster RHP Client Node 1 Node 2 Local Copy Local Copy local ACFS or other FS
  • 50. Multi Cluster Architecture - LOCAL Provisioning Rapid Home Provisioning50 09.12.2015 oracle@rhpc $ rhpctl add workingcopy -workingcopy 12cR1_EE_PSU4_c1 -image 12cR1_EE_PSU4 -storagetype LOCAL -path /u01/app/oracle/product/12.1.0.2.4/Home_EE_2 -oraclebase /u01/app/oracle rhpch02.trivadistraining.com: Starting server-side action for 'add workingcopy'... rhpsh01.trivadistraining.com: Adding storage for working copy ... rhpsh01.trivadistraining.com: Creating snapshot ... rhpsh01.trivadistraining.com: Adding export file system for image "12cR1_EE_PSU4_c1" ... rhpch02.trivadistraining.com: Mounting file system... rhpch02.trivadistraining.com: Creating local storage ... rhpch02.trivadistraining.com: Creating local ACFS file system ... rhpch02.trivadistraining.com: Starting local ACFS file system ... rhpch02.trivadistraining.com: Making a local copy ... ...
  • 51. Multi Cluster Architecture - Mixed Provisioning Rapid Home Provisioning51 09.12.2015 RHP Server Cluster ASM Volume 1-MGMTDB RHP Server ACFS SnapACFS Mount Golden Image Working Copy for NFS ACFS Snap Working Copy for Local Copy RHP Client Cluster RHP Client Node 1 NFS Mount Node 2 NFS MountLocal Copy Local Copy
  • 52. Rapid Home Provisioning52 09.12.2015 Rapid Home Provisioning Repository
  • 53. RHP Metadata Repository: GHSUSER@-MGMTDB Rapid Home Provisioning53 09.12.2015 SQL> select table_name from dba_tables where owner='GHSUSER' order by 1; TABLE_NAME ------------------------------ HOLDER IMAGE_ROLES IMGS IMGSRS IMGSRS_IMAGES IMGSRS_USERS PARENT_CHILD_ROLE ROLEIMPL_M_PRIVLIST ROLES SITES SWHOMES USERS USER_ROLES WCOPY_ROLES 14 rows selected. SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 3 RHPS_CLUSTER READ WRITE NO
  • 54. RHP Metadata Repository: GHSUSER@-MGMTDB Rapid Home Provisioning54 09.12.2015 SQL> select table_name from dba_tables where owner='GHSUSER' order by 1; TABLE_NAME ------------------------------ HOLDER IMAGE_ROLES IMGS IMGSRS IMGSRS_IMAGES IMGSRS_USERS PARENT_CHILD_ROLE ROLEIMPL_M_PRIVLIST ROLES SITES SWHOMES USERS USER_ROLES WCOPY_ROLES 14 rows selected. ORACLE says you don't need to backup the GIMR. SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 3 RHPS_CLUSTER READ WRITE NO
  • 55. RHP Metadata Repository: GHSUSER@-MGMTDB Rapid Home Provisioning55 09.12.2015 SQL> select table_name from dba_tables where owner='GHSUSER' order by 1; TABLE_NAME ------------------------------ HOLDER IMAGE_ROLES IMGS IMGSRS IMGSRS_IMAGES IMGSRS_USERS PARENT_CHILD_ROLE ROLEIMPL_M_PRIVLIST ROLES SITES SWHOMES USERS USER_ROLES WCOPY_ROLES 14 rows selected. ORACLE says you don't need to backup the GIMR. If you use RHP, my recommandation is to do it! SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 3 RHPS_CLUSTER READ WRITE NO
  • 56. Rapid Home Provisioning56 09.12.2015 Rapid Home Provisioning Conclusions
  • 57. RHP Documentation Rapid Home Provisioning57 09.12.2015 12c Documentation: – https://docs.oracle.com/database/121/CWADD/rapidhome.htm#CWADD92402 – https://docs.oracle.com/database/121/RILIN/racrhp.htm OTN Private Database Cloud Home (whitepaper and video): – http://www.oracle.com/technetwork/database/database-cloud/private/index.html Best MOS Note: – ODA (Oracle Database Appliance): How To Setup a Rapid Home Provisioning (RHP) Server (Doc ID 2054804.1)
  • 58. Conclusions Rapid Home Provisioning58 09.12.2015 Ease of patching Standardized installations Free for standalone clusters Private-Cloud ready Nice features Thin documentation Pricey option for multi-clusters No GI_HOME Provisioning It is not free from bugs (not rock-solid)
  • 59. Embrace it or live without it? Rapid Home Provisioning59 09.12.2015
  • 60. What's your question? Ludovico Caldara Oracle ACE, Senior Oracle Consultant Trivadis SA 09.12.2015 Rapid Home Provisioning60