Effective Performance Tuning Oracle Applications



Similar documents
PERFORMANCE TUNING FOR PEOPLESOFT APPLICATIONS

Oracle Database 11g: SQL Tuning Workshop Release 2

Oracle Database 11g: SQL Tuning Workshop

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

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

PERFORMANCE TUNING ORACLE RAC ON LINUX

Toad for Oracle 8.6 SQL Tuning

Proactive database performance management

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

Performance Tuning and Optimizing SQL Databases 2016

Web Application s Performance Testing

SQL Server Performance Tuning and Optimization

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

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

MS SQL Performance (Tuning) Best Practices:

Virtuoso and Database Scalability

Holistic Performance Analysis of J2EE Applications

Fact Sheet In-Memory Analysis

Oracle DBA Course Contents

System Requirements Table of contents

Main Memory Data Warehouses

Minimum Hardware Configurations for EMC Documentum Archive Services for SAP Practical Sizing Guide

MID-TIER DEPLOYMENT KB

Configuring Apache Derby for Performance and Durability Olav Sandstå

Cost-Effective Business Intelligence with Red Hat and Open Source

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

Mark Bennett. Search and the Virtual Machine

Department of Technology Services UNIX SERVICE OFFERING

Optimizing Performance. Training Division New Delhi

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

Oracle Database 12c: Performance Management and Tuning NEW

Optimizing Linux Performance

Exadata Database Machine Administration Workshop NEW

Oracle Desktop Virtualization

Performance and Tuning Guide. SAP Sybase IQ 16.0

Oracle Database - Engineered for Innovation. Sedat Zencirci Teknoloji Satış Danışmanlığı Direktörü Türkiye ve Orta Asya

Scalability and Performance Report - Analyzer 2007

Apache Derby Performance. Olav Sandstå, Dyre Tjeldvoll, Knut Anders Hatlen Database Technology Group Sun Microsystems

Recommendations for Performance Benchmarking

James Serra Sr BI Architect

SUN ORACLE EXADATA STORAGE SERVER

An Oracle White Paper June High Performance Connectors for Load and Access of Data from Hadoop to Oracle Database

Oracle EXAM - 1Z Oracle Database 11g Release 2: SQL Tuning. Buy Full Product.

2009 Oracle Corporation 1

MCTS Guide to Microsoft Windows 7. Chapter 10 Performance Tuning

Oracle Exadata Database Machine for SAP Systems - Innovation Provided by SAP and Oracle for Joint Customers

Real Life Performance of In-Memory Database Systems for BI

Oracle Big Data SQL Technical Update

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

Tushar Joshi Turtle Networks Ltd

Enterprise Performance Tuning: Best Practices with SQL Server 2008 Analysis Services. By Ajay Goyal Consultant Scalability Experts, Inc.

Crystal Reports Server 2008

Exadata Database Machine

Top 10 Performance Tips for OBI-EE

TRACE PERFORMANCE TESTING APPROACH. Overview. Approach. Flow. Attributes

SAS Application Performance Monitoring for UNIX

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

1 How to Monitor Performance

Mind Q Systems Private Limited

Common Anti Patterns for Optimizing Big Data Oracle Databases

Course 55144B: SQL Server 2014 Performance Tuning and Optimization

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


Data Integrator Performance Optimization Guide

Databases Going Virtual? Identifying the Best Database Servers for Virtualization

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

Virtualization for Cloud Computing

Oracle Exadata: The World s Fastest Database Machine Exadata Database Machine Architecture

Contents Introduction... 5 Deployment Considerations... 9 Deployment Architectures... 11

Geospatial Server Performance Colin Bertram UK User Group Meeting 23-Sep-2014

Project Manager 1 Post == Experience years in Project Management in reputed company, Salary Rs.1,20,000/-

Redefining Backup for VMware Environment. Copyright 2009 EMC Corporation. All rights reserved.

