ORA-20000: Oracle Text error: DRG-10599: column is not indexed
You should try with:
CREATE INDEX myindex ON v_employees_intr(LAST_CZ) INDEXTYPE IS CTXSYS.CONTEXT;
Tomáš Filip
This person doesnt like sharing info about himself.
Updated on December 02, 2022Comments
-
Tomáš Filip 24 days
Hello I cant really make this sql workin because error column is not indexed (when i was using just like "=" it was all right) but I need contains for lazy typing purposes. I was searching the net, but the examples are always on so much different concept, than I have here. Can someone make example for this sql, how to make index please? the TextBox1.Text is inserted value of last name by user.
SELECT * FROM v_employees_intr where CONTAINS(NLSSORT(LAST_CZ, 'NLS_SORT = hungarian_ai'), NLSSORT('%" + TextBox1.Text + "%', 'NLS_SORT = hungarian_ai'))>0 ORDER BY " + RadioButtonList1.SelectedValue.ToString() + " ASC"
How to create a Text index? I tried to
CREATE INDEX myindex ON docs(text) INDEXTYPE IS CTXSYS.CONTEXT
Because Oracle web site says it is basic for
contains()
. But this error message pop outORA-02158: invalid CREATE INDEX option
. So I tried to add the ; on end likeIS CTXSYS.CONTEXT;
and there then goesORA-00911: invalid character
error. Please can someone help me create index for my query? -
ViG over 4 yearsPlease format the code, and explain why this solves OP's question. (maybe also read the tour