Background: tracking when I got off work yesterdayProgram, Suddenly found a strange problem, the same data can be found using like, and the use of = can not be found. For example
Select * from EMP where empno = 123; no data is found, but the data is queried by name. The 123 data does exist. Change the query condition
Select * from EMP where empno like 123; after that, you can query the data, which was originally thought to be a data problem. After copying the data, you can find that the data is correct and there are no strange characters. It was strange to execute various operations on this record. When the empno field was last updated, it was suddenly found that the update was not going up. The database reported an error and the Object id xxx encountered an error. Finally, the problem is found. query user_object.object_id and find that the object is an index, which exactly contains the empno field. After the index is rebuilt, the problem disappears.
Problem analysis: the database is processing the EMP table because of a sudden power failure at noon, which may affect the index. This problem is exposed when indexes need to be maintained. Oracle does not report an error when indexes are used for normal queries.
Thank you for your key role in solving this problem.