rob zoeteweij zoeteweij consulting. is pretty technical contains quite some slides shows you: why...
TRANSCRIPT
Rob ZoeteweijZoeteweij Consulting
Is pretty technical Contains quite some slides Shows you:
• Why and how? Starts right now
10-04-23Copyright 2009 - Zoeteweij Consulting2
Introduction• Speaker• Provisioning and Automated Patching Pack
Use Case “Out of Box” Procedures Customizing Q & A
10-04-23Copyright 2009 - Zoeteweij Consulting3
10-04-23 4Copyright 2009 - Zoeteweij Consulting
Working with Oracle Technology since 1985• Oracle 3/ Oracle11g• DBA, Developer (Designer, Forms, Reports, PL/SQL,
Portal)• Last 6 years
Oracle Consulting Services (Netherlands) Oracle10g RAC / ASM OEM GRID Control
As independent Rabobank Netherlands – Implementation of OEM GRID Control
10.2.0.5 (Monitoring, Configuration Management, Provisioning) Shell – OEM GRID Control Currently ING Bank – Amsterdam – Implementing OEM GRID
Control OEM GRID Control Trainer
10-04-23Copyright 2009 - Zoeteweij Consulting5
Components Directives
Images Assignments
Networks Hardware
Software Library
10-04-23Copyright 2009 - Zoeteweij Consulting6
Use Case is based on experiences at
Rabobank - Netherlands
10-04-23 7Copyright 2009 - Zoeteweij Consulting
Let’s say we have a configured Stack Cluster
• n Nodes• CRS Software installed and configured on all
Nodes• ASM Software installed on all Nodes• ASM Instance created on all Nodes• DB Software installed on all Nodes
10-04-23Copyright 2009 - Zoeteweij Consulting8
10-04-23Copyright 2009 - Zoeteweij Consulting9
OEMSoftware Library
DB
Server 1 Server n
Shared Storage
Cluster 1
Server 2
CRS ASM
Clonesfrom OEM Software Library
Next, we want to create a Database Requirements
• RAC Database • ASM Managed Storage Enter Disk Group to be used at runtime
• Use TCP/IP Port 39000 (instead of 1521) – One Listener per Server
• Create default RAC Services• Apply CPU• Register with OID Database, Instances, Services
10-04-23Copyright 2009 - Zoeteweij Consulting10
Requirements (continued…)•Create Target in OEM• Include Target in several Groups (for
monitoring)•Assign access privileges via Role to
Administrators•Apply Monitoring Templates (< 10.2.0.5)•Configure the Tape Management System•Perform 1st Backup
10-04-23Copyright 2009 - Zoeteweij Consulting11
Out of Box Procedures to create Database• Oracle Database Provisioning
Single Instance Database• Oracle Clusterware – RAC Provisioning for
Unix Starter Database Created starter database was to “basic” for the
project’s requirements
10-04-23Copyright 2009 - Zoeteweij Consulting12
As the created “Starter” database did not meet the project’s requirements 100%, we needed to start customizing the “Out of the Box Procedure”
Oracle Clusterware – RAC Provisioning for Unix
10-04-23Copyright 2009 - Zoeteweij Consulting13
10-04-23 14Copyright 2009 - Zoeteweij Consulting
2 Types of Procedures (Database Deployment)1. RAC Provisioning Procedures2. Patch Procedures
RAC Provisioning Procedures• Not possible to modify (in the current
release) Patch Procedures
• Not possible to modify (in the current release), except for one….
Patch Oracle Database
10-04-23Copyright 2009 - Zoeteweij Consulting15
As in the current Release Procedure “Patch Oracle Database” gives us most flexibility, we used it as the Base for the Custom Procedure…
10-04-23Copyright 2009 - Zoeteweij Consulting16
Software Library
10-04-23Copyright 2009 - Zoeteweij Consulting17
Custom Procedure focus• Components
Files, Baselines, Golden Images (Ingredients)
• Directives Logic Scripts (Shell, Perl) What to do with… (Recipes)
10-04-23Copyright 2009 - Zoeteweij Consulting18
Create custom Procedure:Create RAC Database
Based on “Patch Oracle Database”• Type 2, so customizable GUI
Create like… Need one Directive
• Related to Script that will create the Database
10-04-23Copyright 2009 - Zoeteweij Consulting19
Need one Directive• From scratch or,
Based on existing Script runDatabaseConfigTools.pl (Out of Box)
10-04-23Copyright 2009 - Zoeteweij Consulting20
10-04-23Copyright 2009 - Zoeteweij Consulting21
10-04-23Copyright 2009 - Zoeteweij Consulting22
10-04-23Copyright 2009 - Zoeteweij Consulting23
10-04-23Copyright 2009 - Zoeteweij Consulting24
10-04-23Copyright 2009 - Zoeteweij Consulting25
Upload the custom Perl Script to the Directive
10-04-23Copyright 2009 - Zoeteweij Consulting26
10-04-23Copyright 2009 - Zoeteweij Consulting27
10-04-23Copyright 2009 - Zoeteweij Consulting28
Activate the Directive
10-04-23Copyright 2009 - Zoeteweij Consulting29
Next we need to create the custom Procedure• Based on “Patch Oracle Database”• Include a Step that will call the created custom Directive
10-04-23Copyright 2009 - Zoeteweij Consulting30
10-04-23Copyright 2009 - Zoeteweij Consulting31
Create like…
10-04-23Copyright 2009 - Zoeteweij Consulting32
Delete all steps…
10-04-23Copyright 2009 - Zoeteweij Consulting33
Insert new Step…
10-04-23Copyright 2009 - Zoeteweij Consulting34
10-04-23Copyright 2009 - Zoeteweij Consulting35
hostForCustomSteps
10-04-23Copyright 2009 - Zoeteweij Consulting36
10-04-23Copyright 2009 - Zoeteweij Consulting37
Insert new Step…
10-04-23Copyright 2009 - Zoeteweij Consulting38
10-04-23Copyright 2009 - Zoeteweij Consulting39
10-04-23Copyright 2009 - Zoeteweij Consulting40
10-04-23Copyright 2009 - Zoeteweij Consulting41
DB_HOME_LOCATION – RAC Database Oracle Home Location – Enter RAC Database Oracle Home Location – Ask User at Run Time
DB_ORACLE_HOME_NAME – Set ValuePUB_NODELIST_ALIAS_VALUE – Node List – Enter comma seperated Node List – Ask User at Run TimeAGENT_HOME – Set Value - %emd_root%DB_TYPE – Set Value – RACIS_ASM_SELECTED – Set Value – trueDB_SID – Database Name – Enter Database Name – Ask User at Run TimeASM_DISK_STRING – Set ValueASM_DISK_LIST – Set ValueASM_RED – Set ValueCLUSTER_ENABLED – Set ValueORACLE_BASE_FOR_DB – Set Value - /u01/app/oracleCRS_ORACLE_HOME_LOC – Set Value - /U01/app/crsORACLE_BASE – Set Value - /u01/app/oracleTEMPLATE_FILE – DBCA Template File – Enter DBCA Template File – Ask User at Run TimeADD_PARAMS – Set Value IS_RECOVERY_FILE_SYSTEM – Set ValueREPONSE_FILE_LOC – Set ValueRECOVERY_AREA_LOC – Set ValueENABLE_BACKUP – Set ValueBACKUP_USERNAME – Set ValueNOTMAL_PASSWORDS – Set Value – trueDG_NAME – Disk Group Name – Enter Disk Group Name – Ask User at Run TimeDBA_ROLE – DBA Role – Enter DBA Role – Ask User at Run TimeDB_UNIQUE_NAME – Database Unique Name - Enter Database Unique Name – Ask User at Run TimeORCL_ADM_USER - Set Value - ORCLADMINOID_HOST - Set Value – <oid server>
10-04-23Copyright 2009 - Zoeteweij Consulting42
10-04-23Copyright 2009 - Zoeteweij Consulting43
10-04-23Copyright 2009 - Zoeteweij Consulting44
10-04-23Copyright 2009 - Zoeteweij Consulting45
That’s all there is… Created a customized Deployment
Procedure• Based on existing (Out of Box)• Created custom Perl Script (taking care of
Business)• Created custom Directive• Created custom Procedure
Next, we can execute the Procedure
10-04-23Copyright 2009 - Zoeteweij Consulting46
10-04-23Copyright 2009 - Zoeteweij Consulting47
10-04-23Copyright 2009 - Zoeteweij Consulting48
10-04-23Copyright 2009 - Zoeteweij Consulting49
10-04-23Copyright 2009 - Zoeteweij Consulting50
10-04-23Copyright 2009 - Zoeteweij Consulting51
10-04-23Copyright 2009 - Zoeteweij Consulting52
10-04-23Copyright 2009 - Zoeteweij Consulting53
10-04-23Copyright 2009 - Zoeteweij Consulting54
10-04-23Copyright 2009 - Zoeteweij Consulting55
10-04-23Copyright 2009 - Zoeteweij Consulting56
10-04-23 57Copyright 2009 - Zoeteweij Consulting
Out of the Box Procedures • YES, they do work• They do allow you to use DBCA Template
Files Allows you to control the process
• You might however have some reasons to customize: To meet Organization's Requirements
Disk Groups, Security, Identity Management, Monitoring Templates, etc.
Fully automate tasks
10-04-23Copyright 2009 - Zoeteweij Consulting58
Start using 10.2.0.5• Contains many fixes in the Provisioning area• Several new Deployment Procedures• Default Monitoring Templates• And many other New Features…
Start • Figure out your Requirements• Working with Out of Box Procedures• Training• And…
10-04-23Copyright 2009 - Zoeteweij Consulting59
Gaining enormous benefit, while using the “Provisioning and Automated Patching” Management Pack…
10-04-23Copyright 2009 - Zoeteweij Consulting60
During the Rabobank Project• Instead of a 2 week Procedure to install and
configure the OS, configure and install the Oracle Software and (manually) create ASM Instances and finally creating the RAC Database and manually configure it, perform several manually tasks within OEM, with high risk of Human Errors…
10-04-23Copyright 2009 - Zoeteweij Consulting61
During the Rabobank Project (cont)• Setup of a multi Node Cluster, installation of
OS + OMA (Bare Metal Provisioning) installation of CRS, ASM, DB + setup of ASM Instances on each of the Cluster Nodes, full RAC Database creation and configuration, full configuration of the new Targets within OEM, ending up with full Company Standards compliance in just 4 Hours….
10-04-23Copyright 2009 - Zoeteweij Consulting62
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
Mailto: [email protected]
10-04-23Copyright 2009 - Zoeteweij Consulting63
During the Rabobank Project we gave our input to an independent study conducted by Forrester Consulting
10-04-23Copyright 2009 - Zoeteweij Consulting64
Oracle Enterprise Manager Delivers 124% ROI
An independent multi-customer study conducted by Forrester Consulting reveals customers gain significant benefits and cost savings from Oracle Enterprise Manager Configuration Management Pack and Oracle Enterprise Manager Provisioning and Patch Automation Pack.
10-04-23Copyright 2009 - Zoeteweij Consulting65
The sample organization in Forrester Consulting's study was shown to achieve the following benefits (all figures are risk-adjusted, over three 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.
10-04-23Copyright 2009 - Zoeteweij Consulting66
http://www.oracle.com/corporate/analyst/reports/infrastructure/em/forrester-tei-em-config-provision.pdf
10-04-23Copyright 2009 - Zoeteweij Consulting67
Enjoy your stay here in San Francisco
Enjoy your OOW 2009
10-04-23Copyright 2009 - Zoeteweij Consulting68
Q & A
10-04-23Copyright 2009 - Zoeteweij Consulting69