 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Records lock error</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/records-lock-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/records-lock-error/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 07:47:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: yorkshireman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/records-lock-error/#comment-97490</link>
		<dc:creator>yorkshireman</dc:creator>
		<pubDate>Thu, 06 Oct 2011 07:16:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-97490</guid>
		<description><![CDATA[You need a design level standard

Don&#039;t lock the record.  

Don&#039;t ever write anything that locks a record - ever.


Except just before you update it.  


read and display
read and display
decide an update is needed

read the record for update (lock)
check it hasn&#039;t changed since you displayed it ( tell the user if so)
update it
release the lock

read and display 
read and display
blahblah]]></description>
		<content:encoded><![CDATA[<p>You need a design level standard</p>
<p>Don&#8217;t lock the record.  </p>
<p>Don&#8217;t ever write anything that locks a record &#8211; ever.</p>
<p>Except just before you update it.  </p>
<p>read and display<br />
read and display<br />
decide an update is needed</p>
<p>read the record for update (lock)<br />
check it hasn&#8217;t changed since you displayed it ( tell the user if so)<br />
update it<br />
release the lock</p>
<p>read and display<br />
read and display<br />
blahblah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/records-lock-error/#comment-81510</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 15 Sep 2010 01:53:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-81510</guid>
		<description><![CDATA[You will get a &#039;lock&#039; error if you try to update a record that is currently locked by another program. You &lt;b&gt;cannot&lt;/b&gt; turn that off. You can read locked records; but if you later try to execute an update against that record, the lock in the other program will prevent DB2 from obtaining the lock for your program (which is beyond your control).

So, as Phil asked, what are you saying with &quot;change the setting to no records lock&quot;?

Tom]]></description>
		<content:encoded><![CDATA[<p>You will get a &#8216;lock&#8217; error if you try to update a record that is currently locked by another program. You <b>cannot</b> turn that off. You can read locked records; but if you later try to execute an update against that record, the lock in the other program will prevent DB2 from obtaining the lock for your program (which is beyond your control).</p>
<p>So, as Phil asked, what are you saying with &#8220;change the setting to no records lock&#8221;?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.017 seconds using memcached
Object Caching 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 08:37:45 -->