SELECT table_name FROM sde.table_registry WHERE registration_id =XX; XX: is the index name found in the error message
another query: SELECT owner, name FROM sde.versions WHERE STATE_ID IN (SELECT DISTINCT lineage_id FROM SDE.STATE_LINEAGES WHERE lineage_name IN (SELECT DISTINCT lineage_name FROM SDE.STATE_LINEAGES WHERE lineage_id = XXX)) ORDER BY STATE_ID;
Remark: this query has typos in the ESRI reference document, instead of (ORDER BY sde.state_id) replace it with (ORDER BY STATE_ID) because itâ??s a column under sde.versions table. XXX: is the number found in the error log message â??Warning: Unable to trim state 850980->851105â?? which is 850980 in our case.
To Fix the problem you need to execute the following command:
sdegdbrepair -o repair_tables -d oracle11g -r schema.feature class name -V DEFAULT -u sde -p password
Remark:[/B] No editors should be connecting while executing this command.