<?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>idea Locating Schema locks caused by Services in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idi-p/1111656</link>
    <description>&lt;P&gt;I am looking for a way to find out which services are consuming GDB feature classes and causing schema locks.&lt;/P&gt;&lt;P&gt;From ESRI:&lt;BR /&gt;As mentioned, I have discussed the query, with the specific team who looks into these queries, and has received a response that the functionality of viewing which services are acquiring the schema locks is unavailable. Also, to remove schema locks from ArcGIS Server service, you can start and stop the services and the locks shall be removed.&lt;/P&gt;&lt;P&gt;I would like to be able to trace a feature class that is locked by one or many services.&amp;nbsp; We don't have a lot of issues with locks in Desktop per se, but it is a matter of finding which services specifically to shut down to clear the locks.&amp;nbsp; My only option now is to shut down all three of my ArcGIS Server Services, causing entire Portal to be effectively shut down.&amp;nbsp; This cannot happen during the day with people using our services throughout the City as we have developed many maps, apps and dashboards for City Departments and Residents to use as well as other Software platforms that utilize ESRI services.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping somebody can make an interface that can search through the services for data sources that are locking the GDB Schema to limit what I am having to shut down.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 15:03:53 GMT</pubDate>
    <dc:creator>bsanders69</dc:creator>
    <dc:date>2021-10-27T15:03:53Z</dc:date>
    <item>
      <title>Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idi-p/1111656</link>
      <description>&lt;P&gt;I am looking for a way to find out which services are consuming GDB feature classes and causing schema locks.&lt;/P&gt;&lt;P&gt;From ESRI:&lt;BR /&gt;As mentioned, I have discussed the query, with the specific team who looks into these queries, and has received a response that the functionality of viewing which services are acquiring the schema locks is unavailable. Also, to remove schema locks from ArcGIS Server service, you can start and stop the services and the locks shall be removed.&lt;/P&gt;&lt;P&gt;I would like to be able to trace a feature class that is locked by one or many services.&amp;nbsp; We don't have a lot of issues with locks in Desktop per se, but it is a matter of finding which services specifically to shut down to clear the locks.&amp;nbsp; My only option now is to shut down all three of my ArcGIS Server Services, causing entire Portal to be effectively shut down.&amp;nbsp; This cannot happen during the day with people using our services throughout the City as we have developed many maps, apps and dashboards for City Departments and Residents to use as well as other Software platforms that utilize ESRI services.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping somebody can make an interface that can search through the services for data sources that are locking the GDB Schema to limit what I am having to shut down.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idi-p/1111656</guid>
      <dc:creator>bsanders69</dc:creator>
      <dc:date>2021-10-27T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111671#M2631</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/413580"&gt;@bsanders69&lt;/a&gt;&amp;nbsp;I'm not sure if this tip will help you, but you could try and open the task manager on your ArcGIS Server machine:&lt;/P&gt;&lt;P&gt;In the Details tab, you will see a load of ArcSOC.exe processes running. One for every service. If you Add a column called "Command Line" to the table, you can see where each ArcSOC originates from.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brooks_SummitGeo_0-1635348074892.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26299i8B269896EFF6C9BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brooks_SummitGeo_0-1635348074892.png" alt="Brooks_SummitGeo_0-1635348074892.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111671#M2631</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2021-10-27T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111678#M2632</link>
      <description>&lt;P&gt;How did you publish your map service ? In ArcGIS Pro you need to make sure enable schema locking isn't ticked&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GillWare_0-1635348344271.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26301i3E3042BFB73F9CF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GillWare_0-1635348344271.png" alt="GillWare_0-1635348344271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111678#M2632</guid>
      <dc:creator>GillWare</dc:creator>
      <dc:date>2021-10-27T15:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111687#M2633</link>
      <description>&lt;P&gt;That box you are mentioning, is a potentially dangerous thing based on a conversation with ESRI Support.&amp;nbsp; It was designed around read-only reference data that will never change.&amp;nbsp; Certain schema changes can cause services to act erratically if the underlying data structure is changed and service is not turned off and started again to get a push of the correct schema.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111687#M2633</guid>
      <dc:creator>bsanders69</dc:creator>
      <dc:date>2021-10-27T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111691#M2634</link>
      <description>&lt;P&gt;Interesting, we've been using this for years and not had any problems but will bear in mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111691#M2634</guid>
      <dc:creator>GillWare</dc:creator>
      <dc:date>2021-10-27T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111694#M2635</link>
      <description>&lt;P&gt;For Brooks_SummitGeo:&lt;/P&gt;&lt;P&gt;Your example screenshot did not include an ArcSOC.exe process running, but We discussed this with Support.&amp;nbsp; We simply have too many services (hundreds to date and many that use a lot of common data, so overlapping is an issue) to sort through for this process to work effectively.&amp;nbsp; I am looking for a forward solution, rather than a backward one.&amp;nbsp; I see a schema lock in my database, can I plug that data source into a tool that will provide me a list of services in my enterprise that consume that data.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111694#M2635</guid>
      <dc:creator>bsanders69</dc:creator>
      <dc:date>2021-10-27T15:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111696#M2636</link>
      <description>&lt;P&gt;For GillWare:&lt;/P&gt;&lt;P&gt;It is something I looked into and discussed with Support.&amp;nbsp; It is an option, but I would also hate to try and chase down a funky acting service problem...especially with so many services running so far.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 16:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111696#M2636</guid>
      <dc:creator>bsanders69</dc:creator>
      <dc:date>2021-10-27T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111711#M2637</link>
      <description>&lt;P&gt;System Log Parser would give you all the datasources of all your services based on your system logs. Should set your logs to verbose, then get a scan of your system logs, then can set it back to warning.&lt;/P&gt;&lt;P&gt;See screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NathanEnge_0-1635351976205.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26308i8ECC58CF5D76114B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NathanEnge_0-1635351976205.png" alt="NathanEnge_0-1635351976205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLP looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NathanEnge_1-1635352041304.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26309iED6A9ED7336BA98C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NathanEnge_1-1635352041304.png" alt="NathanEnge_1-1635352041304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=90134fb0f1c148a48c65319287dde2f7" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=90134fb0f1c148a48c65319287dde2f7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 16:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1111711#M2637</guid>
      <dc:creator>NathanEnge</dc:creator>
      <dc:date>2021-10-27T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Locating Schema locks caused by Services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1112022#M2638</link>
      <description>&lt;P&gt;&amp;nbsp;Couldn't you get the information from the service manifest?&lt;/P&gt;&lt;P&gt;Something like this, using the ArcGIS API for Python.&lt;/P&gt;&lt;PRE&gt;gis = GIS(portal_url&lt;SPAN&gt;, &lt;/SPAN&gt;portal_user&lt;SPAN&gt;, &lt;/SPAN&gt;portal_pwd&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;verify_cert&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;servers = gis.admin.servers.list()&lt;BR /&gt;server1 = servers[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;services = server1.services.list(&lt;SPAN&gt;folder&lt;/SPAN&gt;=&lt;SPAN&gt;"abc"&lt;/SPAN&gt;)&lt;BR /&gt;service = services[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;item_info = service.iteminformation&lt;BR /&gt;manifest = item_info.manifest&lt;BR /&gt;pprint.pprint(manifest)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 09:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/locating-schema-locks-caused-by-services/idc-p/1112022#M2638</guid>
      <dc:creator>CarstenB_orsted</dc:creator>
      <dc:date>2021-10-28T09:27:49Z</dc:date>
    </item>
  </channel>
</rss>

