Why is my Oracle10g Database SLOWER than my Oracle9i Database? Dan Hotka Author/Speaker/Oracle Expert

Similar documents
Dan Hotka Author/Instructor Oracle Ace Director.

Dan Hotka Author/Instructor Oracle Ace Director.

Oracle and Toad Course Descriptions Instructor: Dan Hotka

Course Contents of ORACLE 9i

Toad as a SQL Tuning Tool. With Dan Hotka - Oracle ACE Director

Donald K. Burleson Jonathan Lewis Mike Hordila John Weeg Daniel Liu Lisa Hernandez

Using Oracle STATSPACK to assist with Application Performance Tuning

Data Organization and Processing I

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002

Oralogic Education Systems

IT100: Oracle Administration

Oracle Database 12c Performance Management and Tuning

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Oracle Rebuild All Unusable Indexes In Schema

Optimizing Database I/O

Optimize Your Databases Using Foglight for Oracle s Performance Investigator

Boost ERP/CRM Performance by Reorganizing Your Oracle Database: A Proven Reorganization Strategy Donald Bakels

Introduction. Assessment Test. Chapter 1 Introduction to Performance Tuning 1. Chapter 2 Sources of Tuning Information 33

CX Recorder. User Guide. Version 1.0 February 8, Copyright 2010 SENSR LLC. All Rights Reserved. R V1.0

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

Oracle Tuning Pack. Table Of Contents. 1 Introduction. 2 Installation and Configuration. 3 Documentation and Help. 4 Oracle SQL Analyze

Oracle Database 12c: Performance Management and Tuning

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

Gather Schema Statistics Oracle 10g Examples

Toad Data Point - Professional Edition. The Toad Data Point Professional edition includes the following new features and enhancements.

Automation Platform for Smart Execution of Oracle projects. Copyright 2016 Tech Mahindra. All rights reserved.

1-2 Copyright Ó Oracle Corporation, All rights reserved.

Toad for Oracle Suite 2017 Functional Matrix

When should an index be used?

About Space Manager with LiveReorg

Seminar: Presenter: Oracle Database Objects Internals. Oren Nakdimon.

BODS10 SAP Data Services: Platform and Transforms

DISCLAIMER 2 PURPOSE 3

SQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability

VERSION. Version Date Description. Estimate size of B-tree Indexes ! " # $$% & ' ( )*(!+ $ &-+ / ! 5 '9

Optimal Physical Database Design for Oracle8i

Oracle FLEXCUBE Private Banking May 2011

SensView User Guide. Version 1.0 February 8, Copyright 2010 SENSR LLC. All Rights Reserved. R V1.0

Oracle Database 11g: Self-Managing Database - The Next Generation

Oh! I see a problem. cost = blevel + ceil(selectivity * leaf_blocks) + ceil(selectivity * clustering_factor)

Aellius LynX Office Lookup Enhancements

Oracle Database 10g The Self-Managing Database

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

Oracle Architectural Components

Memory Management and Memory Structures

Change Default Temporary Tablespace Usage Oracle 10g

RAID in Practice, Overview of Indexing

About One Identity Quick Connect for Base Systems 2.4.0

04 Storage management 15/07/17 12:34 AM. Storage management

Dr. Stephan Bühne Senior Principal Technical Consultant. SAP Solution Center Walldorf

Interpreting Explain Plan Output. John Mullins

Rampant TechPress. Oracle DBA made simple Oracle database administration techniques. Mike Ault

Oracle 1Z Oracle Database 11g: Administration I. Download Full Version :

Oracle 9i Application Development and Tuning

Oracle Hyperion Profitability and Cost Management

einfach. gut. beraten. How to reorganize and why? DOAG Conference + Exhibition , Nuremberg Klaus Reimers

Migrating Performance Data to NetApp OnCommand Unified Manager 7.2

Oracle Database Server 12c Pros and Cons

About Toad for Oracle 2017 Editions 2. Product release notes 4. Installation 5

Trouble-free Upgrade to Oracle Database 12c with Real Application Testing

