75 lines
5.1 KiB
HTML
75 lines
5.1 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Soft commit" />
|
|
<meta name="abstract" content="You can improve the performance of database transactions with soft commit. Soft commit limits the number of times that the system writes journal entries associated with a transaction to disk." />
|
|
<meta name="description" content="You can improve the performance of database transactions with soft commit. Soft commit limits the number of times that the system writes journal entries associated with a transaction to disk." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakjoptimize.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzakjsoftcommi" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Soft commit</title>
|
|
</head>
|
|
<body id="rzakjsoftcommi"><a name="rzakjsoftcommi"><!-- --></a>
|
|
<img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Soft commit</h1>
|
|
<div><p>You can improve the performance of database transactions with soft
|
|
commit. Soft commit limits the number of times that the system writes journal
|
|
entries associated with a transaction to disk.</p>
|
|
<p>Soft commit can improve transaction performance, but it might cause one
|
|
or more transactions to be lost in the event of a system failure. Traditional
|
|
commitment control on DB2 Universal Database™ for iSeries™ ensures
|
|
transaction durability, which means that when a transaction has been committed,
|
|
the transaction persists on the system. Soft commit does not provide this
|
|
durability, although it still ensures the atomicity of the transaction. In
|
|
other words, the system guarantees a commit boundary, but one or more complete
|
|
transactions might be lost in the event of a system failure.</p>
|
|
<p>To use soft commit, both for a particular job or across the system, specify
|
|
*NO on the <var class="varname">QIBM_TN_COMMIT_DURABLE</var> environment variable.
|
|
You can change this variable with the <span class="cmdname">Add Environment Variable (ADDENVVAR)</span> command.</p>
|
|
<p>For example, to request soft commit from a particular job, run the following
|
|
command from the job:</p>
|
|
<p><kbd class="userinput">ADDENVVAR ENVVAR (QIBM_TN_COMMIT_DURABLE) VALUE (*NO)</kbd></p>
|
|
<p>To request soft commit across the system, run the following command:</p>
|
|
<p><kbd class="userinput">ADDENVVAR ENVVAR (QIBM_TN_COMMIT_DURABLE) VALUE (*NO) LEVEL
|
|
(*SYS)</kbd></p>
|
|
<div class="note"><span class="notetitle">Note:</span> You must have *JOBCTL authority to set this environment variable system
|
|
wide.</div>
|
|
<p>If the default case <var class="varname">QIBM_TN_COMMIT_DURABLE</var> environment
|
|
variable has not been added, or if the environment variable has been set to
|
|
any value other than *NO, the system does not use soft commit; instead, the
|
|
system uses traditional commitment control so that the durability of transactions
|
|
will be ensured.</p>
|
|
<p>You can check the existence of this new environment variable, and its value
|
|
and level if it exists, using the <span class="cmdname">Work with Environment Variables
|
|
(WRKENVVAR)</span> command.</p>
|
|
<p>For some transactions, the operating system chooses to ignore your request
|
|
for soft commit, and instead, performs traditional commitment. This happens
|
|
in some complex environments, where multiple database connections are required
|
|
or DDL operations are underway. The operating system can determine when it
|
|
is appropriate to perform the request and when it makes more sense to perform
|
|
a traditional commitment operation. So it is not harmful to request soft commit
|
|
in such environments.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakjoptimize.htm" title="Using commitment control requires resources that can affect system performance. Several factors affect system performance regarding commitment control.">Optimize performance for commitment control</a></div>
|
|
</div>
|
|
</div>
|
|
<img src="./deltaend.gif" alt="End of change" /></body>
|
|
</html> |