rob zoeteweij zoeteweij consulting. is pretty technical contains quite some slides shows you: why...

69
Rob Zoeteweij Zoeteweij Consulting

Upload: morgan-bowman

Post on 27-Mar-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Rob ZoeteweijZoeteweij Consulting

Page 2: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Is pretty technical Contains quite some slides Shows you:

• Why and how? Starts right now

10-04-23Copyright 2009 - Zoeteweij Consulting2

Page 3: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Introduction• Speaker• Provisioning and Automated Patching Pack

Use Case “Out of Box” Procedures Customizing Q & A

10-04-23Copyright 2009 - Zoeteweij Consulting3

Page 4: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23 4Copyright 2009 - Zoeteweij Consulting

Page 5: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 6: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Components Directives

Images Assignments

Networks Hardware

Software Library

10-04-23Copyright 2009 - Zoeteweij Consulting6

Page 7: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Use Case is based on experiences at

Rabobank - Netherlands

10-04-23 7Copyright 2009 - Zoeteweij Consulting

Page 8: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 9: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 10: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 11: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 12: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 13: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 14: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23 14Copyright 2009 - Zoeteweij Consulting

Page 15: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 16: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 17: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Software Library

10-04-23Copyright 2009 - Zoeteweij Consulting17

Page 18: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 19: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 20: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Need one Directive• From scratch or,

Based on existing Script runDatabaseConfigTools.pl (Out of Box)

10-04-23Copyright 2009 - Zoeteweij Consulting20

Page 21: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting21

Page 22: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting22

Page 23: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting23

Page 24: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting24

Page 25: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting25

Page 26: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Upload the custom Perl Script to the Directive

10-04-23Copyright 2009 - Zoeteweij Consulting26

Page 27: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting27

Page 28: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting28

Page 29: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Activate the Directive

10-04-23Copyright 2009 - Zoeteweij Consulting29

Page 30: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 31: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting31

Page 32: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Create like…

10-04-23Copyright 2009 - Zoeteweij Consulting32

Page 33: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Delete all steps…

10-04-23Copyright 2009 - Zoeteweij Consulting33

Page 34: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Insert new Step…

10-04-23Copyright 2009 - Zoeteweij Consulting34

Page 35: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting35

Page 36: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

hostForCustomSteps

10-04-23Copyright 2009 - Zoeteweij Consulting36

Page 37: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting37

Page 38: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Insert new Step…

10-04-23Copyright 2009 - Zoeteweij Consulting38

Page 39: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting39

Page 40: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting40

Page 41: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting41

Page 42: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 43: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting43

Page 44: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting44

Page 45: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting45

Page 46: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 47: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting47

Page 48: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting48

Page 49: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting49

Page 50: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting50

Page 51: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting51

Page 52: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting52

Page 53: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting53

Page 54: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting54

Page 55: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting55

Page 56: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23Copyright 2009 - Zoeteweij Consulting56

Page 57: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

10-04-23 57Copyright 2009 - Zoeteweij Consulting

Page 58: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 59: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 60: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Gaining enormous benefit, while using the “Provisioning and Automated Patching” Management Pack…

10-04-23Copyright 2009 - Zoeteweij Consulting60

Page 61: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 62: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 63: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 64: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

During the Rabobank Project we gave our input to an independent study conducted by Forrester Consulting

10-04-23Copyright 2009 - Zoeteweij Consulting64

Page 65: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 66: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

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

Page 67: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

http://www.oracle.com/corporate/analyst/reports/infrastructure/em/forrester-tei-em-config-provision.pdf

10-04-23Copyright 2009 - Zoeteweij Consulting67

Page 68: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Enjoy your stay here in San Francisco

Enjoy your OOW 2009

10-04-23Copyright 2009 - Zoeteweij Consulting68

Page 69: Rob Zoeteweij Zoeteweij Consulting. Is pretty technical Contains quite some slides Shows you: Why and how? Starts right now 24-1-2014Copyright 2009 -

Q & A

10-04-23Copyright 2009 - Zoeteweij Consulting69