| Oracle DBMS_VECTOR Version 26ai |
|---|
| General Information | |||||||||||||||||||||||||||||||
| Library Note |
|
||||||||||||||||||||||||||||||
| Purpose | In Database Artificial Intelligence (AI) Searches. Contains support for load, create index, search, accuracy reporting, and LangChain support. | ||||||||||||||||||||||||||||||
| AUTHID | CURRENT_USER | ||||||||||||||||||||||||||||||
| Constants |
|
||||||||||||||||||||||||||||||
| Data Types | TYPE vector_array_t AS TABLE OF CLOB; |
||||||||||||||||||||||||||||||
| Dependencies | SELECT name FROM dba_dependencies WHERE referenced_name = 'DBMS_VECTOR' UNIONReturns 44 objects |
||||||||||||||||||||||||||||||
| Dependencies |
|
||||||||||||||||||||||||||||||
| Documented | Yes: Partial | ||||||||||||||||||||||||||||||
| Exceptions |
|
||||||||||||||||||||||||||||||
| First Available | 23ai | ||||||||||||||||||||||||||||||
| Security Model | Owned by SYS with EXECUTE granted to PUBLIC. | ||||||||||||||||||||||||||||||
| Source | {ORACLE_HOME}/rdbms/admin/dbmsvector.sql {ORACLE_HOME}/rdbms/admin/prvtvector.plb |
||||||||||||||||||||||||||||||
| Subprograms |
|
||||||||||||||||||||||||||||||
| CHECK_MAX_CALLS (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.check_max_calls( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| CREATE_CHECKPOINT (new 23ai) |
|||||||||||||||||||||||||||||||
| This procedure takes a full checkpoint for an HNSW index | dbms_vector.create_checkpoint( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| CREATE_CREDENTIAL (new 23ai) |
|||||||||||||||||||||||||||||||
| Store authentication information in the database | dbms_vector.create_credential( |
||||||||||||||||||||||||||||||
DECLARE |
|||||||||||||||||||||||||||||||
| CREATE_INDEX (new 23ai) |
|||||||||||||||||||||||||||||||
| Creates a vector index | dbms_vector.create_index( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| DISABLE_CHECKPOINT (new 23ai) |
|||||||||||||||||||||||||||||||
| Disables the Checkpoint feature for a vector index user and index name | dbms_vector.disable_checkpoint( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| DROP_CREDENTIAL (new 23ai) |
|||||||||||||||||||||||||||||||
| Drop authentication credential from the database | dbms_vector.drop_credential(credential_name IN VARCHAR2); |
||||||||||||||||||||||||||||||
exec dbms_vector.drop_credential('ORA_AICRED'); |
|||||||||||||||||||||||||||||||
| DROP_ONNX_MODEL (new 23ai) |
|||||||||||||||||||||||||||||||
| Drop ONNX model | dbms_vector.drop_onnx_model( |
||||||||||||||||||||||||||||||
exec dbms_vector.drop_onnx_model('doc_model', TRUE); |
|||||||||||||||||||||||||||||||
| ENABLE_CHECKPOINT (new 23ai) |
|||||||||||||||||||||||||||||||
| Enables the Checkpoint feature for a vector index user and index name | dbms_vector.enaable_checkpoint( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| GET_INDEX_STATUS (new 23ai) |
|||||||||||||||||||||||||||||||
| Describes the status of a vector index creation | dbms_vector.get_index_status( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| INDEX_ACCURACY_QUERY (new 23ai) |
|||||||||||||||||||||||||||||||
| Accuracy reporting query Overload 1 |
dbms_vector.index_accuracy_query( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.index_accuracy_query( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| INDEX_ACCURACY_REPORT (new 23ai) |
|||||||||||||||||||||||||||||||
| Computes accuracy using the captured query vectors for a given finding | dbms_vector.index_accuracy_report( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| INDEX_VECTOR_MEMORY_ADVISOR (new 23ai) |
|||||||||||||||||||||||||||||||
| Determines the vector memory size that is needed for a vector index Overload 1 |
dbms_vector.index_vector_memory_advisor( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.index_vector_memory_advisor( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| LIST_MODELS (new 23ai) |
|||||||||||||||||||||||||||||||
| rETURNS a list of models and their capabilities | dbms_vector.list_models(params IN JSON DEFAULT NULL) RETURN CLOB; |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| LIST_PROVIDERS (new 23ai) |
|||||||||||||||||||||||||||||||
| Returns a list of providers | dbms_vector.list_providers(params IN JSON DEFAULT NULL) RETURN CLOB; |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| LOAD_ONNX_MODEL (new 23ai) |
|||||||||||||||||||||||||||||||
| Loads a model from an .onnx model file stored in a local directory. Overload 1 |
dbms_vector.load_onnx_model( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Loads a model from an .onnx model file stored in Cloud Object storage Overload 2 |
dbms_vector.load_onnx_model( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| LOAD_ONNX_MODEL_CLOUD (new 23ai) |
|||||||||||||||||||||||||||||||
| Loads an ONNX model from object storage into the database | dbms_vector.load_onnx_model_cloud( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| LOG_TRACE (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.log_trace(log_str IN VARCHAR2); |
||||||||||||||||||||||||||||||
exec dbms_vector.log_trace('TEST'); |
|||||||||||||||||||||||||||||||
| PURGE_CHECKPOINT (new 23ai) |
|||||||||||||||||||||||||||||||
| Purges the existing Checkpoint for a vector index user and index name | dbms_vector.purge_checkpoint( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| QUERY (new 23ai) |
|||||||||||||||||||||||||||||||
| Queries a database schema for a similarity search Overload 1 |
dbms_vector.query( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Supports a query vector passed as a vector function Overload 2 |
dbms_vector.query( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| REBUILD_INDEX (new 23ai) |
|||||||||||||||||||||||||||||||
| Rebuilds a vector index which is performed by dropping and recreating the original index | dbms_vector.rebuild_index( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| RERANK (new 23ai) |
|||||||||||||||||||||||||||||||
| Reorders search results for more relevant output | dbms_vector.rerank( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| SET_SGA_PERCENTAGE (new 23ai) |
|||||||||||||||||||||||||||||||
| setS the desired max vector memory size for the PDB as a percentage of SGA (0 - 70%) | dbms_vector.set_sga_percentage(sga_percent IN NUMBER); |
||||||||||||||||||||||||||||||
exec dbms_vector.set_sga_percentage(5); |
|||||||||||||||||||||||||||||||
| SET_TRACE (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.set_trace(status IN BOOLEAN); |
||||||||||||||||||||||||||||||
exec dbms_vector.set_trace(TRUE); |
|||||||||||||||||||||||||||||||
| TOGGLE_DEBUG_MODE (new 23ai) |
|||||||||||||||||||||||||||||||
| Toggles debug mode ON or OFF | dbms_vector.toggle_debug_mode(turn_on IN BOOLEAN); |
||||||||||||||||||||||||||||||
exec dbms_vector.toggle_debug_mode(TRUE); |
|||||||||||||||||||||||||||||||
| TOGGLE_INDEX_VECTOR_MEMORY_ADVISOR_VERIFY (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.toggle_index_memory_advisor_verify(turn_on IN BOOLEAN); |
||||||||||||||||||||||||||||||
exec dbms_vector.toggle_index_memory_advisor_verify(TRUE); |
|||||||||||||||||||||||||||||||
| UTL_TO_CHUNKS (new 23ai) |
|||||||||||||||||||||||||||||||
| Convert plain text into pieces of smaller text along with metadata Overload 1 |
dbms_vector.utl_to_chunks( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.utl_to_chunks( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| UTL_TO_EMBEDDING (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.url_to_embedding( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.utl_to_embedding( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| UTL_TO_EMBEDDINGS (new 23ai) |
|||||||||||||||||||||||||||||||
| Converts text into embeddings (VECTORS) by calling an ONNX model or making an OCIGenAI REST call Overload 1 |
dbms_vector.url_to_embeddings( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.url_to_embeddings( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| UTL_TO_GENERATE_TEXT (new 23ai) |
|||||||||||||||||||||||||||||||
| Generate text by making a call a REST API call to OCIGenAI Overload 1 |
dbms_vector.utl_to_generate_text( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| Overload 2 | dbms_vector.utl_to_generate_text( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| UTL_TO_RERANK (new 23ai) |
|||||||||||||||||||||||||||||||
| Undocumented | dbms_vector.utl_to_rerank( |
||||||||||||||||||||||||||||||
| TBD | |||||||||||||||||||||||||||||||
| This site is maintained by Daniel Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2026 Daniel A. Morgan All Rights Reserved | ||||||||
|
|
|||||||||