Skip to Main Content

Oracle Database Free

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-54400: Invalid BLOB size when loading ONNX model in Oracle 23ai Free

djoga98Feb 8 2025

I am using Oracle Database 23ai Free and trying to load an ONNX model for text embedding using DBMS_VECTOR.LOAD_ONNX_MODEL. My model (LaBSE) is approximately 1.88GB in size.

Here is my PL/SQL block:

BEGIN
 DBMS_VECTOR.DROP_ONNX_MODEL (
   model_name => 'LaBSE',
   force => TRUE);
 DBMS_VECTOR.LOAD_ONNX_MODEL (
   directory  => 'model_dir',
   file_name  => 'LaBSE.onnx',
   model_name => 'LaBSE');
END;

However, I get the following error:

ORA-54400: Invalid BLOB size
ORA-06512: at "SYS.DBMS_VECTOR", line 2150
ORA-06512: at "SYS.DBMS_DATA_MINING", line 5767
ORA-06512: at "SYS.DBMS_VECTOR", line 2145
ORA-06512: at line 6

I checked the Oracle documentation for ORA-54400 and ORA-06512 but couldn't find a clear resolution.

Is there a size limit for ONNX models in Oracle 23ai Free? If so, is there a way to increase it or work around this issue? Any guidance would be appreciated.

Thanks!

This post has been answered by gsalem-Oracle on Feb 18 2025
Jump to Answer
Comments
Post Details
Added on Feb 8 2025
1 comment
400 views