? Oracle Deutschland



Similar documents
Oracle DBA Course Contents

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

Expert Oracle. Database Architecture. Techniques and Solutions. 10gr, and 11g Programming. Oracle Database 9/, Second Edition.

Oracle Database Security and Audit

Oracle Architecture, Concepts & Facilities

StreamServe Persuasion SP5 Oracle Database

Oracle Database 10g: New Features for Administrators

Oracle Cluster File System on Linux Version 2. Kurt Hackel Señor Software Developer Oracle Corporation

Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC

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

Part 5: More Data Structures for Relations

SAP HANA - Main Memory Technology: A Challenge for Development of Business Applications. Jürgen Primsch, SAP AG July 2011

Module 2: Database Architecture

Lessons Learned while Pushing the Limits of SecureFile LOBs. by Jacco H. Landlust. zondag 3 maart 13

Configuring Apache Derby for Performance and Durability Olav Sandstå

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Physical Data Organization

Program Agenda. Safe Harbor Statement. What are SecureFiles? Performance. Features DBFS. Internals. Wrap Up 11/22/2014

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Monitoreo de Bases de Datos

Performance Best Practices for Oracle Enterprise Service Bus and Advanced Queueing

1. This lesson introduces the Performance Tuning course objectives and agenda

SAP HANA In-Memory Database Sizing Guideline

news from Tom Bacon about Monday's lecture

6. Storage and File Structures

ArcSDE Configuration and Tuning Guide for Oracle. ArcGIS 8.3

Oracle server: An Oracle server includes an Oracle Instance and an Oracle database.

Physical DB design and tuning: outline

ORACLE DATABASE 11G: COMPLETE

<Insert Picture Here>

Oracle TDE Tablespace Encryption

Greenplum Database Best Practices

Oracle Database 12c: Performance Management and Tuning NEW

Recover Oracle Database upon losing all Control Files

David Dye. Extract, Transform, Load

In-Memory Performance for Big Data

Storage in Database Systems. CMPSCI 445 Fall 2010

Partitioning under the hood in MySQL 5.5

Storage and File Structure

Java DB Performance. Olav Sandstå Sun Microsystems, Trondheim, Norway Submission ID: 860

12. User-managed and RMAN-based backups.


Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

PeopleSoft DDL & DDL Management

Oracle Database 11g: Performance Tuning DBA Release 2

Technical Paper Yet Another Performance Profiling Method (Or YAPP-Method)

Oracle Database Links Part 2 - Distributed Transactions Written and presented by Joel Goodman October 15th 2009

Oracle Database 11g: SQL Tuning Workshop

RESEARCH ON SPATIAL DATABASE DESIGN AND TUNING BASED ON ORACLE AND ARCSDE

IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

How To Manage A Data Warehouse On A Database 2 For Linux And Unix

How to Migrate your Database to Oracle Exadata. Noam Cohen, Oracle DB Consultant, E&M Computing

Google File System. Web and scalability

OLTP Meets Bigdata, Challenges, Options, and Future Saibabu Devabhaktuni

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

11. Oracle Recovery Manager Overview and Configuration.

Module 15: Monitoring

Safe Harbor Statement

Storage Systems Autumn Chapter 6: Distributed Hash Tables and their Applications André Brinkmann

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

A Practical Guide to Backup and Recovery of IBM DB2 for Linux, UNIX and Windows in SAP Environments Part 1 Backup and Recovery Overview

ORACLE DATABASE ADMINISTRATION PROGRAM LEARNING OUTCOMES

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

A Deduplication-based Data Archiving System

ORACLE 11g RDBMS Features: Oracle Total Recall Oracle FLEXCUBE Enterprise Limits and Collateral Management Release 12.1 [December] [2014]

Drupal Performance Tuning

Configuring Apache Derby for Performance and Durability Olav Sandstå

Unicenter Database Management For Distributed RDBMS

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Oracle 11g DBA Training Course Content

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

An Esri White Paper February 2011 Best Practices for Storing the ArcGIS Data Reviewer Workspace in an Enterprise Geodatabase for Oracle

FAT32 vs. NTFS Jason Capriotti CS384, Section 1 Winter Dr. Barnicki January 28, 2000

