Using Database Diagnostic and Tuning Packs through Oracle Enterprise Manager 12c. Eric Siglin OCM, OCP, CTT+ Senior Oracle DBA



Similar documents
Customer evaluation guide Toad for Oracle v12 Database administration

Top 10 Oracle SQL Developer Tips and Tricks

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering

ORACLE DATABASE ADMINISTRATOR RESUME

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

Oracle Enterprise Manager 12c New Capabilities for the DBA. Charlie Garry, Director, Product Management Oracle Server Technologies

Oracle Database 12c: New Features for Administrators

Tuning poor performing SQL s Using Oracle 10g Enterprise Manager s Automatic SQL Tuning Advisor

Collecting Oracle AWR Reports for Database Infrastructure Evaluator Tool (DIET) by Hitachi Data Systems

Oracle Database 10g: New Features for Administrators

Oracle Database 12c: Performance Management and Tuning NEW

ORACLE DATABASE 12C: NEW FEATURES FOR ADMINISTRATORS GRADE CURRICULAR. Enterprise Manager Express home page versus Enterprise Manager Database Control

1. This lesson introduces the Performance Tuning course objectives and agenda

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

Real Application Testing. Fred Louis Oracle Enterprise Architect

Oracle Database 11g: Performance Tuning DBA Release 2

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Think Outside the Data Center: Monitoring Retail and Cloud Locations CON Oracle OpenWorld 2015

The Power of 11g Automatic SQL Tuning Julian Dontcheff, Nokia, OCM

Critical Database. Oracle Enterprise Manager Oracle Open World 2010 Presented dby Venkat Tekkalur. Prem Venkatasamy. Principal Technical Architect

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

How To Test For A Test On A Test Server

Proactive Performance Monitoring Using Metric Extensions and SPA

Performance Tuning with Oracle Enterprise Manager Session # S300610

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

Oracle Database 12c: Performance Management and Tuning NEW

ORACLE DATABASE 11G: COMPLETE

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Top Down Performance Management with OEM Grid Control Or How I learned to stop worrying and love OEM Grid Control John Darrah, DBAK

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

Oracle Database 11g: SQL Tuning Workshop

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop I Release 2. 5 Jours [35 Heures]

Oracle Database Cloud Services OGh DBA & Middleware Day

Oracle Enterprise Manager Cloud Control 12c

MySQL Administration and Management Essentials

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

ORACLE CORE DBA ONLINE TRAINING

Managing R12 EBS using OEM with the Application Management and Application Change Management Packs

Oracle Premier Support It s all about Customer Value

Oracle Database 12c: Administration Workshop NEW

AV-004: Administering and Programming with ORACLE

Risk-Free Administration for Expert Database Administrators

Applying traditional DBA skills to Oracle Exadata. Marc Fielding March 2013

Oracle Public Cloud. Peter Schmidt Principal Sales Consultant Oracle Deutschland BV & CO KG

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

ITG Software Engineering

ORACLE DBA 11G TRAINING

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

SQL Server Training Course Content

Oracle USF

An Oracle White Paper November SQL Plan Management in Oracle Database 11g

Oracle 11g Database Administration

Oracle DBA Course Contents

Introduction to Database as a Service

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos

Oracle Database 11g: New Features for Administrators

PeopleSoft DDL & DDL Management

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

Oracle Database 11g: Administration Workshop I

SQL Server Developer Training Program. Topics Covered

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

Data Integration and ETL with Oracle Warehouse Builder: Part 1

Instant-On Enterprise

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

Tagging, Encoding, and Encrypting with RMAN

OTM Performance OTM Users Conference Jim Mooney Vice President, Product Development August 11, 2015

Oracle Data Integration Solutions GoldenGate New Features Summary

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Unicenter Database Management For Distributed RDBMS

Oracle Database 11g: Administration Workshop I Release 2

Oracle: Database and Data Management Innovations with CERN Public Day

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

Oracle Database: SQL and PL/SQL Fundamentals NEW

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

Oracle Database 11g: Administration Workshop I Release 2

