File: index.html

package info (click to toggle)
db 5.1.29-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 150,348 kB
  • sloc: ansic: 400,169; java: 94,399; tcl: 70,967; sh: 37,399; cs: 30,758; cpp: 21,132; perl: 14,227; xml: 9,854; makefile: 3,777; yacc: 1,003; awk: 942; sql: 801; erlang: 461; python: 216; php: 24; asm: 14
file content (449 lines) | stat: -rw-r--r-- 15,286 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Getting Started with the Oracle Berkeley DB SQL APIs</title>
    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Getting Started with the Oracle Berkeley DB SQL APIs" />
    <link rel="next" href="preface.html" title="Preface" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Getting Started with the Oracle Berkeley DB SQL APIs</th>
        </tr>
        <tr>
          <td width="20%" align="left"> </td>
          <th width="60%" align="center"> </th>
          <td width="20%" align="right"> <a accesskey="n" href="preface.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="book" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h1 class="title"><a id="idp153296"></a>Getting Started with the Oracle Berkeley DB SQL APIs</h1>
          </div>
          <div>
            <div class="legalnotice">
              <a id="idp50785360"></a>
              <p class="legalnotice-title">
                <b>Legal Notice</b>
              </p>
              <p>
        This documentation is distributed under an open source license.
        You may review the terms of this license at:
        
        
        
    </p>
              <p>
            Oracle, Berkeley DB,
            
            
            and
            Sleepycat are trademarks or registered trademarks of
            Oracle. All rights to these marks are reserved.
            No third-party use is permitted without the
            express prior written consent of Oracle.
    </p>
              <p>
        Other names may be trademarks of their respective owners.
    </p>
              <p>
        To obtain a copy of this document's original source code, please
        submit a request to the Oracle Technology Network forum at:
        
        
        
    </p>
            </div>
          </div>
          <div>
            <p class="pubdate">10/25/2011</p>
          </div>
        </div>
        <hr />
      </div>
      <div class="toc">
        <p>
          <b>Table of Contents</b>
        </p>
        <dl>
          <dt>
            <span class="preface">
              <a href="preface.html">Preface</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect1">
                  <a href="preface.html#conventions">Conventions Used in this Book</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="moreinfo.html">For More Information</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="moreinfo.html#contact_us">Contact Us</a>
                    </span>
                  </dt>
                </dl>
              </dd>
            </dl>
          </dd>
          <dt>
            <span class="chapter">
              <a href="dbsqlbasics.html">1. Berkeley DB SQL: The Absolute Basics</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect1">
                  <a href="dbsqlbasics.html#identicalusage">BDB SQL Is Nearly Identical to SQLite</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="buildinstall.html">Getting and Installing BDB SQL</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="buildinstall.html#onwin">On Windows Systems</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="buildinstall.html#onunix">On Unix</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="journaldirectory.html">The Journal Directory</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="unsupportedpragmas.html">Unsupported PRAGMAs</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="changedpragmas.html">Changed PRAGMAs</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="changedpragmas.html#journal_size_limit">PRAGMA journal_size_limit</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="changedpragmas.html#max_page_count">PRAGMA max_page_count</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="addedpragmas.html">Added PRAGMAs</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="addedpragmas.html#pragma_txn_bulk">PRAGMA TXN_BULK</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="miscdiff.html">Miscellaneous Differences</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="bdb-concepts.html">Berkeley DB Concepts</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="sql_encryption.html">Encryption</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="chapter">
              <a href="lockingnotes.html">2. Locking Notes</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect1">
                  <a href="lockingnotes.html#dbusage">Internal Database Usage</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="lockhandling.html">Lock Handling</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="lockhandling.html#sqllockmodel">SQLite Lock Usage</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="lockhandling.html#bdblockusage">Lock Usage with the DB SQL Interface</a>
                    </span>
                  </dt>
                </dl>
              </dd>
            </dl>
          </dd>
          <dt>
            <span class="chapter">
              <a href="configure.html">3. Configuring the Berkeley DB SQL interface</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect1">
                  <a href="configure.html#env-overview">Introduction to Environments</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="using_dbconfig.html">The DB_CONFIG File</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="using_dbconfig.html#dbconfigcreate">Creating the DB_CONFIG File Before Environment Creation</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="using_dbconfig.html#envrecreate">Re-creating the Environment</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="configpage.html">Configuring the Database Page Size</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="configpage.html#selectpage_size">Selecting the Page Size</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="dbfilesize.html">Selecting the Database File Size</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="configcache.html">Configuring the In-Memory Cache</a>
                </span>
              </dt>
              <dt>
                <span class="sect1">
                  <a href="admin-logfile.html">Administering Log Files</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="admin-logfile.html#logfilesize">Setting the Log File Size</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="admin-logfile.html#logregionsize">Configuring the Logging Region Size</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="admin-logfile.html#logbuffer">Setting the In-Memory Log Buffer Size</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="admin-locking.html">Managing the Locking Subsystem</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="chapter">
              <a href="admin.html">4. Administrating Berkeley DB SQL Databases</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect1">
                  <a href="admin.html#backup">Backing Up Berkeley DB SQL Databases</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="admin.html#standardbackup">Offline Backups</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="admin.html#hotbackup">Hot Backup</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="admin.html#incrementalbackups">Incremental Backups</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="admin.html#copyutilities">About Unix Copy Utilities</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="recover.html">Recovering from a Backup</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="recover.html#catastrophicrecovery">Catastrophic Recovery</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="sync.html">Syncing with Oracle Databases</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="sync.html#syncunix">Syncing on Unix Platforms</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="sync.html#syncwin">Syncing on Windows Platforms</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="sync.html#syncwinmobile">Syncing on Windows Mobile Platforms</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="datamigration.html">Data Migration</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="datamigration.html#shellmigrate">Migration Using the Shells</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="datamigration.html#migratedataschema">Supported Data and Schema</a>
                    </span>
                  </dt>
                </dl>
              </dd>
              <dt>
                <span class="sect1">
                  <a href="dbsql_replicate.html">Replicating Berkeley DB SQL Databases</a>
                </span>
              </dt>
              <dd>
                <dl>
                  <dt>
                    <span class="sect2">
                      <a href="dbsql_replicate.html#prep_rep">Preparing to use Replication with the Berkeley DB SQL API</a>
                    </span>
                  </dt>
                  <dt>
                    <span class="sect2">
                      <a href="dbsql_replicate.html#use_rep">Using Replication with the Berkeley DB SQL API</a>
                    </span>
                  </dt>
                </dl>
              </dd>
            </dl>
          </dd>
        </dl>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"> </td>
          <td width="20%" align="center"> </td>
          <td width="40%" align="right"> <a accesskey="n" href="preface.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top"> </td>
          <td width="20%" align="center"> </td>
          <td width="40%" align="right" valign="top"> Preface</td>
        </tr>
      </table>
    </div>
  </body>
</html>