CTX_DDL.OPTIMIZE_INDEX "FULL" fails With An empty ORA-20000 error since upgrade to 11.2.0.2 (Doc ID 1279165.1)

Last updated on JUNE 22, 2012

Applies to:

Oracle Text - Version 11.2.0.2 to 11.2.0.2 [Release 11.2]
Information in this document applies to any platform.
***Checked for relevance on 22-Jun-2012***

Symptoms

After upgrading the database from 11.2.0.1 to 11.2.0.2, running OPTIMIZE_INDEX FULL fails with an empty ORA-20000 error for some indexes:

SQL> begin ctx_ddl.optimize_index('TEXT_INDEX','FULL'); end;
   2 /
begin ctx_ddl.optimize_index('TEXT_INDEX','FULL'); end;
*
ERROR at line 1:
ORA-20000: Oracle Text error:
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.CTX_DDL", line 941
ORA-06512: at line 1


Since serial OPTIMIZE FULL is resumable, subsequent calls to CTX_DDL.OPTIMIZE_INDEX "FULL" will resume from where it left after a failure. Hence, repeatedly calling OPTIMIZE_INDEX "FULL" for the same index will allow it to complete successfully:

SQL> -- Error 1
SQL> execute ctx_ddl.optimize_index('TEXT_INDEX','FULL');
BEGIN ctx_ddl.optimize_index('TEXT_INDEX','FULL'); END;
*
ERROR at line 1:
ORA-20000: Oracle Text error:
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.CTX_DDL", line 941
ORA-06512: at line 1

SQL> -- Error 2
SQL> execute ctx_ddl.optimize_index('TEXT_INDEX','FULL');
BEGIN ctx_ddl.optimize_index('TEXT_INDEX','FULL'); END;
*
ERROR at line 1:
ORA-20000: Oracle Text error:
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.CTX_DDL", line 941
ORA-06512: at line 1

SQL> -- This will eventually complete without errors
SQL> execute ctx_ddl.optimize_index('TEXT_INDEX','FULL');

PL/SQL procedure successfully completed.

Changes

This only occurs on a database that was upgraded to 11.2.0.2.

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