3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.

Slides:



Advertisements
Similar presentations
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Advertisements

13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
MSc IT UFIE8K-10-M Data Management Prakash Chatterjee Room 3P16
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Physical Database Monitoring and Tuning the Operational System.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Database Design for DNN Developers Sebastian Leupold.
Chapters 17 & 18 Physical Database Design Methodology.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
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.
CSC271 Database Systems Lecture # 30.
IT The Relational DBMS Section 06. Relational Database Theory Physical Database Design.
Lecture 9 Methodology – Physical Database Design for Relational Databases.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
I Copyright © 2004, Oracle. All rights reserved. Introduction Copyright © 2004, Oracle. All rights reserved.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
What is a schema ? Schema is a collection of Database Objects. Schema Objects are logical structures created by users to contain, or reference, their data.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
Methodology – Physical Database Design for Relational Databases.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
SQL/Lesson 7/Slide 1 of 32 Implementing Indexes Objectives In this lesson, you will learn to: * Create a clustered index * Create a nonclustered index.
13 Copyright © Oracle Corporation, All rights reserved. Maintaining Data Integrity.
Session 1 Module 1: Introduction to Data Integrity
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Copyright ©2003 Dell Inc. All rights reserved. Scaling-Out with Oracle® Grid Computing on Dell™ Hardware J. Craig Lowery, Ph.D. Software Architect and.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
10 Copyright © 2004, Oracle..All rights reserved. PL/SQL.
21 Copyright © 2008, Oracle. All rights reserved. Enabling Usage Tracking.
8 Copyright © 2005, Oracle. All rights reserved. Gathering Statistics.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
SQL Basics Review Reviewing what we’ve learned so far…….
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
2 Copyright © 2005, Oracle. All rights reserved. Installing Oracle Software and Creating the Database.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
13 Copyright © 2004, Oracle. All rights reserved. Migrating SQL Statements.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
7 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
Oracle Database Architectural Components
9 Copyright © 2006, Oracle. All rights reserved. Summary Management.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
SQL Trace and TKPROF.
Database Performance Tuning and Query Optimization
Chapter 11 Database Performance Tuning and Query Optimization
Dynamic Sql Not so scary?
Presentation transcript:

3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance

3 - 2 Copyright © 2006, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to describe the basic steps involved in designing and developing for performance.

3 - 3 Copyright © 2006, Oracle. All rights reserved. Understanding Scalability Scalability is a system’s ability to process more workload, with a proportional increase in system resource use. Poor scalability leads to system resource exhaustion to the extent that additional throughput is impossible when the system’s workload is increased.

3 - 4 Copyright © 2006, Oracle. All rights reserved. Scalability with Application Design, Implementation, and Configuration Applications have a significant impact on scalability. Poor schema design can cause expensive SQL that does not scale. Poor transaction design can cause locking and serialization problems. Poor connection management can cause unsatisfactory response times and unreliable systems.

3 - 5 Copyright © 2006, Oracle. All rights reserved. Configuring the Appropriate System Architecture for Your Requirements Interactive applications (OLTP) Process-driven applications (OLAP)

3 - 6 Copyright © 2006, Oracle. All rights reserved. Proactive Tuning Methodology Simple design Data modeling Tables and indexes Using views Writing efficient SQL Cursor sharing Using bind variables SQL versus PL/SQL Dynamic SQL

3 - 7 Copyright © 2006, Oracle. All rights reserved. Simplicity in Application Design Simple tables Well-written SQL Indexing only as required Retrieving only required information

3 - 8 Copyright © 2006, Oracle. All rights reserved. Data Modeling Accurately represent business practices Focus on the most frequent and important business transactions Use modeling tools Normalize the data

3 - 9 Copyright © 2006, Oracle. All rights reserved. Table Design Compromise between flexibility and performance –Principally normalize –Selectively denormalize Use Oracle performance features –Default values –Check constraints –Materialized views –Clusters Focus on business-critical tables

Copyright © 2006, Oracle. All rights reserved. Index Design Index keys –Primary key –Unique key –Foreign keys Index data that is frequently queried Use SQL as a guide to index design

Copyright © 2006, Oracle. All rights reserved. Full Notes Page

Copyright © 2006, Oracle. All rights reserved. Using Views Simplifies application design Is transparent to the end user Can cause suboptimal execution plans

Copyright © 2006, Oracle. All rights reserved. SQL Execution Efficiency Good database connectivity Using cursors Minimizing parsing Using bind variables

Copyright © 2006, Oracle. All rights reserved. Importance of Sharing Cursors Reduces parsing Dynamically adjusts memory Improves memory usage

Copyright © 2006, Oracle. All rights reserved. Writing SQL to Share Cursors Create generic code using the following: –Stored procedures and packages –Database triggers –Any other library routines and procedures Write to format standards: –Case –White space –Comments –Object references –Bind variables

Copyright © 2006, Oracle. All rights reserved. Controlling Shared Cursors The CURSOR_SHARING initialization parameter can be set to: EXACT (default) SIMILAR (not recommended) FORCE

Copyright © 2006, Oracle. All rights reserved. Performance Checklist Set initialization parameters and storage options. Verify resource usage of SQL statements. Validate connections by middleware. Verify cursor sharing. Validate migration of all required objects. Verify validity and availability of optimizer statistics.

Copyright © 2006, Oracle. All rights reserved. Summary In this lesson, you should have learned the basic steps that are involved in designing and developing for performance.

Copyright © 2006, Oracle. All rights reserved. Practice Lesson 3 This practice covers understanding the use of shared cursors.

Copyright © 2006, Oracle. All rights reserved.