Optimizing Your Database Performance the Easy Way

DB2 Database Layout and Configuration for SAP NetWeaver based Systems

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

An Oracle White Paper March Oracle Transparent Data Encryption for SAP

Oracle Database 11g: Administration Workshop II DBA Release 2

Virtuoso and Database Scalability

System Copy GT Manual 1.8 Last update: 2015/07/13 Basis Technologies

The Google File System

Oracle Rdb Performance Management Guide

BCA. Database Management System

LOGGING OR NOLOGGING THAT IS THE QUESTION

Oracle Database Auditing Performance Guidelines

Oracle 11g Database Administration

Understanding Disk Storage in Tivoli Storage Manager

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

Transcription:

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

Oracle Reorganisation

Why to reorganize Traditional Space Management New Automatic Space Mangement Locally Managed Tablespaces Using Parallel Processing

Why to Reorganise Free Up Disk Space 100,AB,.. 100,CD,.. 100,EF,.. 100,GH.. 100,IJ,..... Client Delete 100,AB,.. 100,CD,.. 100,EF,.. 100,GH,.. 100,IJ,.....? Number of Extents Space Fragmentation in Tablespace Archiving

Why to reorganize Traditional Space Management New Automatic Space Mangement Locally Managed Tablespaces Using Parallel Processing

Space Management Oracle: Insert/ Update Blocksize = 8192 Bytes Reserved for Updates Block-Header (~ 125 Byte) PCTFREE = 10% Insert up to PCTFREE ~ 7000 Bytes

Space Management Oracle: Delete Blocksize = 8192 Bytes Current Block Filling Level Block-Header (~ 125 Byte) PCTFREE = 10% ~ 4200 Bytes ~ 2800 Bytes PCTUSED = 40%

Archiving Procedure DB- Block DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 PCTFREE 10% PCTFREE 10% DELETE... PCTUSED 40% DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 and WERKS = 001 DB- Block PCTFREE 10% PCTFREE 10% DELETE... PCTUSED 40%

Influence on distribution DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 AND WERKS = 001

Why to reorganize Traditional Space Management New Automatic Space Mangement Locally Managed Tablespaces Using Parallel Processing

Automatic Space Management: Features Ease of Use => No PCTUSED, FREELISTS, FREELISTS Better space utilization => Freed space is reused immediatly Better concurrency handling => No contention on parallel processing Better performance => Faster seek operation for free space

Automatic Segment Space Management Extent #1 Extent #2 Extent #3 Extent #4 BMB L3 BMB L1 BMB L1 BMB L1 BMB L2 Segment Header BMB L2 BMB L1 BMB: Bit-Mapped Block

BMB: Internal Structure Freeness Status: nf1 1 nf2 1 nf3 0 nf4 11 First free datablock : 3 Bitmap block lock opcode 0 Locker xid: : 0x0000.000.00000000 Highwater:: 0x01000021 ext#: 0 blk#: 16 ext size: 16 #blocks in seg. hdr's freelists: 0 #blocks below: 13 mapblk 0x00000000 offset: 0 HWM Flag: HWM Set -------------------------------------------------------- DBA Ranges : -------------------------------------------------------- 0x01000011 Length: 16 Offset: 0 0:Metadata 1:Metadata 2:Metadata 3:75-100% free 4:75-100% free 5:75-100% free 6:75-100% free 7:75-100% free 8:75-100% free 9:75-100% free 10:75-100% free 11:0-25% free 12:25-50% free 13:75-100% free 14:75-100% free 15:75-100% free nf1 = block is 0-25% free nf2 = block is 25-50% free nf3 = block is 50-75% free nf4 = block is 75-100% free

Automatic Segment Space Management Extent BMB: Bit-Mapped Block BMB L1 BMB L1 BMB L1 Each BMB controls up to: => 16 blocks until the segment is 1Mb => 64 blocks until the segment is 32Mb => 256 blocks until the segment is 1Gb => 1024 blocks once segment is >1Gb

Automatic Segment Space Management Extent #1 Extent #2 Extent #3 Process 1 PID: 12345 BMB L3 BMB BMB Hash on PID BMB L2 BMB L2 Hash Hash BMB BMB Process 2 PID: 6789 BMB L1 BMB: Bit-Mapped Block