StreamServe Persuasion SP5 Oracle Database

My Oracle Support Portal

The Top 10 Things DBAs Should Know About Toad for IBM DB2

Copyright 2014 Oracle and/or its affiliates. All rights reserved.

The First Example of TimesTen with Oracle on Windows

OEM s SQL Monitoring Feature. Ken Gottry 5-May-2014

1 Changes in this release

Oracle Database 11g: SQL Tuning Workshop Release 2

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

Toad for Oracle tips & tricks

Oracle Database 12c Administration Workshop

<Insert Picture Here> Upgrading to 11g Database Best Practices and Less Known Features

Transcription:

Using Database Diagnostic and Tuning Packs through Oracle Enterprise Manager 12c Eric Siglin OCM, OCP, CTT+ Senior Oracle DBA

ERCOT Quick Facts ERCOT covers 75% of Texas land ERCOT handles 85% of Texas load (23 million consumers) via More than 40,500 miles of transmission lines and 550+ generation units (more than 74,000 MWs of capacity) Peak Demand in ERCOT was set on August 3, 2011 at 68,305 MWs Physical assets are owned by transmission providers and generators, including Municipal Utilities and Cooperatives Responsibilities The Texas Legislature restructured the Texas electric market in 1999 by unbundling the investor-owned utilities and creating retail customer choice in those areas, and assigned ERCOT four primary responsibilities: System reliability planning and operations Open access to transmission Retail switching process for customer choice Wholesale market settlement for electricity production and delivery. 9/28/14 2

Eric Siglin Senior Oracle DBA 28+ years of IT experience 20+ years of Oracle experience (DBA and Developer) 10 years of instructing Oracle University courses Experience in: Oracle Database versions 6 on up Oracle RAC and Data Guard Oracle GoldenGate, Streams and Advanced Replication Oracle Enterprise Manager 9/28/14 3

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 4

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 5

OEM User Access Create users through OEM UI Each user takes about 15 mouse clicks Time consuming for large number of users Use LDAP-authenticated accounts Auto-generated accounts ease administration LDAP groups matching EM roles ease authorization Create users through command line interface Generate your user create script Allows for batch processing of user creation Example of EMCLI: emcli create_user -name="sparke" -password="my14oem#1 -type="em_user -roles="ercot_dev_user -email=sparke@ercot.com -profile="mgmt_admin_user_profile" -desc="spark-e -expired="true" -department="354" -location="taylor" 9/28/14 6

User Access Requirements Diagnostic and Tuning Packs are a database feature EM provides a user-friendly interface Privileges are required by the database user accessing the feature Create a role for each pack Grant the Diagnostic Pack role to the Tuning Pack role Grant the appropriate role to the database user Example: CREATE ROLE diagnostic_pack_access_role; GRANT select any dictionary TO diagnostic_pack_access_role; GRANT oem_advisor TO diagnostic_pack_access_role; GRANT EXECUTE ON dbms_workload_repository TO diagnostic_pack_access_role; CREATE ROLE tuning_pack_access_role; GRANT diagnostic_pack_access_role TO tuning_pack_access_role; GRANT administer sql management object TO tuning_pack_access_role; GRANT tuning_pack_access_role TO sparke; 9/28/14 7

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 8

Narrow your scope Look at top SQL in latest ADDM report Identify candidate statements in Real-Time SQL Monitoring Use the performance tab of the database target Run user-defined ADDM report for time period of interest 9/28/14 9

ADDM Report Analyzes the AWR data for you! SQL ID Impact on the workload. 9/28/14 10

Real-Time SQL Monitoring See what s going on as it happens! Make note of the SQL ID. You ll want that later. 9/28/14 11

Real-Time SQL Monitoring Living, breathing explain plan! Great for justification report 9/28/14 12

Real-Time SQL Monitoring Live SQL execution statistics! Links to SQL tools 9/28/14 13

Identify Your Time Period of Interest We re about to gather some SQL. End of workload 9/28/14 14

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 15

