IBM Support

Database indexes are sometimes not used by the Oracle optimizer thus causing full table scans and slow running queries

Troubleshooting


Problem

We have observed (both in-house and customer environments) slow running queries in some cases where the Oracle optimizer is not using the database indexes available and is performing full table scans on a CE table (e.g., DocVersion). Oracle has identified an issue with Oracle 10g in one case where the stats were incorrect when using the dbms_stats.gather_schema_stats default parameters. In another case using the DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC, which gathers stats for tables with empty or stale statistics, may have resulted in a non-optimal query plan because running a dbms_stats command with explicit parameters remedied the issue at a customer site.

Symptom

Slow queries with table scans instead of the available indexes being used.

[{"Product":{"code":"SSNVNV","label":"FileNet Content Manager"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Content Engine","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"4.0.1;4.5.0;4.5.1;5.0","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
28 April 2025

UID

swg21468281