provisioning of crs / asm / rac with oracle enterprise …€¢oracle dba (release 3 .. 11g) ......
TRANSCRIPT
OEM ProvisioningAn Introduction
Rob Zoeteweij09-07-2009 1
09-07-2009 2
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
09-07-2009 3
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
Introduction
• Rob Zoeteweij
• Working with Oracle since 1985
• Oracle DBA (Release 3 .. 11g)
• Development Designer, Forms, Reports,
PL/SQL, Portal…
09-07-2009 4
Introduction
• Last 5 years
– Oracle Consulting – Expert Services
• RAC/ASM – OEM GRID Control
– FreeIT
• Rabobank - Shell
– OEM GRID Control
– 5 Hart
• Trainer OEM GRID Control
09-07-2009 5
Introduction - OEM
• Successor of OEM 9i
– Java Client
• EM Database Control – Local
• EM Application Server Control - Local
• OEM GRID Control 10g
– Current Release 10.2.0.5
– GUI synchronize
• EM DB Control
• EM AS Control
09-07-2009 6
Introduction - OEM
09-07-2009 7
OEM – Key Features
• System Monitoring
• Groups
• Job System
• Information Publishing
• Compliance Management
09-07-2009 8
OEM – Targets
• Databases
• Middleware
• Hosts & Third Party
• Oracle Beehive
• Virtualization
• Many non Oracle
09-07-2009 9
System Monitoring
09-07-2009 10
Database Management
09-07-2009 11
Performance Monitoring
09-07-2009 12
Service Management
09-07-2009 13
Service Management
09-07-2009 14
Change Management
09-07-2009 15
Change Management
09-07-2009 16
Middleware Management
09-07-2009 17
Host Management
09-07-2009 18
Host Management
09-07-2009 19
System Management
09-07-2009 20
Virtualization Management
09-07-2009 21
and…
Provisioning
09-07-2009 22
09-07-2009 23
Introduction - Provisioning
• In general, provisioning means "providing"
or making something available. The term
is used in a variety of contexts in IT. For
example, in grid computing, to provision is
to activate a grid component, such as a
server, array, or switch, so that it is
available for use...
Internet – What is?
09-07-2009 24
Introduction - Provisioning
• Management perspective:
– Reduction of complexity
• Task automation
• Every time exact same sequence of actions…
• Standardization
– Reduction of costs
• DBO
• Less training
– Time to market
09-07-2009 25
Introduction - Provisioning
– Time to market
• Less time needed to have infrastructure available
• Have a fully configured database cluster
– In hours instead of days / weeks
• Managers just love it … ;-)
– Increase of quality
• Availability
09-07-2009 26
Introduction - Provisioning
• Another one for Management...
– Oracle Enterprise Manager Delivers 124%
ROI
– An independent multi-customer study
conducted by Forrester Consulting reveals
customers gain significant benefits and cost
savings from OEM Configuration
Management Pack and OEM Provisioning
and Patch Automation Pack…
09-07-2009 27
Introduction - Provisioning
• The sample organization in Forrester
Consulting's study shows (over 3 years):
– Positive 124% ($4,916,781) return on
investment (ROI)
– 20% ($862,500) reduction in capital spending
on servers
– Business productivity savings of $2,555,556
from a reduction in system downtime
avoidance and a corresponding increase in
availability.
09-07-2009 28
Introduction - Provisioning
• Report Forrester Research
– http://www.oracle.com/webapps/dialogue/dlgp
age.jsp?p_ext=Y&p_dlg_id=7535983&src=66
42151&Act=242
09-07-2009 29
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
Concepts
09-07-2009 30
Concepts
09-07-2009 31
Concepts – Golden Image
09-07-2009 32
• Baselines
– Standards
– Pre-cooked
– Reusability
– Examples
• CRS 11.1.0.7 – Baseline Clusterware
• ASM 11.1.0.7 – Baseline ASM
• DB 10.2.0.4 – Baseline Database
Concepts – Software Library
09-07-2009 33
09-07-2009 34
Concepts – Software Library
• Components– Files
– Golden Images
• Oracle Clones, CRS, ASM, DB....
– Baselines
– (Ingredients)
• Directives– Logic
• Scripts: Perl - shell
– What to do with … (Component)
– (Recipes)
09-07-2009 35
Concepts – Software Library
• Networks– Network definitions - BMP
• Images– Bundle of Components, Directives
– Used for BMP
• Suites– Collection of heterogeneous components,
grouped together
– Example: Oracle Collaboration Suite (database, application server, Web server, and an Identity server )
09-07-2009 36
Concepts – Software Library
• Suite Instances– Group of Hardware Servers that will run
each of these components (Suites)
• Assignments
– Provisioning of an Image or a Suite of Images on a Server
• Hardware
– Hardware specification
09-07-2009 37
Concepts – Software Library
• Cluster
– Specification of Hardware Servers in a Cluster
– BMP
• Administration
– Configuration of Software Library
09-07-2009 38
Concepts – Software Library
• Software Library
– Partially in Repository
• MGMT_PAF…
• MGMT_SWLIB…
09-07-2009 39
Concepts – Software Library
• Software Library
– Partially on OMS file system
• At configuration time
• If multiple OMS’s, shared file system
09-07-2009 40
Concepts – Software Library
09-07-2009 41
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
Framework
09-07-2009 42
Framework
09-07-2009 43
09-07-2009 44
Framework
• Deployment Procedures– Constructed out of
• Components
• Directives
– Procedure Steps
– Error logic
• What to do in case of error…– Stop on Error
– Continue on Error
– Skip Target
09-07-2009 45
Framework
09-07-2009 46
Framework
• Deployment Procedures
– Type 1
• RAC Provisioning Procedures
• Static GUI
– Type 2
• Database Patching Procedure
• Customizable GUI
09-07-2009 47
Procedure - Status
09-07-2009 48
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
09-07-2009 49
Agenda
• Introduction
• Concepts
• Framework
• Break
• Out of the Box
• Q & A
09-07-2009 50
Out of the Box
• Several Oracle delivered Procedures
– Database provisioning
– Application Server provisioning
– RAC Provisioning
– Patching
09-07-2009 51
Out of the Box
09-07-2009 52
Out of the Box
09-07-2009 53
Out of the Box
• All together
– AS Provisioning – 4
– RAC Provisioning – 4
– Patching Solaris Hosts – 1
– Patching Windows Hosts – 1
– Patching Linux Hosts -1
– Patch Pre-Requisites – 4
– BPEL Process Provisioning – 1
– Linux Staging Server – Setup – 1
– Database Provisioning – 2
09-07-2009 54
Out of the Box
– Forms and Reports Provisioning – 1
– Coherence Node Provisioning – 1
– Patch Oracle Software – 6
– Virtualization Provisioning – 11
– Oracle Service Bus Resource Provisioning – 1
09-07-2009 55
Provisioning - CRS / ASM / DB
• After Server is provisioned with OS and
Agent
– Bare Metal Provisioning (Linux)
• Provisioning of
– Clusterware software + configuration
– ASM software + ASM Instance creation
– DB software (Creation of starter database
provided)
09-07-2009 56
09-07-2009 57
Provisioning - CRS / ASM / DB
• Using Clones / Golden Images from SW
Library:
– To standardize
– To work with Baselines
– As part of Release Management
09-07-2009 58
Provisioning - CRS / ASM / DB
• Baseline Examples:
– Baseline 1
• CRS 11.1.0.7
• ASM 11.1.0.7
• DB 10.2.0.4
– Baseline 2
• CRS 11.1.0.7
• ASM 11.1.0.7
• DB 11.1.0.7
5909-07-2009
6009-07-2009
6109-07-2009
Out of Box – DP Procedure
• We don’t use Create Starter Database
(See next slide)
• We use a separate DP Procedure for this
– Create RAC Database on configured Stack
6209-07-2009
6309-07-2009
• ASM Disk String
– No use of wildcards (OEM 10.2.0.4)
• Fixed in OEM 10.2.0.5
6409-07-2009
6509-07-2009
6609-07-2009
6709-07-2009
6809-07-2009
6909-07-2009
7009-07-2009
Provisioning – Create RAC Database
• Out of Box
– Single Instance Database creation
– No RAC Database creation
• OK, included in Oracle Clusterware / RAC
Provisioning
• Not a usable scenario
• Need to create your own
09-07-2009 71
Provisioning – Create RAC Database
• Create a custom Deployment Procedure
– Based on Patching Oracle Database
• Type 2
09-07-2009 72
Provisioning – Create RAC Database
• Possible Use Case
– Create RAC Database
• 1..n Instances on 1..n nodes in Cluster
– Create entries in OMS
– Include in monitoring Groups
– Include in Role
– Create RAC Services
– Register entries in OID
• Database, Instances, RAC Services
09-07-2009 73
Provisioning – Create RAC Database
• Possible Use Case (Continue)
– Application of Monitoring Templates
• No need to in 10.2.0.5 (Default Templates)
– Configure Tape Backup
– Perform 1st Backup
– Etc.
09-07-2009 74
09-07-2009 75
Provisioning – Create RAC Database
09-07-2009 76
Provisioning – Create RAC Database
09-07-2009 77
Provisioning – Create RAC Database
09-07-2009 78
Provisioning – Create RAC Database
09-07-2009 79
Provisioning – Create RAC Database
09-07-2009 80
Provisioning – Create RAC Database
09-07-2009 81
Provisioning – Create RAC Database
09-07-2009 82
Provisioning – Create RAC Database
09-07-2009 83
Provisioning – Create RAC Database
09-07-2009 84
09-07-2009 85
09-07-2009 86
Provisioning – Remove RAC Database
• No Out of Box procedure available
• So, need to create your own
• Based on Patching Oracle Database
procedure
– Type 2
09-07-2009 87
Provisioning – Remove RAC Database
• Remove entries from OMS
– EMCLI
• Remove the database
– DBCA
• Remove files
– $ORACLE_HOME/dbs
• Remove entry from /etc/oratab
09-07-2009 88
Provisioning – Remove RAC Database
• Remove files from ASM (DBCA won’t
delete all)
• Etc.
09-07-2009 89
Provisioning – Remove RAC Database
09-07-2009 90
Provisioning – Remove RAC Database
09-07-2009 91
Provisioning – Remove RAC Database
09-07-2009 92
Provisioning – Remove RAC Database
09-07-2009 93
Provisioning – Remove RAC Database
09-07-2009 94
Provisioning – Remove RAC Database
09-07-2009 95
Provisioning – Remove RAC Database
09-07-2009 96
Provisioning – Remove RAC Database
09-07-2009 97
Provisioning – Other useable procedures
09-07-2009 98
• One Click Extend Cluster Database
– Rather have Extend Cluster
– Need to use dummy Database for this
– Include 1..n servers in cluster
– Installs
• CRS + Re-configuration
• ASM + Instance creation
• DB + Instance creation (dummy)
Provisioning – Other useable procedures
09-07-2009 99
• Delete/Scale down Oracle RAC
– Removes instance
– Removes server from cluster
Provisioning – Wrap up
• Out of Box Procedures
– Can do the job in some Use Cases
– A good base to start customizing
• Customize Procedures
– Based on Patching Oracle Database
• Most flexible but still limitations
– Anything can be done
09-07-2009 100
Provisioning – Wrap up
• Perl
– Multi Platform
– Need to train your staff
• Standardization
– Baselines
• Task automation
09-07-2009 101
Provisioning – Wrap up
• Reduction of
– Costs
– Complexity
– Time to Market
09-07-2009 102
Provisioning – Wrap up
• Start thinking about:
– Training
– Organization
– Lifecycle
– Change of DBA Job description…?
09-07-2009 103
Provisioning – Wrap up
• Easy to start working with?
– Working with 10.2.0.4?
• Start upgrading to 10.2.0.5
– 10.2.0.5
• Major improvements
– Documentation
• Still a problem
• But improving!
09-07-2009 104
Provisioning – Wrap up
• Easy to start working with? (Continued)
– Start getting Out of Box procedures to work
• Should not be a problem
– Next, start doing customization
– Take a good training
• 5-Hart
• Oracle University
• Zoeteweij Consulting ;-)
– …
09-07-2009 105
Provisioning – Wrap up
• OTN
– http://www.oracle.com/technology/products/oe
m/mgmt_solutions/provisioning.html
• Linkedin.com
– Group OEM GRID Control
• http://www.linkedin.com/groups?gid=1776007&trk=
hb_side_g
• OOW 200909-07-2009 106
09-07-2009 107
Agenda
• Introduction
• Concepts
• Framework
• Out of the Box
• Q & A
Q & A
09-07-2009 108