Oracle8i Application Developer's Guide - Large Objects (LOBs)
Release 2 (8.1.6)

Part Number A76940-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Introduction , 3 of 8


Why Not Use LONGs?

In Oracle7, most applications storing large amounts of unstructured data used the LONG or LONG RAW data type.

Oracle8i's support for LOB data types is preferred over support for LONG and LONG RAWs in Oracle7 in the following ways:

LOB Type Columns

LOB (BLOB, CLOB, NCLOB, or BFILE) column types store values or references, called 'locators', that specify the location of large objects stored out-of-line or in an external file.

LOB Type Columns Do Not Only Store Locators!

In LOB type columns, the LOB locator is stored in-line in the row, however, depending on user-specified SQL Data Definition Language (DDL), Oracle8i can store small LOBs, less than 4K in-line in the table. Once the LOB grows bigger than approximately 4K Oracle8i moves the LOB out of the table into a different segment and possibly even into a different tablespace. Hence, Oracle8i sometimes stores LOB data, not just LOB locators, in-line in the row.

BLOB, CLOB, and NCLOB data is stored out-of-line inside the database. BFILE data is stored in operating system files outside the database. Oracle8i provides programmatic interfaces and PL/SQL support for access to and operation on LOBs.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index