Rob Zoeteweij Zoeteweij Consulting
Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now Copyright Zoeteweij Consulting 2
Introduction Speaker Provisioning and Automated Patching Pack Use Case Out of Box Procedures Customizing Q & A Copyright Zoeteweij Consulting 3
Copyright 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 (Monitoring, Configuration Management, Provisioning) Shell – OEM GRID Control Currently ING Bank – Amsterdam – Implementing OEM GRID Control OEM GRID Control Trainer Copyright Zoeteweij Consulting 5
Copyright Zoeteweij Consulting 6
Use Case is based on experiences at Rabobank - Netherlands Copyright Zoeteweij Consulting
Lets 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 Copyright Zoeteweij Consulting 8
Copyright Zoeteweij Consulting 9
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 (instead of 1521) – One Listener per Server Create default RAC Services Apply CPU Register with OID Database, Instances, Services Copyright Zoeteweij Consulting 10
Requirements (continued…) Create Target in OEM Include Target in several Groups (for monitoring) Assign access privileges via Role to Administrators Apply Monitoring Templates (< ) Configure the Tape Management System Perform 1 st Backup Copyright Zoeteweij Consulting 11
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 projects requirements Copyright Zoeteweij Consulting 12
As the created Starter database did not meet the projects requirements 100%, we needed to start customizing the Out of the Box Procedure Oracle Clusterware – RAC Provisioning for Unix Copyright Zoeteweij Consulting 13
Copyright Zoeteweij Consulting
2 Types of Procedures (Database Deployment) 1. RAC Provisioning Procedures 2. 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 Copyright Zoeteweij Consulting 15
As in the current Release Procedure Patch Oracle Database gives us most flexibility, we used it as the Base for the Custom Procedure… Copyright Zoeteweij Consulting 16
Software Library Copyright Zoeteweij Consulting 17
Custom Procedure focus Components Files, Baselines, Golden Images (Ingredients) Directives Logic Scripts (Shell, Perl) What to do with… (Recipes) Copyright Zoeteweij Consulting 18
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 Copyright Zoeteweij Consulting 19
Need one Directive From scratch or, Based on existing Script runDatabaseConfigTools.pl (Out of Box) Copyright Zoeteweij Consulting 20
Copyright Zoeteweij Consulting 21
Copyright Zoeteweij Consulting 22
Copyright Zoeteweij Consulting 23
Copyright Zoeteweij Consulting 24
Copyright Zoeteweij Consulting 25
Upload the custom Perl Script to the Directive Copyright Zoeteweij Consulting 26
Copyright Zoeteweij Consulting 27
Copyright Zoeteweij Consulting 28
Activate the Directive Copyright Zoeteweij Consulting 29
Next we need to create the custom Procedure Based on Patch Oracle Database Include a Step that will call the created custom Directive Copyright Zoeteweij Consulting 30
Copyright Zoeteweij Consulting 31
Create like… Copyright Zoeteweij Consulting 32
Delete all steps… Copyright Zoeteweij Consulting 33
Insert new Step… Copyright Zoeteweij Consulting 34
Copyright Zoeteweij Consulting 35
hostForCustomSteps Copyright Zoeteweij Consulting 36
Copyright Zoeteweij Consulting 37
Insert new Step… Copyright Zoeteweij Consulting 38
Copyright Zoeteweij Consulting 39
Copyright Zoeteweij Consulting 40
Copyright Zoeteweij Consulting 41
DB_HOME_LOCATION – RAC Database Oracle Home Location – Enter RAC Database Oracle Home Location – Ask User at Run Time DB_ORACLE_HOME_NAME – Set Value PUB_NODELIST_ALIAS_VALUE – Node List – Enter comma seperated Node List – Ask User at Run Time AGENT_HOME – Set Value - %emd_root% DB_TYPE – Set Value – RAC IS_ASM_SELECTED – Set Value – true DB_SID – Database Name – Enter Database Name – Ask User at Run Time ASM_DISK_STRING – Set Value ASM_DISK_LIST – Set Value ASM_RED – Set Value CLUSTER_ENABLED – Set Value ORACLE_BASE_FOR_DB – Set Value - /u01/app/oracle CRS_ORACLE_HOME_LOC – Set Value - /U01/app/crs ORACLE_BASE – Set Value - /u01/app/oracle TEMPLATE_FILE – DBCA Template File – Enter DBCA Template File – Ask User at Run Time ADD_PARAMS – Set Value IS_RECOVERY_FILE_SYSTEM – Set Value REPONSE_FILE_LOC – Set Value RECOVERY_AREA_LOC – Set Value ENABLE_BACKUP – Set Value BACKUP_USERNAME – Set Value NOTMAL_PASSWORDS – Set Value – true DG_NAME – Disk Group Name – Enter Disk Group Name – Ask User at Run Time DBA_ROLE – DBA Role – Enter DBA Role – Ask User at Run Time DB_UNIQUE_NAME – Database Unique Name - Enter Database Unique Name – Ask User at Run Time ORCL_ADM_USER - Set Value - ORCLADMIN OID_HOST - Set Value – Copyright Zoeteweij Consulting 42
Copyright Zoeteweij Consulting 43
Copyright Zoeteweij Consulting 44
Copyright Zoeteweij Consulting 45
Thats 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 Copyright Zoeteweij Consulting 46
Copyright Zoeteweij Consulting 47
Copyright Zoeteweij Consulting 48
Copyright Zoeteweij Consulting 49
Copyright Zoeteweij Consulting 50
Copyright Zoeteweij Consulting 51
Copyright Zoeteweij Consulting 52
Copyright Zoeteweij Consulting 53
Copyright Zoeteweij Consulting 54
Copyright Zoeteweij Consulting 55
Copyright Zoeteweij Consulting 56
Copyright 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 Copyright Zoeteweij Consulting 58
Start using 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… Copyright Zoeteweij Consulting 59
Gaining enormous benefit, while using the Provisioning and Automated Patching Management Pack… Copyright Zoeteweij Consulting 60
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… Copyright Zoeteweij Consulting 61
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… Copyright Zoeteweij Consulting 62
OTN mgmt_solutions/provisioning.html mgmt_solutions/provisioning.html Linkedin.com Group OEM GRID Control side_g side_g Mailto: Copyright Zoeteweij Consulting 63
During the Rabobank Project we gave our input to an independent study conducted by Forrester Consulting Copyright Zoeteweij Consulting 64
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 Copyright Zoeteweij Consulting 65
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 Copyright Zoeteweij Consulting 66
e/analyst/reports/infrastructure/ em/forrester-tei-em-config- provision.pdf Copyright Zoeteweij Consulting 67
Enjoy your stay here in San Francisco Enjoy your OOW Copyright Zoeteweij Consulting 68
Q & A Copyright Zoeteweij Consulting 69