Managing Tablespaces and Data Files

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)
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
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.
Harvard University Oracle Database Administration Session 9 Managing the Environment.
Oracle Architectural Components
Harvard University Oracle Database Administration Session 5 Data Storage.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
INTRODUCTION TO ORACLE
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
CHAPTER 5 Managing Control Files, Online Redo Logs, and Archiving.
Oracle Database Administration Database files Logical database structures.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
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
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.
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.
7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.
Chapter 8Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 8 Complete Recovery with Recovery Manager.
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.
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.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
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
Locally Managed Tablespaces in Oracle8i Raghav Vinjamuri
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.
G Copyright © 2006, Oracle. All rights reserved. Miscellaneous Topics.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
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.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
Table spaces.
Initialization Parameters
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 Security OER- Unit 1-Authentication
Database structure and space Management
Managing Database Storage Structures
Physical Database Structure .
Introduction To Oracle 10g
Managing Indexes.
Maintaining the Control File
Storage Structure and Relationships
ISYS366, Oracle Disk Internals
Database administration
Presentation transcript:

Managing Tablespaces and Data Files Schedule: Timing Topic <xx> minutes Lecture <xx> minutes Practice <xx> minutes Total

Database Structure Logical Physical Database Tablespace Data file Segment Physical Extent Oracle block O/S Block

SYSTEM and Non-SYSTEM Tablespaces SYSTEM Tablespace contains: Data dictionary information SYSTEM rollback segment Non-SYSTEM Tablespace contains: Rollback segments Temporary segments Application data Application indexes

Creating Tablespaces Example CREATE TABLESPACE app_data DATAFILE ‘/DISK4/app01.dbf’ SIZE 100M, ‘/DISK5/app02.dbf’ SIZE 100M MINIMUM EXTENT 500K DEFAULT STORAGE (INITIAL 500K NEXT 500K MAXEXTENTS 500 PCTINCREASE 0);

Storage Parameters The following parameters influence the segment storage allocation: INITIAL NEXT MAXEXTENTS MINEXTENTS PCTINCREASE

Temporary Tablespace Used for sort operations Cannot contain any permanent objects CREATE TABLESPACE sort DATAFILE ‘/DISK2/sort01.dbf’ SIZE 50M MINIMUM EXTENT 1M DEFAULT STORAGE (INITIAL 2M NEXT 2M MAXEXTENTS 500 PCTINCREASE 0) TEMPORARY;

Adding Data Files to a Tablespace Example ALTER TABLESPACE app_data ADD DATAFILE ‘/DISK5/app03.dbf’ SIZE 200M; Tablespace APP_DATA app03.dbf 2M app01.dbf 1M app02.dbf 1M

Enabling Automatic Extension of Data Files Example ALTER TABLESPACE app_data ADD DATAFILE ‘/DISK6/app04.dbf’ SIZE 200M AUTOEXTEND ON NEXT 10M MAXSIZE 500M; Tablespace APP_ DATA app04.dbf 2M app01.dbf 1M app02.dbf 1M app03.dbf 2M

Changing the Size of Data Files Manually Example ALTER DATABASE DATAFILE ‘/DISK5/app02.dbf’ RESIZE 200M; Tablespace APP_DATA app01.dbf 1M app02.dbf 1M 1M

OFFLINE Status The tablespace that is offline is not available for data access. The SYSTEM tablespace and any tablespace with active rollback segments cannot be taken offline. Example ALTER TABLESPACE app_data OFFLINE;

Moving Data Files: ALTER DATABASE The database must be mounted. The target data file must exist. Example ALTER DATABASE RENAME FILE ‘/DISK1/system01.dbf’ TO ‘/DISK2/system01.dbf’;

The READ-ONLY Tablespace Status Example ALTER TABLESPACE app_data READ ONLY; The tablespace APP_DATA is only available for read operations.

Making Tablespace Read-Only The tablespace must be online. No active transactions are allowed. The tablespace must not contain active rollback segments. The tablespace must not currently be involved in an online backup.

Dropping Tablespaces The following statement removes the APP_DATA tablespace and all its contents. Example DROP TABLESPACE app_data INCLUDING CONTENTS;

Obtaining Tablespace Information DBA_TABLESPACES TABLESPACE_NAME NEXT_EXTENT MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS

Obtaining Data File Information DBA_DATA_FILES FILE_NAME TABLESPACE_NAME BYTES AUTOEXTENSIBLE MAXBYTES INCREMENT_BY

Guidelines Use multiple tablespaces. Specify storage parameters for tablespaces. Assign tablespace quotas to users. Lesson Aim <Enter lesson aim here.>

Summary Understanding the logical database structure Administering tablespaces