I was under the impression, maybe mistakenly, that a database
environment, its database and log files could be copied from machine to
machine, regardless of the operating system. More specifically, I'm
using Berkeley DB 4.3.28 on Windows and Mac OS X.
I set the endianness of all database file to 4321 so that the
endianness is the same everywhere. Yet, when I try to open an
environment created on Windows on Mac OS X, I get the following error
from env->open():
bsddb._db.DBError: (-30974, "DB_VERSION_MISMATCH: Database environment
version mismatch -- Program version 4.3 doesn't match environment
version")
I get the very same error when trying the opposite, to open an
environment created on Mac OS X on Windows. It reports the same Program
version there as well: 4.3
Running db_stat, I get a similar message:
Quote:
../release/db/bin/db_stat -e -h data
db_stat: Program version 4.3 doesn't match environment version
|
db_stat: DB_ENV->open: DB_VERSION_MISMATCH: Database environment
version mismatch
Is this a bug ? Is this not even supposed to work ?
Am I missing something ?
Thanks
Andi..
ps: the database files are copied via tar, and there are no processes
holding the environment open during this operation.