ORA-20000: Oracle Text error: ORA-06502: PL/SQL: numeric or value error EXPORT ERROR WHEN BASIC_LEXER IS USED AND PRINTJOINS CONTAIN QUOTES

(Doc ID 2314876.1)

Last updated on OCTOBER 30, 2017

Applies to:

Oracle Text - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.4 version, Lexer

When attempting to export data containing a text index with the BASIC_LEXER configured like

begin
ctx_ddl.create_preference('mylex1','BASIC_LEXER');
ctx_ddl.set_attribute('mylex1','printjoins','''.-=[];!#^+{}:"|<>(),/_\$@'~');
ctx_ddl.set_attribute('mylex1','skipjoins','&%');
End;
/
the following error occurs.

ERROR
-----------------------
expdp test/test tables=mytab directory=DATA_PUMP_DIR dumpfile=mytab.dmp logfile=expdp_mytab.log

Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TRIGGER
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
ORA-39127: unexpected error from call to local_str := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA('PAY_ORD_CAT','TEST','CATINDEXMETHODS','CTXSYS',12.01.00.02.00,newblock,0)
ORA-20000: Oracle Text error:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 274
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9524
Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
. . exported "TEST"."MYTAB" 5.5 KB 1 rows
Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms