Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Semestr2 / 1 - Oracle / Oracle selected docs / Database concepts.pdf
Скачиваний:
29
Добавлен:
12.05.2015
Размер:
6.96 Mб
Скачать

10

Schema Objects

This chapter discusses the different types of database objects contained in a user’s schema. It includes:

Introduction to Schema Objects

Tables

Views

Materialized Views

Dimensions

The Sequence Generator

Synonyms

Indexes

Index-Organized Tables

Application Domain Indexes

Clusters

Hash Clusters

Schema Objects 10-1

Introduction to Schema Objects

Introduction to Schema Objects

A schema is a collection of logical structures of data, or schema objects. A schema is owned by a database user and has the same name as that user. Each user owns a single schema. Schema objects can be created and manipulated with SQL and include the following types of objects:

Clusters

Database links

Database triggers

Dimensions

External procedure libraries

Indexes and index types

Java classes, Java resources, and Java sources

Materialized views and materialized view logs

Object tables, object types, and object views

Operators

Sequences

Stored functions, procedures, and packages

Synonyms

Tables and index-organized tables

Views

Other types of objects are also stored in the database and can be created and manipulated with SQL but are not contained in a schema:

Contexts

Directories

Profiles

Roles

Tablespaces

Users

Rollback segments

10-2 Oracle9i Database Concepts

Introduction to Schema Objects

Schema objects are logical data storage structures. Schema objects do not have a one-to-one correspondence to physical files on disk that store their information. However, Oracle stores a schema object logically within a tablespace of the database. The data of each object is physically contained in one or more of the tablespace’s datafiles. For some objects, such as tables, indexes, and clusters, you can specify how much disk space Oracle allocates for the object within the tablespace’s datafiles.

There is no relationship between schemas and tablespaces: a tablespace can contain objects from different schemas, and the objects for a schema can be contained in different tablespaces.

Figure 10–1 illustrates the relationship among objects, tablespaces, and datafiles.

Schema Objects 10-3

Introduction to Schema Objects

Figure 10–1 Schema Objects, Tablespaces, and Datafiles

Database

System Tablespace

Data Tablespace

Table

Index

Cluster

Index

Index

Index

Index

Index

Index

Index

Index

Index

 

 

 

 

 

 

Index

Index

Table

Table

Table

Table

Index

Index

 

 

 

 

 

 

 

DBFILE1

DBFILE2

DBFILE3

Drive 1

Drive 1

See Also:

Oracle9i Database Administrator’s Guide

"Stored Procedures and Functions" on page 14-21 Chapter 14, "SQL, PL/SQL, and Java"

Chapter 17, "Triggers"

10-4 Oracle9i Database Concepts

Соседние файлы в папке Oracle selected docs