Organize Statements in SQL Tuning Sets DB Object for SQL Analysis SQL Statement(s) Execution Context Execution Statistics Managed with DBMS_SQLTUNE from SQL command line or OEM. Portable Pack SQL Tuning Set into a staging table. Export staging table and import into another database. Unpack staging table in receiving database. Used as input to SQL Analysis tools 9/28/14 16

Create SQL Tuning Set 9/28/14 17

Name and Load SQL Tuning Set 9/28/14 18

Load SQL Tuning Set from AWR Snapshots 9/28/14 19

Filter SQL Statements 9/28/14 20

Submit OEM Job to Create STS 9/28/14 21

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 22

Tools to Analyze SQL SQL Tuning Advisor Each SQL statement analyzed individually Displays information about execution plans Reports recommendations and rationale SQL Access Advisor Analyzes statements with respect to workload Can recommend indexes, materialized views and partitioning Displays recommendations, rationale and potential impact 9/28/14 23

SQL Tuning Advisor Analysis shows performance improvement may be possible. Recommendations for changes to statement access path is not this tool s forte. Review recommendations to understand situation. 9/28/14 24

SQL Access Advisor Summary Summarizes the impact on the workload by the generated recommendations. Displays the number of recommendations based on analysis constraints. Displays the number of SQL statements analyzed based on filtering constraints. 9/28/14 25

SQL Access Advisor Recommendations Recommendations are ordered by their impact to the workload analyzed. Focus on the recommendation with the most impact. Drill down into the details to identify the statements affected by this recommendation. 9/28/14 26

SQL Access Advisor Recommended Actions Allows you to customize and harvest the implementation script. 9/28/14 27

SQL Access Advisor Recommended Actions Lists actions to take Indicates whether recommended action has already been implemented. Field to enter schema and/or tablespace name(s) for use when generating the implementation DDL. 9/28/14 28

Scrutinize Recommended Actions Apply your system expertise to the recommended actions. Does it make sense to partition all of the tables in the list? Use meaningful object names that fit with your standards. Does the partitioning method make sense? What is the column data value distribution? How many hash buckets? 9/28/14 29

Session Topics Set up User Access Determine Workload Gather SQL Statements Analyze SQL Bring It Together Questions 9/28/14 30

Put the Pieces Together Collaboration is needed for an effective solution. Technical experts confer. Data Architect Database Administrator Application Developer Review technical analysis. Determine best hypothesis. Deploy and test solution. Check to see if the execution plan is as expected. Test work load to see if performance improves. Monitor system for any side effects from the change. 9/28/14 31

Summary Utilize tools to assist you in analyzing SQL performance issues. Automatic Database Diagnostic Monitor (ADDM) Database SQL Tuning Advisor SQL Access Advisor Use SQL Tuning Advisor to help identify statements that need attention. Use SQL Access Advisor to help recommended changes to improve SQL access to the data Collaborate with colleagues to develop best solution. Deploy and test hypothesis. Did the change have the intended result? Has the performance improved? Are there any side effects from the change? 9/28/14 32

Resources Oracle Enterprise Manager product page on the Oracle Technology Network: Product overview http://otn.oracle.com/oem Demonstrations (Screenwatches): http://www.oracle.com/technetwork/oem/em12c-screenwatches-512013.html Product documentation: http://docs.oracle.com Community discussion forums and blogs Links to other learning opportunities like live webcast events: http://www.oracle.com/technetwork/oem/grid-control/webcasts-index-090211.html Oracle by Example http://otn.oracle.com/obe Using SQL Tuning Advisor through SQL Developer 3.0: https://apex.oracle.com/pls/apex/f?p=44785:24:0::no:24:p24_content_id,p24_prev_page:5591,29https://apex.oracle.com/pls/apex/f?p=44785:24:0 ::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5591,29 My Oracle Support (MOS) document Release Schedule of Current Enterprise Manager Releases and Patch Sets (10g, 11g, 12c) (Doc ID 793512.1) 9/28/14 33

Questions 9/28/14 34