003 File Manager
Current Path:
/usr/local/share/doc/db5/upgrading
usr
/
local
/
share
/
doc
/
db5
/
upgrading
/
π
..
π
BDB_Upgrading.pdf
(1.01 MB)
π
changelog_4_0_14.html
(21.81 KB)
π
changelog_4_1_24.html
(31.99 KB)
π
changelog_4_1_25.html
(2.76 KB)
π
changelog_4_2_52.html
(56.62 KB)
π
changelog_4_3_29.html
(38.92 KB)
π
changelog_4_4_16.html
(33.43 KB)
π
changelog_4_4_20.html
(5.17 KB)
π
changelog_4_5_20.html
(26.06 KB)
π
changelog_4_6.html
(31.67 KB)
π
changelog_4_7.html
(30.09 KB)
π
gettingStarted.css
(1.13 KB)
π
index.html
(76.38 KB)
π
introduction.html
(5.37 KB)
π
moreinfo.html
(7.47 KB)
π
preface.html
(4.99 KB)
π
upgrade_2_0_convert.html
(6.66 KB)
π
upgrade_2_0_disk.html
(2.88 KB)
π
upgrade_2_0_system.html
(7.33 KB)
π
upgrade_2_0_toc.html
(4.22 KB)
π
upgrade_3_0_close.html
(3.73 KB)
π
upgrade_3_0_cxx.html
(3.17 KB)
π
upgrade_3_0_db.html
(5.02 KB)
π
upgrade_3_0_db_cxx.html
(4.3 KB)
π
upgrade_3_0_dbenv.html
(7.83 KB)
π
upgrade_3_0_dbenv_cxx.html
(4.64 KB)
π
upgrade_3_0_dbinfo.html
(8.14 KB)
π
upgrade_3_0_disk.html
(3.35 KB)
π
upgrade_3_0_eacces.html
(2.92 KB)
π
upgrade_3_0_eagain.html
(3.36 KB)
π
upgrade_3_0_envopen.html
(10.19 KB)
π
upgrade_3_0_func.html
(4.63 KB)
π
upgrade_3_0_java.html
(3.38 KB)
π
upgrade_3_0_join.html
(3.06 KB)
π
upgrade_3_0_jump_set.html
(7.04 KB)
π
upgrade_3_0_lock_detect.html
(2.73 KB)
π
upgrade_3_0_lock_notheld.html
(2.87 KB)
π
upgrade_3_0_lock_put.html
(2.81 KB)
π
upgrade_3_0_lock_stat.html
(2.85 KB)
π
upgrade_3_0_log_register.html
(2.73 KB)
π
upgrade_3_0_log_stat.html
(2.67 KB)
π
upgrade_3_0_memp_stat.html
(2.92 KB)
π
upgrade_3_0_open.html
(5.03 KB)
π
upgrade_3_0_rmw.html
(3.28 KB)
π
upgrade_3_0_stat.html
(2.77 KB)
π
upgrade_3_0_toc.html
(7.75 KB)
π
upgrade_3_0_txn_begin.html
(2.73 KB)
π
upgrade_3_0_txn_commit.html
(2.72 KB)
π
upgrade_3_0_txn_stat.html
(2.64 KB)
π
upgrade_3_0_value_set.html
(4.79 KB)
π
upgrade_3_0_xa.html
(3.49 KB)
π
upgrade_3_1_btstat.html
(5.49 KB)
π
upgrade_3_1_config.html
(4.69 KB)
π
upgrade_3_1_disk.html
(3.8 KB)
π
upgrade_3_1_dup.html
(3.24 KB)
π
upgrade_3_1_env.html
(8.03 KB)
π
upgrade_3_1_log_register.html
(3.05 KB)
π
upgrade_3_1_logalloc.html
(2.92 KB)
π
upgrade_3_1_memp_register.html
(3.39 KB)
π
upgrade_3_1_put.html
(5.23 KB)
π
upgrade_3_1_set_feedback.html
(3.26 KB)
π
upgrade_3_1_set_paniccall.html
(3.06 KB)
π
upgrade_3_1_set_tx_recover.html
(4.04 KB)
π
upgrade_3_1_sysmem.html
(2.94 KB)
π
upgrade_3_1_tcl.html
(3.42 KB)
π
upgrade_3_1_tmp.html
(3.36 KB)
π
upgrade_3_1_toc.html
(5.8 KB)
π
upgrade_3_1_txn_check.html
(2.78 KB)
π
upgrade_3_2_callback.html
(4.14 KB)
π
upgrade_3_2_db_dump.html
(3.36 KB)
π
upgrade_3_2_disk.html
(3.14 KB)
π
upgrade_3_2_handle.html
(3.07 KB)
π
upgrade_3_2_incomplete.html
(4.27 KB)
π
upgrade_3_2_mutexlock.html
(3.02 KB)
π
upgrade_3_2_notfound.html
(2.8 KB)
π
upgrade_3_2_renumber.html
(3.79 KB)
π
upgrade_3_2_set_flags.html
(4.54 KB)
π
upgrade_3_2_toc.html
(4.88 KB)
π
upgrade_3_2_tx_recover.html
(3.47 KB)
π
upgrade_3_3_alloc.html
(6.83 KB)
π
upgrade_3_3_bigfile.html
(3.02 KB)
π
upgrade_3_3_conflict.html
(2.75 KB)
π
upgrade_3_3_disk.html
(2.98 KB)
π
upgrade_3_3_getswap.html
(3.18 KB)
π
upgrade_3_3_gettype.html
(3.11 KB)
π
upgrade_3_3_memp_fget.html
(3.63 KB)
π
upgrade_3_3_rpc.html
(3.12 KB)
π
upgrade_3_3_shared.html
(3.24 KB)
π
upgrade_3_3_toc.html
(4.82 KB)
π
upgrade_3_3_txn_prepare.html
(2.88 KB)
π
upgrade_4_0_asr.html
(4.03 KB)
π
upgrade_4_0_cxx.html
(3.6 KB)
π
upgrade_4_0_deadlock.html
(2.99 KB)
π
upgrade_4_0_disk.html
(2.93 KB)
π
upgrade_4_0_env.html
(7.19 KB)
π
upgrade_4_0_java.html
(3.55 KB)
π
upgrade_4_0_lock.html
(5.3 KB)
π
upgrade_4_0_lock_id_free.html
(2.99 KB)
π
upgrade_4_0_log.html
(6.25 KB)
π
upgrade_4_0_mp.html
(8.42 KB)
π
upgrade_4_0_rpc.html
(2.97 KB)
π
upgrade_4_0_set_lk_max.html
(3.11 KB)
π
upgrade_4_0_toc.html
(9.05 KB)
π
upgrade_4_0_txn.html
(5.59 KB)
π
upgrade_4_1_app_dispatch.html
(3.5 KB)
π
upgrade_4_1_checkpoint.html
(3.19 KB)
π
upgrade_4_1_cxx.html
(4.1 KB)
π
upgrade_4_1_disk.html
(3.38 KB)
π
upgrade_4_1_excl.html
(3.07 KB)
π
upgrade_4_1_fop.html
(8.93 KB)
π
upgrade_4_1_hash_nelem.html
(2.82 KB)
π
upgrade_4_1_incomplete.html
(3.08 KB)
π
upgrade_4_1_java.html
(2.92 KB)
π
upgrade_4_1_log_register.html
(2.89 KB)
π
upgrade_4_1_log_stat.html
(2.84 KB)
π
upgrade_4_1_memp_sync.html
(3.25 KB)
π
upgrade_4_1_toc.html
(9.38 KB)
π
upgrade_4_2_cksum.html
(3.13 KB)
π
upgrade_4_2_client.html
(2.76 KB)
π
upgrade_4_2_del.html
(3.69 KB)
π
upgrade_4_2_disk.html
(2.91 KB)
π
upgrade_4_2_java.html
(8.34 KB)
π
upgrade_4_2_lockng.html
(5.83 KB)
π
upgrade_4_2_nosync.html
(3.69 KB)
π
upgrade_4_2_priority.html
(3.18 KB)
π
upgrade_4_2_queue.html
(3.37 KB)
π
upgrade_4_2_repinit.html
(6.09 KB)
π
upgrade_4_2_tcl.html
(2.62 KB)
π
upgrade_4_2_toc.html
(9.93 KB)
π
upgrade_4_2_verify.html
(3.91 KB)
π
upgrade_4_3_cput.html
(2.94 KB)
π
upgrade_4_3_disk.html
(2.93 KB)
π
upgrade_4_3_enomem.html
(4.42 KB)
π
upgrade_4_3_err.html
(3.41 KB)
π
upgrade_4_3_fileopen.html
(2.63 KB)
π
upgrade_4_3_java.html
(5.19 KB)
π
upgrade_4_3_log.html
(3.27 KB)
π
upgrade_4_3_repl.html
(3.97 KB)
π
upgrade_4_3_rtc.html
(2.86 KB)
π
upgrade_4_3_stat.html
(2.91 KB)
π
upgrade_4_3_toc.html
(9.14 KB)
π
upgrade_4_3_verb.html
(3.69 KB)
π
upgrade_4_4_autocommit.html
(4.73 KB)
π
upgrade_4_4_clear.html
(3.33 KB)
π
upgrade_4_4_disk.html
(2.94 KB)
π
upgrade_4_4_isolation.html
(3.07 KB)
π
upgrade_4_4_joinenv.html
(4.86 KB)
π
upgrade_4_4_lockstat.html
(3.06 KB)
π
upgrade_4_4_mutex.html
(3.42 KB)
π
upgrade_4_4_toc.html
(9.22 KB)
π
upgrade_4_5_alive.html
(3.26 KB)
π
upgrade_4_5_applog.html
(3.28 KB)
π
upgrade_4_5_collect.html
(3.1 KB)
π
upgrade_4_5_config.html
(3.13 KB)
π
upgrade_4_5_deprecate.html
(3.39 KB)
π
upgrade_4_5_disk.html
(2.96 KB)
π
upgrade_4_5_elect.html
(4.47 KB)
π
upgrade_4_5_memp.html
(3.32 KB)
π
upgrade_4_5_pagesize.html
(2.89 KB)
π
upgrade_4_5_paniccall.html
(3.41 KB)
π
upgrade_4_5_rep_event.html
(3.23 KB)
π
upgrade_4_5_rep_set.html
(3.22 KB)
π
upgrade_4_5_source.html
(3.53 KB)
π
upgrade_4_5_toc.html
(9.75 KB)
π
upgrade_4_6_cursor.html
(4.02 KB)
π
upgrade_4_6_disk.html
(3.29 KB)
π
upgrade_4_6_event.html
(5.7 KB)
π
upgrade_4_6_full_election.html
(3.29 KB)
π
upgrade_4_6_memp_fput.html
(3.29 KB)
π
upgrade_4_6_memp_fset.html
(2.78 KB)
π
upgrade_4_6_toc.html
(9.41 KB)
π
upgrade_4_6_verb.html
(2.79 KB)
π
upgrade_4_6_verbose.html
(4.92 KB)
π
upgrade_4_6_win.html
(2.81 KB)
π
upgrade_4_7_disk.html
(3.08 KB)
π
upgrade_4_7_interdir.html
(3.18 KB)
π
upgrade_4_7_log.html
(4.23 KB)
π
upgrade_4_7_repapi.html
(3.19 KB)
π
upgrade_4_7_rtc.html
(4.29 KB)
π
upgrade_4_7_tcl.html
(2.96 KB)
π
upgrade_4_7_toc.html
(8.86 KB)
π
upgrade_process.html
(18.08 KB)
Editing: upgrade_3_0_dbenv.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>DB_ENV structure</title> <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="Berkeley DB Upgrade Guide" /> <link rel="up" href="upgrade_3_0_toc.html" title="ChapterΒ 14.Β Upgrading Berkeley DB 2.X applications to Berkeley DB 3.0" /> <link rel="prev" href="upgrade_3_0_func.html" title="function arguments" /> <link rel="next" href="upgrade_3_0_open.html" title="database open/close" /> </head> <body> <div xmlns="" class="navheader"> <div class="libver"> <p>Library Version 11.2.5.3</p> </div> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">DB_ENV structure</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="upgrade_3_0_func.html">Prev</a>Β </td> <th width="60%" align="center">ChapterΒ 14.Β Upgrading Berkeley DB 2.X applications to Berkeley DB 3.0</th> <td width="20%" align="right">Β <a accesskey="n" href="upgrade_3_0_open.html">Next</a></td> </tr> </table> <hr /> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="upgrade_3_0_dbenv"></a>DB_ENV structure</h2> </div> </div> </div> <p>The <a href="../api_reference/C/env.html" class="olink">DB_ENV</a> structure is now opaque for applications in the Berkeley DB 3.0 release. Accesses to any fields within that structure by the application should be replaced with method calls. The following example illustrates this using the historic errpfx structure field. In the Berkeley DB 2.X releases, applications set error prefixes using code similar to the following:</p> <pre class="programlisting">DB_ENV *dbenv; dbenv->errpfx = "my prefix";</pre> <p>in the Berkeley DB 3.X releases, this should be done using the <a href="../api_reference/C/envset_errpfx.html" class="olink">DB_ENV->set_errpfx()</a> method, as follows:</p> <pre class="programlisting">DB_ENV *dbenv; dbenv->set_errpfx(dbenv, "my prefix");</pre> <p>The following table lists the <a href="../api_reference/C/env.html" class="olink">DB_ENV</a> fields previously used by applications and the methods that should now be used to set them.</p> <div class="informaltable"> <table border="1" width="80%"> <colgroup> <col /> <col /> </colgroup> <thead> <tr> <th><a href="../api_reference/C/env.html" class="olink">DB_ENV</a> field</th> <th>Berkeley DB 3.X method</th> </tr> </thead> <tbody> <tr> <td>db_errcall</td> <td> <a href="../api_reference/C/envset_errcall.html" class="olink">DB_ENV->set_errcall()</a> </td> </tr> <tr> <td>db_errfile</td> <td> <a href="../api_reference/C/envset_errfile.html" class="olink">DB_ENV->set_errfile()</a> </td> </tr> <tr> <td>db_errpfx</td> <td> <a href="../api_reference/C/envset_errpfx.html" class="olink">DB_ENV->set_errpfx()</a> </td> </tr> <tr> <td>db_lorder</td> <td>This field was removed from the <a href="../api_reference/C/env.html" class="olink">DB_ENV</a> structure in the Berkeley DB 3.0 release as no application should have ever used it. Any code using it should be evaluated for potential bugs.</td> </tr> <tr> <td>db_paniccall</td> <td>DB_ENV->set_paniccall</td> </tr> <tr> <td>db_verbose</td> <td><a href="../api_reference/C/envset_verbose.html" class="olink">DB_ENV->set_verbose()</a> <p>Note: the db_verbose field was a simple boolean toggle, the <a href="../api_reference/C/envset_verbose.html" class="olink">DB_ENV->set_verbose()</a> method takes arguments that specify exactly which verbose messages are desired.</p></td> </tr> <tr> <td>lg_max</td> <td> <a href="../api_reference/C/envset_lg_max.html" class="olink">DB_ENV->set_lg_max()</a> </td> </tr> <tr> <td>lk_conflicts</td> <td> <a href="../api_reference/C/envset_lk_conflicts.html" class="olink">DB_ENV->set_lk_conflicts()</a> </td> </tr> <tr> <td>lk_detect</td> <td> <a href="../api_reference/C/envset_lk_detect.html" class="olink">DB_ENV->set_lk_detect()</a> </td> </tr> <tr> <td>lk_max</td> <td>dbenv->set_lk_max</td> </tr> <tr> <td>lk_modes</td> <td> <a href="../api_reference/C/envset_lk_conflicts.html" class="olink">DB_ENV->set_lk_conflicts()</a> </td> </tr> <tr> <td>mp_mmapsize</td> <td> <a href="../api_reference/C/envset_mp_mmapsize.html" class="olink">DB_ENV->set_mp_mmapsize()</a> </td> </tr> <tr> <td>mp_size</td> <td><a href="../api_reference/C/envset_cachesize.html" class="olink">DB_ENV->set_cachesize()</a> <p>Note: the <a href="../api_reference/C/envset_cachesize.html" class="olink">DB_ENV->set_cachesize()</a> function takes additional arguments. Setting both the second argument (the number of GB in the pool) and the last argument (the number of memory pools to create) to 0 will result in behavior that is backward-compatible with previous Berkeley DB releases.</p></td> </tr> <tr> <td>tx_info</td> <td>This field was used by applications as an argument to the transaction subsystem functions. As those functions take references to a <a href="../api_reference/C/env.html" class="olink">DB_ENV</a> structure as arguments in the Berkeley DB 3.0 release, it should no longer be used by any application.</td> </tr> <tr> <td>tx_max</td> <td> <a href="../api_reference/C/envset_tx_max.html" class="olink">DB_ENV->set_tx_max()</a> </td> </tr> <tr> <td>tx_recover</td> <td>dbenv->set_tx_recover</td> </tr> </tbody> </table> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="upgrade_3_0_func.html">Prev</a>Β </td> <td width="20%" align="center"> <a accesskey="u" href="upgrade_3_0_toc.html">Up</a> </td> <td width="40%" align="right">Β <a accesskey="n" href="upgrade_3_0_open.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">function argumentsΒ </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top">Β database open/close</td> </tr> </table> </div> </body> </html>
Upload File
Create Folder