【发布时间】:2019-02-27 04:00:34
【问题描述】:
我有一个表interventi,它有这个结构
describe interventi;
Name Null Type
------------------------------ -------- -----------------------
DATAORA NOT NULL TIMESTAMP(6)
PARLAMENTARE NOT NULL VARCHAR2(16)
TESTO NOT NULL CLOB()
其中归档的 dataora 是主键。我用一行填充了这张表
DATAORA PARLAMENTARE TESTO
------------------------------- ---------------- -------------------------------
05-JUL-18 12.00.00.000000000 AM MRTMRZ (CLOB) PIPPO PLUTO PAPERINO
1 rows selected
现在,我想在字段 testo 上创建一个索引
create index idx_testo_interventi
on interventi(testo) indextype is
ctxsys.context;
但是
Error starting at line 1 in command:
create index idx_testo_interventi
on interventi(testo) indextype is
ctxsys.context
Error at Command Line:1 Column:13
Error report:
SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10528: primary keys of type TIMESTAMP(6) are not allowed
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
29855. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
*Cause: Failed to successfully execute the ODCIIndexCreate routine.
*Action: Check to see if the routine has been coded correctly.
如何创建索引?
【问题讨论】: