Search code examples
compatibilityberkeley-dblanguage-interoperability

can i use bdb(berkeley db) file created by c implementation (python bsddb) by oracle berkeley db java edition?


I have a berkeley db file (*.bdb) which is created by the C implementation(python bsddb module). Is it possible to read this file by a pure java implementation of Berkeley Db? I tried to read it using berkeley db java edition (je) but could not. je throws out an exception saying that it could not detect the berkeley database. Are berkeley db files not inter operable across different implementations? If so, why?


Solution

  • No.

    According to the Berkeley DB Java Edition FAQ, Berkeley DB and Berkeley DB Java Edition are not compatible with one another because they have a different file layout structure.