Switch to full style
General discussions, chit-chat
Post a reply

SQL3 File Repair

June 11th, 2021, 8:21

Hi guys,

I have a recovery case. Customer is interested in a database file which is a backup of a software data.

I recovered the file, all sectors read ok. I tried to open file with different software online and offline but all say that "database disk image is malformed". So file is corrupt.

Any of you have knowledge about how can i repair the file so the customer can use it to import data back into his software?

If you had this case before and had success with any commercial tool let me know.

Thank you.

Re: SQL3 File Repair

June 12th, 2021, 3:37

can you post the file header here? and how big is the file?

Re: SQL3 File Repair

June 14th, 2021, 5:16

Here it is:
Attachments
Untitled.png

Re: SQL3 File Repair

June 15th, 2021, 5:07

I tried with command lines:

sqlite3 broken.db ".dump" | sqlite3 new.db - gives error

sqlite3 broken.db ".recover" | sqlite3 new.db - works without error but generated file is not recognized by the application.

Re: SQL3 File Repair

June 15th, 2021, 6:03

SQL lite header looks OK, most probably can be fixed ,,, some of the contents (records) will be lost
process is manually performed..

most probably due to bad sectors..

How big is the Original DB file? and the backup file you recovered?

Re: SQL3 File Repair

June 15th, 2021, 8:22

Broken file has 6,41 MB (6.726.656 bytes)
Recovered file has 6,64 MB (6.971.392 bytes)

The problem was solved after all. Recovered file looks ok. I don't know however, how can i check what records are missing.

Initially data could not import because an additional configuration file was necessary next to the db.

Re: SQL3 File Repair

June 15th, 2021, 9:20

In my opinion here (depends on the bads location) the Diff. in size "Makes a big Diff" <<---- Not little to ignore
just image how much data (records) you can have in 200k, some DBs are compressed some are not (depends on the designer and how Pro. is the programmer)

after all, we can go through the guesses and continue list possibilities

To cut it short (if you are interested) such a repair case for us here costs 300-500$ (will quote after looking @the DB file with some more info. required about the App. used)

PM if this works with you here

and all the best

Re: SQL3 File Repair

June 15th, 2021, 10:40

Recovered file has bigger size because there are some 00 00 inserts in a few places.

Also there are some changes in the header also.

Untitled.png
Untitled.png (11.47 KiB) Viewed 29893 times


Original recovered file from the customer drive had no bad sector at the time of reading it. I can guess there was a bad sector in the past that got relocated, but original data was not read totally right, or maybe some other kind of corruption.

Thank you for the quote einstein9. In case needed I know who can help.

Re: SQL3 File Repair

June 17th, 2021, 3:58

All the best :>
Post a reply