SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Oracle Rapid Home Provisioning 12.2
Daniele Massimi – Principal Consultant
@massimid
Agenda
Oracle Rapid Home Provisioning 12.22 22.09.2017
1. RHP What is it ?
2. RHP Architecture
3. RHP Security Model
4. RHP Prerequisites and Setup
5. RHP Provisioning
6. Conclusion
Who am I
ZDLRA - in Action3 22.09.2017
Daniele Massimi, Trivadis AG (CH, Bern)
Principal Consultant daniele.massimi@trivadis.com
Since 2012 at Trivadis IMS (Infrastructure Service Management)
Oracle DBA since 2000 (Exadata > 6 Jahre)
Infrastructure-Architecture, Operations & Administration, Upgrades and Migration,
High Availability, Backup & Recovery, Virtualization
Engineered Systems (Exadata, ODA, ZDLRA, PCA)
Trainer (Oracle Architectur and Internal, 12c New Features, Exadata)
Oracle Certifications
Oracle Certified Master (11g)
Oracle Certified Professional (8i – 12c)
Oracle Certified Expert (RAC)
Oracle Implementation Specialist (Exadata and OVM)
Oracle Rapid Home Provisioning 12.24 22.09.2017
RHP What is it ?
Rapid Home Provisioning – What is it ?
Oracle Rapid Home Provisioning 12.25 22.09.2017
Standardized Tool for provisioning, patching and Upgrade Oracle Grid Infrastructure,
Oracle RDBMS and custom Software
Improve performance, efficiency and simplifies the software deployment process
Automate the software provisioning from a centralized provisioning Server
Helps to save time for provisioning, patching and upgrade software deployment
Mass Patch deployment possibility, so eliminates to patch individual Databases
Ensure Standardization within an enterprise
Minimize the impact and risk of maintenance
Rapid Home Provisioning – Wath's new in 12.2.
Oracle Rapid Home Provisioning 12.26 22.09.2017
Efficient out-of-place distribution
Manage existing 11.2 and 12.x deployments without any special configuration
Provision new clusters with a single command
Database and GI – Provisioning, Patching, Upgrade, Scale in one command
Deploy and manage any software home
Custom workflow framework (User defined Actions)
Clientless Provisioning
Provisioning Notification
Auditing capabilities
Rapid Home Provisioning – Main Components
Oracle Rapid Home Provisioning 12.27 22.09.2017
RHP Server
RHP Client
RHP Roles
RHP Images
RHP Workingcopies
ASM
ACFS
GNS
Management DB (GIMR)
Oracle Rapid Home Provisioning 12.28 22.09.2017
RHP Architecture
Rapid Home Provisioning – The Idea
Oracle Rapid Home Provisioning 12.29 22.09.2017
Rapid Home Provisioning – Architecture Details
Oracle Rapid Home Provisioning 12.210 22.09.2017
RHP Server
Managemnt
Repository
(-MGMTDB)
Image RDBMS
(Gold Image)
Working
Copy 1
DB Home 1
Working
Copy 2
RHP
Client
RHP
Client
GNS Server
GI Home 1
DB Home 1 DB Home 1
RHP
Client
RHP
Client
GI Home 1 GI Home 1
Local Copy
RHP
Metadata
ACFS
Mount
Source:
RDBMS, GI,
3rd Party SW
Image GI
(Gold Image)
Oracle Rapid Home Provisioning 12.211 22.09.2017
RHP Security Model
Rapid Home Provisioning – Basic Built-In Roles
Oracle Rapid Home Provisioning 12.212 22.09.2017
Role Name Description
GH_ROLE_ADMIN administrative role for everything related to roles
GH_SITE_ADMIN administrative role for everything related to Rapid Home Provisioning Clients
GH_SERIES_ADMIN administrative role for everything related to image series
GH_SERIES_CONTRIB Users assigned this role can add images to a series
GH_WC_ADMIN administrative role for everything related to working copies
GH_WC_OPER role that enables users to create a working copy for themselves or others
GH_WC_USER role that enables users to create a working copy
GH_IMG_ADMIN administrative role for everything related to images
GH_IMG_USER role that enables users to create an image
GH_IMG_TESTABLE role that enables users to add a working copy of an image that is in the TESTABLE state
GH_IMG_RESTRICT role that enables users to add a working copy from an image that is in the RESTRICTED state
GH_IMG_PUBLISH
Users assigned this role can promote an image to another state or retract an image from the
PUBLISHED state to either the TESTABLE or RESTRICTED state
GH_IMG_VISIBILITY Users assigned this role can modify access to promoted or published images
Rapid Home Provisioning – Composite Built-In Roles
Oracle Rapid Home Provisioning 12.213 22.09.2017
Role Name Description
GH_SA
(default Role)
GH_ROLE_ADMIN, GH_SITE_ADMIN,
GH_SERIES_ADMIN, GH_SERIES_CONTRIB,
GH_WC_ADMIN, GH_IMG_ADMIN,
GH_IMG_TESTABLE, GH_IMG_RESTRICT,
GH_IMG_PUBLISH, GH_IMG_VISIBILITY
GH_CA
GH_SERIES_ADMIN, GH_SERIES_CONTRIB,
GH_WC_ADMIN, GH_IMG_ADMIN,
GH_IMG_TESTABLE, GH_IMG_RESTRICT,
GH_IMG_PUBLISH, GH_IMG_VISIBILITY
GH_OPER
GH_WC_OPER, GH_SERIES_ADMIN,
GH_IMG_TESTABLE, GH_IMG_RESTRICT,
GH_IMG_USER
Oracle Rapid Home Provisioning 12.214 22.09.2017
RHP Requirements
Rapid Home Provisioning – Prerequisites
Oracle Rapid Home Provisioning 12.215 22.09.2017
Rapid Home Provisioning is part of Grid Infrastructure (GI) 12c
– GI is mandatory for provision with RHP  Oracle Restart not supported !
Deployments Works even in a "non" GI Cloud Environment !
–  only for RDBMS and third Party SW !
Not supported on HP-UX and Windows Plattform
Does not manage OS Images 
Provisioning based on ACFS Snapshot and NFS
GNS Server
NFS Daemon must be run on each Server provided by RHP
License
– Lifecycle Management Pack (12’000 $ / CPU Core)
Oracle Rapid Home Provisioning 12.216 22.09.2017
RHP Setup
RHP Setup – ASM and GNS Config
Oracle Rapid Home Provisioning 12.217 22.09.2017
ASM Diskgroup ACFS compatible parameter
Configure GNS Server adding following to DNS Record File
Add GNS to Cluster
alter diskgroup data set attribute 'compatible.advm'='12.1';
$ORIGIN rac.trivadis.com.
@ IN NS gns.rac.trivadis.com.
gns IN A 192.168.56.201
[root@sonic01 named]# /u01/app/12.2.0/grid/bin/srvctl add gns -domain
rac.trivadis.com -vip 192.168.56.201
[root@sonic01 named]# /u01/app/12.2.0/grid/bin/srvctl start gns
RHP Setup – Mountpoint Directory and add RHP Server
Oracle Rapid Home Provisioning 12.218 22.09.2017
On RHP Server
create a folder on all Cluster Member
Add Storage and start the RHP Server
[root@sonic01 app]# mkdir /rhpdir
[root@sonic01 app]# chown oracle:oinstall /rhpdir
/u01/app/12.2.0/grid/bin/srvctl add rhpserver -storage /rhpdir
-diskgroup DATA
/u01/app/12.2.0/grid/bin/srvctl start rhpserver
RHP Setup – Add Images
Oracle Rapid Home Provisioning 12.219 22.09.2017
Add Images to RHP Server (Example GI 12.2.0.x)
[oracle@sonic01 ~]$ rhpctl import image -image gi_12201_V0100 -path /u01/app/12.2.0/grid/ -imagetype
ORACLEGISOFTWARE -state TESTABLE
sonic02: Creating a new ACFS file system for image "gi_12201_V0100" ...
sonic02: Copying files...
sonic02: Copying home contents...
sonic02: Changing the home ownership to user oracle...
sonic01: Transferring data to 1 nodes
sonic01: 10% complete
sonic01: 20% complete
sonic01: 30% complete
sonic01: 40% complete
sonic01: 50% complete
sonic01: 60% complete
sonic01: 70% complete
sonic01: 80% complete
sonic01: 90% complete
sonic01: 100% complete
sonic02: Changing the home ownership to user oracle...
[oracle@sonic01 ~]$
RHP Setup – Add Images
Oracle Rapid Home Provisioning 12.220 22.09.2017
Add Images to RHP Server (Example RDBMS 12.2.0.x)
[oracle@sonic01 database]$ rhpctl import image -image rdbms_12201_V0100 -path
/u01/app/oracle/product/12.2.0/dbhome_1 -imagetype ORACLEDBSOFTWARE -state TESTABLE
sonic02: Creating a new ACFS file system for image "rdbms_12201_V0100" ...
sonic02: Copying files...
sonic02: Copying home contents...
sonic02: Changing the home ownership to user oracle...
sonic01: Transferring data to 1 nodes
sonic01: 10% complete
sonic01: 20% complete
sonic01: 30% complete
sonic01: 40% complete
sonic01: 50% complete
sonic01: 60% complete
sonic01: 70% complete
sonic01: 80% complete
sonic01: 90% complete
sonic01: 100% complete
sonic02: Changing the home ownership to user oracle...
[oracle@sonic01 database]$
RHP Setup – Add Images
Oracle Rapid Home Provisioning 12.221 22.09.2017
On Filesystem we will have such a situation:
Images are registered on RHP Server
[oracle@sonic01 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 37G 30G 5.9G 84% /
tmpfs 3.9G 1.3G 2.7G 32% /dev/shm
/dev/sda1 477M 116M 333M 26% /boot
/dev/asm/ghchkpt-387 5.0G 1.1G 4.0G 21% /rhp_dir/chkbase
/dev/asm/ghvol436136-387
18G 10G 8.1G 56% /rhp_dir/images/irdbms_12201_V0100635467
/dev/asm/ghvol427603-387
26G 12G 15G 45% /rhp_dir/images/igi_12201_V0100379214
[oracle@sonic01 ~]$ rhpctl query image
Image name: rdbms_12201_V0100
Image name: gi_12201_V0100
RHP Setup – Images Details
Oracle Rapid Home Provisioning 12.222 22.09.2017
Querying Image Details
oracle@sonic01:~/ [-MGMTDB] rhpctl query image -image gi_12201_V0100
Image name: gi_12201_V0100
Owner: oracle@sonic
Site: sonic
Access control: USER:oracle@sonic
Access control: ROLE:GH_IMG_TESTABLE
Access control: ROLE:GH_IMG_PUBLISH
Access control: ROLE:GH_IMG_ADMIN
Access control: ROLE:GH_IMG_VISIBILITY
Parent Image:
Software home path: /rhp_dir/images/igi_12201_V0100379214/swhome
Image state: TESTABLE
Image size: 12277 Megabytes
Image Type: ORACLEGISOFTWARE
Image Version: 12.2.0.1.0
Groups configured in the image:
OSDBA=asmdba,OSOPER=asmoper,OSASM=asmadmin,OSBACKUP=asmadmin,OSDG=asmadmin,OSKM=asmadmin,OSRAC=asmadmin
Image platform: Linux_AMD64
Interim patches installed:
Contains a non-rolling patch: FALSE
Complete: TRUE
oracle@sonic01:~/ [-MGMTDB]
RHP Setup – add Client
Oracle Rapid Home Provisioning 12.223 22.09.2017
Add Client is optional but required for some actions
HAVIP is needed !!!
On RHP Server create clientdata File
An XML File will be generated named floyd.xml
Copy the clientdata to RHP Client
Add Client on RHP Client
Start RHP Client
srvctl startrhpclient -node sonic03
[root@sonic01 ~]# /u01/app/12.1.0.2/grid/bin/srvctl add havip -id rhp /
-address 192.168.56.202
rhpctl add client -client floyd -toclientdata /home/oracle
rhpctl add client -client floyd -targetnode sonic03 -root
Oracle Rapid Home Provisioning 12.224 22.09.2017
RHP Provisioning
RHP Setup – Add Images
Oracle Rapid Home Provisioning 12.225 22.09.2017
available possibilities
– NFS (only for RDBMS Home)
• the path for RDBMS Home will be provided as NFS mount point
– Local
• The path will be provided in a local file system
– RHP Managed (NFS managed by RHP)  default if it is possible !
• The path will stored in a ACFS shared file system
• Not usable for Grid Infrastructure Provisioning
[oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100
–storagetype NFS
[oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100
–storagetype RHP_MANAGED
[oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100
–storagetype LOCAL
RHP Setup – Grid Infrastructure Provisioning
Oracle Rapid Home Provisioning 12.226 22.09.2017
Possible to install, configure, patch and upgrade
– for provisioning with configure you need to create a GI response file
Check where the working copy was provisioned
rhpctl add workingcopy -workingcopy gi_12201_wc01 -image gi_12201_V0100 -responsefile
/home/oracle/floyd.rsp -path /u01/app/12.2.0/grid -root
[oracle@sonic01 ~]$ rhpctl query workingcopy -workingcopy gi_12201_wc01
Working copy name: gi_12201_wc01
Image name: gi_12201_V0100
Groups configured in the working copy: OSDBA=asmdba,OSOPER=asmoper,OSASM=asmadmin
Owner: oracle@floyd
Site: floyd  my cluster name
Access control: USER:oracle@floyd
Access control: USER:oracle@sonic
Access control: ROLE:GH_WC_ADMIN
Software home path: /u01/app/12.2.0/grid
Storage type: LOCAL  provisioning storage type
Image Type: ORACLEGISOFTWARE
Software only: false
Gold image path:
Work path:
Cluster Name: floyd
Cluster Type: FLEX
Cluster Mode: FLEX
Cluster Class: STANDALONE
Cluster Nodes: sonic03,sonic04  my cluster member where it was provisioned Grid Infrastructure
All patches available in this home:
Additional patches compared to the image:
Additional bug fixes that are not in the image:
Complete: FALSE
RHP Setup – RDBMS Provisioning and create Database
Oracle Rapid Home Provisioning 12.227 22.09.2017
Possible to install, configure, patch and upgrade (same as on GI)
– for provisioning with configure you need to create a GI response file
Create a single instance database
– SYS and SYSTEM password will be setted randomly and to change afterward
rhpctl add workingcopy -workingcopy rdbms_12201_WC02 -image rdbms_12201_V0100 -path
/u01/app/oracle/product/12.2.0/dbhome_1 -oraclebase /u01/app/oracle -user oracle -client floyd
[oracle@sonic01 ~]$ rhpctl add database -workingcopy rdbms_12201_WC02 -dbname TVD01 -node sonic03 -
dbtype SINGLE -datafileDestination DATA
sonic03.trivadis.com: Starting database creation on node sonic03 ...
========================================
sonic03.trivadis.com:
SYS_PASSWORD_PROMPT
**********
SYSTEM_PASSWORD_PROMPT
*********
Registering database with Oracle Restart
5% complete
Copying database files
6% complete
36% complete
Creating and starting Oracle instance
57% complete
Completing Database Creation
68% complete
Executing Post Configuration Actions
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/TVD01/TVD01.log" for further details.
RHP Setup –Provisioning of 3rd party Software
Oracle Rapid Home Provisioning 12.228 22.09.2017
Possible to install, configure, patch and upgrade  it depends on your Action
Scripts !
– Depending on which kind of Software you want deploy and which action is needed for
installing and configuring you must create Action Scripts
Example deploying TVD-Basenv
– Action Script install-TVD-basenv.ksh starts the Basenv installer with responsefile and
execute the installation in silent mode
– Action should be executed as post action after Working Copy was deployed
Create a Imagetype based on type Software for TVD-Basenv
Create an Image for TVD-Basenv (Base SW was only copied not installed)
rhpctl add useraction -useraction Install-TVD-Basenv -actionscript /home/oracle/basenv/install-TVD-
basenv.sh -post -optype ADD_WORKINGCOPY -onerror ABORT
rhpctl add imagetype -imagetype TVD-Basenv-type -basetype SOFTWARE -useractions "Install-TVD-Basenv"
rhpctl import image -image TVD-Basenv-17.05 -path /home/oracle/basenv -imagetype TVD-Basenv-type
RHP Setup –Provisioning of 3rd party Software
Oracle Rapid Home Provisioning 12.229 22.09.2017
Deployment of TVD-Basenv with Working Copy
– The software will be copied to /home/oracle/basenv directory
– Due to the imagetype was adopted with an user action that should run as post deployment,
after the deployment the software will be installed
DEMO
rhpctl add workingcopy -workingcopy TVD-Basenv-17.05_WC01 -image TVD-Basenv-17.05 -path
/home/oracle/basenv -node sonic03 -user oracle -root
Oracle Rapid Home Provisioning 12.230 22.09.2017
Grid Infrastructure
Managment Repository
(GIMR)
GIMR and RHP
Oracle Rapid Home Provisioning 12.231 22.09.2017
RHP Metadata are stored on GIMR (-MGMTDB)
-MGMTDB is a Container Database (CDB)
– Number of PDBs is depending on how many Options are installed
– All named GIMR_DSCREP_xx (DSCREP=Domain Service Cluster Repository)
RHP Schema is GHSUSER12201
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 GIMR_DSCREP_10 READ WRITE NO
SQL> select username from dba_users order by created
USERNAME
--------------------------------------------------------------------------------
...
GHSUSER12201
GIMR and RHP
Oracle Rapid Home Provisioning 12.232 22.09.2017
Interesting Tables with RHP Metadata
– Metadata for Imagecopies
– Metadata for Workingcopies
SQL> select name, SHARED,ONACFS,CLSITE from GHSUSER12201.SWHOMES;
NAME SHARED ONACFS CLSITE
-------------------- ---------- ---------- --------------------
gi_12201_wc01 0 0 floyd
rdbms_12201_WC01 1 0 sonic
rdbms_12201_WC02 0 0 floyd
rdbms_12201_WC03 0 0 STANDALONE_sonic05
tvd_be_1705_wc01 0 0 sonic
SQL> select name, M_ONACFS,STATE,HOME,IMGSIZE,COMPLETE,DBSOFTWARE_VERSION,IMGTYPE from GHSUSER12201.IMGS;
NAME M_ONACFS STATE HOME IMGSIZE COMPLETE DBSOFTWARE_VERSION IMGTYPE
-------------------- ---------- ---------- -------------------------------------------------- ---------- ---------- ------------------------- --------------------
rdbms_12201_V0100 1 TESTABLE /rhp_dir/images/irdbms_12201_V0100635467/swhome 7547764 1 12.2.0.1.0|false ORACLEDBSOFTWARE
gi_12201_V0100 1 TESTABLE /rhp_dir/images/igi_12201_V0100379214/swhome 12572268 1 12.2.0.1.0|false ORACLEGISOFTWARE
TVD-Basenv-17.05 1 PUBLISHED /rhp_dir/images/iTVD-Basenv-17.05442250/swhome 46564 1 12.2.0.1.0|false TVD-Basenv-type
Oracle Rapid Home Provisioning 12.233 22.09.2017
Conclusion
Rapid Home Provisioning – Conclusion
Oracle Rapid Home Provisioning 12.234 22.09.2017
☺ Simple to set up
☺ nice built-in in Grid Infrastructure
☺ sufficient functionality for managing provisioning
☺ All tested scenarios worked as expected
☺ Thin Documentation
☺ GI_Home Provisioning
☺ Single Server Provisioning
☺ Cleanup of Metadata on MGMTDB works much better than with 12.1.x
 No clear statement about needed space requirements
 DB_Home via NFS is no more available when RHP Servers are down
Daniele Massimi
Principal Consultant
Tel. +41 58 459 50 92
daniele.massimi@trivadis.com
22.09.2017 Oracle Rapid Home Provisioning 12.235
@massimid

Más contenido relacionado

La actualidad más candente

Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
Nassyam Basha
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Kristofferson A
 

La actualidad más candente (20)

Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam BashaOracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam Basha
 
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 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 ...
 
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
 
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?
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
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 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?
 
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
 
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, 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...
 
A Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in ExadataA Deep Dive into ASM Redundancy in Exadata
A Deep Dive into ASM Redundancy in Exadata
 
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
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Oracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesOracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New Features
 
Oracle Drivers configuration for High Availability
Oracle Drivers configuration for High AvailabilityOracle Drivers configuration for High Availability
Oracle Drivers configuration for High Availability
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
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...
 

Similar a Oracle Rapid Home Provisioning 12.2

Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
Nikhil Kumar
 
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
Sergey Lukjanov
 

Similar a Oracle Rapid Home Provisioning 12.2 (20)

Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
 
Vijendra_resume
Vijendra_resume Vijendra_resume
Vijendra_resume
 
Get the most out of Oracle Data Guard - POUG version
Get the most out of Oracle Data Guard - POUG versionGet the most out of Oracle Data Guard - POUG version
Get the most out of Oracle Data Guard - POUG version
 
LALIT-TCS
LALIT-TCSLALIT-TCS
LALIT-TCS
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
Drupalcon2007 Sun
Drupalcon2007 SunDrupalcon2007 Sun
Drupalcon2007 Sun
 
New in Oracle Universal Installer (OUI)
New in Oracle Universal Installer (OUI) New in Oracle Universal Installer (OUI)
New in Oracle Universal Installer (OUI)
 
Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)
 
SLD Deployment
SLD DeploymentSLD Deployment
SLD Deployment
 
Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon
Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - MattoonDrupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon
Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon
 
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...
 
Dynamic Hadoop Clusters
Dynamic Hadoop ClustersDynamic Hadoop Clusters
Dynamic Hadoop Clusters
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
123pun
123pun123pun
123pun
 
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
Atlanta OpenStack Summit: The State of OpenStack Data Processing: Sahara, Now...
 
MySQL InnoDB Cluster and Group Replication in a Nutshell
MySQL InnoDB Cluster and Group Replication in a NutshellMySQL InnoDB Cluster and Group Replication in a Nutshell
MySQL InnoDB Cluster and Group Replication in a Nutshell
 
World is changed. i feel it in the front end
World is changed. i feel it in the front endWorld is changed. i feel it in the front end
World is changed. i feel it in the front end
 
TechEvent PostgreSQL Best Practices
TechEvent PostgreSQL Best PracticesTechEvent PostgreSQL Best Practices
TechEvent PostgreSQL Best Practices
 
Droidcon Paris 2015
Droidcon Paris 2015Droidcon Paris 2015
Droidcon Paris 2015
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 

Último

Último (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

Oracle Rapid Home Provisioning 12.2

  • 1. BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Oracle Rapid Home Provisioning 12.2 Daniele Massimi – Principal Consultant @massimid
  • 2. Agenda Oracle Rapid Home Provisioning 12.22 22.09.2017 1. RHP What is it ? 2. RHP Architecture 3. RHP Security Model 4. RHP Prerequisites and Setup 5. RHP Provisioning 6. Conclusion
  • 3. Who am I ZDLRA - in Action3 22.09.2017 Daniele Massimi, Trivadis AG (CH, Bern) Principal Consultant daniele.massimi@trivadis.com Since 2012 at Trivadis IMS (Infrastructure Service Management) Oracle DBA since 2000 (Exadata > 6 Jahre) Infrastructure-Architecture, Operations & Administration, Upgrades and Migration, High Availability, Backup & Recovery, Virtualization Engineered Systems (Exadata, ODA, ZDLRA, PCA) Trainer (Oracle Architectur and Internal, 12c New Features, Exadata) Oracle Certifications Oracle Certified Master (11g) Oracle Certified Professional (8i – 12c) Oracle Certified Expert (RAC) Oracle Implementation Specialist (Exadata and OVM)
  • 4. Oracle Rapid Home Provisioning 12.24 22.09.2017 RHP What is it ?
  • 5. Rapid Home Provisioning – What is it ? Oracle Rapid Home Provisioning 12.25 22.09.2017 Standardized Tool for provisioning, patching and Upgrade Oracle Grid Infrastructure, Oracle RDBMS and custom Software Improve performance, efficiency and simplifies the software deployment process Automate the software provisioning from a centralized provisioning Server Helps to save time for provisioning, patching and upgrade software deployment Mass Patch deployment possibility, so eliminates to patch individual Databases Ensure Standardization within an enterprise Minimize the impact and risk of maintenance
  • 6. Rapid Home Provisioning – Wath's new in 12.2. Oracle Rapid Home Provisioning 12.26 22.09.2017 Efficient out-of-place distribution Manage existing 11.2 and 12.x deployments without any special configuration Provision new clusters with a single command Database and GI – Provisioning, Patching, Upgrade, Scale in one command Deploy and manage any software home Custom workflow framework (User defined Actions) Clientless Provisioning Provisioning Notification Auditing capabilities
  • 7. Rapid Home Provisioning – Main Components Oracle Rapid Home Provisioning 12.27 22.09.2017 RHP Server RHP Client RHP Roles RHP Images RHP Workingcopies ASM ACFS GNS Management DB (GIMR)
  • 8. Oracle Rapid Home Provisioning 12.28 22.09.2017 RHP Architecture
  • 9. Rapid Home Provisioning – The Idea Oracle Rapid Home Provisioning 12.29 22.09.2017
  • 10. Rapid Home Provisioning – Architecture Details Oracle Rapid Home Provisioning 12.210 22.09.2017 RHP Server Managemnt Repository (-MGMTDB) Image RDBMS (Gold Image) Working Copy 1 DB Home 1 Working Copy 2 RHP Client RHP Client GNS Server GI Home 1 DB Home 1 DB Home 1 RHP Client RHP Client GI Home 1 GI Home 1 Local Copy RHP Metadata ACFS Mount Source: RDBMS, GI, 3rd Party SW Image GI (Gold Image)
  • 11. Oracle Rapid Home Provisioning 12.211 22.09.2017 RHP Security Model
  • 12. Rapid Home Provisioning – Basic Built-In Roles Oracle Rapid Home Provisioning 12.212 22.09.2017 Role Name Description GH_ROLE_ADMIN administrative role for everything related to roles GH_SITE_ADMIN administrative role for everything related to Rapid Home Provisioning Clients GH_SERIES_ADMIN administrative role for everything related to image series GH_SERIES_CONTRIB Users assigned this role can add images to a series GH_WC_ADMIN administrative role for everything related to working copies GH_WC_OPER role that enables users to create a working copy for themselves or others GH_WC_USER role that enables users to create a working copy GH_IMG_ADMIN administrative role for everything related to images GH_IMG_USER role that enables users to create an image GH_IMG_TESTABLE role that enables users to add a working copy of an image that is in the TESTABLE state GH_IMG_RESTRICT role that enables users to add a working copy from an image that is in the RESTRICTED state GH_IMG_PUBLISH Users assigned this role can promote an image to another state or retract an image from the PUBLISHED state to either the TESTABLE or RESTRICTED state GH_IMG_VISIBILITY Users assigned this role can modify access to promoted or published images
  • 13. Rapid Home Provisioning – Composite Built-In Roles Oracle Rapid Home Provisioning 12.213 22.09.2017 Role Name Description GH_SA (default Role) GH_ROLE_ADMIN, GH_SITE_ADMIN, GH_SERIES_ADMIN, GH_SERIES_CONTRIB, GH_WC_ADMIN, GH_IMG_ADMIN, GH_IMG_TESTABLE, GH_IMG_RESTRICT, GH_IMG_PUBLISH, GH_IMG_VISIBILITY GH_CA GH_SERIES_ADMIN, GH_SERIES_CONTRIB, GH_WC_ADMIN, GH_IMG_ADMIN, GH_IMG_TESTABLE, GH_IMG_RESTRICT, GH_IMG_PUBLISH, GH_IMG_VISIBILITY GH_OPER GH_WC_OPER, GH_SERIES_ADMIN, GH_IMG_TESTABLE, GH_IMG_RESTRICT, GH_IMG_USER
  • 14. Oracle Rapid Home Provisioning 12.214 22.09.2017 RHP Requirements
  • 15. Rapid Home Provisioning – Prerequisites Oracle Rapid Home Provisioning 12.215 22.09.2017 Rapid Home Provisioning is part of Grid Infrastructure (GI) 12c – GI is mandatory for provision with RHP  Oracle Restart not supported ! Deployments Works even in a "non" GI Cloud Environment ! –  only for RDBMS and third Party SW ! Not supported on HP-UX and Windows Plattform Does not manage OS Images  Provisioning based on ACFS Snapshot and NFS GNS Server NFS Daemon must be run on each Server provided by RHP License – Lifecycle Management Pack (12’000 $ / CPU Core)
  • 16. Oracle Rapid Home Provisioning 12.216 22.09.2017 RHP Setup
  • 17. RHP Setup – ASM and GNS Config Oracle Rapid Home Provisioning 12.217 22.09.2017 ASM Diskgroup ACFS compatible parameter Configure GNS Server adding following to DNS Record File Add GNS to Cluster alter diskgroup data set attribute 'compatible.advm'='12.1'; $ORIGIN rac.trivadis.com. @ IN NS gns.rac.trivadis.com. gns IN A 192.168.56.201 [root@sonic01 named]# /u01/app/12.2.0/grid/bin/srvctl add gns -domain rac.trivadis.com -vip 192.168.56.201 [root@sonic01 named]# /u01/app/12.2.0/grid/bin/srvctl start gns
  • 18. RHP Setup – Mountpoint Directory and add RHP Server Oracle Rapid Home Provisioning 12.218 22.09.2017 On RHP Server create a folder on all Cluster Member Add Storage and start the RHP Server [root@sonic01 app]# mkdir /rhpdir [root@sonic01 app]# chown oracle:oinstall /rhpdir /u01/app/12.2.0/grid/bin/srvctl add rhpserver -storage /rhpdir -diskgroup DATA /u01/app/12.2.0/grid/bin/srvctl start rhpserver
  • 19. RHP Setup – Add Images Oracle Rapid Home Provisioning 12.219 22.09.2017 Add Images to RHP Server (Example GI 12.2.0.x) [oracle@sonic01 ~]$ rhpctl import image -image gi_12201_V0100 -path /u01/app/12.2.0/grid/ -imagetype ORACLEGISOFTWARE -state TESTABLE sonic02: Creating a new ACFS file system for image "gi_12201_V0100" ... sonic02: Copying files... sonic02: Copying home contents... sonic02: Changing the home ownership to user oracle... sonic01: Transferring data to 1 nodes sonic01: 10% complete sonic01: 20% complete sonic01: 30% complete sonic01: 40% complete sonic01: 50% complete sonic01: 60% complete sonic01: 70% complete sonic01: 80% complete sonic01: 90% complete sonic01: 100% complete sonic02: Changing the home ownership to user oracle... [oracle@sonic01 ~]$
  • 20. RHP Setup – Add Images Oracle Rapid Home Provisioning 12.220 22.09.2017 Add Images to RHP Server (Example RDBMS 12.2.0.x) [oracle@sonic01 database]$ rhpctl import image -image rdbms_12201_V0100 -path /u01/app/oracle/product/12.2.0/dbhome_1 -imagetype ORACLEDBSOFTWARE -state TESTABLE sonic02: Creating a new ACFS file system for image "rdbms_12201_V0100" ... sonic02: Copying files... sonic02: Copying home contents... sonic02: Changing the home ownership to user oracle... sonic01: Transferring data to 1 nodes sonic01: 10% complete sonic01: 20% complete sonic01: 30% complete sonic01: 40% complete sonic01: 50% complete sonic01: 60% complete sonic01: 70% complete sonic01: 80% complete sonic01: 90% complete sonic01: 100% complete sonic02: Changing the home ownership to user oracle... [oracle@sonic01 database]$
  • 21. RHP Setup – Add Images Oracle Rapid Home Provisioning 12.221 22.09.2017 On Filesystem we will have such a situation: Images are registered on RHP Server [oracle@sonic01 ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 37G 30G 5.9G 84% / tmpfs 3.9G 1.3G 2.7G 32% /dev/shm /dev/sda1 477M 116M 333M 26% /boot /dev/asm/ghchkpt-387 5.0G 1.1G 4.0G 21% /rhp_dir/chkbase /dev/asm/ghvol436136-387 18G 10G 8.1G 56% /rhp_dir/images/irdbms_12201_V0100635467 /dev/asm/ghvol427603-387 26G 12G 15G 45% /rhp_dir/images/igi_12201_V0100379214 [oracle@sonic01 ~]$ rhpctl query image Image name: rdbms_12201_V0100 Image name: gi_12201_V0100
  • 22. RHP Setup – Images Details Oracle Rapid Home Provisioning 12.222 22.09.2017 Querying Image Details oracle@sonic01:~/ [-MGMTDB] rhpctl query image -image gi_12201_V0100 Image name: gi_12201_V0100 Owner: oracle@sonic Site: sonic Access control: USER:oracle@sonic Access control: ROLE:GH_IMG_TESTABLE Access control: ROLE:GH_IMG_PUBLISH Access control: ROLE:GH_IMG_ADMIN Access control: ROLE:GH_IMG_VISIBILITY Parent Image: Software home path: /rhp_dir/images/igi_12201_V0100379214/swhome Image state: TESTABLE Image size: 12277 Megabytes Image Type: ORACLEGISOFTWARE Image Version: 12.2.0.1.0 Groups configured in the image: OSDBA=asmdba,OSOPER=asmoper,OSASM=asmadmin,OSBACKUP=asmadmin,OSDG=asmadmin,OSKM=asmadmin,OSRAC=asmadmin Image platform: Linux_AMD64 Interim patches installed: Contains a non-rolling patch: FALSE Complete: TRUE oracle@sonic01:~/ [-MGMTDB]
  • 23. RHP Setup – add Client Oracle Rapid Home Provisioning 12.223 22.09.2017 Add Client is optional but required for some actions HAVIP is needed !!! On RHP Server create clientdata File An XML File will be generated named floyd.xml Copy the clientdata to RHP Client Add Client on RHP Client Start RHP Client srvctl startrhpclient -node sonic03 [root@sonic01 ~]# /u01/app/12.1.0.2/grid/bin/srvctl add havip -id rhp / -address 192.168.56.202 rhpctl add client -client floyd -toclientdata /home/oracle rhpctl add client -client floyd -targetnode sonic03 -root
  • 24. Oracle Rapid Home Provisioning 12.224 22.09.2017 RHP Provisioning
  • 25. RHP Setup – Add Images Oracle Rapid Home Provisioning 12.225 22.09.2017 available possibilities – NFS (only for RDBMS Home) • the path for RDBMS Home will be provided as NFS mount point – Local • The path will be provided in a local file system – RHP Managed (NFS managed by RHP)  default if it is possible ! • The path will stored in a ACFS shared file system • Not usable for Grid Infrastructure Provisioning [oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100 –storagetype NFS [oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100 –storagetype RHP_MANAGED [oracle@sonic01 database]$ rhpctl add workingcopy –rdbms_12201_WC02 -image rdbms_12201_V0100 –storagetype LOCAL
  • 26. RHP Setup – Grid Infrastructure Provisioning Oracle Rapid Home Provisioning 12.226 22.09.2017 Possible to install, configure, patch and upgrade – for provisioning with configure you need to create a GI response file Check where the working copy was provisioned rhpctl add workingcopy -workingcopy gi_12201_wc01 -image gi_12201_V0100 -responsefile /home/oracle/floyd.rsp -path /u01/app/12.2.0/grid -root [oracle@sonic01 ~]$ rhpctl query workingcopy -workingcopy gi_12201_wc01 Working copy name: gi_12201_wc01 Image name: gi_12201_V0100 Groups configured in the working copy: OSDBA=asmdba,OSOPER=asmoper,OSASM=asmadmin Owner: oracle@floyd Site: floyd  my cluster name Access control: USER:oracle@floyd Access control: USER:oracle@sonic Access control: ROLE:GH_WC_ADMIN Software home path: /u01/app/12.2.0/grid Storage type: LOCAL  provisioning storage type Image Type: ORACLEGISOFTWARE Software only: false Gold image path: Work path: Cluster Name: floyd Cluster Type: FLEX Cluster Mode: FLEX Cluster Class: STANDALONE Cluster Nodes: sonic03,sonic04  my cluster member where it was provisioned Grid Infrastructure All patches available in this home: Additional patches compared to the image: Additional bug fixes that are not in the image: Complete: FALSE
  • 27. RHP Setup – RDBMS Provisioning and create Database Oracle Rapid Home Provisioning 12.227 22.09.2017 Possible to install, configure, patch and upgrade (same as on GI) – for provisioning with configure you need to create a GI response file Create a single instance database – SYS and SYSTEM password will be setted randomly and to change afterward rhpctl add workingcopy -workingcopy rdbms_12201_WC02 -image rdbms_12201_V0100 -path /u01/app/oracle/product/12.2.0/dbhome_1 -oraclebase /u01/app/oracle -user oracle -client floyd [oracle@sonic01 ~]$ rhpctl add database -workingcopy rdbms_12201_WC02 -dbname TVD01 -node sonic03 - dbtype SINGLE -datafileDestination DATA sonic03.trivadis.com: Starting database creation on node sonic03 ... ======================================== sonic03.trivadis.com: SYS_PASSWORD_PROMPT ********** SYSTEM_PASSWORD_PROMPT ********* Registering database with Oracle Restart 5% complete Copying database files 6% complete 36% complete Creating and starting Oracle instance 57% complete Completing Database Creation 68% complete Executing Post Configuration Actions 100% complete Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/TVD01/TVD01.log" for further details.
  • 28. RHP Setup –Provisioning of 3rd party Software Oracle Rapid Home Provisioning 12.228 22.09.2017 Possible to install, configure, patch and upgrade  it depends on your Action Scripts ! – Depending on which kind of Software you want deploy and which action is needed for installing and configuring you must create Action Scripts Example deploying TVD-Basenv – Action Script install-TVD-basenv.ksh starts the Basenv installer with responsefile and execute the installation in silent mode – Action should be executed as post action after Working Copy was deployed Create a Imagetype based on type Software for TVD-Basenv Create an Image for TVD-Basenv (Base SW was only copied not installed) rhpctl add useraction -useraction Install-TVD-Basenv -actionscript /home/oracle/basenv/install-TVD- basenv.sh -post -optype ADD_WORKINGCOPY -onerror ABORT rhpctl add imagetype -imagetype TVD-Basenv-type -basetype SOFTWARE -useractions "Install-TVD-Basenv" rhpctl import image -image TVD-Basenv-17.05 -path /home/oracle/basenv -imagetype TVD-Basenv-type
  • 29. RHP Setup –Provisioning of 3rd party Software Oracle Rapid Home Provisioning 12.229 22.09.2017 Deployment of TVD-Basenv with Working Copy – The software will be copied to /home/oracle/basenv directory – Due to the imagetype was adopted with an user action that should run as post deployment, after the deployment the software will be installed DEMO rhpctl add workingcopy -workingcopy TVD-Basenv-17.05_WC01 -image TVD-Basenv-17.05 -path /home/oracle/basenv -node sonic03 -user oracle -root
  • 30. Oracle Rapid Home Provisioning 12.230 22.09.2017 Grid Infrastructure Managment Repository (GIMR)
  • 31. GIMR and RHP Oracle Rapid Home Provisioning 12.231 22.09.2017 RHP Metadata are stored on GIMR (-MGMTDB) -MGMTDB is a Container Database (CDB) – Number of PDBs is depending on how many Options are installed – All named GIMR_DSCREP_xx (DSCREP=Domain Service Cluster Repository) RHP Schema is GHSUSER12201 SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 GIMR_DSCREP_10 READ WRITE NO SQL> select username from dba_users order by created USERNAME -------------------------------------------------------------------------------- ... GHSUSER12201
  • 32. GIMR and RHP Oracle Rapid Home Provisioning 12.232 22.09.2017 Interesting Tables with RHP Metadata – Metadata for Imagecopies – Metadata for Workingcopies SQL> select name, SHARED,ONACFS,CLSITE from GHSUSER12201.SWHOMES; NAME SHARED ONACFS CLSITE -------------------- ---------- ---------- -------------------- gi_12201_wc01 0 0 floyd rdbms_12201_WC01 1 0 sonic rdbms_12201_WC02 0 0 floyd rdbms_12201_WC03 0 0 STANDALONE_sonic05 tvd_be_1705_wc01 0 0 sonic SQL> select name, M_ONACFS,STATE,HOME,IMGSIZE,COMPLETE,DBSOFTWARE_VERSION,IMGTYPE from GHSUSER12201.IMGS; NAME M_ONACFS STATE HOME IMGSIZE COMPLETE DBSOFTWARE_VERSION IMGTYPE -------------------- ---------- ---------- -------------------------------------------------- ---------- ---------- ------------------------- -------------------- rdbms_12201_V0100 1 TESTABLE /rhp_dir/images/irdbms_12201_V0100635467/swhome 7547764 1 12.2.0.1.0|false ORACLEDBSOFTWARE gi_12201_V0100 1 TESTABLE /rhp_dir/images/igi_12201_V0100379214/swhome 12572268 1 12.2.0.1.0|false ORACLEGISOFTWARE TVD-Basenv-17.05 1 PUBLISHED /rhp_dir/images/iTVD-Basenv-17.05442250/swhome 46564 1 12.2.0.1.0|false TVD-Basenv-type
  • 33. Oracle Rapid Home Provisioning 12.233 22.09.2017 Conclusion
  • 34. Rapid Home Provisioning – Conclusion Oracle Rapid Home Provisioning 12.234 22.09.2017 ☺ Simple to set up ☺ nice built-in in Grid Infrastructure ☺ sufficient functionality for managing provisioning ☺ All tested scenarios worked as expected ☺ Thin Documentation ☺ GI_Home Provisioning ☺ Single Server Provisioning ☺ Cleanup of Metadata on MGMTDB works much better than with 12.1.x  No clear statement about needed space requirements  DB_Home via NFS is no more available when RHP Servers are down
  • 35. Daniele Massimi Principal Consultant Tel. +41 58 459 50 92 daniele.massimi@trivadis.com 22.09.2017 Oracle Rapid Home Provisioning 12.235 @massimid