An Oracle database hosting the Automation Engine (AE) experience high disk reads and performance degradation. Analysis of Oracle AWR reports identifies the following SQL (sql_id: f88qp2c4sf5ua) as a top contributor:
The execution plan shows a TABLE ACCESS FULL on the OH table and a hash join that may spill to the temporary tablespace.
The query is issued by the Java Work Process (JWP) with the indexing (IDX) role to update the Lucene search index. The OR predicate spans four different columns across two tables (OH and OFS). Due to the structure of this query, the Oracle optimizer cannot use a single index range scan and is forced to perform a full table scan of the OH table on every execution.
To reduce the frequency of the full table scans, increase the polling interval for the search indexer.
INDEXSEARCH_INTERVAL.Ensure that the OH table size is managed by regularly purging deleted objects. Use the DB Reorg utility (ucybdbre) to remove records flagged for deletion, as the cost of the full scan scales linearly with the total row count of the table.
For more information on Lucene indexing roles and expected behaviors, see .