Ghost Data & Spectral Data - When is Encrypted Data Not Encrypted? And when is your data in places you didn t expect

Experiences of Global Temporary Tables in Oracle 8.1

Oracle Database 12c. The Best Oracle Database 12c Tuning Features for Developers and DBAs. Presented by: Alex Zaballa, Oracle DBA

Oracle Database Performance Tuning, Benchmarks & Replication

IBM Proventia Management SiteProtector. Scalability Guidelines Version 2.0, Service Pack 7.0

CHAPTER. Oracle Database 11g Architecture Options

Jyotheswar Kuricheti

Molecular Devices High Content Screening Computer Specifications

Donald K. Burleson Dave Ensor Christopher Foot Lisa Hernandez Mike Hordila Jonathan Lewis Dave Moore Arup Nanda John Weeg

Oracle Database 11g: Performance Tuning DBA Release 2

Oracle Database 10g : Administration Workshop II (Release 2) Course 36 Contact Hours

Oracle Standard Management Pack

Oracle.ActualTests.1Z0-023.v by.Ramon.151q

MDCStore High Content Data Management Solution Database Schema

SmartScan. Barcode Translator for QuickBooks USER S MANUAL

Relational Database Index Design and the Optimizers

1 Dulcian, Inc., 2001 All rights reserved. Oracle9i Data Warehouse Review. Agenda

Toad Data Point - Professional Edition. The Toad Data Point Professional edition includes the following new features and enhancements.

One Identity Manager 8.0. Administration Guide for Connecting Unix-Based Target Systems

ABSOFT Corporation Software License Agreement. Specifically for IMSL FORTRAN 5.0 BUNDLED WITH FORTRAN COMPILERS FROM ABSOFT FOR WINDOWS OR OS X

Learning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.

Oracle Database Competency Center

Session: Oracle RAC vs DB2 LUW purescale. Udo Brede Quest Software. 22 nd November :30 Platform: DB2 LUW

Implementation of Database Systems David Konopnicki Taub 715 Spring Sources

MySQL Architecture and Components Guide

Course Description. Audience. Prerequisites. At Course Completion. : Course 40074A : Microsoft SQL Server 2014 for Oracle DBAs

Re-platforming the E-Business Suite Database

Executive Brief June 2014

CONFIGURING SQL SERVER FOR PERFORMANCE LIKE A MICROSOFT CERTIFIED MASTER

Oracle Database 10g: New Features for Administrators Release 2

Oracle Database 11g: Performance Tuning DBA Release 2


Question No : 1 Which three statements are true regarding persistent lightweight jobs? (Choose three.)

ORACLE 8 OBJECT ORIENTED TECHNOLOGY ORACLE SOFTWARE STRUCTURES SERVER SIDE BACKGROUND PROCESSES DATABASE SERVER AND DATABASE INSTANCE

Oracle: From Client Server to the Grid and beyond

Managing Performance Through Versioning of Statistics

Advanced indexing methods Usage and Abusage. Riyaj Shamsudeen Ora!nternals

DB2 Performance A Primer. Bill Arledge Principal Consultant CA Technologies Sept 14 th, 2011

Oracle 1Z0-052 Exam Questions and Answers (PDF) Oracle 1Z0-052 Exam Questions 1Z0-052 BrainDumps

DBMS Performance Tuning

Transcription:

Why is my Oracle10g Database SLOWER than my Oracle9i Database? Dan Hotka Author/Speaker/Oracle Expert

