Portability of database environment - 07-13-2005 , 07:36 AM
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
bsddb._db.DBError: (-30974, "DB_VERSION_MISMATCH: Database environment
version mismatch -- Program version 4.3 doesn't match environment
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:
Is this a bug ? Is this not even supposed to work ?
Am I missing something ?
ps: the database files are copied via tar, and there are no processes
holding the environment open during this operation.