<?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: Compression and exclusive state locks? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804633#M2779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. The shared locks I understand - it's the exclusive locks I'm having trouble with. I haven't checked yet whether they're all very close together, i.e. created by one edit session, or whether they're distributed all over the state tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 20:48:45 GMT</pubDate>
    <dc:creator>MartinAmeskamp</dc:creator>
    <dc:date>2016-02-29T20:48:45Z</dc:date>
    <item>
      <title>Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804631#M2777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we have a customer with around 50 concurrent editors on ArcGIS 10.0 SP5 (yes, I know), and Oracle 11.2.04. Editing is done using work order versions, and the number of versions is near the number of users. The typical versions lives a couple of hours: gets created off DEFAULT, edited, passed on to a QC person, and then gets reconciled, posted, and deleted by a dedicated service (ArcGIS Server + Java ArcObjects API). A (reasonably) full compress is done every night after shutting down various services, and this typically gets the number of states very close to the number of open versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We keep seeing the effect, though, that a large number of version have a very long state lineage (hundreds), and the state tree (viewed with GDBT) looks a bit like a palm tree: A long (hundreds) linear chain of states with no versions pointing to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking into the situation, I found that there seem to be a large number of exclusive state locks:In one specific instance, most users have few shared state locks, but some users have 20 to 30 exclusive state locks each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that these exclusive locks have something to do with the long uncopmpressed chains of states, and the question is. Where do they come from? What can I do with ArcMap to generate 20 exclusive state locks??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be a recurring problem, so I'm interested in finding out how it comes about. As night, when theer are no users, the database behaves as expected and compresses quite nicely...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804631#M2777</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-02-29T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804632#M2778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the following would help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/es/knowledgebase/techarticles/detail/35794" title="http://support.esri.com/es/knowledgebase/techarticles/detail/35794"&gt;35794 - Obtain a listing of user processes and locks from a geodatabase when there is no ArcSDE service&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A shared state lock is acquired anytime a versioned representation of a dataset is open in ArcGIS. - Meaning anytime anyone is actively editing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/geodatabase-locks.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/geodatabase-locks.htm"&gt;Geodatabase locks—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 15:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804632#M2778</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2016-02-29T15:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804633#M2779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. The shared locks I understand - it's the exclusive locks I'm having trouble with. I haven't checked yet whether they're all very close together, i.e. created by one edit session, or whether they're distributed all over the state tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804633#M2779</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-02-29T20:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804634#M2780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exclusive locks are also outlined in the documentation I pasted above. In general, they arent anything to worry about unless you start seeing persistent exclusive locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804634#M2780</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2016-02-29T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804635#M2781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you forcibly disconnecting all users when you do the compress? Are you also reconciling the versions that are still left (if any) before the compress?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804635#M2781</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-02-29T21:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804636#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, we don't forcibly or otherwise disconnect users, and yes, we reconcile versions using a background python script. The point is not to achieve a full compress, but rather to keep performance acceptable during the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 08:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804636#M2782</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-03-01T08:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804637#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam &amp;amp; Blake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for taking the time to look at this. I've done some more looking at states, state locks etc. and came to the conclusion that I have to look elsewhere for a solution to my palm tree problem (long persistent chains of uncompressed states). The exclusive locks are all very recent and belong to recent states in open edit sessions. Specifically, they are nowhere near my "problem area". In short, they are perfectly harmless, like Sam said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 08:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804637#M2783</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-03-01T08:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804638#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I was getting at is that if you disconnect all users when you do the reconcile and compress, it might help eliminate the long state lineages because nobody will be able to lock up the states in an ArcMap session.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804638#M2784</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-03-01T20:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804639#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True - that's what happens at night. The problem is that these long chains reappear during the day, and I have yet to find out why compress doesn't collapse them. Most days, they're relatively harmless with 200-300 states, but we recently had over 1000 states in one of those chains, meaning that almost every version has a state lineage of over 1000 states - that slows down things significantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804639#M2785</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-03-01T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804640#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you can't clear them up over night, maybe it's just compounding again during the day. I would try to get everyone disconnected when you do your maintenance and see if that makes a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804640#M2786</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-03-01T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804641#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also could have one orphaned state lock that is holding up a whole entire lineage. It would be important to reconcile/post all versions, delete all versions, then make sure each and every lock is out of the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_LOCKS&lt;/P&gt;&lt;P&gt;LAYER_LOCKS&lt;/P&gt;&lt;P&gt;STATE_LOCKS&lt;/P&gt;&lt;P&gt;TABLE_LOCKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, compress to state 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 13:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804641#M2787</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2016-03-02T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804642#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid that's not an option. We get a chance to delete all versions about twice a year. As I tried to say above, we still get the database into a reasonable state every night - ~ 1 state per version, no chains, short state lineages, so mornings are fine. The chain effect keeps building up during the day. The oldest locked state right now (3 pm local time) is from yesterday morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804642#M2788</guid>
      <dc:creator>MartinAmeskamp</dc:creator>
      <dc:date>2016-03-02T14:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804643#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understandable. Do you have any services or anything that would aquire that lock at 3PM? You should also be able to track who is acquiring that lock. The sde_id column in the state_locks table corresponds to the sde_id column in the process_information table. At least you can start tracking who specifically it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804643#M2789</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2016-03-02T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compression and exclusive state locks?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804644#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also make sure that the actual Oracle database is not being backed up (server/network side) which most likely could create a lock (if that was mentioned in the docs already, my apologies ..I didn't read thru them yet).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/compression-and-exclusive-state-locks/m-p/804644#M2790</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-03-02T16:38:29Z</dc:date>
    </item>
  </channel>
</rss>

