6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.

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

Module 2: Database Architecture
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
1 Copyright © 2008, Oracle. All rights reserved. Database Architecture and ASM.
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Basic Storage Concepts and Settings
Harvard University Oracle Database Administration Session 5 Data Storage.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
14 Copyright © 2004, Oracle. All rights reserved. Automatic Storage Management.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Oracle Database Administration Database files Logical database structures.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
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.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
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.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
9 Storage Structure and Relationships. 9-2 Objectives Listing the different segment types and their uses Controlling the use of extents by segments Stating.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.
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.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
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.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
Managing Tablespaces and Data Files
G Copyright © 2006, Oracle. All rights reserved. Miscellaneous Topics.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Chap 5. Disk IO Distribution Chap 6. Index Architecture Written by Yong-soon Kwon Summerized By Sungchan IDS Lab
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
Physical Database Structure .
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
2 Copyright © 2006, Oracle. All rights reserved. RAC and Shared Storage.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
Oracle Database Architectural Components
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
Database structure and space Management
Oracle 10g Database Administrator: Implementation and Administration
Managing Database Storage Structures
Physical Database Structure .
ISYS366, Oracle Disk Internals
Presentation transcript:

6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures

Copyright © 2007, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Describe the storage of table row data in blocks Define the purpose of tablespaces and data files Create and manage tablespaces Obtain tablespace information Describe the main concepts and functionality of Automatic Storage Management (ASM)

Copyright © 2007, Oracle. All rights reserved Storage Structures Database Tablespace Segment Extent Oracle data block LogicalPhysical OS block OS file

Copyright © 2007, Oracle. All rights reserved How Table Data Is Stored Tablespace Table ATable B Segment Rows Columns Table Blocks Row piece Extent

Copyright © 2007, Oracle. All rights reserved Database Block: Contents Block header Free space Row data Growth

Copyright © 2007, Oracle. All rights reserved Tablespaces and Data Files The Oracle database stores data logically in tablespaces and physically in data files. Tablespaces: –Can belong to only one database –Consist of one or more data files –Are further divided into logical units of storage Data files: –Can belong to only one tablespace and one database –Are a repository for schema object data Database Tablespace Data files

Copyright © 2007, Oracle. All rights reserved Space Management in Tablespaces Locally managed tablespace: –Free extents are managed in the tablespace. –A bitmap is used to record free extents. –Each bit corresponds to a block or group of blocks. –The bit value indicates free or used extents. –Use of locally managed tablespaces is recommended. Dictionary-managed tablespace: –Free extents are managed by Oracle. –Appropriate tables are updated when extents are allocated or unallocated. –These tablespaces are supported only for backward compatibility.

Copyright © 2007, Oracle. All rights reserved Exploring the Storage Structure Click the links to view detailed information.

Copyright © 2007, Oracle. All rights reserved Creating a New Tablespace

Copyright © 2007, Oracle. All rights reserved Creating a New Tablespace (Notes Only Slide)

Copyright © 2007, Oracle. All rights reserved Storage for Locally Managed Tablespaces

Copyright © 2007, Oracle. All rights reserved Storage for Locally Managed Tablespaces Full Notes Page

Copyright © 2007, Oracle. All rights reserved Tablespaces in the Preconfigured Database UNDOTBS1 USERS EXAMPLE SYSTEM SYSAUX TEMP

Copyright © 2007, Oracle. All rights reserved Tablespaces in the Preconfigured Database Full Notes Page

Copyright © 2007, Oracle. All rights reserved Altering a Tablespace

Copyright © 2007, Oracle. All rights reserved Altering a Tablespace Full Notes Page

Copyright © 2007, Oracle. All rights reserved Actions with Tablespaces

Copyright © 2007, Oracle. All rights reserved Actions with Tablespaces Full Notes Page

Copyright © 2007, Oracle. All rights reserved Dropping Tablespaces

Copyright © 2007, Oracle. All rights reserved Viewing Tablespace Information

Copyright © 2007, Oracle. All rights reserved Gathering Storage Information

Copyright © 2007, Oracle. All rights reserved Viewing Tablespace Contents 12061_1_sel_ts_3

Copyright © 2007, Oracle. All rights reserved Oracle Managed Files (OMF) Specify file operations in terms of database objects rather than file names. ParameterDescription DB_CREATE_FILE_DEST Defines the location of the default file system directory for data files and temporary files DB_CREATE_ONLINE_LOG_DEST_n Defines the location for redo log files and control file creation DB_RECOVERY_FILE_DEST Default location for the flash recovery area Example: SQL> ALTER SYSTEM SET DB_CREATE_FILE_DEST = '/u01/oradata'; SQL> CREATE TABLESPACE tbs_1;

Copyright © 2007, Oracle. All rights reserved Enlarging the Database You can enlarge the database in the following ways: Creating a new tablespace Adding a data file to an existing tablespace Increasing the size of a data file Providing for the dynamic growth of a data file SYSTEM tablespace INVENTORY tablespace Database

Copyright © 2007, Oracle. All rights reserved Automatic Storage Management Is a portable and high-performance cluster file system Manages Oracle database files Spreads data across disks to balance load Mirrors data Solves storage-management challenges ASM File system Volume manager Application Database Operating system

Copyright © 2007, Oracle. All rights reserved ASM: Key Features and Benefits Stripes files but not logical volumes Provides online disk reconfiguration and dynamic rebalancing Allows for adjustable rebalancing speed Provides redundancy on a per-file basis Supports only Oracle database files Is cluster aware Is automatically installed

Copyright © 2007, Oracle. All rights reserved ASM: Concepts Database Tablespace Segment Extent Oracle block Data file Physical block ASM disk group ASM disk ASM file Allocation unit File-system file or raw device

Copyright © 2007, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Describe the storage of table row data in blocks Define the purpose of tablespaces and data files Create and manage tablespaces Obtain tablespace information Describe the main concepts and functionality of Automatic Storage Management (ASM)

Copyright © 2007, Oracle. All rights reserved Practice 6 Overview: Managing Database Storage Structures This practice covers the following topics: Creating tablespaces Gathering information about tablespaces

Copyright © 2007, Oracle. All rights reserved