My Oracle Support Banner

Quick method to identify table/index mismatch when analyze validate structure cascade takes significant time (Doc ID 1554054.1)

Last updated on FEBRUARY 14, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.2 [Release 10.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Goal

This document describes a quick method to identify table/index inconsistency for a specific index in the table (a row in the table that does not exist in its index and vice versa) when ANALYZE TABLE VALIDATE STRUCTURE CASCADE takes considerable time which can be the case for large tables or when the table has a large number of indexes.  

For such cross reference inconsistencies, ANALYZE reports error ORA-1499 and SQL statements may fail with different errors like ORA-600 [kdsgrp1], ORA-600 [13013], ORA-600 [6704], ORA-8102.

This Method can be applied for partitioned or non-partioned tables.

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
 Query to identify TABLE/INDEX inconsistency
 Script to identify TABLE/INDEX inconsistency
 Notes
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.