Influence on distribution DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 DELETE FROM EDIDC WHERE CREDAT < 01.01.2003 AND WERKS = 001

Space Management Oracle: Insert/ Update Blocksize = 8192 Bytes Reserved for Updates Block-Header (~ 125 Byte) PCTFREE = 10% Insert up to PCTFREE ~ 7000 Bytes

Influence on distribution Performance? or Space?

Summary Automatic Space Management Improved performance for parallel load Less administration Easy to reuse space Increased distribution on blocks

Why to reorganize Traditional Space Management New Automatic Space Mangement Locally Managed Tablespaces Using Parallel Processing

Locally Managed Tablespaces Dictionary Managed Insert, Update, Delete System Tablespace FET$, UET$ Locally Managed 010101 111000 000110 110000 System Tablespace

Internal Structure of Locally Managed TBS Uniform Size: All Extents have the same size 010101111 000001110 000110101 110000111... 0 = Extent is FREE 1 = Extent is USED

Internal Structure of Locally Managed TBS Autoallocate: 5 different extent sizes will be used 010101111... 000001110... 000110101... 110000111... 0 = Extent is FREE 1 = Extent is USED 1 MB 1 MB 1 MB 1 MB... 8 MB... 8 MB... 32 MB... 32 MB...... 64 MB 64 MB 1 MB 8 MB 1 MB 64 k 1 MB 8 MB 32 MB 64 MB

Advantages of Locally Managed Tablespaces No Initial or Next Extent Definition necessary No space fragmentation, forced by very different extent sizes (16K 2GB) Better usage of available space within the tablespace No Extent limitation Number of Extents has no impact on the system performance Better performance during insert/ delete operations and parallel load

Reorganisation Methods Export/ Import Create Table As Select (CTAS) Online-Index Reorganisation Online-Table Reorganisation (Oracle 9i only)

Why to reorganize Traditional Space Management New Automatic Space Mangement Locally Managed Tablespaces Using Parallel Processing

Parallel Query: FTS & Sorting Server Set 2 (Consumers) Server Set 1 (Producers) Table: Parallel Degree 2 100,ABCDEF,2345 100,GHRSFG,2346 Direct Read 100,JFDSSF,2347 100,KJZUDG,2348 Parallel Server Process #3 Parallel Server Process #1 (ROWID) 100,KUETSIT,2395 100,AIOURT,2350 100,AHJKGD,2365 100,FGDFGF,2385 100,OIUTAT,7345 Query Coordinator (Shadow Process) 100,IOUITAD,2645 100,TXYCVB,2545 100,POIUFS,1245 100,POFSFR,9865 Direct Read 100,IUTADP,3466 100,IIOPFAR,1235 Parallel Server Process #4 Parallel Server Process #2 (ROWID) 100,POTJAD,9870 100,LKGJFS,6839 100,POIUTA,1254 100,BMKDA,5555 100,FJKAER,6677 100,OÜAPDF,2298 100,OSDPDF,2408

Parallel Query: Create Index Index File REDO-Log Server Set 2 (Consumers) Direct Write/ Direct Read Server Set 1 (Producers) Table: Parallel Degree 2 Direct Read 100,ABCDEF,2345 100,GHRSFG,2346 100,JFDSSF,2347 100,KJZUDG,2348 Logging Parallel Server Process #3 Parallel Server Process #1 (ROWID) 100,KUETSIT,2395 100,AIOURT,2350 100,AHJKGD,2365 100,FGDFGF,2385 100,OIUTAT,7345 Query Coordinator (Shadow Process) 100,IOUITAD,2645 100,TXYCVB,2545 100,POIUFS,1245 100,POFSFR,9865 REDO-Log Logging Parallel Server Process #4 Parallel Server Process #2 Direct Read (ROWID) 100,IUTADP,3466 100,IIOPFAR,1235 100,POTJAD,9870 100,LKGJFS,6839 100,POIUTA,1254 100,BMKDA,5555 Index File Direct Write/ Direct Read 100,FJKAER,6677 100,OÜAPDF,2298 100,OSDPDF,2408