Locally Managed Tablespaces in Oracle8i Raghav Vinjamuri

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

Rollback Segments Nilendu Misra (MAR99)
Module 2: Database Architecture
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle Architecture. Instances and Databases (1/2)
School of Computing and Management Sciences © Sheffield Hallam University The slowest task in any record retrieval is reading from disk (It can be 500.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Primer on Structure& Storage Analysis Primer on Structure & Storage Analysis This presentation is supposed to give a simple and brief overview for storage.
Basic Storage Concepts and Settings
12 Copyright © Oracle Corporation, All rights reserved. Managing Indexes.
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Harvard University Oracle Database Administration Session 5 Data Storage.
Backup and Recovery Part 1.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Chapter 4 Physical Database Layouts Database Processing Chapter 4.
Oracle Database Administration Database files Logical database structures.
IT Database Administration Section 03. Tablespaces and the DBA  Important for DBAs – logical units of database storage Made up of physical operating-system.
9/11/2015ISYS366 - Week051 ISYS366 – Week 5-6 Database Tuning - User and Rollback Data Spaces, Recovery, Backup.
Database Administration TableSpace & Data File Management
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 9 Index Management.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
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.
Oracle9i Performance Tuning Chapter 2 Tuning the Buffer Cache.
9 Storage Structure and Relationships. 9-2 Objectives Listing the different segment types and their uses Controlling the use of extents by segments Stating.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 7 Basic Table Management.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Oracle 10g Database Administrator: Implementation and Administration Chapter 7 Basic Table Management.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
14 Copyright © 2006, Oracle. All rights reserved. Tuning Block Space Usage.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Week 4 Lecture 2 Advanced Table Management. Learning Objectives  Create tables with large object (LOB) columns and tables that are index-organized 
Database Storage Structures
Harvard University Oracle Database Administration Session 6 Object Storage.
IT Database Administration SECTION 02. CREATING DATABASES Creating a Database: Overview 1. Plan the physical design and storage structures 2. Back.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Managing Tablespaces and Data Files
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
IT Database Administration Section 07. Space Management Managing Space: An Introduction  Organizing database storage is a major responsibility.
G Copyright © 2006, Oracle. All rights reserved. Miscellaneous Topics.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
1Z0-235 Oracle Oracle 11i Applications DBA: Fundamentals I Thousands of IT Professionals before you have already passed their 1Z0-235 certification exams.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Physical Database Structure .
IT Database Administration Section 05. Rollback Segments: An Introduction  What are they?  Space within a database used to store “before” images.
1Z0-023 Oracle Architecture and Administration Thousands of IT Professionals before you have already passed their 1Z0-023 certification exams using the.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
Database structure and space Management
Database Tuning - User and Rollback Data Spaces, Recovery, Backup
Storage Structure and Relationships
Oracle 10g Database Administrator: Implementation and Administration
Database structure and space Management
Storage Structure and Relationships
Managing Tablespaces and Data Files
ISYS366, Oracle Disk Internals
Database administration
Presentation transcript:

Locally Managed Tablespaces in Oracle8i Raghav Vinjamuri

2 Questions Extents – –Size of Individual Extent in a Segment Matters/Does Not Matter? – –Number of Extents Matters/Does Not Matter?

3 Questions ( AND Answers) Extents – –Size of Individual Extent in a Segment Matters /Does Not Matter? – –if small, can lead to numerous extents. – –Number of Extents Matters /does not matter? – –Due to overheads of dictionary maintenance, May not be for full table scan performance.

4 Questions ( AND Answers) Extent Management – –Extents must therefore be Fixed Size - Appropriately Large, Fixed in Number How to implement/manage Fixed Size Extents in an Oracle database?

5 Overview Extent Management – –Dictionary Managed Tablespaces - “DMT” – –Locally Managed Tablespaces - “LMT” Features/“Bugs”/“Usage Quirks” of LMTs in Oracle8 i Rel Benefits of LMTs over DMTs Summary & References Q&A

6 Extent Management How to implement Fixed Size Extents in an Oracle database? – –Pre-Oracle8 – –Oracle8 – –Oracle8 i

7 Extent Management Pre-Oracle8 – –DEFAULT STORAGE INITIAL and NEXT are set equal, and PCTINCREASE=0 Caveats – –Extent Sizes Rounded Up. Nearest Multiple of 5. MAYBE more (up to 4 additional blocks) if there are fewer than 5 blocks remaining in the unallocated portion. – –Coalescing of Free Extents by SMON. – –Extent Trimming After Parallel Operations.

8 Extent Management Oracle8 – –DEFAULT STORAGE INITIAL and NEXT are set equal, and PCTINCREASE=0 – –MINIMUM EXTENT integer the minimum size of an extent in a tablespace. controls free space fragmentation in tablespaces – –ensures every used/free extent size in a tablespace is at least as large as, and is a multiple of integer – –eliminates unwarranted extent size rounding/trimming

9 Extent Management D ictionary M anaged T ablespaces “DMT” – –Free/Used Extent information of tablespaces tracked via Data Dictionary Tables (FET$ and UET$) differentiates from L ocally M anaged T ablespaces in Oracle8 i

10 Locally Managed Tablespaces New in Oracle8 i EXTENT MANAGEMENT LOCAL clause of CREATE TABLESPACE statement – –EXTENT MANAGEMENT DICTIONARY still is Default. Allows Fixed Extent Size(s) – –AUTOALLOCATE or “System Determined” Sizes – –UNIFORM Size

11 Locally Managed Tablespaces Create Tablespace TESTLMT datafile ‘lmt01.dbf’ size 1000M reuse EXTENT MANAGEMENT LOCAL AUTOALLOCATE; Create Tablespace TESTLMT datafile ‘lmt01.dbf’ size 1000M reuse EXTENT MANAGEMENT LOCAL UNIFORM Size 10M;

12 Locally Managed Tablespaces AUTOALLOCATE – –is default – –can specify initial extent and Oracle determines the size of the rest, with a minimum of 64k UNIFORM – –default is 1MB

13 Locally Managed Tablespaces Summary Notes for DBA’s 1. LMTs and DMTs can co-exist in same DB. 2. EXTENT MANAGEMENT DICTIONARY is default. 3. Currently, a locally managed SYSTEM tablespace ( ?? For ROLLBACK SEGMENT usage ) cannot be created ( True in ) 4. EXTENT MANAGEMENT LOCAL CREATE TABLESPACE statement - for permanent tablespaces   CREATE TEMPORARY TABLESPACE statement - for temporary tablespaces

14 Locally Managed Tablespaces Summary Notes for DBA’s … 2   CREATE TEMPORARY TABLESPACE statement - for temporary tablespaces CREATE TEMPORARY TABLESPACE TEMP TEMPFILE 'temp.dbf' SIZE 256M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K; 5. When creating an LMT, AUTOALLOCATE is default. 6. Temporary LMT’s can only use UNIFORM SIZE, and not AUTOALLOCATE.

15 Locally Managed Tablespaces Summary Notes for DBA’s … 3 7. Parameters   TEMPORARY,   MINIMUM EXTENT, or   DEFAULT storage_clause,   NEXT,   PCTINCREASE,   MINEXTENTS,   MAXEXTENTS are not valid for locally managed tablespaces. Could get an error or be silently ignored!!

16 Locally Managed Tablespaces Summary Notes for DBA’s … 4 8. DBMS_SPACE_ADMIN package provides Defect Diagnosis and Repair Functionality for LMT Migration of DMT to LMT or vice-versa 9. LMTs can be altered for many of the same reasons as a dictionary-managed tablespace. However, altering storage parameters is not an option and coalescing free extents is unnecessary an LMT cannot be altered to a locally managed temporary tablespace.

17 Locally Managed Tablespaces Summary Notes for DBA’s … To find out which tablespaces are LMTs SELECTtablespace_name, extent_management FROM dba_tablespaces WHERE extent_management = 'LOCAL';

18 These slides (and, a white paper!) will be posted on the NOCOUG web site, at

19 Questions ?

20 Good Luck!