March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998.

Slides:



Advertisements
Similar presentations
Tuning: overview Rewrite SQL (Leccotech)Leccotech Create Index Redefine Main memory structures (SGA in Oracle) Change the Block Size Materialized Views,
Advertisements

13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
The Architecture of Oracle
IO Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Waits Covered in this Section  db file sequential read  db file scattered.
Buffer Cache Waits. #.2 Copyright 2006 Kyle Hailey Buffer Cache Waits Waits Disk I/O Buffer Busy Library Cache Enqueue SQL*Net Free Buffer Hot Blocks.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Performance And Tuning – Lecture 7 Copyright System Managers LLC 2007 all rights reserved.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Module 1: Database and Instance. Overview Defining a Database and an Instance Introduce Microsoft’s and Oracle’s Implementations of a Database and an.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Chapter 4 Physical Database Layouts Database Processing Chapter 4.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
IT The Relational DBMS Section 06. Relational Database Theory Physical Database Design.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Physical Database Design & Performance. Optimizing for Query Performance For DBs with high retrieval traffic as compared to maintenance traffic, optimizing.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
MySQL. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn The main subsystems in MySQL architecture The different storage.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Oracle Database 11g’s Result Cache Rob van Wijk 28 October 2010.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
Ingres Version 6.4 An Overview of the Architecture Presented by Quest Software.
Achieving Scalability, Performance and Availability on Linux with Oracle 9iR2-RAC Grant McAlister Senior Database Engineer Amazon.com Paper
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Copyright 2007, Information Builders. Slide 1 Machine Sizing and Scalability Mark Nesson, Vashti Ragoonath June 2008.
Query Optimization CMPE 226 Database Systems By, Arjun Gangisetty
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
What is Oracle ? Oracle is a relational database management system. It is a management system which uses the relational data model. In the relational data.
Oracle Database Architectural Components
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Table General Guidelines for Better System Performance
Table General Guidelines for Better System Performance
Oracle Memory Internals
Oracle Architectural Components
ISYS366, Oracle Disk Internals
Jean Joseph DBA\DEVELOPER
CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________
Database administration
Presentation transcript:

March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998

March 1998 © Dennis Adams Associates2 Topics to Cover The Oracle Architecture Tuning each “Building Block” General Conclusions

March 1998 © Dennis Adams Associates3 User Application The Oracle Building Blocks

March 1998 © Dennis Adams Associates4 select … from … where … order by … Network Connection SQL Parser Optimizer / Query Planner Query Processing and I/O Caches Operating System

March 1998 © Dennis Adams Associates5 The Oracle Building Blocks Network Layer SQL parser Optimiser and Query Planner Query Processing and I/O processes Caches The underlying Operating System

March 1998 © Dennis Adams Associates6 Oracle Networking Client/Server architecture means –the server serves, the client displays –NOT the same as traditional design Get data as little as possible –when you need it (minimise throughput) SQL*Net / ODBC interface –can tune no of listeners, buffering etc. Design with Client/Server in Mind

March 1998 © Dennis Adams Associates7 SQL Queries “80% of performance issues = bad SQL” –select ename from emp where enum=10 Inappropriate design ? –which column should be used in the join ? –column type coercian, join types (=, >=, =<) –cartesian products etc. –hints ( /* +ORDERED */) –indexes ! Test SQL, then Test again

March 1998 © Dennis Adams Associates8 Parsing and Optimising “How to get the data” The more tables the greater the complexity –read table “a”, lookup table “b” ? –read table “b”, lookup “a” ? –sort-merge both together ? –how is data distributed on table “a” / “b” ? Are there indexes ? –are they appropriate ? Don’t be fooled by “small scale” SQL tests

March 1998 © Dennis Adams Associates9 Query Processing and I/O Tables are stored in Segments –organised into Table Spaces, Extents Table contention –hot tables in the same table space ? Redo Logs –essential to preserve consistancy Rollback Segments –used to keep copies of data before updating Plan Sizes / Placement of Tablespaces etc

March 1998 © Dennis Adams Associates10 Caches and Memory DMF Cache (DB Blocks) –“Real Data” = the tables Redo Buffers –information to be written to redo logs Dictionary Cache –the “data about the data” Library (Program) Cache –the SQL and it’s parsed plan Configure Memory for Production Use

March 1998 © Dennis Adams Associates11 The Operating System How much memory does the OS have ? –How much is available for Oracle ? Are there “hot disks” ? –Which table spaces are on them ? Is the CPU (s) fully utilised ? –Of so, are they running the Oracle engine ? Use the Power of the Server - fully

March 1998 © Dennis Adams Associates12 Conclusions Tuning Oracle: Key Considerations –Networking –SQL design –Understanding the Optimiser –Query Processing and I/O configuration –Cache Sizing –The underlying Operating System

March 1998 © Dennis Adams Associates13 There’s more.. We have not mentioned –Locking and Blocking Locks... –How to extract the information. –What can (realistically) be changed Oracle Management –Oracle is a complex DBMS –Treat with care !

March 1998 © Dennis Adams Associates14 Questions … ?