【发布时间】:2016-11-07 08:33:11
【问题描述】:
我想在 Oracle DD 中创建索引(Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production) 从我读到的 Oracle 文档中,为了提高查询性能,我可以在分区 LOB 列上创建索引。例如:
CREATE INDEX index_name
ON table_name (LOB_column_1, LOB_column_2, ...) LOCAL;
我试过了
CREATE INDEX fullsearch_description ON T_DESCRIPTION (UPPER(text));
但我得到了一个错误:
错误
r starting at line : 1 in command -
CREATE INDEX fullsearch_description ON T_DESCRIPTION (UPPER(text))
Error at Command Line : 1 Column : 55
Error report -
SQL Error: ORA-02327: cannot create index on expression with datatype LOB
02327. 00000 - "cannot create index on expression with datatype %s"
*Cause: An attempt was made to create an index on a non-indexable
expression.
*Action: Change the column datatype or do not create the index on an
expression whose datatype is one of VARRAY, nested table, object,
LOB, or REF.
【问题讨论】: