10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LOB Classes and Methods<br />

Inline Storage of the LOB Value<br />

Data stored in a LOB is termed the LOB value. The value of an internal LOB may or<br />

may not be stored inline with the other row data. If you do not set DISABLE<br />

STORAGE IN ROW, and if the internal LOB value is less than approximately 4,000<br />

bytes, then the value is stored inline.Otherwise, it is stored outside the row. Since<br />

LOBs are intended to be large objects, inline storage will only be relevant if your<br />

application mixes small and large LOBs.<br />

The LOB value is automatically moved out of the row once it extends beyond<br />

approximately 4,000 bytes.<br />

LOB Locators<br />

Regardless of where the value of the internal LOB is stored, a LOB locator is stored<br />

in the row. You can think of a LOB locator as a pointer to the actual location of the<br />

LOB value. A LOB locator is a locator to an internal LOB while a BFILE locator is a<br />

locator to an external LOB.<br />

■ Internal LOB Locators: For internal LOBs, the LOB column stores a locator to<br />

the LOB value stored in a database tablespace. Each internal LOB column and<br />

attribute for a given row has its own unique LOB locator and a distinct copy of<br />

the LOB value stored in the database tablespace.<br />

■ External LOB Locators: For external LOBs (BFILEs), the LOB column stores a<br />

locator to the external operating system file that houses the BFILE. Each<br />

external LOB column and attribute for a given row has its own BFILE locator.<br />

However, two different rows can contain a BFILE locator that points to the same<br />

operating system file.<br />

LOB Classes and Methods<br />

The classes and methods in Table 5–1are available for LOB operations.<br />

5-4 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!