UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle...

37
UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Transcript of UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle...

Page 1: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

UKOUG Tech 15

Common Mistakes When

Implementing Oracle Enterprise

Manager 12c

Philip Brown @pbedba

Page 2: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Common Mistakes When Implementing 12c OEM

• Agenda• Introduction to Red Stack Tech and Me

• Common Mistakes

• Successful Implementation

• Key Features…(How To) Use Them!

• INCLUDING THE BEST THING EVER!!!

• Conclusions

Page 3: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Common Mistakes When Implementing 12c OEM

Page 4: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

• Red Stack Tech– Specialised Oracle Platinum Partner– 2014 Oracle Engineered Solution Partner of the Year (UK, EMEA, GLOBAL)– 2010, 2012, 2013 Oracle Technology Partner of the Year– 2010 EMEA Technology Partner of the Year– Professional Services / Managed Services / Cloud Services– Oracle ACEs and OCMs

• Philip Brown ([email protected])– Red Stack Professional Services Manager / Global Lead Systems Management – Oracle Ace Associate – Oracle OCP 9i, 10g, 11g, OCA 10g AS – Regular Speaker at the Oracle User Group– Contact me on LinkedIn and Twitter @pbedba– Resources:

• Blog http://www.redstk.com/blog/ #SavingYou15Minutes #em12c • Articles in Oracle Scene and OTECH Magazine

– Speaking this year at:• TECH15 (em12c and In-Memory)• OOW15 (Hybrid Cloud)

Common Mistakes When Implementing 12c OEM

Page 5: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #1 Success Criteria

How are we getting on

installing OEM?I’ve nearly

rolled out all the agents

Great, when will it be

complete?

Not sure, soon hopefully, got it

on the back burner

Page 6: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #1 Success Criteria

1# Oracle Enterprise Manager is an ‘ENTERPRISE’ application

2# It’s a critical part of your infrastructure

3# It’s designed to HELP you manage your estate

4# Oracle Enterprise Manager isn’t a glorified db console

5# Why isn’t success criteria defined?

6# IT Manager shouldn’t see this as ‘just’ a job for a DBA

Page 7: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #2 Partial Configuration

We’re getting quite a few alerts

from OEM

Yeah, no worries because I’ve got a

email filter on them

What about the critical alerts We still getting the

old alerts through the scripts so it’s

fine

Page 8: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #2 Partial Configuration

1# It’s way tooooooooooooooo easy to install OEM

2# The implementation doesn’t cover any configuration

4# We create our own email spam

3# Configuration is only done to resolve ‘issues’

Page 9: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #3 Feature Utilisation

Have we deployed all the latest monitoring templates?

Not yet, it takes ages and it’s really slow, you need to

go into each….

Ok, when do you think you can get prod done by??

it’s on the to do list but haven’t got around to it

yet, soon…

Page 10: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Mistake #3 Feature Utilisation

1# Oracle Enterprise Manager enables you to….

Page 11: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Ok….lets calm down a bit….

Page 12: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Successful Implementation

Agent Rollout

Target Properties

Credentials

Rollout

Templates

Incident Rules

Incident Manger Views

Admin Groups

Dynamic Groups

Configure

Deploy

Auditing

Users

emcli

OEM Health

Install

Goals

Pre-Reqs

HA / DR

Timelines

Target On-Boarding

Transition

Planning

This is generic WORK OUT WHAT YOU WANT OUT OF OEM and then plan accordingly

Page 13: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

http://docs.oracle.com/cd/E24628_01/doc.121/e24474/ch10_base_functionality.htm#OEMLI333

Page 14: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

APPLY_TEMPLATE Apply Monitoring Template NO

CHANGE_PREFERRED_CREDENTIAL Change Preferred Credentials NO

DB_SHUTDOWN Database Shutdown NO

DB_START Database Startup NO

DELETE_CREDENTIAL_SET Delete Credential Set NO

DELETE_CS Delete Standard NO

DELETE_CSG Delete Framework NO

DELETE_JOB Delete Job NO

DELETE_MEXT Delete Metric Extension NO

DELETE_NAMED_CREDENTIAL Delete Named Credential NO

DELETE_ROLE Delete Role NO

DELETE_RULE Delete Rule NO

DELETE_RULE_SET Delete Rule Set NO

DELETE_TARGET Delete Target NO

DELETE_TEMPLATE Delete Monitoring Template NO

DELETE_UPDATE Delete Update NO

DELETE_USER Delete User NO

DETACH_MEXT Detach Metric Extension NO

DISABLE_CS_TARGET_ASSOC Disable Standard-Target Association NO

DISABLE_RULE Disable Rule NO

DISABLE_RULE_SET Disable Rule Set NO

EDIT_CS Edit Standard NO

EDIT_CSG Edit Framework NO

