Starting with DB2 Version 10 Fix Pack 1, use the Net Search Extender index validation utility (the checknseindex command) to ensure that a text index is working correctly.
Ensure that update or delete operations are not in progress for the text index that you are validating.
C:\SQLLIB\bin\\checknseindex.exe -p "C:\litu_ict\Corrupted Index\NODE0000"
-i IX335811
CTE5265I The NSE index validation utility found the specified index,
"IX335811", to be valid.
No further action is required.C:\SQLLIB\bin\\checknseindex.exe -p "C:\litu_ict\Corrupted Index\NODE00001"
-i IX335811
CTE5254E The NSE index validation utility failed to validate the specified
index because the utility could not access the
path "C:\litu_ict\Corrupted Index\NODE00001".
Fix the index
path, and reissue the command again.C:\SQLLIB\bin\checknseindex.exe -p "C:\litu_ict\Corrupted Index\NODE0000"
-i IX335812 -deepCheck -v
==================================================
checknseindex
-------------
Net Search Extender index validation utility
==================================================
Validating NSE mapping indexes...
Forward mapping data control record : Number of blocks = "1"
Reverse mapping data control record : Number of blocks = "1"
Forward mapping index control record : Number of documents = "8"
Reverse mapping index control record : Number of documents = "8"
Validating NSE internal indexes...
Fri Mar 30 13:39:40 2012 Verify primary index...
100%
Fri Mar 30 13:39:40 2012 Verify secondary index...
100%
Fri Mar 30 13:39:40 2012 End
Validating consistency of NSE mapping and NSE internal indexes...
CTE5263E The NSE index validation utility found the NSE mapping index
and the NSE internal index to be inconsistent. Reason code: "1".
Diagnostic data: "".
Attempt to fix the
corrupted index.