dbTalk Databases Forums  

Portability of database environment

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Portability of database environment in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andi Vajda
 
Posts: n/a

Default 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
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.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.