Oracle9i Application Developer's Guide - Large Objects (LOBs) Release 1 (9.0.1) Part Number A88879-01 |
|
Modeling and Design, 2 of 21
When selecting a datatype, take into consideration the following topics:
Table 7-1
lists the similarities and differences between LOBs, LONGs, and LONG RAW types.
LOB Data Type | LONG and LONG RAW Data Type |
---|---|
You can store multiple |
You can store only one |
|
This is not possible with either a |
Only the LOB locator is stored in the table column; For inline LOBs, Oracle will store LOBs that are less than approximately 4,000 bytes of data in the table column. |
In the case of a |
When you access a |
When you access a |
A LOB can be up to 4 gigabytes in size. The |
By contrast, a
|
There is greater flexibility in manipulating data in a random, piece-wise manner with LOBs. LOBs can be accessed at random offsets. |
Less flexibility in manipulating data in a random, piece-wise manner with |
You can replicate |
Replication in both local and distributed environments is not possible with a |
Oracle does not support the replication of columns that use the LONG and LONG RAW datatypes. Oracle simply omits columns containing these datatypes from replicated tables. In Oracle9i, you must convert LONG datatypes to LOBs and then replicate.
Existing LONG
columns can be converted to LOB
s using either of the following methods:
TO_LOB
() function (see "LONGs to LOBs" in Chapter 10, "Internal Persistent LOBs").
In OCI (Oracle Call Interface), or any of the programmatic environments that access OCI functionality, character set conversions are implicitly performed when translating from one character set to another.
However, no implicit translation is ever performed from binary data to a character set. When you use the loadfromfile
operation to populate a CLOB
or NCLOB
, you are populating the LOB
with binary data from the BFILE
. In that case, you will need to perform character set conversions on the BFILE
data before executing loadfromfile
.
See:
Oracle9i Globalization and National Language Support Guide, for more detail on character set conversions. |
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|