Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Database and log files are portable across different endian systems. Berkeley DB will recognize the kind of system it is on and swap bytes accordingly for data structures it manages that make up the database itself. Berkeley DB's region files, which are memory mapped, are not portable. That's not such a big deal because they region files hold the cache and locks which, because your application will not be running during the transition, will be re-created on the new system.</p> <p>But, be careful, Berkeley DB doesn't know anything about the byte-order or types in your data (in your keys and values, stored at "DBTs"). Your application code is responsible for knowing what kind of system it is running on, how it stored the data (big or little endian) and how to transition it (or simple re-order on access). Also, pay close attention to your btree comparison function. That too may be different depending on your system's architecture.</p> <p>Database and log files are also portable across operating systems with the same caveat as with byte-ordering -- the application's data is the application's responsibility.</p> <p>You might consider reviewing the following:</p> <ul> <li><a href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/general_am_conf.html" rel="nofollow">Selecting a Byte Order</a></li> <li><a href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/dbset_lorder.html" rel="nofollow">DB->set_lorder()</a></li> <li><a href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_txn/C/BerkeleyDB-Core-C-Txn.pdf" rel="nofollow">Berkeley DB's Getting Started Guide for Transactional Applications</a></li> <li><a href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" rel="nofollow">Berkeley DB's Reference Guide</a></li> <li><a href="http://www.oracle.com/technetwork/database/berkeleydb/demo/tutorial-berkeleydb-ds-084870.html" rel="nofollow">Voice-over presentation about Berkeley DB/DS (Data Store)</a></li> <li><a href="http://www.oracle.com/technetwork/database/berkeleydb/tutorial-berkeleydb-cds-090013.html" rel="nofollow">Voice-over presentation about Berkeley DB/CDS (Concurrent Data Store)</a></li> <li><a href="http://download.oracle.com/docs/cd/E17076_02/html/toc.htm" rel="nofollow">Berkeley DB's Documentation</a></li> </ul> <p>Disclosure: I work for Oracle as a product manager for Berkeley DB products. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload