BFILE Data Type
Description
Contains a locator to a large binary file stored outside the database. Enables byte stream I/O access to external LOBs residing on the database server. A
BFILE
column or attribute stores aBFILE
locator, which serves as a pointer to a binary file on the server file system. The locator maintains the directory name and the filename. (Oracle SQL Language Reference BFILE Data Type).
BFILE Data Type is not supported in Snowflake. VARCHAR is used instead.
Sample Source Patterns
Bfile data type in Create Table
Oracle BFILE
columns are used to store a locator with the directory and filename. They are changed to Snowflake VARCHAR
in order to store the directory and filename into the column. However, loading the content of the file must be done manually.
Oracle
Snowflake
UDF added to replace BFILENAME()
.
UDF Added
Known Issues
1. 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-OR0105: Additional work is needed for BFILE column usage. BUILD_STAGE_URL function is a recommended workaround.
Last updated