4Legged Stool for Good Database Performance for Oracle EBusiness

Embed Size (px)

Citation preview

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    1/29

    www.hotsos.com Slide 1Copyright 19992008 by Hotsos Enterprises, Ltd.

    4-Legged Stoolof Good Database Performancefor Oracle E-Business

    Larry Klein ([email protected])

    Hotsos Enterprises, Ltd.

    Friday August 15, 2008

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    2/29

    www.hotsos.com Slide 2Copyright 19992008 by Hotsos Enterprises, Ltd.

    Hotsos Enterprises, Ltd.Larry Klein

    Mainframe Performance and Diagnostics Specialist, IBM and Candle17 yrs

    Senior Director, Oracle Consulting and Development

    Co-Architect, Oracles own Global Database consolidation project

    Lead Architect, several Oracle customer global implementations

    Mgr and Consultant, scores of custom and packaged apps projects

    10 yrs

    VP of Product Strategy, Hotsos Enterprises

    Former Consulting VP, performance and architecture consultants

    Consultant, performance and capacity projects

    Inventor, Hotsos HAWCS analysis product for Oracle E-Business

    4 yrs

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    3/29

    www.hotsos.com Slide 3Copyright 19992008 by Hotsos Enterprises, Ltd.

    Software SolutionsHotsos Profiler

    Laredo

    HAWCS

    Education

    Oracle performancecurriculum

    Public and private events

    Who is Hotsos?Company Overview

    Thought leadershipOptimizing Oracle

    Performance

    www.hotsos.comLibrary

    Method R

    Consulting Services

    Rapid performanceassessment

    On-site consulting

    Remote analysis

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    4/29

    www.hotsos.com Slide 4Copyright 19992008 by Hotsos Enterprises, Ltd.

    And Hotsos is Most Known for

    Oracle performance

    Technical content, collegial style No Marketing

    World class speakers

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    5/29

    www.hotsos.com Slide 5Copyright 19992008 by Hotsos Enterprises, Ltd.

    Agenda

    Background

    The 4-Legged Stool Summary

    Questions

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    6/29

    www.hotsos.com Slide 6Copyright 19992008 by Hotsos Enterprises, Ltd.

    Background

    The Span of Oracle E-Business Application Architecture

    Middle Tier Database Tier

    LAN

    Apache

    Self Serviceforms/engine

    Professionalforms/engine

    Database

    BatchLAN

    WAN

    End User

    Interface Self Service

    Professional(browser+plugin)

    Theres a lot of Technology here

    We are some pretty busy DBAs

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    7/29

    www.hotsos.com Slide 7Copyright 19992008 by Hotsos Enterprises, Ltd.

    BackgroundThe Challenge to the DBA

    Oracle Database

    Oracle E-Business

    Oracle RAC

    Apps on RAC

    Youre a great database DBA

    Theres extra stuff here

    And lots of stuff here

    And even more stuff here

    And your boss says,

    You can handle it, since it all has Oracle on the box.

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    8/29

    www.hotsos.com Slide 8Copyright 19992008 by Hotsos Enterprises, Ltd.

    BackgroundThe Challenge to the DBA

    You could be the worlds best database DBA

    Without knowing some most important extra stuff

    Performance could be really bad

    Youll be miserable

    Lets talk about some of the extra stuff

    Providing good performance is about more than just being agood technologist

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    9/29

    www.hotsos.com Slide 9Copyright 19992008 by Hotsos Enterprises, Ltd.

    The 4-Legged Stool

    1. Operating Support

    2. Configuration

    3. Application Efficiency

    4. Process

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    10/29

    www.hotsos.com Slide 10Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 1 Operating Support

    Gathering Statistics Pinning

    Purging

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    11/29

    www.hotsos.com Slide 11Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 1 Operating SupportGathering Statistics

    Dbms_stats unsupported for E-Business

    Doesnt know about fnd_histogram_cols Defines certain table/column histogram requirements

    Must run some form of fnd_stats

    FNDGSCST (Concurrent Job to Gather Schema Stats)

    Newer options to run based on staleness, great

    In my experience, 10% sample level inadequate

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    12/29

    www.hotsos.com Slide 12Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 1 Operating SupportPinning frequently used objects

    Many customers have shared_pool problems ORA-04031 or similar errors, killer latching

    $FND_TOP/sql/ADXGNPIN.sql pins too much

    Certain SYS owned list, too little

    execute sys.dbms_shared_pool.keep for Packages, triggers, sequences V$db_object_cache.loads or executions >= &threshold

    Let pinned sum(v$db_object_cache.sharable_mem) =

    5% of shared_pool

    (This will give you a couple of hundred objects pinned)

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    13/29

    www.hotsos.com Slide 13Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 1 Operating SupportPurge Tables

    FNDCPPUR Concurrent Request purge

    FNDWFPR Workflow Purge

    FNDSCPRG Sign-on Audit Purge

    I once had a customer

    $$$B business

    $US500M plant crawled to a halt

    truncate table bom.bom_explosion_temp;

    monitor/reorg temp, interface-type tables

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    14/29

    www.hotsos.com Slide 14Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 2 - ConfigurationSoftware Levels

    The Apps are tested with certain release combinations

    Thou shalt use only certified release combinations

    The Apps, Database, and stack are maintained

    Dont fall too far behind with maintenance

    Dont be bleeding edge eitherBut any change should be carefully tested

    Speaking of change, whats the compromise?

    Constant

    Never

    Q1 and Q3 functional; Q2 and Q4 - technical

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    15/29

    www.hotsos.com Slide 15Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 2 - ConfigurationDatabase

    The init.ora has certain mandatory settings for CBO stability

    No room for creativity hereRef Metalink note

    216205.1 for Release 11i

    396009.1 for Release 12

    Redo logs

    Often, theres a volume of redo

    1GB redo logs, dont be shy

    Dont let the Apps log-switch to death

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    16/29

    www.hotsos.com Slide 16Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 2 - ConfigurationApplication

    Be aware that decisions aboutHow many APPL_TOPs to have whereHow many languages to supportWill impact patching times and maintenance windows

    Need to keep it simple?

    Negotiate with the business on number of languagesKeep Conc Mgrs on middle tier?

    Use toolsOracles ownPatching assistantsAPPL_TOP OS synchs

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    17/29

    www.hotsos.com Slide 17Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 2 - ConfigurationArchitecture

    Is your single instance ok can you Keep It Simple?

    Is your business ok with maintenance downtime?

    Does the business really know what its requirements areTo RAC or not to RAC?

    Does your infrastructure meet business requirements forContinuity?Scalability?Disaster Recovery?

    Do you need MAA for E-Bus?

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    18/29

    www.hotsos.com Slide 18Copyright 19992008 by Hotsos Enterprises, Ltd.

    Issue

    Trace

    Analyze

    1. The task is its own problem

    2. The task is a victim of some culpritcausing a bottleneck

    Leg 3 Application EfficiencyThe Case of a Slow Transaction

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    19/29

    www.hotsos.com Slide 19Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 3 Application EfficiencyAll the Usual Transactional Suspects

    Perform all the normal application SQL tuning tasks

    Logical reads

    Physical reads

    Logical/physical approx 1

    Likely full table scans

    Missing index on some flexfield? Custom table? Fixable just with the new index, no code change?

    Too much parsing

    Literals not binds

    Single row processingUse array processing

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    20/29

    www.hotsos.com Slide 20Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 3 Application EfficiencyBut dont lose Macro sight of the Forest for the Trees

    I once had a customer with Slow online response time

    Single node install

    2 dual-core CPUs on the server

    2 dozenish online users

    Gazillion alerts and other batch jobs and reports

    40 Standard Concurrent Managers

    Hyper-batch

    I once had a customer with The Whole EBS System is Slow

    Every day, ad-hoc reporting used 80% of server resources Hyper-non-APPS reporting workload (Cognos)

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    21/29

    www.hotsos.com Slide 21Copyright 19992008 by Hotsos Enterprises, Ltd.

    The Whole EBS System is Slow

    Logical Reads by Day

    0

    2000000000

    4000000000

    6000000000

    8000000000

    10000000000

    12000000000

    14000000000

    16000000000

    Sun Mon Tues Wed Thurs Fri Sat Sun Mon Tues

    Day of Week

    Logica

    lReads

    non-APPS

    APPS

    Every day, ad-hoc reporting used 80% of server resourcesHyper-non-APPS reporting workload (Cognos)

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    22/29

    www.hotsos.com Slide 22Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 3 Application EfficiencyHow do you Deal with All the Possibilities?

    Through a process Workload Analysis and Management

    Measure all work, durations, costs, login times

    What ran when for how much?

    Slice and dice the data summaries, details

    Look for expected work, unexpected work, outliers

    Log, research issues

    Rogue, expensive SQL jobsToo much ad-Hoc

    Batch with bad input parameters

    Too much batch during onlines

    Research, trace, respond, adjust

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    23/29

    www.hotsos.com Slide 23Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 4 ProcessIts Easy to Stay Heads-down with the Technology

    Business Technology

    But then get caught in

    constant React mode

    You need a way to

    Close the Loop

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    24/29

    www.hotsos.com Slide 24Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 4 ProcessIt all Begins with Issue Management

    I once visited a very large project to help with performanceproblems

    fulltime team of 3 performance engineers

    took 3 days to compile an issues list from flaming emails

    dont let this happen to you

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    25/29

    www.hotsos.com Slide 25Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 4 ProcessIssue Management

    Capture

    Validate

    Categorize

    Prioritize

    Assign

    Analyze

    Track

    Close

    Requirements/ Service Levels

    Root Cause Analysis - Dont throw money at aproblem until you know what the problem is

    Once you can Measure, you can Manage

    But Now Were talking at a Process, not Technical, level

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    26/29

    www.hotsos.com Slide 26Copyright 19992008 by Hotsos Enterprises, Ltd.

    Leg 4 ProcessWith Issue Management in Place

    You have the data to suggest

    Change management needs to get better

    Release management needs to get better

    Training needs to get better

    Reporting/communication improve

    Reaction becomes proaction

    Before you know it, youve implemented the core of ITIL

    Without an expensive, prolonged, formal ITIL implementation

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    27/29

    www.hotsos.com Slide 27Copyright 19992008 by Hotsos Enterprises, Ltd.

    Summary the 4-Legged Stool ofGood E-Business Database Performance

    Operating Support Configuration

    Application Efficiency and WAM

    Process

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    28/29

    www.hotsos.com Slide 28Copyright 19992008 by Hotsos Enterprises, Ltd.

    Questions???

  • 8/8/2019 4Legged Stool for Good Database Performance for Oracle EBusiness

    29/29

    www.hotsos.com Slide 29Copyright 19992008 by Hotsos Enterprises, Ltd.

    Thank You!