Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
This may not be possible.
FIrst, what vision version are your files? (people who know more than I will want to know that)
Second, you can try using the key option with your rebbuild command. Somtimes this can work around the break in the chain.
eg.
vutil -re -k 0 MYFILE.DAT
vutil -re -k 1 MYFILE.DAT
vutil -re -k 2 MYFILE.DAT
try each key in turn. You may be able to revoer the file. Or at least get to a lower number of records lost. If your file is vision format 6, there is another method of recovery, but I've never used it myself.
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
P.S. Make sure you have a backup copy of the file so if you accidentally say "yes" to replace the original, and you didn't want to, you can restore and start over.
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
Should those also fail there are some other things you can try as noted in this KB article:
community.microfocus.com/.../vision-filesystem-how-do-i-fix-a-corrupt-file
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
Hi Robert,
We are using vision 3 and vision 4 file.
Both also having this problem.
Had try all the alternate key rebuild also the same.
Thanks for your advise.
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
Hi
I have sometimes succeeded making my own rebuild program. But it takes some time and investigating.
The record is stored in the file, and each record is repeated in a special length. But each record is not stored with the length of the record, but with some additional bytes, while there is information concerning record length and key information. If a record is deleted or present there is also information concerning that.
After making attention to all these things you could be able to read the file manually byte for byte and put it into the record definition and then write the record in a new file. It is doable but very difficult.
Unfortunately Acu will not deliver information how the setup of the vision file is, so I am afraid that there is not any help there.
Best Regards
Steen
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
Hi
Another way is of course as earlier suggestions to rebuild with different keys. Do as many as possible rebuilds, in different files. Then unload each file and load it into the first file. In that way you might be able to add more records.
Duplicate records will be rejected :-)
Best Regards
Steen
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
In addition to all of the responses below, I've written cobol program (with declaratives modified to capture index errors), reading the records using all indexes, first forward then backward. Using only vutil you only read the records in index order going forward. By writing a program, and going forward and backward on each index, you can recover more records. It probably wont' get them all, but will get closer.
Also, you mention that you have the same problem with V4 files. They have the index and data stored in separate files. You should be able to ALWAYS recover all records from V4 files, unless the data itself is corrupt.
Good luck!
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
One other aspect, if your select statements are setting compression, lower that compression to around 80%. If you have a high compression setting, areas where deleted records are, get smaller and smaller and eventually that space is gone.
Hi,
I am facing issue when rebuild the file, it show chain broken/file broken.
May i know that how can rebuild a corrupted file with 100% recover without any records lost?
Thanks You.
Hi Steen,
Do you means if i have rebuild 3 alternate key it will have 3 VTM* file.
Then i unload all the 3 VTM* file and load one by one to the same name of file?
Thanks You.