<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Write and read lock in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362420#M1400639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean to use just write lock ?&lt;/P&gt;&lt;P&gt;Can you explain little bit more why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 09:37:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-30T09:37:38Z</dc:date>
    <item>
      <title>Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362415#M1400634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the write lock in order to update user records in DB (for every update record user ) my question is when i read user records do i need to create new read lock or use the same lock (write )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362415#M1400634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362416#M1400635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess for reading, lock is not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362416#M1400635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362417#M1400636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you update anything to database table at that time only lock the table for other uses no need for any lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362417#M1400636</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-11-30T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362418#M1400637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not needed. There is no such concept for read. The only reason behind ( Write lock ) this is to maintain data integrity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362418#M1400637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362419#M1400638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't worked extensively on Locking Objects in ABAP.&lt;/P&gt;&lt;P&gt;But I do have some idea on RDBMS Locking Concepts.&lt;/P&gt;&lt;P&gt;When you have locked some table for Write, few databases dont allow a read lock on them.&lt;/P&gt;&lt;P&gt;Few others do allow a read lock, but you get to read the last consistent state of those table or records in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Others&lt;/P&gt;&lt;P&gt;Please do correct me if I am wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362419#M1400638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362420#M1400639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean to use just write lock ?&lt;/P&gt;&lt;P&gt;Can you explain little bit more why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362420#M1400639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T09:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362421#M1400640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to have a search in SCN reagrding the same and you will get lot of information....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 09:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362421#M1400640</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-11-30T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362422#M1400641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading of database table do not require lock.During write we use lock to maintain data integrity and consistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Provide three type of Lock objects.  &lt;/P&gt;&lt;P&gt;1.  Read Lock(Shared Locked)   &lt;/P&gt;&lt;P&gt;2. Write Lock(exclusive lock) &lt;/P&gt;&lt;P&gt;3.  Enhanced write lock (exclusive lock without cumulating) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can search for these on SDN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 10:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362422#M1400641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Write and read lock</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362423#M1400642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not require any lock for reading purpose this is because many users can read the particular data (as no updation is required) read lock is also known as Shared lock.&lt;/P&gt;&lt;P&gt;In case if you want to write or update the database then Write lock is required so that no other user can write when you are writting on the database, write locks are also known as Exclusive locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont put the lock before writing then it may happen that 2 users write at same time which will lead to the situation of Dirty Read or Dirty Write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing more if one user have locked some object for writing then that user needs to unlock that object then only other user can lock it and write on that object other wise other user have to wait till the first user unlock the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can be the case that user A have locked item 1 and he wanted to write on item 2 but item 2 have been locked by user B and user B wants to write on item 1 so both the users are waiting to write and they are not unlocking the objects.This caase is known as DEADLOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanmaya Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 11:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-and-read-lock/m-p/6362423#M1400642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T11:35:33Z</dc:date>
    </item>
  </channel>
</rss>

