Oracle Berkeley DB Getting Started with Berkeley DB for C 11g Release 2

This document is intended to provide a rapid introduction to the DB API set and related concepts. The goal of this document is to provide you with an efficient mechanism with which you can evaluate DB against your project’s technical requirements.

More PDF Content

Oracle Berkeley DB, Getting Started with, Berkeley DB, for C, 11g Release 2

  • Preface… v
  • Conventions Used in this Book… v
  • For More Information… vi
  • Contact Us… vi
  • 1. Introduction to Berkeley DB… 1
  • About This Manual… 2
  • Berkeley DB Concepts… 2
  • Access Methods… 4
  • Selecting Access Methods… 4
  • Choosing between BTree and Hash… 5
  • Choosing between Queue and Recno… 5
  • Database Limits and Portability… 6
  • Environments… 6
  • Error Returns… 7
  • Getting and Using DB… 7
  • 2. Databases… 9
  • Opening Databases… 9
  • Closing Databases… 10
  • Database Open Flags… 11
  • Administrative Methods… 11
  • Error Reporting Functions… 13
  • Managing Databases in Environments… 15
  • Database Example… 16
  • 3. Database Records… 21
  • Using Database Records… 21
  • Reading and Writing Database Records… 22
  • Writing Records to the Database… 22
  • Getting Records from the Database… 23
  • Deleting Records… 25
  • Data Persistence… 25
  • Using C Structures with DB… 26
  • C Structures with Pointers… 28
  • Database Usage Example… 30
  • 4. Using Cursors… 39
  • Opening and Closing Cursors… 39
  • Getting Records Using the Cursor… 40
  • Searching for Records… 41
  • Working with Duplicate Records… 44
  • Putting Records Using Cursors… 46
  • Deleting Records Using Cursors… 48
  • Replacing Records Using Cursors… 49
  • Cursor Example… 50
  • 5. Secondary Databases… 56
  • Opening and Closing Secondary Databases… 57
  • Implementing Key Extractors… 58
  • Working with Multiple Keys… 60
  • Getting Started with DB
  • Page iv
  • Reading Secondary Databases… 61
  • Deleting Secondary Database Records… 62
  • Using Cursors with Secondary Databases… 64
  • Database Joins… 65
  • Using Join Cursors… 66
  • Secondary Database Example… 68
  • Secondary Databases with example_database_load… 68
  • Secondary Databases with example_database_read… 75
  • 6. Database Configuration… 79
  • Setting the Page Size… 79
  • Overflow Pages… 79
  • Locking… 80
  • IO Efficiency… 80
  • Page Sizing Advice… 81
  • Selecting the Cache Size… 82
  • BTree Configuration… 82
  • Allowing Duplicate Records… 82
  • Sorted Duplicates… 83
  • Unsorted Duplicates… 83
  • Configuring a Database to Support Duplicates… 84
  • Setting Comparison Functions… 85
  • Creating Comparison Functions… 86
Download Oracle Berkeley DB Getting Started with Berkeley DB for C 11g Release 2 pdf from download.oracle.com, 94 pages, 435.08KB.
Related Books

Leave a Reply