NCLOB Data type
Description
A character large object containing Unicode characters. Both fixed-width and variable-width character sets are supported, both using the database national character set. (Oracle SQL Language Reference NCLOB Data Type).
NCLOB Data Type is not supported in Snowflake. VARCHAR is used instead.
Sample Source Patterns
NCLOB in Create Table
Oracle
IN -> Oracle_01.sql
Snowflake
OUT -> Oracle_01.sql
Retrieving Data
Oracle
IN -> Oracle_02.sql
Snowflake
OUT -> Oracle_02.sql
Known Issues
1. The difference in max length CLOB (Oracle) and VARCHAR (Snowflake)
An Oracle NCLOB column maximum size is (4 gigabytes - 1) * (database block size), but Snowflake VARCHAR is limited to 16MB.
2. Empty value with EMPTY_CLOB
Initializing a column using EMPTY_CLOB()
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 not an equivalent for the DBMS_LOB
functions and there are no implemented workarounds yet.
Related EWIs
No related EWIs.
Last updated