www.danhotka.com, LLC (c) www.danhotka.com LLC. Any reproduction or copying of this manual without the express written consent of www.danhotka.com LLC is expressly prohibited. Limitation on Warranty. THERE ARE NO WARRANTIES, EXPRESS OR IMPLIED, WITH RESPECT THERETO, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PURCHASER SHALL BE SOLELY RESPONSIBLE FOR THE SELECTION, USE, EFFICIENCY AND SUITABILITY OF USE OF INFORMATION CONTAINED HEREIN TO ANY PARTICULAR APPLICATION OR PROBLEM. WWW.DANHOTKA.COM LLC SHALL HAVE NO LIABILITY THEREFOR. Limitation of Liability. IN NO EVENT SHALL WWW.DANHOTKA.COM LLC BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RELATINGTO LOSS OF DATA, AND ANY INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS, ARISING OUT OF OR IN ANY WAY RELATED TO YOUR USE OF THE INFORMATION CONTAINED IN THIS MANUAL. IN THE EVENT THAT THE FORGOING IS HELD UNINFORCABLE THE PARTIES AGREE THAT WWW.DANHOTKA.COM LLC'S LIABILITY TO YOU HEREUNDER, IF ANY, SHALL IN NO EVENT EXCEED THE FEE PAID BY THE INJURED PARTY FOR THE MANUAL TO WWW.DANHOTKA.COM. LLC. Dan Hotka Author/Instructor/Oracle Expert CEO DHotka@Earthlink.net 515 279 3361 Last Updated: 4/2006

Dan is a Training Consultant Dan Hotka Oracle Authored Expert 28 Years in IT 24 years working with Oracle 10 books hundreds of articles www.danhotka.com Flat Fee Training 1 Course Fee Price for up to 15 Attendees! Price includes my portable computer lab! Hands-on Workshops Oracle Discoverer/Oracle Analytics Oracle Tuning Tips and Techniques TOAD and SQL Developer Courses Intro to Oracle, Intro to PL/SQL, Advanced PL/SQL Intro to Unix, Unix Shell Scripting, Oracle/Unix Shell Scripting Register for my quarterly Newsletter

New Book ISBN: 0-07-148474-4 www.amazon.com

Agenda Index Monitoring Introduced in Oracle9i Things I ve Heard Index Clustering Factor Relationship between index and table data blocks Oracle10g New Tablespace Features Automatic Space Management Case Study

Indexes

Indexes Indexes: Fast path to rows Insures uniqueness Oracle can use them when processing an Order By NOT always the fastest method Not used with any Oracle function Coding style definitely affects Index usage

B*Tree Index Structure Branch 77 --> 110 79 --> 120 DBA=100 Branch DBA=110 Branch DBA=120 756 --> 130 778 --> 410 787 --> 410 793 --> 500 Leaf DBA=130 Leaf DBA=410 Leaf DBA=440 Leaf DBA=500 7369 --> ROWID 7499 --> ROWID 7521 --> ROWID 7566 --> ROWID 7654 --> ROWID 7698 --> ROWID 7782 --> ROWID 7788 --> ROWID 7839 --> ROWID 7844 --> ROWID 7876 --> ROWID 7900 --> ROWID 7902 --> ROWID 7934 --> ROWID

B*Tree Index Split Branch 77 --> 110 79 --> 120 DBA=100 Branch DBA=110 Branch DBA=120 756 --> 130 769 --> 410 778 --> 600 787 --> 410 793 --> 500 DBA=130 Leaf DBA=410 Leaf DBA=440 Leaf 7654 --> ROWID 7698 --> ROWID 7839 --> ROWID 7844 --> ROWID 7876 --> ROWID 7900 --> ROWID 7902 --> ROWID 7934 --> ROWID Leaf 7700 --> ROWID 7782 --> ROWID 7788 --> ROWID DBA=600

B*Tree Index Reorganize Indexes Fills leaf blocks to PCTFREE Performance of fast full scans and range scans increases

Index Monitoring Oracle9+ can monitor Index Usage SQL> alter index <index name> MONITORING USAGE SQL> alter index <index name> NOMONITORING USAGE

Index Monitoring

Index Monitoring Ask me for this script: DHOTKA@EARTHLINK.NET

Things I ve Heard Things I ve Heard SQL with Histograms not working correctly SQL with Different Explain Plans for no apparent reason Try COMPATIBLE setting Set to 9.2.0.0.0 ALTER SESSION SET COMPATIBLE = 9.2.0.0.0 INIT.ora sessing

