Oracle8i Application Developer's Guide - Large Objects (LOBs) Release 2 (8.1.6) Part Number A76940-01 |
|
Modeling and Design, 2 of 12
LOBs
are similar to LONG
and LONG
RAW
types, but differ in the following ways:
LOBs 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 |
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 |
Existing LONG
columns can be converted to LOB
s using the TO_LOB
() function (see "Copy LONG to LOB" in Chapter 9, "Internal Persistent LOBs").
Note that Oracle8i does not support conversion of LOBs back to LONGs.
In using 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
.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|