Skip to Main Content

Data Science & Machine Learning

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-40216: feature not supported while using DBMS_VECTOR.LOAD_ONNX_MODEL on linux

Facing the same issue in oci linux VM. I had installed 23 ai database and followed all the steps to create vector user and all but while trying to load the onnx model its giving error.

Disconnected from Oracle Database 23ai Free Release 23.0.0.0.0 - Develop, Learn, and Run for Free
Version 23.5.0.24.07
[oracle@23aidemo ~]$ sqlplus vector_user/Oracle_4U@FREEPDB1

SQL*Plus: Release 23.0.0.0.0 - Production on Fri Nov 15 07:28:28 2024
Version 23.5.0.24.07

Copyright (c) 1982, 2024, Oracle. All rights reserved.

Last Successful login time: Fri Nov 15 2024 07:25:55 +00:00

Connected to:
Oracle Database 23ai Free Release 23.0.0.0.0 - Develop, Learn, and Run for Free
Version 23.5.0.24.07

SQL> exec DBMS_VECTOR.DROP_ONNX_MODEL(model_name => 'ALL_MINILM_L12_V2', force => true);

PL/SQL procedure successfully completed.

SQL> BEGIN
DBMS_VECTOR.LOAD_ONNX_MODEL(
directory => 'DM_DUMP',
file_name => 'all_MiniLM_L12_v2.onnx',
model_name => 'ALL_MINILM_L12_V2',
metadata => JSON('{"function" : "embedding", "embeddingOutput" : "embedding", "input": {"input": ["DATA"]}}'));
END;
/
2 3 4 5 6 7 8
BEGIN
*
ERROR at line 1:
ORA-40216: feature not supported
ORA-06512: at "SYS.DBMS_VECTOR", line 906
ORA-06512: at "SYS.DBMS_DATA_MINING", line 5767
ORA-06512: at "SYS.DBMS_VECTOR", line 901
ORA-06512: at line 2
Help: https://docs.oracle.com/error-help/db/ora-40216/

SQL> SQL>
Can anyone help here.

Comments
Post Details
Added on Nov 22 2024
2 comments
39 views