UKOUG Tech 15 - Oracle Platinum .UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise

download UKOUG Tech 15 - Oracle Platinum .UKOUG Tech 15 Common Mistakes When Implementing Oracle Enterprise

of 37

  • date post

    14-Jul-2018
  • Category

    Documents

  • view

    217
  • download

    0

Embed Size (px)

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

  • 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

  • Common Mistakes When Implementing 12c OEM

  • 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 (philip.brown@redstk.com) 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

  • Mistake #1 Success Criteria

    How are we getting on

    installing OEM?Ive nearly

    rolled out all the agents

    Great, when will it be

    complete?

    Not sure, soon hopefully, got it

    on the back burner

  • Mistake #1 Success Criteria

    1# Oracle Enterprise Manager is an ENTERPRISE application

    2# Its a critical part of your infrastructure

    3# Its designed to HELP you manage your estate

    4# Oracle Enterprise Manager isnt a glorified db console

    5# Why isnt success criteria defined?

    6# IT Manager shouldnt see this as just a job for a DBA

  • Mistake #2 Partial Configuration

    Were getting quite a few alerts

    from OEM

    Yeah, no worries because Ive got a

    email filter on them

    What about the critical alerts We still getting the

    old alerts through the scripts so its

    fine

  • Mistake #2 Partial Configuration

    1# Its way tooooooooooooooo easy to install OEM

    2# The implementation doesnt cover any configuration

    4# We create our own email spam

    3# Configuration is only done to resolve issues

  • Mistake #3 Feature Utilisation

    Have we deployed all the latest monitoring templates?

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

    go into each.

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

    its on the to do list but havent got around to it

    yet, soon

  • Mistake #3 Feature Utilisation

    1# Oracle Enterprise Manager enables you to.

  • Ok.lets calm down a bit.

  • 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

  • Key Features (How To) Use Them

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

  • 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

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

    Were getting quite a few alerts from

    OEM

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

  • Key Features (How To) Use Them

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

    Thats going to take ages

  • 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

  • Key Features (How To) Use Them

  • 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)

  • 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/

    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-d