EDIT_JOB Edit Job NO

EDIT_RULE Edit Rule NO

EDIT_RULE_SET Edit Rule Set NO

EDIT_TEMPLATE Edit Monitoring Template NO

ENABLE_RULE Enable Rule NO

ENABLE_RULE_SET Enable Rule Set NO

REORDER_RULE Reorder Rule NO

REORDER_RULE_SET Reorder Rule Set NO

SUPPRESS_VIOLATION Suppress Violation NO

UPDATE_DB_PASSWORD Update Database Password NO

UPDATE_MEXT Update Metric Extension NO

UPDATE_NAMED_CREDENTIAL Modify Named Credential NO

UPDATE_PASSWORD Update Password NO

emcli update_audit_settings-audit_switch=“enable”-operations_to_enable=“db_start;delete_cs;delete_csg”

Page 15: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 16: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 17: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 18: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 19: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

We’re getting quite a few alerts from

OEM

Page 20: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 21: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 22: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 23: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 24: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Of course it will if you do it manually (WORK AT SCALE)

That’s going to take ages…

Page 25: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

How can I bulk update all my target properties at once?

EMCLI

How can I set preferred credentials across all my targets?

How can I bulk suppress compliance violations

How reset and DBSNMP password on the database and OMS

EMCLI

EMCLI

EMCLI

Page 26: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 27: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

def generate_password():l_sql = "select DBMS_RANDOM.string('x',10) PASSWD from dual " obj = list(sql=l_sql) return obj

#Set the OMS URL to connect toset_client_property('EMCLI_OMS_URL','XXXXXXXXX')#Accept all the certificatesset_client_property('EMCLI_TRUSTALL','true')

inp_targetname=sys.argv[0]inp_username=sys.argv[1]inp_oldpassword=sys.argv[2]

#Log in to the OMSlogin(username='sysman',password='XXXXXXXX')#Find all the targets that have Version property set to release 12l_passwd = generate_password()for passwd in l_passwd.out()['data']:

p_passwd = passwd['PASSWD']print "Password "+p_passwd

update_db_password(target_name=inp_targetname,user_name=inp_username,change_at_target="yes",old_password=inp_oldpassword,new_password=p_passwd,retype_new_password=p_passwd)

Page 28: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

http://www.redstk.com/what-can-i-do-with-jython-building-dynamic-scripts-oem-target-properties-part-1/

http://www.redstk.com/what-can-i-do-with-jython-building-dynamic-scripts-oem-target-properties-part-2/

http://www.redstk.com/saving-you-15-minutes-emcli-problem-clearing/

http://www.redstk.com/what-can-i-do-with-jython-emcli-jython-and-dbsnmp-passwords/

http://www.redstk.com/saving-you-15-minutes-12c-database-properties-extensions-and-emcli/

http://www.redstk.com/saving-you-15-minutes-emcli-compliance-violation-suppression-part-1/

http://www.redstk.com/saving-you-15-minutes-emcli-compliance-violation-suppression-part-2/

Page 29: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

http://www.redstk.com/saving-you-15-minutes-tx-row-lock-contention-and-corrective-actions-part-1

http://www.redstk.com/saving-you-15-minutes-tx-row-lock-contention-and-corrective-actions-part-2

http://courtneyllamas.com/automating-the-mundane-with-corrective-actions-and-oracle-enterprise-manager/

Page 30: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

LCMP Compliance:

Compliance Framework

Compliance Standards

Compliance Rules

OEM Repository:Documented MGMT$

Standard or Customised:Validation Every 24 Hours

Dashboards:Compliance scores by rules,

target, standard, framework…

BI Publisher:Compliance ReportViolation Reports

Management Reports

Configuration Extensions:

Operating SystemDatabase

Database Provisioning Automated Patching Schema Change Management

Page 31: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Monitor

Compare

Provision

emcli pdb_clone_management -cloneToOracleCloud

Administration Groups / Dynamic GroupsMoving In / Out of the Cloud with RMB

Configuration Search / Compare

Key Features (How To) Use Them

Page 32: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 33: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 34: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Key Features (How To) Use Them

Page 35: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Conclusions

1# Workout why you’re implementing it

2# Plan It, Learn About It, Configure It

3# Don’t just start rolling out the agents

4# Help it manage your ‘Enterprise’!!!!!

Page 36: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Get on Twitter….

@courtneyllamas@dbasushi@dbakevlar@oracle_em@harisrinivasan@petesharman@adeeshF@subh_here@pbedba

Page 37: UKOUG Tech 15 - Oracle Platinum Partner · UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise Manager 12c Philip Brown @pbedba

Any Questions?

Philip Brown

@pbedba

Red Stack Tech27 – 30 Railway StreetChelmsfordEssexUnited KingdomCM1 1QS