Monday, April 24, 2017

ORA-29855: error occurred DRG-10700: preference does not exist while creating Text Index


User come across an issue that creating index hanging during datapump import. We have excluded the index during export and trying to create after importing data.

CREATE INDEX "AMX"."BRR_360_TXT" ON "AMX"." BRR_360_BLOB" ("FILE_DATA")
INDEXTYPE IS "CTXSYS"."CONTEXT" PARAMETERS ('POPULATE FILTER ODP_FILTER LEXER ODP_LEXER WORDLIST ODP_WORDLIST STOPLIST ODP_STOPLIST SECTION GROUP ODP_SECTION_GROUP')
PARALLEL 4

This was the error that we got

ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10700: preference does not exist: ODP_FILTER
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

User have generated the index creating script using dbms_metadata.get_ddl. The index creating script works in case normal index.

But noticed that the index that user was creating is a Text index and we need to use different package i.e CTX_REPORT.CREATE_INDEX_SCRIPT

I have used below script on the source DB to create index for Text index

SET LONG 32000 LINES 200
SET HEAD OFF
SET PAGESIZE 10000
SET TRIMOUT ON TRIMSPOOL ON
SELECT CTX_REPORT.CREATE_INDEX_SCRIPT('<your_text_index_name>') FROM DUAL;
spool off


Regards,
Satishbabu Gunukula, Oracle ACE
http://www.oracleracexpert.com

1 comment:

  1. I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always super mario world

    ReplyDelete