<?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: SDE lock problem in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495451#M28135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Don,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There a few tables that you can check to see if there are any locks placed on a feature class.&amp;nbsp; These are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_state_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_object_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_layer_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_table_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would first check with the sde.SDE_table_locks table to see if there is a lock there.&amp;nbsp; You can run the following query first:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select registration_id from sde.SDE_table_registry where table_name = 'AIRPORTS'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace 'AIRPORTS' with the feature class name.&amp;nbsp; Take the returned value (i.e. 235) from this query and then execute:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select sde_id from sde.SDE_table_locks where registration_id = 235&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then check the other tables with the value returned (i.e. 5256) from this query to see if there are any additional locks.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
select * from sde.SDE_state_locks where sde_id = 5256

select * from sde.SDE_object_locks where sde_id = 5256

select * from sde.SDE_layer_locks where sde_id = 5256&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can determine the user that is creating the lock(s) by querying the sde.SDE_process_information table.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select * from sde.SDE_process_information where sde_id = 5256&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:47:33 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-11T21:47:33Z</dc:date>
    <item>
      <title>SDE lock problem</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495450#M28134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to make some structural changes to a feature set I created recently in a SDE geodatabase,&amp;nbsp; but I cannot because it is locked. I can find no reason why it should be locked. Is there a way to determine who/what has the lock on it so I can clear it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 22:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495450#M28134</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2012-03-13T22:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: SDE lock problem</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495451#M28135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Don,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There a few tables that you can check to see if there are any locks placed on a feature class.&amp;nbsp; These are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_state_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_object_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_layer_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.SDE_table_locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would first check with the sde.SDE_table_locks table to see if there is a lock there.&amp;nbsp; You can run the following query first:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select registration_id from sde.SDE_table_registry where table_name = 'AIRPORTS'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace 'AIRPORTS' with the feature class name.&amp;nbsp; Take the returned value (i.e. 235) from this query and then execute:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select sde_id from sde.SDE_table_locks where registration_id = 235&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then check the other tables with the value returned (i.e. 5256) from this query to see if there are any additional locks.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
select * from sde.SDE_state_locks where sde_id = 5256

select * from sde.SDE_object_locks where sde_id = 5256

select * from sde.SDE_layer_locks where sde_id = 5256&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can determine the user that is creating the lock(s) by querying the sde.SDE_process_information table.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select * from sde.SDE_process_information where sde_id = 5256&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495451#M28135</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: SDE lock problem</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495452#M28136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! I will give those a try. Turns out the locking user was me. Don't know why but even though I had removed all the layers from my project ArcMap was still maintaining locks on the feature classes. After I shut it down and restarted everything was fine. Go figure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495452#M28136</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2012-03-14T14:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: SDE lock problem</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495453#M28137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem.&amp;nbsp; Esri has actually made identifying locks much easier at 10.1.&amp;nbsp; This can be accomplished right from the Catalog window.&amp;nbsp; You can simply right-click on the geodatabase and you are presented with an Administration option.&amp;nbsp; Here there is a tab showing which locks exist and which user is placing the lock.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-lock-problem/m-p/495453#M28137</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-03-14T14:32:48Z</dc:date>
    </item>
  </channel>
</rss>

