Debian Codegraph @

docs/gsg_txn/JAVA/index.html

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Getting Started with Berkeley DB Transaction Processing</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
10 <link rel="next" href="preface.html" title="Preface" />
11 </head>
12 <body>
13 <div xmlns="" class="navheader">
14 <div class="libver">
15 <p>Library Version 11.2.5.3</p>
16 </div>
17 <table width="100%" summary="Navigation header">
18 <tr>
19 <th colspan="3" align="center">Getting Started with Berkeley DB Transaction Processing</th>
20 </tr>
21 <tr>
22 <td width="20%" align="left"> </td>
23 <th width="60%" align="center"> </th>
24 <td width="20%" align="right"> <a accesskey="n" href="preface.html">Next</a></td>
25 </tr>
26 </table>
27 <hr />
28 </div>
29 <div class="book" lang="en" xml:lang="en">
30 <div class="titlepage">
31 <div>
32 <div>
33 <h1 class="title"><a id="idm824768"></a>Getting Started with Berkeley DB Transaction Processing</h1>
34 </div>
35 <div>
36 <div class="legalnotice">
37 <a id="idm341968"></a>
38 <p class="legalnotice-title">
39 <b>Legal Notice</b>
40 </p>
41 <span>
42 <p>
43 This documentation is distributed under an open source license.
44 You may review the terms of this license at:
45 <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/oslicense-093458.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/oslicense-093458.html</a>
46
47
48 </p>
49
50 <p>
51 Oracle, Berkeley DB,
52
53
54 and
55 Sleepycat are trademarks or registered trademarks of
56 Oracle. All rights to these marks are reserved.
57 No third-party use is permitted without the
58 express prior written consent of Oracle.
59 </p>
60 <p>
61 <span class="trademark">Java</span>™ and all Java-based marks are a trademark
62 or registered trademark of Sun Microsystems,
63 Inc, in the United States and other countries.
64 </p>
65 <p>
66 Other names may be trademarks of their respective owners.
67 </p>
68 <p>
69 To obtain a copy of this document's original source code, please
70 submit a request to the Oracle Technology Network forum at:
71 <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>
72
73
74 </p>
75 </span>
76 </div>
77 </div>
78 <div>
79 <p class="pubdate">9/9/2013</p>
80 </div>
81 </div>
82 <hr />
83 </div>
84 <div class="toc">
85 <p>
86 <b>Table of Contents</b>
87 </p>
88 <dl>
89 <dt>
90 <span class="preface">
91 <a href="preface.html">Preface</a>
92 </span>
93 </dt>
94 <dd>
95 <dl>
96 <dt>
97 <span class="sect1">
98 <a href="preface.html#conventions">Conventions Used in this Book</a>
99 </span>
100 </dt>
101 <dt>
102 <span class="sect1">
103 <a href="moreinfo.html">For More Information</a>
104 </span>
105 </dt>
106 <dd>
107 <dl>
108 <dt>
109 <span class="sect2">
110 <a href="moreinfo.html#contact_us">Contact Us</a>
111 </span>
112 </dt>
113 </dl>
114 </dd>
115 </dl>
116 </dd>
117 <dt>
118 <span class="chapter">
119 <a href="introduction.html">1. Introduction</a>
120 </span>
121 </dt>
122 <dd>
123 <dl>
124 <dt>
125 <span class="sect1">
126 <a href="introduction.html#txnintro">Transaction Benefits</a>
127 </span>
128 </dt>
129 <dt>
130 <span class="sect1">
131 <a href="sysfailure.html">A Note on System Failure</a>
132 </span>
133 </dt>
134 <dt>
135 <span class="sect1">
136 <a href="apireq.html">Application Requirements</a>
137 </span>
138 </dt>
139 <dt>
140 <span class="sect1">
141 <a href="multithread-intro.html">Multi-threaded
142 <span>and Multi-process</span>
143 Applications</a>
144 </span>
145 </dt>
146 <dt>
147 <span class="sect1">
148 <a href="recovery-intro.html">Recoverability</a>
149 </span>
150 </dt>
151 <dt>
152 <span class="sect1">
153 <a href="perftune-intro.html">Performance Tuning</a>
154 </span>
155 </dt>
156 </dl>
157 </dd>
158 <dt>
159 <span class="chapter">
160 <a href="enabletxn.html">2. Enabling Transactions</a>
161 </span>
162 </dt>
163 <dd>
164 <dl>
165 <dt>
166 <span class="sect1">
167 <a href="enabletxn.html#environments">Environments</a>
168 </span>
169 </dt>
170 <dd>
171 <dl>
172 <dt>
173 <span class="sect2">
174 <a href="enabletxn.html#filenaming">File Naming</a>
175 </span>
176 </dt>
177 <dt>
178 <span class="sect2">
179 <a href="enabletxn.html#errorsupport">Error Support</a>
180 </span>
181 </dt>
182 <dt>
183 <span class="sect2">
184 <a href="enabletxn.html#sharedmemory">Shared Memory Regions</a>
185 </span>
186 </dt>
187 <dt>
188 <span class="sect2">
189 <a href="enabletxn.html#security">Security Considerations</a>
190 </span>
191 </dt>
192 </dl>
193 </dd>
194 <dt>
195 <span class="sect1">
196 <a href="envopen.html">Opening a Transactional Environment and
197
198 <span>Store or Database</span>
199
200 </a>
201 </span>
202 </dt>
203 </dl>
204 </dd>
205 <dt>
206 <span class="chapter">
207 <a href="usingtxns.html">3. Transaction Basics</a>
208 </span>
209 </dt>
210 <dd>
211 <dl>
212 <dt>
213 <span class="sect1">
214 <a href="usingtxns.html#commitresults">Committing a Transaction</a>
215 </span>
216 </dt>
217 <dt>
218 <span class="sect1">
219 <a href="nodurabletxn.html">Non-Durable Transactions</a>
220 </span>
221 </dt>
222 <dt>
223 <span class="sect1">
224 <a href="abortresults.html">Aborting a Transaction</a>
225 </span>
226 </dt>
227 <dt>
228 <span class="sect1">
229 <a href="autocommit.html">Auto Commit</a>
230 </span>
231 </dt>
232 <dt>
233 <span class="sect1">
234 <a href="nestedtxn.html">Nested Transactions</a>
235 </span>
236 </dt>
237 <dt>
238 <span class="sect1">
239 <a href="txncursor.html">Transactional Cursors</a>
240 </span>
241 </dt>
242 <dd>
243 <dl>
244 <dt>
245 <span class="sect2">
246 <a href="txncursor.html#dplcursors">Using Transactional DPL Cursors</a>
247 </span>
248 </dt>
249 </dl>
250 </dd>
251 <dt>
252 <span class="sect1">
253 <a href="txnindices.html">Secondary Indices with Transaction Applications</a>
254 </span>
255 </dt>
256 <dt>
257 <span class="sect1">
258 <a href="maxtxns.html">Configuring the Transaction Subsystem</a>
259 </span>
260 </dt>
261 </dl>
262 </dd>
263 <dt>
264 <span class="chapter">
265 <a href="txnconcurrency.html">4. Concurrency</a>
266 </span>
267 </dt>
268 <dd>
269 <dl>
270 <dt>
271 <span class="sect1">
272 <a href="txnconcurrency.html#concurrenthandles">Which DB Handles are Free-Threaded</a>
273 </span>
274 </dt>
275 <dt>
276 <span class="sect1">
277 <a href="blocking_deadlocks.html">Locks, Blocks, and Deadlocks</a>
278 </span>
279 </dt>
280 <dd>
281 <dl>
282 <dt>
283 <span class="sect2">
284 <a href="blocking_deadlocks.html#locks">Locks</a>
285 </span>
286 </dt>
287 <dt>
288 <span class="sect2">
289 <a href="blocking_deadlocks.html#blocks">Blocks</a>
290 </span>
291 </dt>
292 <dt>
293 <span class="sect2">
294 <a href="blocking_deadlocks.html#deadlocks">Deadlocks</a>
295 </span>
296 </dt>
297 </dl>
298 </dd>
299 <dt>
300 <span class="sect1">
301 <a href="lockingsubsystem.html">The Locking Subsystem</a>
302 </span>
303 </dt>
304 <dd>
305 <dl>
306 <dt>
307 <span class="sect2">
308 <a href="lockingsubsystem.html#configuringlock">Configuring the Locking Subsystem</a>
309 </span>
310 </dt>
311 <dt>
312 <span class="sect2">
313 <a href="lockingsubsystem.html#configdeadlkdetect">Configuring Deadlock Detection</a>
314 </span>
315 </dt>
316 <dt>
317 <span class="sect2">
318 <a href="lockingsubsystem.html#deadlockresolve">Resolving Deadlocks</a>
319 </span>
320 </dt>
321 <dt>
322 <span class="sect2">
323 <a href="lockingsubsystem.html#setpriority">Setting Transaction Priorities</a>
324 </span>
325 </dt>
326 </dl>
327 </dd>
328 <dt>
329 <span class="sect1">
330 <a href="isolation.html">Isolation</a>
331 </span>
332 </dt>
333 <dd>
334 <dl>
335 <dt>
336 <span class="sect2">
337 <a href="isolation.html#degreesofisolation">Supported Degrees of Isolation</a>
338 </span>
339 </dt>
340 <dt>
341 <span class="sect2">
342 <a href="isolation.html#dirtyreads">Reading Uncommitted Data</a>
343 </span>
344 </dt>
345 <dt>
346 <span class="sect2">
347 <a href="isolation.html#readcommitted">Committed Reads</a>
348 </span>
349 </dt>
350 <dt>
351 <span class="sect2">
352 <a href="isolation.html#snapshot_isolation">Using Snapshot Isolation</a>
353 </span>
354 </dt>
355 </dl>
356 </dd>
357 <dt>
358 <span class="sect1">
359 <a href="txn_ccursor.html">Transactional Cursors and Concurrent Applications</a>
360 </span>
361 </dt>
362 <dd>
363 <dl>
364 <dt>
365 <span class="sect2">
366 <a href="txn_ccursor.html#cursordirtyreads">Using Cursors with Uncommitted Data</a>
367 </span>
368 </dt>
369 </dl>
370 </dd>
371 <dt>
372 <span class="sect1">
373 <a href="exclusivelock.html">Exclusive Database Handles</a>
374 </span>
375 </dt>
376 <dt>
377 <span class="sect1">
378 <a href="readmodifywrite.html">Read/Modify/Write</a>
379 </span>
380 </dt>
381 <dt>
382 <span class="sect1">
383 <a href="txnnowait.html">No Wait on Blocks</a>
384 </span>
385 </dt>
386 <dt>
387 <span class="sect1">
388 <a href="reversesplit.html">Reverse BTree Splits</a>
389 </span>
390 </dt>
391 </dl>
392 </dd>
393 <dt>
394 <span class="chapter">
395 <a href="filemanagement.html">5. Managing DB Files</a>
396 </span>
397 </dt>
398 <dd>
399 <dl>
400 <dt>
401 <span class="sect1">
402 <a href="filemanagement.html#checkpoints">Checkpoints</a>
403 </span>
404 </dt>
405 <dt>
406 <span class="sect1">
407 <a href="backuprestore.html">Backup Procedures</a>
408 </span>
409 </dt>
410 <dd>
411 <dl>
412 <dt>
413 <span class="sect2">
414 <a href="backuprestore.html#copyutilities">About Unix Copy Utilities</a>
415 </span>
416 </dt>
417 <dt>
418 <span class="sect2">
419 <a href="backuprestore.html#standardbackup">Offline Backups</a>
420 </span>
421 </dt>
422 <dt>
423 <span class="sect2">
424 <a href="backuprestore.html#hotbackup">Hot Backup</a>
425 </span>
426 </dt>
427 <dt>
428 <span class="sect2">
429 <a href="backuprestore.html#incrementalbackups">Incremental Backups</a>
430 </span>
431 </dt>
432 </dl>
433 </dd>
434 <dt>
435 <span class="sect1">
436 <a href="recovery.html">Recovery Procedures</a>
437 </span>
438 </dt>
439 <dd>
440 <dl>
441 <dt>
442 <span class="sect2">
443 <a href="recovery.html#normalrecovery">Normal Recovery</a>
444 </span>
445 </dt>
446 <dt>
447 <span class="sect2">
448 <a href="recovery.html#catastrophicrecovery">Catastrophic Recovery</a>
449 </span>
450 </dt>
451 </dl>
452 </dd>
453 <dt>
454 <span class="sect1">
455 <a href="architectrecovery.html">Designing Your Application for Recovery</a>
456 </span>
457 </dt>
458 <dd>
459 <dl>
460 <dt>
461 <span class="sect2">
462 <a href="architectrecovery.html#multithreadrecovery">Recovery for Multi-Threaded Applications</a>
463 </span>
464 </dt>
465 <dt>
466 <span class="sect2">
467 <a href="architectrecovery.html#multiprocessrecovery">Recovery in Multi-Process Applications</a>
468 </span>
469 </dt>
470 </dl>
471 </dd>
472 <dt>
473 <span class="sect1">
474 <a href="hotfailover.html">Using Hot Failovers</a>
475 </span>
476 </dt>
477 <dt>
478 <span class="sect1">
479 <a href="logfileremoval.html">Removing Log Files</a>
480 </span>
481 </dt>
482 <dt>
483 <span class="sect1">
484 <a href="logconfig.html">Configuring the Logging Subsystem</a>
485 </span>
486 </dt>
487 <dd>
488 <dl>
489 <dt>
490 <span class="sect2">
491 <a href="logconfig.html#logfilesize">Setting the Log File Size</a>
492 </span>
493 </dt>
494 <dt>
495 <span class="sect2">
496 <a href="logconfig.html#logregionsize">Configuring the Logging Region Size</a>
497 </span>
498 </dt>
499 <dt>
500 <span class="sect2">
501 <a href="logconfig.html#inmemorylogging">Configuring In-Memory Logging</a>
502 </span>
503 </dt>
504 <dt>
505 <span class="sect2">
506 <a href="logconfig.html#logbuffer">Setting the In-Memory Log Buffer Size</a>
507 </span>
508 </dt>
509 </dl>
510 </dd>
511 </dl>
512 </dd>
513 <dt>
514 <span class="chapter">
515 <a href="wrapup.html">6. Summary and Examples</a>
516 </span>
517 </dt>
518 <dd>
519 <dl>
520 <dt>
521 <span class="sect1">
522 <a href="wrapup.html#anatomy">Anatomy of a Transactional Application</a>
523 </span>
524 </dt>
525 <dt>
526 <span class="sect1">
527 <a href="txnexample_java.html">Base API Transaction Example</a>
528 </span>
529 </dt>
530 <dd>
531 <dl>
532 <dt>
533 <span class="sect2">
534 <a href="txnexample_java.html#txnguideexample">TxnGuide.java</a>
535 </span>
536 </dt>
537 <dt>
538 <span class="sect2">
539 <a href="txnexample_java.html#payloaddata">PayloadData.java</a>
540 </span>
541 </dt>
542 <dt>
543 <span class="sect2">
544 <a href="txnexample_java.html#dbwriter">DBWriter.java</a>
545 </span>
546 </dt>
547 </dl>
548 </dd>
549 <dt>
550 <span class="sect1">
551 <a href="txnexample_dpl.html">DPL Transaction Example</a>
552 </span>
553 </dt>
554 <dd>
555 <dl>
556 <dt>
557 <span class="sect2">
558 <a href="txnexample_dpl.html#txnguideexample_dpl">TxnGuide.java</a>
559 </span>
560 </dt>
561 <dt>
562 <span class="sect2">
563 <a href="txnexample_dpl.html#payloaddataentity">PayloadDataEntity.java</a>
564 </span>
565 </dt>
566 <dt>
567 <span class="sect2">
568 <a href="txnexample_dpl.html#storewriter">StoreWriter.java</a>
569 </span>
570 </dt>
571 </dl>
572 </dd>
573 <dt>
574 <span class="sect1">
575 <a href="inmem_txnexample_java.html">Base API In-Memory Transaction Example</a>
576 </span>
577 </dt>
578 </dl>
579 </dd>
580 </dl>
581 </div>
582 </div>
583 <div class="navfooter">
584 <hr />
585 <table width="100%" summary="Navigation footer">
586 <tr>
587 <td width="40%" align="left"> </td>
588 <td width="20%" align="center"> </td>
589 <td width="40%" align="right"> <a accesskey="n" href="preface.html">Next</a></td>
590 </tr>
591 <tr>
592 <td width="40%" align="left" valign="top"> </td>
593 <td width="20%" align="center"> </td>
594 <td width="40%" align="right" valign="top"> Preface</td>
595 </tr>
596 </table>
597 </div>
598 </body>
599 </html>