Oracle Text. Try to update column with context index

对着背影说爱祢 提交于 2019-12-08 05:44:18

问题


I'm trying to update a column with a context index.

CREATE TABLE new_table(first_column NUMBER, text CLOB);
INSERT INTO new_table VALUES(1,'Oracle');
INSERT INTO new_table VALUES(2,'Text');
COMMIT;
CREATE INDEX idx_new_table_text ON new_table(text) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SYNC ( ON COMMIT)');

With "PARAMETERS ('SYNC ( ON COMMIT)')" parameter I was able to add data to the table. But I still can't update the data in this column or delete rows from this table.

UPDATE new_table SET text = 'new text' WHERE first_column = 3;
COMMIT;

Аnd after committing, I see errors: "Commit failed" AND "ORA-00604: error occurred at recursive SQL level 1 ORA-06550: String 1, column 7: PLS-00306: wrong number or types of agruments in call to 'SYNCRN'" Tell me, please, what should I do to make UPDATE and DELETE start working?

来源:https://stackoverflow.com/questions/55142438/oracle-text-try-to-update-column-with-context-index

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!