Oracle Database 23ai imposes restrictions on DDL operations for tables with VECTOR columns to preserve data integrity. CTAS (A) is permitted, as it copies the VECTOR column intact into a new table, maintaining its structure. Dropping a VECTOR column (B) is allowed via ALTER TABLE DROP COLUMN, as it simply removes the column without altering its type. Adding a new VECTOR column (D) is supported with ALTER TABLE ADD, enabling schema evolution. However, modifying an existing VECTOR column’s data type to a non-VECTOR type (C) (e.g., VARCHAR2, NUMBER) is not permitted because VECTOR is a specialized type with dimensional and format constraints (e.g., FLOAT32), and Oracle does not support direct type conversion due to potential loss of semantic meaning and structure. This restriction is documented in Oracle’s SQL reference.
[Reference:Oracle Database 23ai SQL Language Reference, Section on VECTOR Data Type Restrictions., , ]
Submit