diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/gsg_txn | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
Diffstat (limited to 'docs/gsg_txn')
118 files changed, 367 insertions, 298 deletions
diff --git a/docs/gsg_txn/C/BerkeleyDB-Core-C-Txn.pdf b/docs/gsg_txn/C/BerkeleyDB-Core-C-Txn.pdf Binary files differindex 3f7bc513..39230291 100644 --- a/docs/gsg_txn/C/BerkeleyDB-Core-C-Txn.pdf +++ b/docs/gsg_txn/C/BerkeleyDB-Core-C-Txn.pdf diff --git a/docs/gsg_txn/C/abortresults.html b/docs/gsg_txn/C/abortresults.html index 014d787d..b2949426 100644 --- a/docs/gsg_txn/C/abortresults.html +++ b/docs/gsg_txn/C/abortresults.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/apireq.html b/docs/gsg_txn/C/apireq.html index e143b6bb..eecc3f76 100644 --- a/docs/gsg_txn/C/apireq.html +++ b/docs/gsg_txn/C/apireq.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/architectrecovery.html b/docs/gsg_txn/C/architectrecovery.html index de624c74..5d59c8d8 100644 --- a/docs/gsg_txn/C/architectrecovery.html +++ b/docs/gsg_txn/C/architectrecovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/autocommit.html b/docs/gsg_txn/C/autocommit.html index 1f2edd82..4e8265ed 100644 --- a/docs/gsg_txn/C/autocommit.html +++ b/docs/gsg_txn/C/autocommit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/backuprestore.html b/docs/gsg_txn/C/backuprestore.html index 707c26ba..b66c89a8 100644 --- a/docs/gsg_txn/C/backuprestore.html +++ b/docs/gsg_txn/C/backuprestore.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -113,6 +113,14 @@ </li> </ul> </div> + <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> + <h3 class="title">Note</h3> + <p> + DB backups are byte-order independent. That is, a backup + taken on a big-endian machine can be used to restore a database + residing on a little-endian machine. + </p> + </div> <p> Once you have performed a backup, you can perform <span class="emphasis"><em>catastrophic recovery</em></span> to restore @@ -284,7 +292,7 @@ <span> For more information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/envset_flags.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/envset_flags.html" target="_top"> DB_ENV->set_flags() API reference page. </a> @@ -373,7 +381,7 @@ For more information, see the description of the <code class="literal">DB_TXN_BULK</code> flag in the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/txnbegin.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/txnbegin.html" target="_top"> DB_ENV->txn_begin() API reference page. </a> diff --git a/docs/gsg_txn/C/blocking_deadlocks.html b/docs/gsg_txn/C/blocking_deadlocks.html index f997e5a6..ac0c7259 100644 --- a/docs/gsg_txn/C/blocking_deadlocks.html +++ b/docs/gsg_txn/C/blocking_deadlocks.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/enabletxn.html b/docs/gsg_txn/C/enabletxn.html index 8eb1390c..2bac87f4 100644 --- a/docs/gsg_txn/C/enabletxn.html +++ b/docs/gsg_txn/C/enabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -488,7 +488,7 @@ in the environment's <code class="literal">DB_CONFIG</code> file. Note that the <code class="literal">add_data_dir</code> parameter overrides any value set by the - <code class="methodname">DB_ENV->set_data_dir()</code> + <code class="methodname">DB_ENV->add_data_dir()</code> method. diff --git a/docs/gsg_txn/C/envopen.html b/docs/gsg_txn/C/envopen.html index d791fa79..56e9426e 100644 --- a/docs/gsg_txn/C/envopen.html +++ b/docs/gsg_txn/C/envopen.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/exclusivelock.html b/docs/gsg_txn/C/exclusivelock.html index 1d844d0f..4fb5c624 100644 --- a/docs/gsg_txn/C/exclusivelock.html +++ b/docs/gsg_txn/C/exclusivelock.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/filemanagement.html b/docs/gsg_txn/C/filemanagement.html index 29dacd03..2b09bf49 100644 --- a/docs/gsg_txn/C/filemanagement.html +++ b/docs/gsg_txn/C/filemanagement.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -178,10 +178,11 @@ </li> <li> <p> - Temporary files, which are created only under certain special circumstances. These files never need to - be backed up or otherwise managed and so they are not a consideration for the topics described in this - chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> - for more information on temporary files. + Temporary files, which are created only under certain + special circumstances. These files never need to be backed + up or otherwise managed and so they are not a consideration + for the topics described in this chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> for more + information on temporary files. </p> </li> </ul> @@ -227,11 +228,15 @@ <ul type="disc"> <li> <p> - Flushes dirty pages from the in-memory cache. This means that data modifications found in your - in-memory cache are written to the database files on disk. Note that a checkpoint also causes data - dirtied by an uncommitted transaction to also be written to your database files on disk. In this latter - case, DB's normal recovery is used to remove any such modifications that were subsequently - abandoned by your application using a transaction abort. + Flushes dirty pages from the in-memory cache. This + means that data modifications found in your in-memory + cache are written to the database files on disk. Note that + a checkpoint also causes data dirtied by an uncommitted + transaction to also be written to your database files on + disk. In this latter case, DB's normal recovery is + used to remove any such modifications that were + subsequently abandoned by your application using a + transaction abort. </p> <p> Normal recovery is describe in <a class="xref" href="recovery.html" title="Recovery Procedures">Recovery Procedures</a>. @@ -244,7 +249,8 @@ </li> <li> <p> - Flushes the log. This causes all log data that has not yet been written to disk to be written. + Flushes the log. This causes all log data that has not + yet been written to disk to be written. </p> </li> <li> @@ -256,8 +262,9 @@ </div> <p> There are several ways to run a checkpoint. One way is to use - the <span class="command"><strong>db_checkpoint</strong></span> command line utility. (Note, however, that this command line utility - cannot be used if your environment was opened using + the <span class="command"><strong>db_checkpoint</strong></span> command line utility. + (Note, however, that this command line utility cannot be used + if your environment was opened using <span> <code class="literal">DB_PRIVATE</code>.) </span> @@ -283,7 +290,7 @@ </p> <p> For configuration information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/txncheckpoint.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/txncheckpoint.html" target="_top"> DB_ENV->txn_checkpoint() API reference page. </a> diff --git a/docs/gsg_txn/C/hotfailover.html b/docs/gsg_txn/C/hotfailover.html index b46fab8e..12b9963c 100644 --- a/docs/gsg_txn/C/hotfailover.html +++ b/docs/gsg_txn/C/hotfailover.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -152,9 +152,10 @@ <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> - Rather than use the previous procedure, you can use the <span class="command"><strong>db_hotbackup</strong></span> command line utility - to do the same thing. This utility will (optionally) run a checkpoint and then copy all necessary files to a target - directory for you. + Rather than use the previous procedure, you can use the + <span class="command"><strong>db_hotbackup</strong></span> command line utility to do the + same thing. This utility will (optionally) run a checkpoint and + then copy all necessary files to a target directory for you. </p> </div> <p> @@ -169,14 +170,18 @@ </li> <li> <p> - If you have an archival copy of the backup environment, you can optionally try copying the remaining - log files from the original environment and running catastrophic recovery against that backup - environment. Do this <span class="emphasis"><em>only</em></span> if you have a an archival copy of the backup - environment. + If you have an archival copy of the backup environment, + you can optionally try copying the remaining log files + from the original environment and running catastrophic + recovery against that backup environment. Do this + <span class="emphasis"><em>only</em></span> if you have a an archival + copy of the backup environment. </p> <p> - This step can allow you to recover data created or modified in the original environment, but which - did not have a chance to be reflected in the hot backup environment. + This step can allow you to recover data created or + modified in the original environment, but which did not + have a chance to be reflected in the hot backup + environment. </p> </li> <li> diff --git a/docs/gsg_txn/C/index.html b/docs/gsg_txn/C/index.html index b9c9b658..b79923b5 100644 --- a/docs/gsg_txn/C/index.html +++ b/docs/gsg_txn/C/index.html @@ -12,7 +12,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -30,11 +30,11 @@ <div class="titlepage"> <div> <div> - <h1 class="title"><a id="idm741240"></a>Getting Started with Berkeley DB Transaction Processing</h1> + <h1 class="title"><a id="idm713112"></a>Getting Started with Berkeley DB Transaction Processing</h1> </div> <div> <div class="legalnotice"> - <a id="idm836312"></a> + <a id="idm547384"></a> <p class="legalnotice-title"> <b>Legal Notice</b> </p> @@ -64,7 +64,7 @@ <p> To obtain a copy of this document's original source code, please submit a request to the Oracle Technology Network forum at: - <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a> + <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a> </p> @@ -72,7 +72,7 @@ </div> </div> <div> - <p class="pubdate">5/11/2012</p> + <p class="pubdate">2/17/2015</p> </div> </div> <hr /> diff --git a/docs/gsg_txn/C/inmem_txnexample_c.html b/docs/gsg_txn/C/inmem_txnexample_c.html index f53a76c7..d8876e9f 100644 --- a/docs/gsg_txn/C/inmem_txnexample_c.html +++ b/docs/gsg_txn/C/inmem_txnexample_c.html @@ -13,7 +13,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -138,7 +138,7 @@ * create our own thread IDs for reporting purposes. */ int global_thread_num; -pthread_mutex_t thread_num_lock; +mutex_t thread_num_lock; /* Forward declarations */ int count_records(DB *, DB_TXN *); @@ -162,7 +162,7 @@ main(void) DB *dbp = NULL; DB_ENV *envp = NULL; - pthread_t writer_threads[NUMWRITERS]; + thread_t writer_threads[NUMWRITERS]; int i, ret, ret_t; u_int32_t env_flags; @@ -294,16 +294,16 @@ main(void) we change the error message string so as to not reference the database filename. </p> <pre class="programlisting"> /* Initialize a pthread mutex. Used to help provide thread ids. */ - (void)pthread_mutex_init(&thread_num_lock, NULL); + (void)mutex_init(&thread_num_lock, NULL); /* Start the writer threads. */ for (i = 0; i < NUMWRITERS; i++) - (void)pthread_create( + (void)thread_create( &writer_threads[i], NULL, (void *)writer_thread, (void *)dbp); /* Join the writers */ for (i = 0; i < NUMWRITERS; i++) - (void)pthread_join(writer_threads[i], NULL); + (void)thread_join(writer_threads[i], NULL); err: /* Close our database handle, if it was opened. */ @@ -360,16 +360,16 @@ writer_thread(void *args) "key 9", "key 10"}; DB *dbp = (DB *)args; - DbEnv *envp = dbp-&gt;get_env(); + DbEnv *envp = dbp->get_env(); /* Get the thread number */ - (void)pthread_mutex_lock(&thread_num_lock); + (void)mutex_lock(&thread_num_lock); global_thread_num++; thread_num = global_thread_num; - (void)pthread_mutex_unlock(&thread_num_lock); + (void)mutex_unlock(&thread_num_lock); /* Initialize the random number generator */ - srand((u_int)pthread_self()); + srand(thread_num); /* Write 50 times and then quit */ for (i = 0; i < 50; i++) { @@ -379,13 +379,13 @@ retry: ret = envp->txn_begin(envp, NULL, &txn, 0); if (ret != 0) { envp->err(envp, ret, "txn_begin failed"); - return (EXIT_FAILURE); + return ((void *)EXIT_FAILURE); } for (j = 0; j < 10; j++) { /* Set up our key and values DBTs */ memset(&key, 0, sizeof(DBT)); key.data = key_strings[j]; - key.size = (strlen(key_strings[j]) + 1) * sizeof(char); + key.size = (u_int32_t)strlen(key_strings[j]) + 1; memset(&value, 0, sizeof(DBT)); payload = rand() + i; @@ -463,7 +463,7 @@ retry: /* * If all goes well, we can commit the transaction and - * loop to the next transaction. + * exit the thread. */ ret = txn->commit(txn, 0); if (ret != 0) { @@ -595,7 +595,7 @@ open_db(DB **dbpp, const char *progname, const char *file_name, experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/txn_guide</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/txn_guide</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/C/introduction.html b/docs/gsg_txn/C/introduction.html index 87a786ee..1c6789b6 100644 --- a/docs/gsg_txn/C/introduction.html +++ b/docs/gsg_txn/C/introduction.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/isolation.html b/docs/gsg_txn/C/isolation.html index 8ece9421..ea3f5276 100644 --- a/docs/gsg_txn/C/isolation.html +++ b/docs/gsg_txn/C/isolation.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/lockingsubsystem.html b/docs/gsg_txn/C/lockingsubsystem.html index 1f328844..3afc15af 100644 --- a/docs/gsg_txn/C/lockingsubsystem.html +++ b/docs/gsg_txn/C/lockingsubsystem.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -447,7 +447,7 @@ main(void) <pre class="programlisting">> /usr/local/db_install/bin/db_deadlock -h /export/dbenv -a y</pre> <p> For more information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> <code class="literal">db_deadlock</code> reference documentation. </a> </p> diff --git a/docs/gsg_txn/C/logconfig.html b/docs/gsg_txn/C/logconfig.html index 4144f8e0..aff13a11 100644 --- a/docs/gsg_txn/C/logconfig.html +++ b/docs/gsg_txn/C/logconfig.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/logfileremoval.html b/docs/gsg_txn/C/logfileremoval.html index f75086c0..06a24646 100644 --- a/docs/gsg_txn/C/logfileremoval.html +++ b/docs/gsg_txn/C/logfileremoval.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/maxtxns.html b/docs/gsg_txn/C/maxtxns.html index b7f38a0d..709a1979 100644 --- a/docs/gsg_txn/C/maxtxns.html +++ b/docs/gsg_txn/C/maxtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/moreinfo.html b/docs/gsg_txn/C/moreinfo.html index fe5648ac..fee48e13 100644 --- a/docs/gsg_txn/C/moreinfo.html +++ b/docs/gsg_txn/C/moreinfo.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -54,7 +54,7 @@ <ul type="disc"> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg/C/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg/C/index.html" target="_top"> Getting Started with Berkeley DB for C </a> @@ -68,7 +68,7 @@ </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_db_rep/C/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_db_rep/C/index.html" target="_top"> Berkeley DB Getting Started with Replicated Applications for C </a> @@ -77,7 +77,7 @@ </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html" target="_top"> Berkeley DB Programmer's Reference Guide </a> </p> @@ -85,7 +85,7 @@ <li> <p> <span> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/frame_main.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/frame_main.html" target="_top"> Berkeley DB C API Reference Guide </a> @@ -115,7 +115,7 @@ downloads, visit - <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>. + <a class="ulink" href="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html</a>. </p> </span> <div class="sect2" lang="en" xml:lang="en"> @@ -130,8 +130,8 @@ You can post your comments and questions at the Oracle Technology (OTN) forum for <span> - Oracle Berkeley DB at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>, - or for Oracle Berkeley DB High Availability at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=272</a>. + Oracle Berkeley DB at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>, + or for Oracle Berkeley DB High Availability at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=272</a>. </span> diff --git a/docs/gsg_txn/C/multithread-intro.html b/docs/gsg_txn/C/multithread-intro.html index 05bc3602..d6d4f411 100644 --- a/docs/gsg_txn/C/multithread-intro.html +++ b/docs/gsg_txn/C/multithread-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/nestedtxn.html b/docs/gsg_txn/C/nestedtxn.html index 830342a4..5e6a03ba 100644 --- a/docs/gsg_txn/C/nestedtxn.html +++ b/docs/gsg_txn/C/nestedtxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/nodurabletxn.html b/docs/gsg_txn/C/nodurabletxn.html index ed3a0642..e7b5ba1c 100644 --- a/docs/gsg_txn/C/nodurabletxn.html +++ b/docs/gsg_txn/C/nodurabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/perftune-intro.html b/docs/gsg_txn/C/perftune-intro.html index 7a8c2e67..97e1b001 100644 --- a/docs/gsg_txn/C/perftune-intro.html +++ b/docs/gsg_txn/C/perftune-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -55,11 +55,11 @@ <span> However, for a more complete description of them, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> Transaction tuning </a> and - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> Transaction throughput </a> sections of the <em class="citetitle">Berkeley DB Programmer's Reference Guide</em>. diff --git a/docs/gsg_txn/C/preface.html b/docs/gsg_txn/C/preface.html index 1ffb0acc..805b272c 100644 --- a/docs/gsg_txn/C/preface.html +++ b/docs/gsg_txn/C/preface.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -73,8 +73,8 @@ have for deadlock detection. </p> <p> - This book describes Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides library - version 11.2.5.3. + This book describes Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which provides library + version 12.1.6.1. </p> <p> This book is aimed at the software engineer responsible for writing a diff --git a/docs/gsg_txn/C/readmodifywrite.html b/docs/gsg_txn/C/readmodifywrite.html index 72b686e0..0379fb95 100644 --- a/docs/gsg_txn/C/readmodifywrite.html +++ b/docs/gsg_txn/C/readmodifywrite.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/recovery-intro.html b/docs/gsg_txn/C/recovery-intro.html index 5a1a596f..756334df 100644 --- a/docs/gsg_txn/C/recovery-intro.html +++ b/docs/gsg_txn/C/recovery-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/recovery.html b/docs/gsg_txn/C/recovery.html index d9884ee2..ad2e9a09 100644 --- a/docs/gsg_txn/C/recovery.html +++ b/docs/gsg_txn/C/recovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/reversesplit.html b/docs/gsg_txn/C/reversesplit.html index 949e0626..d4a1d0c0 100644 --- a/docs/gsg_txn/C/reversesplit.html +++ b/docs/gsg_txn/C/reversesplit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/sysfailure.html b/docs/gsg_txn/C/sysfailure.html index 55442f47..46a5188b 100644 --- a/docs/gsg_txn/C/sysfailure.html +++ b/docs/gsg_txn/C/sysfailure.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/txn_ccursor.html b/docs/gsg_txn/C/txn_ccursor.html index e771903c..7c44d197 100644 --- a/docs/gsg_txn/C/txn_ccursor.html +++ b/docs/gsg_txn/C/txn_ccursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/txnconcurrency.html b/docs/gsg_txn/C/txnconcurrency.html index 61667bff..b2d699dc 100644 --- a/docs/gsg_txn/C/txnconcurrency.html +++ b/docs/gsg_txn/C/txnconcurrency.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/txncursor.html b/docs/gsg_txn/C/txncursor.html index f87fd6e3..16bd0d1d 100644 --- a/docs/gsg_txn/C/txncursor.html +++ b/docs/gsg_txn/C/txncursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/txnexample_c.html b/docs/gsg_txn/C/txnexample_c.html index ddb94dce..8927d7a5 100644 --- a/docs/gsg_txn/C/txnexample_c.html +++ b/docs/gsg_txn/C/txnexample_c.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -97,7 +97,7 @@ extern int getopt(int, char * const *, const char *); * create our own thread IDs for reporting purposes. */ int global_thread_num; -pthread_mutex_t thread_num_lock; +mutex_t thread_num_lock; /* Forward declarations */ int count_records(DB *, DB_TXN *); @@ -128,7 +128,7 @@ main(int argc, char *argv[]) DB *dbp = NULL; DB_ENV *envp = NULL; - pthread_t writer_threads[NUMWRITERS]; + thread_t writer_threads[NUMWRITERS]; int ch, i, ret, ret_t; u_int32_t env_flags; char *db_home_dir; @@ -274,16 +274,16 @@ main(int argc, char *argv[]) thread. </p> <pre class="programlisting"> /* Initialize a pthread mutex. Used to help provide thread ids. */ - (void)pthread_mutex_init(&thread_num_lock, NULL); + (void)mutex_init(&thread_num_lock, NULL); /* Start the writer threads. */ for (i = 0; i < NUMWRITERS; i++) - (void)pthread_create(&writer_threads[i], NULL, + (void)thread_create(&writer_threads[i], NULL, writer_thread, (void *)dbp); /* Join the writers */ for (i = 0; i < NUMWRITERS; i++) - (void)pthread_join(writer_threads[i], NULL); </pre> + (void)thread_join(writer_threads[i], NULL); </pre> <p> Finally, to wrap up <code class="function">main()</code>, we close out our database and environment handle, as is normal for any DB @@ -359,13 +359,13 @@ writer_thread(void *args) We use this random number generator for data generation. </p> <pre class="programlisting"> /* Get the thread number */ - (void)pthread_mutex_lock(&thread_num_lock); + (void)mutex_lock(&thread_num_lock); global_thread_num++; thread_num = global_thread_num; - (void)pthread_mutex_unlock(&thread_num_lock); + (void)mutex_unlock(&thread_num_lock); /* Initialize the random number generator */ - srand((u_int)pthread_self()); </pre> + srand(thread_num); </pre> <p> Now we begin the loop that we use to write data to the database. <span> @@ -429,8 +429,8 @@ retry: <pre class="programlisting"> for (j = 0; j < 10; j++) { /* Set up our key and values DBTs */ memset(&key, 0, sizeof(DBT)); - key.data = key_strings[j]; - key.size = (strlen(key_strings[j]) + 1) * sizeof(char); + key.data = (void *)key_strings[j]; + key.size = (u_int32_t)(strlen(key_strings[j]) + 1); memset(&value, 0, sizeof(DBT)); payload = rand() + i; @@ -523,7 +523,7 @@ retry: /* * If all goes well, we can commit the transaction and - * loop to the next transaction. + * exit the thread. */ ret = txn->commit(txn, 0); if (ret != 0) { @@ -615,12 +615,22 @@ retry: </p> <pre class="programlisting">/* * This simply counts the number of records contained in the - * database and returns the result. + * database and returns the result. You can use this function + * in three ways: + * + * First call it with an active txn handle. + * Secondly, configure the cursor for uncommitted reads (this + * is what the example currently does). + * Third, call count_records AFTER the writer has committed + * its transaction. + * + * If you do none of these things, the writer thread will + * self-deadlock. * * Note that this function exists only for illustrative purposes. * A more straight-forward way to count the number of records in * a database is to use DB->stat() or DB->stat_print(). - */ +*/ int count_records(DB *dbp, DB_TXN *txn) @@ -736,7 +746,7 @@ open_db(DB **dbpp, const char *progname, const char *file_name, experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/txn_guide</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/txn_guide</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/C/txnindices.html b/docs/gsg_txn/C/txnindices.html index 8d0fda98..a20f1dec 100644 --- a/docs/gsg_txn/C/txnindices.html +++ b/docs/gsg_txn/C/txnindices.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/txnnowait.html b/docs/gsg_txn/C/txnnowait.html index b7ee83dd..e6572021 100644 --- a/docs/gsg_txn/C/txnnowait.html +++ b/docs/gsg_txn/C/txnnowait.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/usingtxns.html b/docs/gsg_txn/C/usingtxns.html index 8b124476..1b8d96c9 100644 --- a/docs/gsg_txn/C/usingtxns.html +++ b/docs/gsg_txn/C/usingtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/C/wrapup.html b/docs/gsg_txn/C/wrapup.html index 80543ba5..8a588fde 100644 --- a/docs/gsg_txn/C/wrapup.html +++ b/docs/gsg_txn/C/wrapup.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf b/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf Binary files differindex 9b16686c..8546d9b1 100644 --- a/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf +++ b/docs/gsg_txn/CXX/BerkeleyDB-Core-Cxx-Txn.pdf diff --git a/docs/gsg_txn/CXX/abortresults.html b/docs/gsg_txn/CXX/abortresults.html index e94a5d55..25d2cc47 100644 --- a/docs/gsg_txn/CXX/abortresults.html +++ b/docs/gsg_txn/CXX/abortresults.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/apireq.html b/docs/gsg_txn/CXX/apireq.html index 8d38720d..f0ba4410 100644 --- a/docs/gsg_txn/CXX/apireq.html +++ b/docs/gsg_txn/CXX/apireq.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/architectrecovery.html b/docs/gsg_txn/CXX/architectrecovery.html index 13c1fa44..cdd806bd 100644 --- a/docs/gsg_txn/CXX/architectrecovery.html +++ b/docs/gsg_txn/CXX/architectrecovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/autocommit.html b/docs/gsg_txn/CXX/autocommit.html index 2c09cbc5..0abb95c5 100644 --- a/docs/gsg_txn/CXX/autocommit.html +++ b/docs/gsg_txn/CXX/autocommit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/backuprestore.html b/docs/gsg_txn/CXX/backuprestore.html index bd976877..b661c452 100644 --- a/docs/gsg_txn/CXX/backuprestore.html +++ b/docs/gsg_txn/CXX/backuprestore.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -113,6 +113,14 @@ </li> </ul> </div> + <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> + <h3 class="title">Note</h3> + <p> + DB backups are byte-order independent. That is, a backup + taken on a big-endian machine can be used to restore a database + residing on a little-endian machine. + </p> + </div> <p> Once you have performed a backup, you can perform <span class="emphasis"><em>catastrophic recovery</em></span> to restore @@ -286,7 +294,7 @@ For more information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/envset_flags.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/envset_flags.html" target="_top"> DbEnv::set_flags() API reference page. </a> @@ -375,7 +383,7 @@ - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/txnbegin.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/txnbegin.html" target="_top"> DbEnv::txn_begin() API reference page. </a> diff --git a/docs/gsg_txn/CXX/blocking_deadlocks.html b/docs/gsg_txn/CXX/blocking_deadlocks.html index 4834c0c2..e9178b6e 100644 --- a/docs/gsg_txn/CXX/blocking_deadlocks.html +++ b/docs/gsg_txn/CXX/blocking_deadlocks.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/enabletxn.html b/docs/gsg_txn/CXX/enabletxn.html index c59b9f2d..5504f765 100644 --- a/docs/gsg_txn/CXX/enabletxn.html +++ b/docs/gsg_txn/CXX/enabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -489,7 +489,7 @@ Note that the <code class="literal">add_data_dir</code> parameter overrides any value set by the - <code class="methodname">DbEnv::set_data_dir()</code> + <code class="methodname">DbEnv::add_data_dir()</code> method. </p> diff --git a/docs/gsg_txn/CXX/envopen.html b/docs/gsg_txn/CXX/envopen.html index 08b11d1d..70590080 100644 --- a/docs/gsg_txn/CXX/envopen.html +++ b/docs/gsg_txn/CXX/envopen.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/exclusivelock.html b/docs/gsg_txn/CXX/exclusivelock.html index 70a774f5..a719fa27 100644 --- a/docs/gsg_txn/CXX/exclusivelock.html +++ b/docs/gsg_txn/CXX/exclusivelock.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/filemanagement.html b/docs/gsg_txn/CXX/filemanagement.html index 46da2aa2..6570e24d 100644 --- a/docs/gsg_txn/CXX/filemanagement.html +++ b/docs/gsg_txn/CXX/filemanagement.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -178,10 +178,11 @@ </li> <li> <p> - Temporary files, which are created only under certain special circumstances. These files never need to - be backed up or otherwise managed and so they are not a consideration for the topics described in this - chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> - for more information on temporary files. + Temporary files, which are created only under certain + special circumstances. These files never need to be backed + up or otherwise managed and so they are not a consideration + for the topics described in this chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> for more + information on temporary files. </p> </li> </ul> @@ -227,11 +228,15 @@ <ul type="disc"> <li> <p> - Flushes dirty pages from the in-memory cache. This means that data modifications found in your - in-memory cache are written to the database files on disk. Note that a checkpoint also causes data - dirtied by an uncommitted transaction to also be written to your database files on disk. In this latter - case, DB's normal recovery is used to remove any such modifications that were subsequently - abandoned by your application using a transaction abort. + Flushes dirty pages from the in-memory cache. This + means that data modifications found in your in-memory + cache are written to the database files on disk. Note that + a checkpoint also causes data dirtied by an uncommitted + transaction to also be written to your database files on + disk. In this latter case, DB's normal recovery is + used to remove any such modifications that were + subsequently abandoned by your application using a + transaction abort. </p> <p> Normal recovery is describe in <a class="xref" href="recovery.html" title="Recovery Procedures">Recovery Procedures</a>. @@ -244,7 +249,8 @@ </li> <li> <p> - Flushes the log. This causes all log data that has not yet been written to disk to be written. + Flushes the log. This causes all log data that has not + yet been written to disk to be written. </p> </li> <li> @@ -256,8 +262,9 @@ </div> <p> There are several ways to run a checkpoint. One way is to use - the <span class="command"><strong>db_checkpoint</strong></span> command line utility. (Note, however, that this command line utility - cannot be used if your environment was opened using + the <span class="command"><strong>db_checkpoint</strong></span> command line utility. + (Note, however, that this command line utility cannot be used + if your environment was opened using <span> <code class="literal">DB_PRIVATE</code>.) </span> @@ -284,7 +291,7 @@ <p> For configuration information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/txncheckpoint.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/txncheckpoint.html" target="_top"> DbEnv::txn_checkpoint() API reference page. </a> diff --git a/docs/gsg_txn/CXX/hotfailover.html b/docs/gsg_txn/CXX/hotfailover.html index b46fab8e..12b9963c 100644 --- a/docs/gsg_txn/CXX/hotfailover.html +++ b/docs/gsg_txn/CXX/hotfailover.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -152,9 +152,10 @@ <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> - Rather than use the previous procedure, you can use the <span class="command"><strong>db_hotbackup</strong></span> command line utility - to do the same thing. This utility will (optionally) run a checkpoint and then copy all necessary files to a target - directory for you. + Rather than use the previous procedure, you can use the + <span class="command"><strong>db_hotbackup</strong></span> command line utility to do the + same thing. This utility will (optionally) run a checkpoint and + then copy all necessary files to a target directory for you. </p> </div> <p> @@ -169,14 +170,18 @@ </li> <li> <p> - If you have an archival copy of the backup environment, you can optionally try copying the remaining - log files from the original environment and running catastrophic recovery against that backup - environment. Do this <span class="emphasis"><em>only</em></span> if you have a an archival copy of the backup - environment. + If you have an archival copy of the backup environment, + you can optionally try copying the remaining log files + from the original environment and running catastrophic + recovery against that backup environment. Do this + <span class="emphasis"><em>only</em></span> if you have a an archival + copy of the backup environment. </p> <p> - This step can allow you to recover data created or modified in the original environment, but which - did not have a chance to be reflected in the hot backup environment. + This step can allow you to recover data created or + modified in the original environment, but which did not + have a chance to be reflected in the hot backup + environment. </p> </li> <li> diff --git a/docs/gsg_txn/CXX/index.html b/docs/gsg_txn/CXX/index.html index ba4f6d6f..c4055d44 100644 --- a/docs/gsg_txn/CXX/index.html +++ b/docs/gsg_txn/CXX/index.html @@ -12,7 +12,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -30,11 +30,11 @@ <div class="titlepage"> <div> <div> - <h1 class="title"><a id="idm243608"></a>Getting Started with Berkeley DB Transaction Processing</h1> + <h1 class="title"><a id="idm951248"></a>Getting Started with Berkeley DB Transaction Processing</h1> </div> <div> <div class="legalnotice"> - <a id="idp43984"></a> + <a id="idp50442408"></a> <p class="legalnotice-title"> <b>Legal Notice</b> </p> @@ -64,7 +64,7 @@ <p> To obtain a copy of this document's original source code, please submit a request to the Oracle Technology Network forum at: - <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a> + <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a> </p> @@ -72,7 +72,7 @@ </div> </div> <div> - <p class="pubdate">5/11/2012</p> + <p class="pubdate">2/17/2015</p> </div> </div> <hr /> diff --git a/docs/gsg_txn/CXX/inmem_txnexample_c.html b/docs/gsg_txn/CXX/inmem_txnexample_c.html index 0ea30571..f5f31012 100644 --- a/docs/gsg_txn/CXX/inmem_txnexample_c.html +++ b/docs/gsg_txn/CXX/inmem_txnexample_c.html @@ -13,7 +13,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -134,7 +134,7 @@ // Printing of pthread_t is implementation-specific, so we // create our own thread IDs for reporting purposes. int global_thread_num; -pthread_mutex_t thread_num_lock; +mutex_t thread_num_lock; // Forward declarations int countRecords(Db *, DbTxn *); @@ -159,7 +159,7 @@ main(void) Db *dbp = NULL; DbEnv *envp = NULL; - pthread_t writerThreads[NUMWRITERS]; + thread_t writerThreads[NUMWRITERS]; int i; u_int32_t envFlags; @@ -253,18 +253,18 @@ main(void) we change the error message string so as to not reference the database filename. </p> <pre class="programlisting"> // Initialize a pthread mutex. Used to help provide thread ids. - (void)pthread_mutex_init(&thread_num_lock, NULL); + (void)mutex_init(&thread_num_lock, NULL); // Start the writer threads. for (i = 0; i < NUMWRITERS; i++) - (void)pthread_create( + (void)thread_create( &writerThreads[i], NULL, writerThread, (void *)dbp); // Join the writers for (i = 0; i < NUMWRITERS; i++) - (void)pthread_join(writerThreads[i], NULL); + (void)thread_join(writerThreads[i], NULL); } catch(DbException &e) { <strong class="userinput"><code>std::cerr << "Error opening database environment: "</code></strong> @@ -323,13 +323,13 @@ writerThread(void *args) "key 9", "key 10"}; // Get the thread number - (void)pthread_mutex_lock(&thread_num_lock); + (void)mutex_lock(&thread_num_lock); global_thread_num++; thread_num = global_thread_num; - (void)pthread_mutex_unlock(&thread_num_lock); + (void)mutex_unlock(&thread_num_lock); // Initialize the random number generator - srand((u_int)pthread_self()); + srand(thread_num); // Perform 50 transactions for (int i=0; i<50; i++) { @@ -359,9 +359,9 @@ writerThread(void *args) // Perform the database write for this transaction. for (j = 0; j < 10; j++) { Dbt key, value; - key.set_data(key_strings[j]); - key.set_size((strlen(key_strings[j]) + 1) * - sizeof(char)); + key.set_data((void *)key_strings[j]); + key.set_size( + (u_int32_t)(strlen(key_strings[j]) + 1); int payload = rand() + i; value.set_data(&payload); @@ -523,7 +523,7 @@ openDb(Db **dbpp, const char *progname, const char *fileName, experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_cxx/txn_guide</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/cxx/txn_guide</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/CXX/introduction.html b/docs/gsg_txn/CXX/introduction.html index 87a786ee..1c6789b6 100644 --- a/docs/gsg_txn/CXX/introduction.html +++ b/docs/gsg_txn/CXX/introduction.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/isolation.html b/docs/gsg_txn/CXX/isolation.html index d31d34cb..7e8bdca9 100644 --- a/docs/gsg_txn/CXX/isolation.html +++ b/docs/gsg_txn/CXX/isolation.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/lockingsubsystem.html b/docs/gsg_txn/CXX/lockingsubsystem.html index 40e6ccd7..e83648f2 100644 --- a/docs/gsg_txn/CXX/lockingsubsystem.html +++ b/docs/gsg_txn/CXX/lockingsubsystem.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -402,7 +402,7 @@ int main(void) <pre class="programlisting">> /usr/local/db_install/bin/db_deadlock -h /export/dbenv -a y</pre> <p> For more information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> <code class="literal">db_deadlock</code> reference documentation. </a> </p> diff --git a/docs/gsg_txn/CXX/logconfig.html b/docs/gsg_txn/CXX/logconfig.html index 5fc3086d..22d287c3 100644 --- a/docs/gsg_txn/CXX/logconfig.html +++ b/docs/gsg_txn/CXX/logconfig.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/logfileremoval.html b/docs/gsg_txn/CXX/logfileremoval.html index 4aac9ab4..7eff4669 100644 --- a/docs/gsg_txn/CXX/logfileremoval.html +++ b/docs/gsg_txn/CXX/logfileremoval.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/maxtxns.html b/docs/gsg_txn/CXX/maxtxns.html index bebbfe67..f7fea790 100644 --- a/docs/gsg_txn/CXX/maxtxns.html +++ b/docs/gsg_txn/CXX/maxtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/moreinfo.html b/docs/gsg_txn/CXX/moreinfo.html index 8936b638..2ccd6271 100644 --- a/docs/gsg_txn/CXX/moreinfo.html +++ b/docs/gsg_txn/CXX/moreinfo.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -55,7 +55,7 @@ <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg/CXX/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg/CXX/index.html" target="_top"> Getting Started with Berkeley DB for C++ </a> @@ -69,7 +69,7 @@ <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_db_rep/CXX/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_db_rep/CXX/index.html" target="_top"> Berkeley DB Getting Started with Replicated Applications for C++ </a> @@ -77,7 +77,7 @@ </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html" target="_top"> Berkeley DB Programmer's Reference Guide </a> </p> @@ -86,7 +86,7 @@ <p> <span> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/CXX/frame_main.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/CXX/frame_main.html" target="_top"> Berkeley DB C++ API Reference Guide </a> </span> @@ -115,7 +115,7 @@ downloads, visit - <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>. + <a class="ulink" href="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html</a>. </p> </span> <div class="sect2" lang="en" xml:lang="en"> @@ -130,8 +130,8 @@ You can post your comments and questions at the Oracle Technology (OTN) forum for <span> - Oracle Berkeley DB at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>, - or for Oracle Berkeley DB High Availability at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=272</a>. + Oracle Berkeley DB at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>, + or for Oracle Berkeley DB High Availability at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=272</a>. </span> diff --git a/docs/gsg_txn/CXX/multithread-intro.html b/docs/gsg_txn/CXX/multithread-intro.html index 05bc3602..d6d4f411 100644 --- a/docs/gsg_txn/CXX/multithread-intro.html +++ b/docs/gsg_txn/CXX/multithread-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/nestedtxn.html b/docs/gsg_txn/CXX/nestedtxn.html index f7c9546d..75f6bb7f 100644 --- a/docs/gsg_txn/CXX/nestedtxn.html +++ b/docs/gsg_txn/CXX/nestedtxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/nodurabletxn.html b/docs/gsg_txn/CXX/nodurabletxn.html index 4def0aef..4a644aa9 100644 --- a/docs/gsg_txn/CXX/nodurabletxn.html +++ b/docs/gsg_txn/CXX/nodurabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/perftune-intro.html b/docs/gsg_txn/CXX/perftune-intro.html index 7a8c2e67..97e1b001 100644 --- a/docs/gsg_txn/CXX/perftune-intro.html +++ b/docs/gsg_txn/CXX/perftune-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -55,11 +55,11 @@ <span> However, for a more complete description of them, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> Transaction tuning </a> and - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> Transaction throughput </a> sections of the <em class="citetitle">Berkeley DB Programmer's Reference Guide</em>. diff --git a/docs/gsg_txn/CXX/preface.html b/docs/gsg_txn/CXX/preface.html index 3b1d11ff..02cbf42d 100644 --- a/docs/gsg_txn/CXX/preface.html +++ b/docs/gsg_txn/CXX/preface.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -73,8 +73,8 @@ have for deadlock detection. </p> <p> - This book describes Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides library - version 11.2.5.3. + This book describes Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which provides library + version 12.1.6.1. </p> <p> This book is aimed at the software engineer responsible for writing a diff --git a/docs/gsg_txn/CXX/readmodifywrite.html b/docs/gsg_txn/CXX/readmodifywrite.html index 8cb515c6..5041f3cd 100644 --- a/docs/gsg_txn/CXX/readmodifywrite.html +++ b/docs/gsg_txn/CXX/readmodifywrite.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/recovery-intro.html b/docs/gsg_txn/CXX/recovery-intro.html index 5a1a596f..756334df 100644 --- a/docs/gsg_txn/CXX/recovery-intro.html +++ b/docs/gsg_txn/CXX/recovery-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/recovery.html b/docs/gsg_txn/CXX/recovery.html index ac07c2ef..d212f61b 100644 --- a/docs/gsg_txn/CXX/recovery.html +++ b/docs/gsg_txn/CXX/recovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/reversesplit.html b/docs/gsg_txn/CXX/reversesplit.html index 388865f9..321b969e 100644 --- a/docs/gsg_txn/CXX/reversesplit.html +++ b/docs/gsg_txn/CXX/reversesplit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/sysfailure.html b/docs/gsg_txn/CXX/sysfailure.html index 55442f47..46a5188b 100644 --- a/docs/gsg_txn/CXX/sysfailure.html +++ b/docs/gsg_txn/CXX/sysfailure.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/txn_ccursor.html b/docs/gsg_txn/CXX/txn_ccursor.html index de909ad5..7c97e04a 100644 --- a/docs/gsg_txn/CXX/txn_ccursor.html +++ b/docs/gsg_txn/CXX/txn_ccursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/txnconcurrency.html b/docs/gsg_txn/CXX/txnconcurrency.html index 22682830..d149bd9f 100644 --- a/docs/gsg_txn/CXX/txnconcurrency.html +++ b/docs/gsg_txn/CXX/txnconcurrency.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/txncursor.html b/docs/gsg_txn/CXX/txncursor.html index 413c155f..dcc35894 100644 --- a/docs/gsg_txn/CXX/txncursor.html +++ b/docs/gsg_txn/CXX/txncursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/txnexample_c.html b/docs/gsg_txn/CXX/txnexample_c.html index a6005e46..83a3f9f5 100644 --- a/docs/gsg_txn/CXX/txnexample_c.html +++ b/docs/gsg_txn/CXX/txnexample_c.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -93,7 +93,7 @@ extern int getopt(int, char * const *, const char *); <pre class="programlisting">// Printing of pthread_t is implementation-specific, so we // create our own thread IDs for reporting purposes. int global_thread_num; -pthread_mutex_t thread_num_lock; +mutex_t thread_num_lock; // Forward declarations int countRecords(Db *, DbTxn *); @@ -124,7 +124,7 @@ main(int argc, char *argv[]) Db *dbp = NULL; DbEnv *envp = NULL; - pthread_t writerThreads[NUMWRITERS]; + thread_t writerThreads[NUMWRITERS]; int ch, i; u_int32_t envFlags; char *dbHomeDir; @@ -237,16 +237,16 @@ The implementation of <code class="function">open_db()</code> is described thread. </p> <pre class="programlisting"> // Initialize a pthread mutex. Used to help provide thread ids. - (void)pthread_mutex_init(&thread_num_lock, NULL); + (void)mutex_init(&thread_num_lock, NULL); // Start the writer threads. for (i = 0; i < NUMWRITERS; i++) - (void)pthread_create(&writerThreads[i], NULL, + (void)thread_create(&writerThreads[i], NULL, writerThread, (void *)dbp); // Join the writers for (i = 0; i < NUMWRITERS; i++) - (void)pthread_join(writerThreads[i], NULL); + (void)thread_join(writerThreads[i], NULL); } catch(DbException &e) { std::cerr << "Error opening database environment: " @@ -320,13 +320,13 @@ writerThread(void *args) We use this random number generator for data generation. </p> <pre class="programlisting"> // Get the thread number - (void)pthread_mutex_lock(&thread_num_lock); + (void)mutex_lock(&thread_num_lock); global_thread_num++; thread_num = global_thread_num; - (void)pthread_mutex_unlock(&thread_num_lock); + (void)mutex_unlock(&thread_num_lock); // Initialize the random number generator - srand((u_int)pthread_self()); </pre> + srand(thread_num); </pre> <p> Now we begin the loop that we use to write data to the database. @@ -387,8 +387,7 @@ writerThread(void *args) for (j = 0; j < 10; j++) { Dbt key, value; key.set_data(key_strings[j]); - key.set_size((strlen(key_strings[j]) + 1) * - sizeof(char)); + key.set_size((u_int32_t)strlen(key_strings[j]) + 1); int payload = rand() + i; value.set_data(&payload); @@ -653,7 +652,7 @@ openDb(Db **dbpp, const char *progname, const char *fileName, experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_cxx/txn_guide</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/cxx/txn_guide</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/CXX/txnindices.html b/docs/gsg_txn/CXX/txnindices.html index b7fa65ed..1ba8c24e 100644 --- a/docs/gsg_txn/CXX/txnindices.html +++ b/docs/gsg_txn/CXX/txnindices.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/txnnowait.html b/docs/gsg_txn/CXX/txnnowait.html index 806a086d..9e068d22 100644 --- a/docs/gsg_txn/CXX/txnnowait.html +++ b/docs/gsg_txn/CXX/txnnowait.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/usingtxns.html b/docs/gsg_txn/CXX/usingtxns.html index 4f956e93..805d7676 100644 --- a/docs/gsg_txn/CXX/usingtxns.html +++ b/docs/gsg_txn/CXX/usingtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/CXX/wrapup.html b/docs/gsg_txn/CXX/wrapup.html index 80543ba5..8a588fde 100644 --- a/docs/gsg_txn/CXX/wrapup.html +++ b/docs/gsg_txn/CXX/wrapup.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/BerkeleyDB-Core-JAVA-Txn.pdf b/docs/gsg_txn/JAVA/BerkeleyDB-Core-JAVA-Txn.pdf Binary files differindex cea294df..48506a41 100644 --- a/docs/gsg_txn/JAVA/BerkeleyDB-Core-JAVA-Txn.pdf +++ b/docs/gsg_txn/JAVA/BerkeleyDB-Core-JAVA-Txn.pdf diff --git a/docs/gsg_txn/JAVA/abortresults.html b/docs/gsg_txn/JAVA/abortresults.html index eb525637..0b2d3a62 100644 --- a/docs/gsg_txn/JAVA/abortresults.html +++ b/docs/gsg_txn/JAVA/abortresults.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/apireq.html b/docs/gsg_txn/JAVA/apireq.html index c9779cbe..d203f518 100644 --- a/docs/gsg_txn/JAVA/apireq.html +++ b/docs/gsg_txn/JAVA/apireq.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/architectrecovery.html b/docs/gsg_txn/JAVA/architectrecovery.html index 50ca5af4..58ae930b 100644 --- a/docs/gsg_txn/JAVA/architectrecovery.html +++ b/docs/gsg_txn/JAVA/architectrecovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/autocommit.html b/docs/gsg_txn/JAVA/autocommit.html index 4903523b..06cc210b 100644 --- a/docs/gsg_txn/JAVA/autocommit.html +++ b/docs/gsg_txn/JAVA/autocommit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/backuprestore.html b/docs/gsg_txn/JAVA/backuprestore.html index 520fc318..7abb7159 100644 --- a/docs/gsg_txn/JAVA/backuprestore.html +++ b/docs/gsg_txn/JAVA/backuprestore.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -113,6 +113,14 @@ </li> </ul> </div> + <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> + <h3 class="title">Note</h3> + <p> + DB backups are byte-order independent. That is, a backup + taken on a big-endian machine can be used to restore a database + residing on a little-endian machine. + </p> + </div> <p> Once you have performed a backup, you can perform <span class="emphasis"><em>catastrophic recovery</em></span> to restore @@ -207,8 +215,8 @@ logs. To do this, use either the <span> - <code class="methodname">Environment.getArchiveDatabases()</code>, - method + <code class="methodname">Environment.getArchiveDatabases()</code> + method, </span> or use the <span class="command"><strong>db_archive</strong></span> @@ -284,7 +292,7 @@ <span> For more information, see the <code class="literal">setHotbackupInProgress()</code> method in the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/java/com/sleepycat/db/EnvironmentConfig.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/java/com/sleepycat/db/EnvironmentConfig.html" target="_top"> EnvironmentConfig Javadoc page. </a> </span> @@ -365,7 +373,7 @@ <span> For more information, see the <code class="literal">setBulk()</code> method in the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/java/com/sleepycat/db/TransactionConfig.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/java/com/sleepycat/db/TransactionConfig.html" target="_top"> TransactionConfig Javadoc page. </a> </span> diff --git a/docs/gsg_txn/JAVA/blocking_deadlocks.html b/docs/gsg_txn/JAVA/blocking_deadlocks.html index f74a15f9..68fedd09 100644 --- a/docs/gsg_txn/JAVA/blocking_deadlocks.html +++ b/docs/gsg_txn/JAVA/blocking_deadlocks.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/enabletxn.html b/docs/gsg_txn/JAVA/enabletxn.html index 33dd2fba..0700c59f 100644 --- a/docs/gsg_txn/JAVA/enabletxn.html +++ b/docs/gsg_txn/JAVA/enabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/envopen.html b/docs/gsg_txn/JAVA/envopen.html index 0835dbe8..fd2414a9 100644 --- a/docs/gsg_txn/JAVA/envopen.html +++ b/docs/gsg_txn/JAVA/envopen.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/exclusivelock.html b/docs/gsg_txn/JAVA/exclusivelock.html index aa0a5f94..d267b4b8 100644 --- a/docs/gsg_txn/JAVA/exclusivelock.html +++ b/docs/gsg_txn/JAVA/exclusivelock.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/filemanagement.html b/docs/gsg_txn/JAVA/filemanagement.html index f995ca7c..710dea03 100644 --- a/docs/gsg_txn/JAVA/filemanagement.html +++ b/docs/gsg_txn/JAVA/filemanagement.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -178,10 +178,11 @@ </li> <li> <p> - Temporary files, which are created only under certain special circumstances. These files never need to - be backed up or otherwise managed and so they are not a consideration for the topics described in this - chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> - for more information on temporary files. + Temporary files, which are created only under certain + special circumstances. These files never need to be backed + up or otherwise managed and so they are not a consideration + for the topics described in this chapter. See <a class="xref" href="enabletxn.html#security" title="Security Considerations">Security Considerations</a> for more + information on temporary files. </p> </li> </ul> @@ -227,11 +228,15 @@ <ul type="disc"> <li> <p> - Flushes dirty pages from the in-memory cache. This means that data modifications found in your - in-memory cache are written to the database files on disk. Note that a checkpoint also causes data - dirtied by an uncommitted transaction to also be written to your database files on disk. In this latter - case, DB's normal recovery is used to remove any such modifications that were subsequently - abandoned by your application using a transaction abort. + Flushes dirty pages from the in-memory cache. This + means that data modifications found in your in-memory + cache are written to the database files on disk. Note that + a checkpoint also causes data dirtied by an uncommitted + transaction to also be written to your database files on + disk. In this latter case, DB's normal recovery is + used to remove any such modifications that were + subsequently abandoned by your application using a + transaction abort. </p> <p> Normal recovery is describe in <a class="xref" href="recovery.html" title="Recovery Procedures">Recovery Procedures</a>. @@ -244,7 +249,8 @@ </li> <li> <p> - Flushes the log. This causes all log data that has not yet been written to disk to be written. + Flushes the log. This causes all log data that has not + yet been written to disk to be written. </p> </li> <li> @@ -256,8 +262,9 @@ </div> <p> There are several ways to run a checkpoint. One way is to use - the <span class="command"><strong>db_checkpoint</strong></span> command line utility. (Note, however, that this command line utility - cannot be used if your environment was opened using + the <span class="command"><strong>db_checkpoint</strong></span> command line utility. + (Note, however, that this command line utility cannot be used + if your environment was opened using <span> <code class="methodname">EnvironmentConfig.setPrivate()</code>.) @@ -285,7 +292,7 @@ For configuration information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/java/com/sleepycat/db/CheckpointConfig.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/java/com/sleepycat/db/CheckpointConfig.html" target="_top"> CheckpointConfig Javadoc page. </a> </p> diff --git a/docs/gsg_txn/JAVA/hotfailover.html b/docs/gsg_txn/JAVA/hotfailover.html index b46fab8e..12b9963c 100644 --- a/docs/gsg_txn/JAVA/hotfailover.html +++ b/docs/gsg_txn/JAVA/hotfailover.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -152,9 +152,10 @@ <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> - Rather than use the previous procedure, you can use the <span class="command"><strong>db_hotbackup</strong></span> command line utility - to do the same thing. This utility will (optionally) run a checkpoint and then copy all necessary files to a target - directory for you. + Rather than use the previous procedure, you can use the + <span class="command"><strong>db_hotbackup</strong></span> command line utility to do the + same thing. This utility will (optionally) run a checkpoint and + then copy all necessary files to a target directory for you. </p> </div> <p> @@ -169,14 +170,18 @@ </li> <li> <p> - If you have an archival copy of the backup environment, you can optionally try copying the remaining - log files from the original environment and running catastrophic recovery against that backup - environment. Do this <span class="emphasis"><em>only</em></span> if you have a an archival copy of the backup - environment. + If you have an archival copy of the backup environment, + you can optionally try copying the remaining log files + from the original environment and running catastrophic + recovery against that backup environment. Do this + <span class="emphasis"><em>only</em></span> if you have a an archival + copy of the backup environment. </p> <p> - This step can allow you to recover data created or modified in the original environment, but which - did not have a chance to be reflected in the hot backup environment. + This step can allow you to recover data created or + modified in the original environment, but which did not + have a chance to be reflected in the hot backup + environment. </p> </li> <li> diff --git a/docs/gsg_txn/JAVA/index.html b/docs/gsg_txn/JAVA/index.html index 3aeb5ad6..37d20e46 100644 --- a/docs/gsg_txn/JAVA/index.html +++ b/docs/gsg_txn/JAVA/index.html @@ -12,7 +12,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -30,11 +30,11 @@ <div class="titlepage"> <div> <div> - <h1 class="title"><a id="idm389832"></a>Getting Started with Berkeley DB Transaction Processing</h1> + <h1 class="title"><a id="idm723256"></a>Getting Started with Berkeley DB Transaction Processing</h1> </div> <div> <div class="legalnotice"> - <a id="idm742392"></a> + <a id="idm5160744"></a> <p class="legalnotice-title"> <b>Legal Notice</b> </p> @@ -68,7 +68,7 @@ <p> To obtain a copy of this document's original source code, please submit a request to the Oracle Technology Network forum at: - <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a> + <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a> </p> @@ -76,7 +76,7 @@ </div> </div> <div> - <p class="pubdate">5/11/2012</p> + <p class="pubdate">2/17/2015</p> </div> </div> <hr /> diff --git a/docs/gsg_txn/JAVA/inmem_txnexample_java.html b/docs/gsg_txn/JAVA/inmem_txnexample_java.html index 294ab9e2..99137c0b 100644 --- a/docs/gsg_txn/JAVA/inmem_txnexample_java.html +++ b/docs/gsg_txn/JAVA/inmem_txnexample_java.html @@ -13,7 +13,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -538,7 +538,7 @@ public class DBWriter extends Thread experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_java/src/db/txn</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/java/src/db/txn</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/JAVA/introduction.html b/docs/gsg_txn/JAVA/introduction.html index 2b0fa43a..f6ef20e0 100644 --- a/docs/gsg_txn/JAVA/introduction.html +++ b/docs/gsg_txn/JAVA/introduction.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/isolation.html b/docs/gsg_txn/JAVA/isolation.html index 74618ce8..0e8e90ae 100644 --- a/docs/gsg_txn/JAVA/isolation.html +++ b/docs/gsg_txn/JAVA/isolation.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/lockingsubsystem.html b/docs/gsg_txn/JAVA/lockingsubsystem.html index 46243ff1..3d4b33a1 100644 --- a/docs/gsg_txn/JAVA/lockingsubsystem.html +++ b/docs/gsg_txn/JAVA/lockingsubsystem.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -380,7 +380,7 @@ try { <pre class="programlisting">> /usr/local/db_install/bin/db_deadlock -h /export/dbenv -a y</pre> <p> For more information, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/api_reference/C/db_deadlock.html" target="_top"> <code class="literal">db_deadlock</code> reference documentation. </a> </p> diff --git a/docs/gsg_txn/JAVA/logconfig.html b/docs/gsg_txn/JAVA/logconfig.html index cbab92a5..87507a8e 100644 --- a/docs/gsg_txn/JAVA/logconfig.html +++ b/docs/gsg_txn/JAVA/logconfig.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/logfileremoval.html b/docs/gsg_txn/JAVA/logfileremoval.html index 92113b8b..5810107b 100644 --- a/docs/gsg_txn/JAVA/logfileremoval.html +++ b/docs/gsg_txn/JAVA/logfileremoval.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/maxtxns.html b/docs/gsg_txn/JAVA/maxtxns.html index 28c2822e..32b9c11f 100644 --- a/docs/gsg_txn/JAVA/maxtxns.html +++ b/docs/gsg_txn/JAVA/maxtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/moreinfo.html b/docs/gsg_txn/JAVA/moreinfo.html index 6fc05998..dcb13a75 100644 --- a/docs/gsg_txn/JAVA/moreinfo.html +++ b/docs/gsg_txn/JAVA/moreinfo.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -56,7 +56,7 @@ <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg/JAVA/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg/JAVA/index.html" target="_top"> Getting Started with Berkeley DB for Java </a> @@ -70,14 +70,14 @@ <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_db_rep/JAVA/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_db_rep/JAVA/index.html" target="_top"> Berkeley DB Getting Started with Replicated Applications for Java </a> </p> </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html" target="_top"> Berkeley DB Programmer's Reference Guide </a> </p> @@ -91,7 +91,7 @@ - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/java/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/java/index.html" target="_top"> Berkeley DB Javadoc </a> @@ -101,7 +101,7 @@ <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/collections/tutorial/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/collections/tutorial/index.html" target="_top"> Berkeley DB Collections Tutorial </a> </p> @@ -123,7 +123,7 @@ downloads, visit - <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>. + <a class="ulink" href="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html</a>. </p> </span> <div class="sect2" lang="en" xml:lang="en"> @@ -138,8 +138,8 @@ You can post your comments and questions at the Oracle Technology (OTN) forum for <span> - Oracle Berkeley DB at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a>, - or for Oracle Berkeley DB High Availability at: <a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=272</a>. + Oracle Berkeley DB at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=271</a>, + or for Oracle Berkeley DB High Availability at: <a class="ulink" href="https://forums.oracle.com/forums/forum.jspa?forumID=272" target="_top">https://forums.oracle.com/forums/forum.jspa?forumID=272</a>. </span> diff --git a/docs/gsg_txn/JAVA/multithread-intro.html b/docs/gsg_txn/JAVA/multithread-intro.html index 05bc3602..d6d4f411 100644 --- a/docs/gsg_txn/JAVA/multithread-intro.html +++ b/docs/gsg_txn/JAVA/multithread-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/nestedtxn.html b/docs/gsg_txn/JAVA/nestedtxn.html index fa18f751..7c247397 100644 --- a/docs/gsg_txn/JAVA/nestedtxn.html +++ b/docs/gsg_txn/JAVA/nestedtxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/nodurabletxn.html b/docs/gsg_txn/JAVA/nodurabletxn.html index c2f11d96..972849a0 100644 --- a/docs/gsg_txn/JAVA/nodurabletxn.html +++ b/docs/gsg_txn/JAVA/nodurabletxn.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/perftune-intro.html b/docs/gsg_txn/JAVA/perftune-intro.html index 7a8c2e67..97e1b001 100644 --- a/docs/gsg_txn/JAVA/perftune-intro.html +++ b/docs/gsg_txn/JAVA/perftune-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -55,11 +55,11 @@ <span> However, for a more complete description of them, see the - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_tune.html" target="_top"> Transaction tuning </a> and - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_throughput.html" target="_top"> Transaction throughput </a> sections of the <em class="citetitle">Berkeley DB Programmer's Reference Guide</em>. diff --git a/docs/gsg_txn/JAVA/preface.html b/docs/gsg_txn/JAVA/preface.html index 0a0a78e5..813c03e2 100644 --- a/docs/gsg_txn/JAVA/preface.html +++ b/docs/gsg_txn/JAVA/preface.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -73,8 +73,8 @@ have for deadlock detection. </p> <p> - This book describes Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides library - version 11.2.5.3. + This book describes Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which provides library + version 12.1.6.1. </p> <p> This book is aimed at the software engineer responsible for writing a diff --git a/docs/gsg_txn/JAVA/readmodifywrite.html b/docs/gsg_txn/JAVA/readmodifywrite.html index fc827142..f2159da0 100644 --- a/docs/gsg_txn/JAVA/readmodifywrite.html +++ b/docs/gsg_txn/JAVA/readmodifywrite.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/recovery-intro.html b/docs/gsg_txn/JAVA/recovery-intro.html index 5a1a596f..756334df 100644 --- a/docs/gsg_txn/JAVA/recovery-intro.html +++ b/docs/gsg_txn/JAVA/recovery-intro.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/recovery.html b/docs/gsg_txn/JAVA/recovery.html index 326f046e..946466cc 100644 --- a/docs/gsg_txn/JAVA/recovery.html +++ b/docs/gsg_txn/JAVA/recovery.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/reversesplit.html b/docs/gsg_txn/JAVA/reversesplit.html index e8bfa70c..0b5c389d 100644 --- a/docs/gsg_txn/JAVA/reversesplit.html +++ b/docs/gsg_txn/JAVA/reversesplit.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/sysfailure.html b/docs/gsg_txn/JAVA/sysfailure.html index 55442f47..46a5188b 100644 --- a/docs/gsg_txn/JAVA/sysfailure.html +++ b/docs/gsg_txn/JAVA/sysfailure.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/txn_ccursor.html b/docs/gsg_txn/JAVA/txn_ccursor.html index 60b6e4fa..f37e65ba 100644 --- a/docs/gsg_txn/JAVA/txn_ccursor.html +++ b/docs/gsg_txn/JAVA/txn_ccursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/txnconcurrency.html b/docs/gsg_txn/JAVA/txnconcurrency.html index 2b523d8d..225cf976 100644 --- a/docs/gsg_txn/JAVA/txnconcurrency.html +++ b/docs/gsg_txn/JAVA/txnconcurrency.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/txncursor.html b/docs/gsg_txn/JAVA/txncursor.html index 4987ce47..cef88e95 100644 --- a/docs/gsg_txn/JAVA/txncursor.html +++ b/docs/gsg_txn/JAVA/txncursor.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/txnexample_dpl.html b/docs/gsg_txn/JAVA/txnexample_dpl.html index 7a8f3e48..50a88e75 100644 --- a/docs/gsg_txn/JAVA/txnexample_dpl.html +++ b/docs/gsg_txn/JAVA/txnexample_dpl.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -169,7 +169,7 @@ public class TxnGuideDPL { </pre> // Handles private static EntityStore myStore = null; - private static Environment myEnv = null; + private static Environment myEnv = null; private static final int NUMTHREADS = 5; </pre> <p> Next, we implement our <code class="function">usage()</code> method. This @@ -462,7 +462,7 @@ public class StoreWriter extends Thread </p> <pre class="programlisting"> private EntityStore myStore = null; private Environment myEnv = null; - private PrimaryIndex<Integer,PayloadDataEntity> pdIndex; + private PrimaryIndex<Integer,PayloadDataEntity> pdKey; private Random generator = new Random(); private boolean passTxn = false; @@ -480,7 +480,7 @@ public class StoreWriter extends Thread // Open the data accessor. This is used to store persistent // objects. - pdIndex = myStore.getPrimaryIndex(Integer.class, + pdKey = myStore.getPrimaryIndex(Integer.class, PayloadDataEntity.class); } </pre> <p> @@ -565,7 +565,7 @@ public class StoreWriter extends Thread pd.setDoubleData(generator.nextDouble()); // Do the put - pdIndex.put(txn, pd); + pdKey.put(txn, pd); } </pre> <p> Having completed the inner database write loop, we could simply @@ -713,7 +713,7 @@ public class StoreWriter extends Thread // This is ignored if the store is not opened with uncommitted read // support. cc.setReadUncommitted(true); - EntityCursor<PayloadDataEntity> cursor = pdIndex.entities(txn, cc); + EntityCursor<PayloadDataEntity> cursor = pdKey.entities(txn, cc); try { for (PayloadDataEntity pdi : cursor) { @@ -735,7 +735,7 @@ public class StoreWriter extends Thread experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_java/src/persist/txn</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/java/src/persist/txn</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/JAVA/txnexample_java.html b/docs/gsg_txn/JAVA/txnexample_java.html index 598da49b..d11f34cb 100644 --- a/docs/gsg_txn/JAVA/txnexample_java.html +++ b/docs/gsg_txn/JAVA/txnexample_java.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -794,7 +794,7 @@ public class DBWriter extends Thread experiment with this code, you can find the example in the following location in your DB distribution: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_java/src/db/txn</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/java/src/db/txn</pre> </div> <div class="navfooter"> <hr /> diff --git a/docs/gsg_txn/JAVA/txnindices.html b/docs/gsg_txn/JAVA/txnindices.html index ab0c2eb5..4d0ae718 100644 --- a/docs/gsg_txn/JAVA/txnindices.html +++ b/docs/gsg_txn/JAVA/txnindices.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/txnnowait.html b/docs/gsg_txn/JAVA/txnnowait.html index ffd13f3a..eca04cef 100644 --- a/docs/gsg_txn/JAVA/txnnowait.html +++ b/docs/gsg_txn/JAVA/txnnowait.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/usingtxns.html b/docs/gsg_txn/JAVA/usingtxns.html index 74f473e4..d6ce31c0 100644 --- a/docs/gsg_txn/JAVA/usingtxns.html +++ b/docs/gsg_txn/JAVA/usingtxns.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> diff --git a/docs/gsg_txn/JAVA/wrapup.html b/docs/gsg_txn/JAVA/wrapup.html index d7543325..4d9e2733 100644 --- a/docs/gsg_txn/JAVA/wrapup.html +++ b/docs/gsg_txn/JAVA/wrapup.html @@ -14,7 +14,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> |