Liferay Portal Performance. Benchmark Study of Liferay Portal Enterprise Edition

Solution: B. Telecom

Hardware and Software Requirements for Installing California.pro

Performance And Scalability In Oracle9i And SQL Server 2000

Scaling in a Hypervisor Environment

Virtualization and the U2 Databases

Oracle Database In-Memory The Next Big Thing

TUTORIAL WHITE PAPER. Application Performance Management. Investigating Oracle Wait Events With VERITAS Instance Watch

<Insert Picture Here> Move to Oracle Database with Oracle SQL Developer Migrations

Increasing Flash Throughput for Big Data Applications (Data Management Track)

The Evolution of Microsoft SQL Server: The right time for Violin flash Memory Arrays

Audit & Tune Deliverables

Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014

HP Client Automation Standard Fast Track guide

PTC System Monitor Solution Training

Load Testing Analysis Services Gerhard Brückl

"Charting the Course... MOC AC SQL Server 2014 Performance Tuning and Optimization. Course Summary

SQL diagnostic manager Management Pack for Microsoft System Center. Overview

EVERYTHING A DBA SHOULD KNOW

How To Run A Power5 On A Powerbook On A Mini Computer (Power5) On A Microsoft Powerbook (Power4) On An Ipa (Power3) On Your Computer Or Ipa On A Minium (Power2

How To Monitor Performance On Peoplesoft.Org

How To Use Exadata

BRecommended Software. Environments and Minimum System Requirements. Publication Date: July 31, TIBM Enterprise Marketing Management Products

Transcription:

Effective Performance Tuning Oracle Applications Target Company profile Invantive Why? General hints Case Pointers and Tools Target Introduction into performance tuning Oracle Applications. Interactive session: Feel free to ask questions. Presentation is just a guideline. Feel free to deviate. 1

Company Profile Invantive Invantive BV offers financial reporting, analysis and expertise to. We help our customers with: Better proces control. Cost reductions and margin improvements. Insight in their primary processes. Reduce risk image damage. General Services Datawarehousing: data integration and consolidation based upon uniform definitions, leading to efficiency and risk control. Regulatory reporting (IFRS, Basel I, Basel II, Sarbanes-Oxley, WTK, DRA, Dutch GAAP). Architecture: designs easy to implement and with a long life-time, even in changing environments. 2

Technical Services Invantive Care: administration and monitoring of complex administrative environment such as ERP, financials and CRM. Performance tuning: enabling existing environments to handle more transactions in the same time through analysis and changes. Products Invantive Estate: financial reporting and control solution for real estate projects. Invantive Melba: administration and monitoring for UNIX and Oracle platforms. Invantive Producer: CASE tool for generation of quality reporting solutions. 3

Core Technologies Java, XML, Oracle, Microsoft.Net Oracle, Teradata, Sybase/MS SQL Server UNIX/Linux, MS Windows Why tuning? Business More sales. Reduce duration order cycle. Costs More transactions on same hardware. More transactions with the same people. Employees Reduced frustrations. 4

General Recommendations Optimalisation must improve bottom-line. Establish clear targets in advance. Performance problems are always only located in the application. A well-designed Oracle application is never I/Obound but CPU-bound. General Recommendations Do you think 100 people can do it faster than your server? Congratulations! You have a candidate for tuning. 10% faster is nice, but start of with a 100-fold performance increase as goal. Suboptimalisation is no optimalisation at all. Ensure you have a representative test environment. 5

Always Draw Technology Stack Client Application Server Application Cache Database OS HW network OS HW Use Fact: a function never used never gives performance problems. Try to workaround the problem: Use different reports. Use a different way of data entry. Abandon use of function. 6

Candidates in Application Overall: use TOAD to determine heavy queries from SGA. Best sorting is total disk I/O and total concurrent gets (CPU). Concurrent requests: use fnd_concurrent_requests to determine which requests take longer than 5 minutes. Use tracing with tkprof: Forms: Trace On. Requests: Profile option %trace% or program definition. TOAD Gives you Insight 7

Metalink to Rescue Is the problem already solved? Example: shipment report (OEXOESHR) slow when given date range. Query: search for patches with OEXOESHR. Metalink to Rescue Result: 8

Oracle Optimizer (not GL optimizer) 25% of problematic queries give excellent results with the other optimizer: 10.7 en 11.0 reports: try /*+ all_rows */. 10.7 en 11.0 forms: try /*+ first_rows */. 11i: try /*+ rule */. Example, from 16 minuten to 15 seconds hint: select /*+ rule */ distinct wsh.delivery_id delivery_id from wsh_new_deliveries wsh, wsh_deliverables_v wd where 1=1 and wsh.delivery_id = wd.delivery_id and wsh.status_code = 'OP' and wsh.asn_date_sent is null and wd.released_status_name = 'Staged' Concurrent Managers Check setup: Reduce number of normal managers to at most twice the number of processors. Reduce number to 95-percentile of concurrent running requests. Every concurrent manager less saves 20 Mb. Tune all concurrent programs running longer than 5 minutes and a run-frequency of at least weekly. Finally and not earlier: make a diversification between long running request and the rest using concurrent managers. 9

SQL Tuning Check whether candidates can be assisted by an extra index. Check whether the correct index is used. Keep future growth in mind, an index on a date column might last longer. Try to reduce frequency of execution when reaching optimal level of query performance. A case The Wieber Customers (K rows) Shipping details (M rows) =32 min Deliveries (K rows) Filter: Name-range Start! 1% used for results Filter: Date-range 10

Change 1 Customers (K rows) Shipping details (M rows) =16 min Deliveries (K rows) Filter: Name-range Filter: Date-range Advantages: Doubled performance. Less sensitive for increased datavolume. Change 2 Still not within target of 5 minutes. Further analysis showed that multiple similar queries are used: Full list. Group by location. Group by customer. Solution: Fill temporary table with full list and use group by-s. Result: =6 sec 11

Database Causes solely 10% of performance problems. Keep statistics up-to-date including column histograms. Use capacity management and purging procedures (e.g. 10.7: so_exceptions, 11i: po_wf_debug) Operating System Causes 5% of performance problemen. Check OS Cache methods. See example in next section for analysis tools. 12

Hardware Causes 5% of performance problems. Memory, memory, memory: monitor memory usage with top and memtool, monitor pagingout using vmstat. CPU: monitor with top. Capacity management: discover trends with MRTG or sar. Network Causes 5% of performance problems. Monitor round trip times using ping and traceroute. Analyse #round-trips for one transaction. Capacity management (MRTG) Monitor using ethereal, lsof and trace. Example network monitoring of query select * from dual : 13

Use Ethereal to Analyse Activity Use Lsof to Determine File Numbers 14

Use Trace/strace/truss for Kernel Calls Read(15, / Write(15,: data by SQL*Net Lseek(7, ): ORA-01403 in oraus.msb Pointers Oracle Concepts manual Oracle Tuning manual Oracle Performance Tuning, ISBN 1-56592-048-1 Database Design, ISBN 0-07-Y66638-5 Java Platform Performance, ISBN 0-201-70969-4 Theorie en praktijk van besturingssystemen, ISBN 90-6233-198-X Linux TCP/IP Network Administration, ISBN 0-13-032220-2 15

Tools Tkprof: $ORACLE_HOME TOAD: www.toadsoft.com Top: http://www.groupsys.com/top/ Memtool (Solaris): http://playground.sun.com/pub/memtool/ Lsof: ftp://ftp.cerias.purdue.edu/pub/ tools/unix/sysutils/lsof/ Trace/truss/strace: OS vendor MRTG: www.mrtg.org Ethereal: www.ethereal.com (UNIX en Windows) Tcpdump: www.tcpdump.org Invantive Melba: guido.leenders@invantive.com 16