Oracle BLOB Tools - Import, Export, View and Edit

In Oracle, the BLOB (Binary Large Object) data type is used to store large amounts of binary data, such as images, audio files, video files, and other unstructured binary information. More: Oracle BLOB.

Oracle BLOB - type family and size limits

Type in OracleMaximum size
BLOBup to (4 GB - 1) x db_block_size
SecureFiles LOBthe default since 11g, adds deduplication, compression and encryption
BFILEpoints at an operating-system file; the data stays outside the database

BLOB versus CLOB in Oracle

Oracle is the only engine here that really has types named `BLOB` and `CLOB`. BLOB counts bytes and CLOB counts characters under the database character set. The theoretical ceiling is enormous - roughly 32 TB with 8 KB blocks - so something else will stop you first.

What limits you first

The theoretical limit is far away, but a single INSERT is bounded by PGA memory and round trips: you must obtain an EMPTY_BLOB() locator and append with DBMS_LOB in chunks rather than sending the whole value at once.

BLOB from the command line

Things that bite with BLOB in Oracle