DB Tuning Ch 14. Parallel Processing Ch 15. Performance of DML Ch 16. Analytic Function Jaeseok Myung Intelligent Database Systems Lab School of Computer.

Slides:



Advertisements
Similar presentations
Why is that LOV in the screen not returning me desired value?
Advertisements

Tuning a Very Large Data Warehouse Pichai Bala. About Me Working in the IT industry for the past 17 years Working in Oracle since Working in Data.
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
new database engine component fully integrated into SQL Server 2014 optimized for OLTP workloads accessing memory resident data achive improvements.
<Insert Picture Here>
BACS 485—Database Management Advanced SQL Overview Advanced DDL, DML, and DCL Commands.
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.
Loading & organising data. Objectives Loading data using direct-load insert Loading data into oracle tables using SQL*Loader conventional and direct paths.
Oracle Architecture. Instances and Databases (1/2)
Introduction To SQL Lynnwood Brown President System Managers LLC Copyright System Managers LLC 2003 all rights reserved.
Basic Storage Concepts and Settings
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
9/11/2015ISYS366 - Week051 ISYS366 – Week 5-6 Database Tuning - User and Rollback Data Spaces, Recovery, Backup.
DBMS Transactions and Rollback Recovery Helia / Martti Laiho.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
Physical Database Design & Performance. Optimizing for Query Performance For DBs with high retrieval traffic as compared to maintenance traffic, optimizing.
March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998.
Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
9 Storage Structure and Relationships. 9-2 Objectives Listing the different segment types and their uses Controlling the use of extents by segments Stating.
1 Chapter 14 DML Tuning. 2 DML Performance Fundamentals DML Performance is affected by: – Efficiency of WHERE clause – Amount of index maintenance – Referential.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
1 Chapter 17 Shared Memory Contention. 2 Overview Specifically talking about SGA – Buffer Cache – Redo Log Buffer Contention in these areas of SGA – Can.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Week 3 Lecture 2 Basic Storage Concepts and Settings.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
1 Chapter 13 Parallel SQL. 2 Understanding Parallel SQL Enables a SQL statement to be: – Split into multiple threads – Each thread processed simultaneously.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  Basic SQL syntax  Data retrieve  Data query  Data conditions  Arithmetic operations on data  Data transactions.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
Chapter 13Introduction to Oracle9i: SQL1 Chapter 13 User Creation and Management.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
Oracle 11g: SQL Chapter 7 User Creation and Management.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
DB Tuning : Chapter 10. Optimizer Center for E-Business Technology Seoul National University Seoul, Korea 이상근 Intelligent Database Systems Lab School of.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
1 11g NEW FEATURES ByVIJAY. 2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Oracle Database Architectural Components
1 PVSS Oracle scalability Target = changes per second (tested with 160k) changes per client 5 nodes RAC NAS 3040, each with one.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Dept. of Computer & Information Sciences
Tim Hall Oracle ACE Director
An introduction to Wait Statistics
Data, Space and Transaction Processing
Table spaces.
How To Pass Oracle 1z0-060 Exam In First Attempt?
Database structure and space Management
Antonio Abalos Castillo
Database Security.
Database Tuning - User and Rollback Data Spaces, Recovery, Backup
Oracle 10g Database Administrator: Implementation and Administration
Database Security.
Interacting with the Oracle Server
Building a Database on S3
Accessing Your MySQL Database from the Web with PHP (Ch 11)
Four Rules For Columnstore Query Performance
Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
Contents Preface I Introduction Lesson Objectives I-2
Performance And Scalability In Oracle9i And SQL Server 2000
Updating Databases With Open SQL
Database administration
Updating Databases With Open SQL
Presentation transcript:

DB Tuning Ch 14. Parallel Processing Ch 15. Performance of DML Ch 16. Analytic Function Jaeseok Myung Intelligent Database Systems Lab School of Computer Science & Engineering Seoul National University, Seoul, Korea Center for E-Business Technology Seoul National University Seoul, Korea

Parallel Processing Goal Architecture Utilization of System Resource Reduction of Response Time Multi-Processes Response Time = CPU Time + Wait Time Architecture Query Coordinator Syntactic Analyzing Assign small jobs to slaves Generate final result Slave Process Do works Send results

How to PP Parameters in Oracle Two ways of using PP functionality Parallel_min_server Determine initial minimum, Default : 0 Parallel_max_server Determine initial maximum, Default : 5, Max : 255 Two ways of using PP functionality Insert a hint into a query SELECT /*+ PARALLEL(A, 2) */ user, sum(amount) FROM sales_history GROUP BY user; Alter the degree of table ALTER TABLE sales_history PARALLEL 2;

Execution Plans of PP

Execution Plans of PP Parallel_from_serial, Parallel_to_serial, Parallel_to_parallel Parallel_combined_with_parent, Parallel_combined_with_child

DB Tuning Ch 14. Parallel Processing Ch 15. Performance of DML Ch 16. Analytic Function Jaeseok Myung Intelligent Database Systems Lab School of Computer Science & Engineering Seoul National University, Seoul, Korea Center for E-Business Technology Seoul National University Seoul, Korea

Issues on DML Processing Excessive Requests for Resources Rollback Segment Redo Log Disk IO Excessive Indices Overhead for index management A Misguided Execution Plan We can put ‘where clause’ into the DML

Insert (1) Conventional Insert INSERT INTO TAB1 VALUES (COL1, COL2); Index, Disk IO Tunings can be applied A special ‘insert’ including ‘select’ has more options INSERT INTO TAB1 SELECT COL1, COL2 FROM TAB2 WHERE COL3 > 100; Direct Loading Parallel Direct Loading Nologging

Direct Loading INSERT INTO TAB1 ~; INSERT INTO /*+ APPEND */ TAB1 ~;

Insert (2) Parallel Direct Loading Nologging Direct Loading + Parallel Functionality ALTER SESSION ENABLE PARALLEL DML; INSERT /*+ PARALLEL (A, 4) */ INTO TAB1 Nologging Only be allowed with Direct Loading or Parallel Direct Loading ALTER TABLE TAB1 NOLOGGING; We may need backup

Delete & Update (1) Resources Need more rollback segment than insert operation More RedoLog, More Disk IO

Delete & Update (2) Checkpoint Parallel Hint Alternatives Index Counts Execution Plan – Where Clause Parallel Hint DELETE /*+ PARALLEL (A, 4) */ ~; UPDATE /*+ PARALLEL (A, 4) */ ~; Alternatives Use ‘Insert’ instead of ‘Delete’ if we have too much data Less RedoLog, Less Rollback Segment

DB Tuning Ch 14. Parallel Processing Ch 15. Performance of DML Ch 16. Analytic Function Jaeseok Myung Intelligent Database Systems Lab School of Computer Science & Engineering Seoul National University, Seoul, Korea Center for E-Business Technology Seoul National University Seoul, Korea

Analytic Function Keep SQL queries to be simple Use less GROUP BY SELECT deptno, name, sal, COUNT(sal) OVER (PARTITION BY deptno ORDER BY sal) FROM employee; AVG, COUNT, MIN, MAX, … Tune indices carefully

Conclusion How much helpful? – It’s not a critical section Ch 14. Parallel Processing Ch 15. Performance of DML Ch 16. Analytic Function But, Interesting Thank you