Index Clustering Factor The relationship of how many data blocks each leaf block points to Collected by CBO Lower the clustering factor more the data is in order by indexed column Design indexes/data order around most-used queries/most important queries

Index Clustering Factor Branch 77 --> 110 79 --> 120 DBA=100 Branch DBA=110 Branch DBA=120 756 --> 130 778 --> 410 787 --> 410 793 --> 500 Leaf DBA=130 Leaf DBA=410 Leaf DBA=440 Leaf DBA=500 7369 --> ROWID 7499 --> ROWID 7521 --> ROWID 7566 --> ROWID 7654 --> ROWID 7698 --> ROWID 7782 --> ROWID 7788 --> ROWID 7839 --> ROWID 7844 --> ROWID 7876 --> ROWID 7900 --> ROWID 7902 --> ROWID 7934 --> ROWID Next Examples with Permission from Jonathan Lewis

Index Clustering Factor

Index Clustering Factor

Index Clustering Factor

Index Clustering Factor

Index Clustering Factor

Index Clustering Factor

Index Clustering Factor

Index_Info.sql

Index Info Ask me for this script: DHOTKA@EARTHLINK.NET

Index Clustering Factor

Automatic Space Storage Management Replaces Free lists and free list groups Ignores PCTUSED Uses a bitmap in the segment header to track available space Holds less extent pointers (chains more quickly)

Automatic Space Storage Management Only available with Locally-Managed TS Oracle9v2+ AUTO uses Automatic Space Storage Mngt Manual uses freelists (existing technology) CREATE TABLESPACE my_tablespace DATAFILE '/oracle/data/myts01.dbf' SIZE 500M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

Automatic Space Storage Management Different Segment Header Info No changes in Cache Layer, Map Header Extent Table holds these limits: 2K 151 Extents (down from 121 ) 8K 307 Extents (down from 496) Etc Low/High Water Marks Low HWM all blocks below are formatted High HWM all blocks above are unformatted Between: Oracle checks block status bitmap flag

Automatic Space Storage Management Bitmap Blocks Stored in separate blocks as part of the segment header Tracks PCTFREE and formatted/unformatted blocks Tracks total free space in the block (not just what is available for inserts)

Automatic Space Storage Management 1 nibble (bit) per data block in the segment 0 = unformatted 1 = Full (met PCTFREE) 2 = 0 25% free 3 = 25 50% free 4 = 50 75% free 5 = 75 100% free Updated as blocks cross thresholds

Automatic Space Storage Management How it works: Blocks in a Segment Extent Low HWM Inserts in round-robin order High HWM Unformatted BB=1 BB=1 BB=1 BB=1 BB=3 BB=2 BB=2 BB=2 BB=2 BB=2 BB=0 BB=0 BB=0

Automatic Space Storage Management What it is good for: Apps with lots of concurrent inserts RAC (intended use) Other 10g features What it is NOT good for: Space not well used Space can be come lost Needs DBA Attention/monitoring FIX_SEGMENT_STATUS Redo generation is high Can give indexes a high clustering factor!

Index_Info.sql

Case Study Large ERP Application 4 CPU IBM P Series 12GB Memory SGA set at 3GB Shared Pool 300MB AIX 5.2 64bit OS Major performance problems when migrating their ERP from 9.2.0.5 to 10.2.0.2 JD Edwards One World No changes/upgrades just rehosting

Case Study Large ERP Application Metalink & 2 Consultants of little help Weeks worth of stats pack reports I/O and explain plans the same Histograms changed No one could tell me anything

Case Study Solution Upped the memory Added 12DB Memory SGA to 10GB Shared Pool to 1.8GB Adding 4 more CPUs solved the problem It appears our machine could not handle the same I/O as it did with Oracle9i Oracle finally said after the problem was solved - that the 10g kernal code had grown enough that our 4 CPU system could not handle it

What have we learned? Index Monitoring Introduced in Oracle9i Index Clustering Factor Relationship between index and table data blocks Things I ve Heard Oracle10g New Tablespace Features Automatic Space Management Case Study ERP Application Lets do the book draw!!!