Forum Stats

  • 3,769,513 Users
  • 2,252,970 Discussions
  • 7,875,068 Comments

Discussions

dbload to restore files from dbdump -r

user2029344
user2029344 Member Posts: 1
edited Jul 24, 2014 12:10PM in Berkeley DB Java Edition

There is only one database involved.

we ran into the log file missing error,

LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.

..

Caused by: java.io.FileNotFoundException: /opt/tc/data/data-B1/objectdb/00ae2743.jdb (No such file or directory)

Based on some other posts here, we ran the DbDump with the -r flag to try to salvage the database. That completed successfully.


Now I can't tell what flags DbLoad needs to restore the data.
There are a number of .dump files created.

Do we need to run DbLoad with the -f flag, for each of these files ?

I'm going to guess we do, and try that. If it fails not sure what next - suggestions welcome..

Answers

  • Yes, the -r option writes a dump file per database, each of which should be loaded (using DbLoad) into an empty environment.

    If you have the bad environment (with the LOG_FILE_NOT_FOUND error) still available and you're willing to give me access to the files to try to find out what happened, please send me email:  mark.hayes at the obvious .com.

    --mark

This discussion has been closed.