<?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 Automate Locks Management in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29262#M1554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know of any way to automatically break user connections to an enterprise geodatabase? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to run some scripts overnight, but they need to acquire locks on certain datasets, and we have some users who leave connections open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to find a way to break their connections without having to go through the manual process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2013 12:16:28 GMT</pubDate>
    <dc:creator>CraigCarsley</dc:creator>
    <dc:date>2013-09-04T12:16:28Z</dc:date>
    <item>
      <title>Automate Locks Management</title>
      <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29262#M1554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know of any way to automatically break user connections to an enterprise geodatabase? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to run some scripts overnight, but they need to acquire locks on certain datasets, and we have some users who leave connections open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to find a way to break their connections without having to go through the manual process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 12:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29262#M1554</guid>
      <dc:creator>CraigCarsley</dc:creator>
      <dc:date>2013-09-04T12:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Locks Management</title>
      <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29263#M1555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Database connection termination is a database feature.&amp;nbsp; The syntax varies by RDBMS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way Esri code could be involved is if an application server connection is used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(and doing so is discouraged, partially because of this vulnerability).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect you could script user session termination in any of the dozen ArcSDE-supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; RDBMSes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 12:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29263#M1555</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-09-04T12:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Locks Management</title>
      <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29264#M1556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The functions you are looking for are arcpy.ListUsers and arcpy.DisconnectUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List Connected Users&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000030000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000030000000&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;Disconnect users:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000061000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018v00000061000000&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;The third example for disconnect users shows how to use the list users function with the disconnect users function to disconnect only specific users based on their names. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will work for both application server connections (3-tier) as well as direct connections (2-tier).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Russell&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 16:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29264#M1556</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2013-09-05T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Locks Management</title>
      <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29265#M1557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also...to add to Russell's info about the GP tools (which you can script), you can list and disconnect users through the ArcGIS gui. This is from the 10.1 help (similar for 10.2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0029000000sq000000"&gt;Viewing connected users in ArcGIS for Desktop&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above has links to topics for removing connections from different types of databases. You'll have to make sure the sde admin user has the correct privileges (this is discussed in the help topics).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 16:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/29265#M1557</guid>
      <dc:creator>ForrestJones</dc:creator>
      <dc:date>2013-09-05T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Locks Management</title>
      <link>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/1164868#M43986</link>
      <description>&lt;P&gt;This post is quite old. I wonder if anything has changed since then? Any enhancements added to ArcGIS, etc.?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 19:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automate-locks-management/m-p/1164868#M43986</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-04-15T19:16:20Z</dc:date>
    </item>
  </channel>
</rss>

