How can the $N table of an Oracle Text index be emptied all at once? (Doc ID 1582060.1)

Last updated on SEPTEMBER 11, 2013

Applies to:

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

Goal

If the DR$....$N table builds up a very large number of rows, removing them with CTX_DDL.OPTIMIZE_INDEX can take numerous executions though the rows are no longer needed.
The optimization only removes up to 1 million rows at a time as documented in the Oracle Text reference manual.
 

Solution

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