Chapter 20 Other Memory Management Topics

Slides:



Advertisements
Similar presentations
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
Advertisements

9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
1 Chapter 16 Latch and Mutex Contention. 2 Architecture Overview of Latches Protect Oracle’s SGA Prevent two processes from updating same area of SGA.
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)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
13 Copyright © 2005, Oracle. All rights reserved. Performance Management.
13 Copyright © 2007, Oracle. All rights reserved. Performance Management.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
1 - Oracle Server Architecture Overview
Oracle Architectural Components
Harvard University Oracle Database Administration Session 5 Data Storage.
10 Copyright © 2006, Oracle. All rights reserved. Automatic Shared Memory Management.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Basic Oracle Architecture
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
Oracle9i Performance Tuning Chapter 2 Tuning the Buffer Cache.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
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.
13 Copyright © 2006, Oracle. All rights reserved. Tuning PGA and Temporary Space.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
1 Chapter 10 Joins and Subqueries. 2 Joins & Subqueries Joins – Methods to combine data from multiple tables – Optimizer information can be limited based.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
1 Chapter 17 Shared Memory Contention. 2 Overview Specifically talking about SGA – Buffer Cache – Redo Log Buffer Contention in these areas of SGA – Can.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
1 Chapter 13 Parallel SQL. 2 Understanding Parallel SQL Enables a SQL statement to be: – Split into multiple threads – Each thread processed simultaneously.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
Chapter 4 Logical & Physical Database Design
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
1 Chapter 9 Tuning Table Access. 2 Overview Improve performance of access to single table Explain access methods – Full Table Scan – Index – Partition-level.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
8 Copyright © 2006, Oracle. All rights reserved. Tuning the Shared Pool.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Initialization Parameters
Sangam-AIOUG 2016 (11th ,12th Nov) Suvendu
Performance Management
OTN Yatra 2016 (23rd ,24th April) Suvendu
Oracle Architectural Components
Monitoring and Managing Memory
Overview: File system implementation (cont)
Oracle Memory Internals
Managing Memory.
Index Index.
Presentation transcript:

Chapter 20 Other Memory Management Topics

Overview Memory management in Oracle Result Cache Oracle 10G: ASMM (Dynamic SGA) Oracle 11G: AMM (Dynamic SGA & PGA) Result Cache Optimization of other memory areas Shared Pool Large Pool Redo Buffer

Optimizing Overall Memory AMM (Automatic Memory Management) Oracle 11G feature Let’s Oracle decide how to allocate between pools Includes between SGA components and PGA ASMM (Automatic Shared Memory Management) Oracle 10g feature Let’s Oracle decide how to allocate for SGA only PGA still separate entity managed on it’s own

IO Wait Times / Memory Optimization Memory optimization helps reduce IO Categories of Oracle IO include: Buffered datafile IO Temporary segment IO waits Direct path reads System IO See “Active Sessions Waiting” chart in OEM

Using Advisories For PGA In Oracle 11g In Oracle 10g Look at V$PGA_TARGET_ADVICE Includes elapsed times Compare directly with V$DB_CACHE_ADVICE In Oracle 10g Need to calculate elapsed times outside of V$PGA_TARGET_ADVICE Determine average time and block counts Use averages to convert byte counts Combine times with buffer cache advisory

AMM Enable by setting parameters Optionally set (minimum sizes for) MEMORY_MAX_TARGET MEMORY_TARGET Optionally set (minimum sizes for) SGA_TARGET PGA_AGGREGATE_TARGET Individual pool parameters, such as LARGE_POOL Can also configure in OEM Go to Advisor Central Then to Memory Advisors

AMM (cont.) Monitoring Memory Allocations Views show useful statistics Can monitor using several dynamic views V$MEMORY_DYNAMIC_COMPONENTS V$MEMORY_RESIZE_OPS V$MEMORY_TARGET_ADVICE Views show useful statistics Current memory allocations Minimum and maximum sizes Details on each resize operation Affect on performance for potential resize operations

AMM Issues & Considerations Set minimum sizes for memory components Helps avoid memory “thrashing” Helps avoid “memory starvation” Not all memory components are part of AMM Nondefault buffer pools AMM incompatible with “Linux HugePages” Cannot lock SGA when using AMM (LOCK_SGA)

Result Set Cache Entire result sets stored in shared memory Can help avoid Parse time Logical reads Physical reads Cache contention (e.g. latches) Effective only in certain scenarios Read only or nearly read only data Small result sets Needs to be used sparingly to avoid result cache latch contention Expensive queries that meet above criteria Can store PL/SQL Functions in cache in certain situations

Configuring the Result Cache Set with parameters RESULT_CACHE_MODE={OFF|MANUAL|FORCE} RESULE_CACHE_MAX_SIZE (size of cache) RESULT_CACHE_MAX_RESULT (maximum size of one result) Monitor with V$RESULT_CACHE_STATISTICS Monitor contention by looking for “latch free” waits Use with caution: RESULT_CACHE_MODE=FORCE The RESULT_CACHE table property

Other Memory Optimizations Sizing the Shared Pool Moderately sized pool generally sufficient See V$SHARED_POOL_ADVICE for help Using bind variables important for efficiency If not used, size increases usually not helpful Review setting of CURSOR_SHARING parameter Large Pool Sizing Optional SGA component Reduces shared pool fragmentation Used for shared server configuraton Used for parallel processes Redo Log Buffer is generally small and self sufficient Locking the SGA in memory helpful in certain scenarios