diff options
Diffstat (limited to 'docs/gsg/C')
38 files changed, 122 insertions, 110 deletions
diff --git a/docs/gsg/C/BerkeleyDB-Core-C-GSG.pdf b/docs/gsg/C/BerkeleyDB-Core-C-GSG.pdf Binary files differindex ceb16c18..5328f464 100644 --- a/docs/gsg/C/BerkeleyDB-Core-C-GSG.pdf +++ b/docs/gsg/C/BerkeleyDB-Core-C-GSG.pdf diff --git a/docs/gsg/C/CoreCursorUsage.html b/docs/gsg/C/CoreCursorUsage.html index 0d681396..a04474d2 100644 --- a/docs/gsg/C/CoreCursorUsage.html +++ b/docs/gsg/C/CoreCursorUsage.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> @@ -94,7 +94,7 @@ Remember that you can find the complete implementation of this application in: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. @@ -126,7 +126,12 @@ int show_vendor_record(char *, DB *); </pre> </p> <a id="c_cursor11"></a> <pre class="programlisting">/* - * Displays all inventory items and the associated vendor record. + * Searches for an inventory item based on that item's name. The search is + * performed using the item name secondary database. Displays all + * inventory items that use the specified name, as well as the vendor + * associated with that inventory item. + * + * If no item name is provided, then all inventory items are displayed. */ int main(int argc, char *argv[]) @@ -176,7 +181,7 @@ main(int argc, char *argv[]) <a id="c_cursor12"></a> <pre class="programlisting">int show_all_records(STOCK_DBS *my_stock) { - DBC *cursorp; + DBC *inventory_cursorp; DBT key, data; char *the_vendor; int exit_value, ret; @@ -187,7 +192,7 @@ main(int argc, char *argv[]) /* Get a cursor to the itemname db */ my_stock->inventory_dbp->cursor(my_stock->inventory_dbp, NULL, - &cursorp, 0); + &inventory_cursorp, 0); /* * Iterate over the inventory database, from the first record @@ -195,7 +200,7 @@ main(int argc, char *argv[]) */ exit_value = 0; while ((ret = - cursorp->get(cursorp, &key, &data, DB_NEXT)) + inventory_cursorp->get(inventory_cursorp, &key, &data, DB_NEXT)) == 0) { the_vendor = show_inventory_item(data.data); @@ -207,7 +212,7 @@ main(int argc, char *argv[]) } /* Close the cursor */ - cursorp->close(cursorp); + inventory_cursorp->close(inventory_cursorp); return(exit_value); } </pre> <p> @@ -224,13 +229,18 @@ main(int argc, char *argv[]) </p> <a id="c_cursor13"></a> <pre class="programlisting">/* - * Shows an inventory item. + * Shows an inventory item. How we retrieve the inventory + * item values from the provided buffer is strictly dependent + * on the order that those items were originally stored in the + * DBT. See load_inventory_database in example_database_load + * for how this was done. */ char * show_inventory_item(void *vBuf) { float price; - int buf_pos, quantity; + int quantity; + size_t buf_pos; char *category, *name, *sku, *vendor_name; char *buf = (char *)vBuf; @@ -298,7 +308,7 @@ show_vendor_record(char *vendor_name, DB *vendor_dbp) /* Set the search key to the vendor's name */ key.data = vendor_name; - key.size = strlen(vendor_name) + 1; + key.size = (u_int32_t)strlen(vendor_name) + 1; /* * Make sure we use the memory we set aside for the VENDOR @@ -312,7 +322,7 @@ show_vendor_record(char *vendor_name, DB *vendor_dbp) data.flags = DB_DBT_USERMEM; /* Get the record */ - ret = vendor_dbp->get(vendor_dbp, 0, &key, &data, 0); + ret = vendor_dbp->get(vendor_dbp, NULL, &key, &data, 0); if (ret != 0) { vendor_dbp->err(vendor_dbp, ret, "Error searching for vendor: '%s'", vendor_name); diff --git a/docs/gsg/C/CoreDBAdmin.html b/docs/gsg/C/CoreDBAdmin.html index 88529531..18bea6ee 100644 --- a/docs/gsg/C/CoreDBAdmin.html +++ b/docs/gsg/C/CoreDBAdmin.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/C/CoreDbUsage.html b/docs/gsg/C/CoreDbUsage.html index f5ee294d..8d08b110 100644 --- a/docs/gsg/C/CoreDbUsage.html +++ b/docs/gsg/C/CoreDbUsage.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> @@ -52,7 +52,7 @@ Note that you can find the complete implementation of these functions in: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. diff --git a/docs/gsg/C/CoreEnvUsage.html b/docs/gsg/C/CoreEnvUsage.html index ed77fc4f..50e59d8b 100644 --- a/docs/gsg/C/CoreEnvUsage.html +++ b/docs/gsg/C/CoreEnvUsage.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/C/Cursors.html b/docs/gsg/C/Cursors.html index b3857e9c..0fc889c4 100644 --- a/docs/gsg/C/Cursors.html +++ b/docs/gsg/C/Cursors.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/C/DBEntry.html b/docs/gsg/C/DBEntry.html index 0eb7a364..bb0fce35 100644 --- a/docs/gsg/C/DBEntry.html +++ b/docs/gsg/C/DBEntry.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/C/DBOpenFlags.html b/docs/gsg/C/DBOpenFlags.html index 2f64a071..7f8a1607 100644 --- a/docs/gsg/C/DBOpenFlags.html +++ b/docs/gsg/C/DBOpenFlags.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/C/DbUsage.html b/docs/gsg/C/DbUsage.html index c272b9de..a7432990 100644 --- a/docs/gsg/C/DbUsage.html +++ b/docs/gsg/C/DbUsage.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> @@ -46,7 +46,7 @@ Again, remember that you can find the complete implementation for these functions in: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. @@ -109,7 +109,7 @@ this example program. However, as always you can find the complete implementation for this program here: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. @@ -123,7 +123,7 @@ /* Forward declarations */ int load_vendors_database(STOCK_DBS, char *); -int pack_string(char *, char *, int); +size_t pack_string(char *, char *, size_t); int load_inventory_database(STOCK_DBS, char *); </pre> <p> Next we begin our <code class="function">main()</code> function with the variable @@ -139,7 +139,8 @@ int main(int argc, char *argv[]) { STOCK_DBS my_stock; - int ret, size; + int ret; + size_t size; char *basename, *inventory_file, *vendor_file; /* Initialize the STOCK_DBS struct */ @@ -177,20 +178,20 @@ main(int argc, char *argv[]) /* Open all databases */ ret = databases_setup(&my_stock, "example_database_load", stderr); - if (ret != 0) { - fprintf(stderr, "Error opening databases\n"); + if (ret) { + fprintf(stderr, "Error opening databases.\n"); databases_close(&my_stock); return (ret); } ret = load_vendors_database(my_stock, vendor_file); - if (!ret) { + if (ret) { fprintf(stderr, "Error loading vendors database.\n"); databases_close(&my_stock); return (ret); } ret = load_inventory_database(my_stock, inventory_file); - if (!ret) { + if (ret) { fprintf(stderr, "Error loading inventory database.\n"); databases_close(&my_stock); return (ret); @@ -233,9 +234,9 @@ int load_vendors_database(STOCK_DBS my_stock, char *vendor_file) { DBT key, data; + char buf[MAXLINE]; FILE *ifp; VENDOR my_vendor; - char buf[MAXLINE]; /* Open the vendor file for read access */ ifp = fopen(vendor_file, "r"); @@ -272,11 +273,11 @@ load_vendors_database(STOCK_DBS my_stock, char *vendor_file) /* Set up the database record's key */ key.data = my_vendor.name; - key.size = strlen(my_vendor.name) + 1; + key.size = (u_int32_t)strlen(my_vendor.name) + 1; /* Set up the database record's data */ data.data = &my_vendor; - data.size = sizeof(my_vendor); + data.size = sizeof(VENDOR); /* * Note that given the way we built our struct, there are extra @@ -330,10 +331,11 @@ load_vendors_database(STOCK_DBS my_stock, char *vendor_file) * appropriate location. Used to ensure that all our strings * are contained in a single contiguous chunk of memory. */ -int -pack_string(char *buffer, char *string, int start_pos) +size_t +pack_string(char *buffer, char *string, size_t start_pos) { - int string_size = strlen(string) + 1; + size_t string_size; + string_size = strlen(string) + 1; memcpy(buffer+start_pos, string, string_size); @@ -345,15 +347,19 @@ pack_string(char *buffer, char *string, int start_pos) <a id="c_dbt15"></a> <pre class="programlisting">/* * Loads the contents of the inventory.txt file into - * a database. + * a database. Note that because the itemname + * secondary database is associated to the inventorydb + * (see env_setup() in gettingstarted_common.c), the + * itemname index is automatically created when this + * database is loaded. */ int load_inventory_database(STOCK_DBS my_stock, char *inventory_file) { DBT key, data; char buf[MAXLINE]; - void *databuf; - int bufLen, dataLen; + char databuf[MAXDATABUF]; + size_t bufLen, dataLen; FILE *ifp; /* @@ -374,9 +380,6 @@ load_inventory_database(STOCK_DBS my_stock, char *inventory_file) return(-1); } - /* Get our buffer. MAXDATABUF is some suitably large number */ - databuf = malloc(MAXDATABUF); - /* * Read the inventory.txt file line by line, saving each line off to * the database as we go. @@ -438,11 +441,11 @@ load_inventory_database(STOCK_DBS my_stock, char *inventory_file) * not support duplicates for this database. */ key.data = sku; - key.size = strlen(sku) + 1; + key.size = (u_int32_t)strlen(sku) + 1; /* The data is the information that we packed into databuf. */ data.data = databuf; - data.size = bufLen; + data.size = (u_int32_t)bufLen; /* Put the data into the database */ my_stock.vendor_dbp->put(my_stock.inventory_dbp, 0, @@ -451,8 +454,6 @@ load_inventory_database(STOCK_DBS my_stock, char *inventory_file) /* Cleanup */ fclose(ifp); - if (databuf != NULL) - free(databuf); return(0); } </pre> diff --git a/docs/gsg/C/DeleteEntryWCursor.html b/docs/gsg/C/DeleteEntryWCursor.html index 43760c9a..f81dc34c 100644 --- a/docs/gsg/C/DeleteEntryWCursor.html +++ b/docs/gsg/C/DeleteEntryWCursor.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/C/Positioning.html b/docs/gsg/C/Positioning.html index 5732daac..e2ffb284 100644 --- a/docs/gsg/C/Positioning.html +++ b/docs/gsg/C/Positioning.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/C/PutEntryWCursor.html b/docs/gsg/C/PutEntryWCursor.html index 69227571..44934a9a 100644 --- a/docs/gsg/C/PutEntryWCursor.html +++ b/docs/gsg/C/PutEntryWCursor.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/C/ReplacingEntryWCursor.html b/docs/gsg/C/ReplacingEntryWCursor.html index 5c8b25bd..10c519dc 100644 --- a/docs/gsg/C/ReplacingEntryWCursor.html +++ b/docs/gsg/C/ReplacingEntryWCursor.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/C/accessmethods.html b/docs/gsg/C/accessmethods.html index b25e48f3..74ad12b6 100644 --- a/docs/gsg/C/accessmethods.html +++ b/docs/gsg/C/accessmethods.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/C/btree.html b/docs/gsg/C/btree.html index 2d86622b..8be34c89 100644 --- a/docs/gsg/C/btree.html +++ b/docs/gsg/C/btree.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> @@ -428,7 +428,7 @@ if (ret != 0) { do not sort well when viewed as byte strings. There are several solutions to this problem, one being to provide a custom comparison function. See - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a> for more information. </p> </li> @@ -485,10 +485,13 @@ if (ret != 0) { occur. </p> <p> - The value that you provide to the <code class="methodname">set_bt_compare()</code> method - is a pointer to a function that has the following signature: - </p> - <pre class="programlisting">int (*function)(DB *db, const DBT *key1, const DBT *key2)</pre> + The value that you provide to the + <code class="methodname">set_bt_compare()</code> method + is a pointer to a function that has the following signature: + </p> + <pre class="programlisting"> +int (*function)(DB *db, const DBT *key1, const DBT *key2, size_t *locp) + </pre> <p> This function must return an integer value less than, equal to, or greater than 0. If key1 is considered to be greater than @@ -513,10 +516,11 @@ if (ret != 0) { </p> <a id="c_btree1"></a> <pre class="programlisting">int -compare_int(DB *dbp, const DBT *a, const DBT *b) +compare_int(DB *dbp, const DBT *a, const DBT *b, size_t *locp) { int ai, bi; + locp = NULL; /* * Returns: * < 0 if a < b diff --git a/docs/gsg/C/cachesize.html b/docs/gsg/C/cachesize.html index 2e708982..2db3a275 100644 --- a/docs/gsg/C/cachesize.html +++ b/docs/gsg/C/cachesize.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/C/concepts.html b/docs/gsg/C/concepts.html index 2bc25b47..31329b9a 100644 --- a/docs/gsg/C/concepts.html +++ b/docs/gsg/C/concepts.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/C/coredbclose.html b/docs/gsg/C/coredbclose.html index 517c1a9f..e110a9df 100644 --- a/docs/gsg/C/coredbclose.html +++ b/docs/gsg/C/coredbclose.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/C/coreindexusage.html b/docs/gsg/C/coreindexusage.html index 2ad0b737..45add947 100644 --- a/docs/gsg/C/coreindexusage.html +++ b/docs/gsg/C/coreindexusage.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> @@ -133,7 +133,7 @@ Remember that you can find the complete implementation of these functions in: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. @@ -222,8 +222,8 @@ get_item_name(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey) /* Now set the secondary key's data to be the item name */ memset(skey, 0, sizeof(DBT)); - skey->data = pdata->data + offset; - skey->size = strlen(skey->data) + 1; + skey->data = (u_int8_t *)pdata->data + offset; + skey->size = (u_int32_t)strlen(skey->data) + 1; return (0); }</code></strong> </pre> @@ -300,8 +300,7 @@ set_db_filenames(STOCK_DBS *my_stock) int open_database(DB **dbpp, /* The DB handle that we are opening */ const char *file_name, /* The file in which the db lives */ - const char *program_name, /* Name of the program calling this - * function */ + const char *program_name, /* Name of the program. */ FILE *error_file_pointer, <strong class="userinput"><code>int is_secondary</code></strong>) { @@ -613,7 +612,7 @@ main(int argc, char *argv[]) application in: </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. diff --git a/docs/gsg/C/cstructs.html b/docs/gsg/C/cstructs.html index 40cb6614..53c26266 100644 --- a/docs/gsg/C/cstructs.html +++ b/docs/gsg/C/cstructs.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/C/databaseLimits.html b/docs/gsg/C/databaseLimits.html index f244f51c..380157eb 100644 --- a/docs/gsg/C/databaseLimits.html +++ b/docs/gsg/C/databaseLimits.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> @@ -39,9 +39,12 @@ <p> Berkeley DB provides support for managing everything from very small databases that fit entirely in memory, to extremely large databases - holding millions of records and terabytes of data. DB databases can - store up to 256 terabytes of data. Individual record keys or record - data can store up to 4 gigabytes of data. + holding millions of records and terabytes of data. An individual + DB database can store up to 256 terabytes of data. By using + multiple databases, it is possible to use DB to store and + manage petabytes of information. Within a single database, + individual record keys or record data can be used to store up to 4 + gigabytes of data. </p> <p> DB's databases store data in a binary format that is portable across diff --git a/docs/gsg/C/databases.html b/docs/gsg/C/databases.html index b1cc1741..86ec43d2 100644 --- a/docs/gsg/C/databases.html +++ b/docs/gsg/C/databases.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/C/dbErrorReporting.html b/docs/gsg/C/dbErrorReporting.html index 30f6098f..08375f24 100644 --- a/docs/gsg/C/dbErrorReporting.html +++ b/docs/gsg/C/dbErrorReporting.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/C/dbconfig.html b/docs/gsg/C/dbconfig.html index 119bb353..977950a7 100644 --- a/docs/gsg/C/dbconfig.html +++ b/docs/gsg/C/dbconfig.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> @@ -362,7 +362,7 @@ filesystem's block size causes DB to write pages in block size increments. As a result, it is possible for a partial page to be written as the result of a transactional commit. For more - information, see <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_reclimit.html" target="_top">http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp_reclimit.html</a>. + information, see <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_reclimit.html" target="_top">http://docs.oracle.com/cd/E17076_02/html/programmer_reference/transapp_reclimit.html</a>. </p> </div> </div> diff --git a/docs/gsg/C/environments.html b/docs/gsg/C/environments.html index c8324827..4ec846ce 100644 --- a/docs/gsg/C/environments.html +++ b/docs/gsg/C/environments.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/C/gettingit.html b/docs/gsg/C/gettingit.html index b07eef30..91ee29c8 100644 --- a/docs/gsg/C/gettingit.html +++ b/docs/gsg/C/gettingit.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> @@ -38,7 +38,7 @@ </div> <p> You can obtain DB by visiting the Berkeley DB download page: - <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> <p> To install DB, untar or unzip the distribution to the directory of diff --git a/docs/gsg/C/index.html b/docs/gsg/C/index.html index aa14a695..712878c5 100644 --- a/docs/gsg/C/index.html +++ b/docs/gsg/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="idp51108392"></a>Getting Started with Berkeley DB</h1> + <h1 class="title"><a id="idm125144"></a>Getting Started with Berkeley DB</h1> </div> <div> <div class="legalnotice"> - <a id="idp51137928"></a> + <a id="idp460392"></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/C/indexes.html b/docs/gsg/C/indexes.html index 951920f0..cf8a0d25 100644 --- a/docs/gsg/C/indexes.html +++ b/docs/gsg/C/indexes.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/C/introduction.html b/docs/gsg/C/introduction.html index 47645345..e3811050 100644 --- a/docs/gsg/C/introduction.html +++ b/docs/gsg/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> @@ -204,7 +204,7 @@ In addition to being presented in this book, these final programs are also available in the DB software distribution. You can find them in </p> - <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre> + <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre> <p> where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you placed your DB distribution. diff --git a/docs/gsg/C/joins.html b/docs/gsg/C/joins.html index 6fb55616..a2d7136d 100644 --- a/docs/gsg/C/joins.html +++ b/docs/gsg/C/joins.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/C/keyCreator.html b/docs/gsg/C/keyCreator.html index df9a780f..4e607e1c 100644 --- a/docs/gsg/C/keyCreator.html +++ b/docs/gsg/C/keyCreator.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/C/moreinfo.html b/docs/gsg/C/moreinfo.html index 26872a6f..d8f61cf4 100644 --- a/docs/gsg/C/moreinfo.html +++ b/docs/gsg/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> @@ -55,7 +55,7 @@ <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/gsg_txn/C/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/gsg_txn/C/index.html" target="_top"> Getting Started with Transaction Processing for C </a> @@ -66,7 +66,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> @@ -75,21 +75,21 @@ </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> </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/installation/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/installation/index.html" target="_top"> Berkeley DB Installation and Build Guide </a> </p> </li> <li> <p> - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/bdb-sql/index.html" target="_top"> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/bdb-sql/index.html" target="_top"> Berkeley DB Getting Started with the SQL APIs </a> </p> @@ -97,7 +97,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> @@ -128,7 +128,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"> @@ -143,8 +143,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/C/preface.html b/docs/gsg/C/preface.html index 09dd6aca..de4019b1 100644 --- a/docs/gsg/C/preface.html +++ b/docs/gsg/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> @@ -67,7 +67,7 @@ <span> - This document introduces Berkeley DB 11<span class="emphasis"><em>g</em></span> Release 2, which provides DB library version 11.2.5.3. + This document introduces Berkeley DB 12<span class="emphasis"><em>c</em></span> Release 1, which provides DB library version 12.1.6.1. </span> </p> <p> diff --git a/docs/gsg/C/readSecondary.html b/docs/gsg/C/readSecondary.html index 670cf9eb..088332d1 100644 --- a/docs/gsg/C/readSecondary.html +++ b/docs/gsg/C/readSecondary.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/C/returns.html b/docs/gsg/C/returns.html index e4e32fb8..ec58675e 100644 --- a/docs/gsg/C/returns.html +++ b/docs/gsg/C/returns.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/C/secondaryCursor.html b/docs/gsg/C/secondaryCursor.html index 77eb76cc..82be36aa 100644 --- a/docs/gsg/C/secondaryCursor.html +++ b/docs/gsg/C/secondaryCursor.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/C/secondaryDelete.html b/docs/gsg/C/secondaryDelete.html index 7f324796..c2284633 100644 --- a/docs/gsg/C/secondaryDelete.html +++ b/docs/gsg/C/secondaryDelete.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> @@ -59,16 +59,11 @@ <code class="methodname">DB->del()</code> - method to delete a secondary database record. - - - - <span>Note that if your + method to delete a secondary database record. Note that if your <span>secondary database</span> contains duplicate records, then deleting a record from the set of duplicates causes all of the duplicates to be deleted as well. - </span> </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> diff --git a/docs/gsg/C/usingDbt.html b/docs/gsg/C/usingDbt.html index 6b8725a8..90f80686 100644 --- a/docs/gsg/C/usingDbt.html +++ b/docs/gsg/C/usingDbt.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> |