<?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>Question Re: Oracle deadlock error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734717#M3485654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute immediate "LOCK TABLE &lt;EM&gt;tablename&lt;/EM&gt; IN EXCLUSIVE MODE" using sqlca;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if sqlca.sqldbcode &amp;lt;&amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lb_ok = false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; il_errcode = sqlca.sqldbcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_errtext = sqlca.sqlerrtext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle releases automatically the lock table on the subsequent Commit or Rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 16:29:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-07T16:29:29Z</dc:date>
    <item>
      <title>Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaq-p/9734710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a PB 10.5 app that runs on ASE, SQL Anywhere, SQL Server and Oracle. I only have one customer on Oracle and I don't normally use it so I'm not sure what can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The app ran a single DELETE statement that was deleting multiple rows from a table and got the follow error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORA-00060: deadlock detected while waiting for resource&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have less than 5 people using the app. I don't know how many rows are being deleted exactly but it could have been 2-3 thousand from a table with 10-20 thousand rows. The table has one blob column on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the O10 interface and the database is Oracle 11g 11.2.0.1.0. The sqlca.DBParm is blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 17:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaq-p/9734710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-04T17:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734711#M3485648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are multiple users issuing that same statement so they might be attempting to delete some of the same rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle is row locking, so it's actually rather hard to get into such a deadlock.&amp;nbsp; About the only time I see it is when I'm doing DDL against a table that has a DML operation pending against it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 17:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734711#M3485648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-04T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734712#M3485649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They only gave me the abort info, nothing about what was going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my WizSource Source Control and they were deleting a Project which most customers would never do. Why they wanted to delete the Project I don't know. I told them that they should have everyone exit PowerBuilder before deleting a Project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 17:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734712#M3485649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-04T17:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734713#M3485650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;force a lock on the entire table first then delete the rows.&amp;nbsp;&amp;nbsp; that is sometimes more efficient and might prevent that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you sure you are only deleting from only the one table?&amp;nbsp; do you have declaritive referential integrity on it, thus possibly forcing related deletes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 03:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734713#M3485650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-05T03:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734714#M3485651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was the WizSource Admin program doing a Project Delete. This is the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM WS_FILECONTENT&lt;/P&gt;&lt;P&gt; WHERE PROJECT_ID = :ll_project;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior to this it nulls out the FILECONTENT_ID on WS_FILE so their should be a reference issue. This is the only customer that ever has any problems. I don't know if it is Oracle or 'User Error'. Their English is poor so it is hard to find out what is going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 03:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734714#M3485651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-05T03:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734715#M3485652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you force a table lock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 03:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734715#M3485652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-05T03:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734716#M3485653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9015.htm" title="http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9015.htm"&gt;http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9015.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, look for v$lock for ways to reference the "lock table" so you can see who has locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you also checked every transaction to make sure you commit/rollback when finished? (I know it's obvious, but we've all been bit by it in the past)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 12:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734716#M3485653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-05T12:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle deadlock error</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734717#M3485654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute immediate "LOCK TABLE &lt;EM&gt;tablename&lt;/EM&gt; IN EXCLUSIVE MODE" using sqlca;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if sqlca.sqldbcode &amp;lt;&amp;gt; 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lb_ok = false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; il_errcode = sqlca.sqldbcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_errtext = sqlca.sqlerrtext&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle releases automatically the lock table on the subsequent Commit or Rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 16:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-deadlock-error/qaa-p/9734717#M3485654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-07T16:29:29Z</dc:date>
    </item>
  </channel>
</rss>

