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

Datatype Evolution

See Also:

Oracle9i SQL Reference

Oracle9i Application Developer’s Guide - Object-Relational Features

Oracle9i SQLJ Developer’s Guide and Reference

Datatype Evolution

An object datatype can be referenced by any of the following schema objects:

Table or subtable

Type or subtype

Program unit (PL/SQL block): procedure, function, package, trigger

Indextype

View (including object view)

Functional index

Operator

When any of these objects references a type, either directly or indirectly through another type or subtype, it becomes a dependent object on that type. Whenever a type is modified, all dependent program units, views, operators and indextypes are marked invalid. The next time each of these invalid objects is referenced, it is revalidated, using the new type definition. If it is recompiled successfully, then it becomes valid and can be used again.

When a type has either type or table dependents, altering a type definition becomes more complicated because existing persistent data relies on the current type definition.

You can change an object type and propagate the type change to its dependent types and tables. ALTER TYPE lets you add or drop methods and attributes from existing types and optionally propagate the changes to dependent types, tables, and even the table data. You can also modify certain attributes of a type.

13-22 Oracle9i Database Concepts

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