BLOB Data Type
Description
The
BLOB
data type stores unstructured binary large objects.BLOB
objects can be thought of as bitstreams with no character set semantics. (Oracle SQL Language Reference BLOB Data Type).
BLOB Data Type is not supported in Snowflake. BINARY is used instead.
Sample Source Patterns
BLOB in Create Table
Oracle
Snowflake
Retrieving Data
Oracle
Snowflake
Functional Example
This example is not a translation of SnowConvert, it is only used to show the functional equivalence between Oracle BLOB
and Snowflake BINARY
We are using "utl_raw.cast_to_raw
" and "DBMS_LOB.SUBSTR
" functions. The conversion for these functions is currently not supported by SnowConvert.
Oracle
Snowflake
Known Issues
1. The difference in max length BLOB (Oracle) and BINARY (Snowflake)
An Oracle BLOB column's maximum size is (4 gigabytes - 1) * (database block size), but Snowflake BINARY is limited to 8MB.
2. Empty value with EMPTY_BLOB
Initializing a column using EMPTY_BLOB()
will return an empty LOB locator. While after translation the column will return a string with ' '.
3. No access to the DBMS_LOB built-in package
Since LOB data types are not supported in Snowflake there is no equivalent for the DBMS_LOB
functions and there are no implemented workarounds yet.
Related EWIs
SSC-EWI-OR0076: Built In Package Not Supported.
Last updated