|
DISAM and IDX recovery
#16283
10 Jun 08 12:12 AM
|
Joined: Nov 2007
Posts: 69
Jack Rupert
OP
Member
|
OP
Member
Joined: Nov 2007
Posts: 69 |
Curious if there is any IDX file recovery procedure you recommend or is documented. Say the DAT file is intact but someone erased the IDX. My thought was to rename the DAT. Build a new empty IDX/DAT then use the LOAD in ISMUTL to reload the data. This is on IBM AIX box so DAT file is a sequential file. This does not work. Then tried renaming the DAT, building new empty IDX/DAT, erasing the new DAT, renaming the old DAT back to the original DAT name and then using ISMUTL REBUILD. This seemed to work. But, prior to the REBUILD I did a VERIFY and it came back OK on both the primary and secondary indexes? Curious?
|
|
|
Re: DISAM and IDX recovery
#16284
10 Jun 08 02:16 AM
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
You can rename the DAT, reallocate the file, copy the original DAT back (you now have a good but empty IDX and the original DAT), then run rebuild. I have done this a number of times and it works great.
|
|
|
Re: DISAM and IDX recovery
#16285
10 Jun 08 04:37 AM
|
Joined: Jun 2001
Posts: 11,945
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,945 |
The VERIFY works by scanning the IDX, so if the IDX is empty, it probably doesn't look much at the DAT. The REBUILD, however, does work from the DAT file.
|
|
|
Re: DISAM and IDX recovery
#16286
10 Jun 08 07:38 AM
|
Joined: Nov 2007
Posts: 69
Jack Rupert
OP
Member
|
OP
Member
Joined: Nov 2007
Posts: 69 |
Well, sounds like I am handling this the best way. The rename of DAT, reallocate an empty IDX/DAT, erase the new empty DAT, rename the old DAT back and then do the REBUILD. This does work for me.
Thanks everyone.
|
|
|
|
|
|