<?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: When is it safe to disconnect an active session from an enterprise geodatabase? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837768#M4514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had the same problem over the years.&amp;nbsp; Strategies I've used;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a block of time for maintenance and ask users to stay off during that time.&lt;/P&gt;&lt;P&gt;Email them and ask them to get off.&lt;/P&gt;&lt;P&gt;Bounce them without emailing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each has it's own advantages and disadvantages, as well as varying levels of cooperation.&amp;nbsp; If we (they) lose edits because they ignore the nice guy emails, it's on them and I just move on...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 19:11:34 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2016-05-25T19:11:34Z</dc:date>
    <item>
      <title>When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837766#M4512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to disconnect users periodically to conduct geodatabase maintenance and programmatically update feature classes, but do not want to risk losing data when it is being actively edited or when a user may have edits in an open version that has not yet been posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri advises against disconnecting active sessions: &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/manage-geodatabase-locks.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-oracle/manage-geodatabase-locks.htm"&gt;Manage geodatabase locks—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="background-color: #ededed; color: #4d4d4d; font-size: 14px; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;Use caution when disconnecting users. Esri recommends that you avoid disconnecting active sessions, especially if the connected user is &lt;STRONG&gt;in the process of editing&lt;/STRONG&gt;. You should only disconnect users to drop locks if a session was left open even when not being used (for example, over the weekend), if a session is orphaned and locking an object, or if a deadlock situation occurs.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's pretty clear that being in an edit session is "in the process of editing".&amp;nbsp; However, what is less clear how this prohibition applies to open versions not in an active edit session but with edits that have not yet posted to their parent version (dbo).&amp;nbsp; If I disconnect a user with their unposted version open and then run maintenance actions like Compress, Analyze Datasets, and Rebuild Index, do I risk losing the data in their version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's easy to see what users are currently connected to an enterprise geodatabase.&amp;nbsp; The following article details the process of using either ArcCatalog or ArcPy to list users.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/manage-connections-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/manage-connections-sqlserver.htm"&gt;Manage connections in SQL Server—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to identify the nature of the connection?&amp;nbsp; It's all in the lock type.&amp;nbsp; The following article details the three types of locks: schema, state, and version.&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;The above article states that version locks indicate an active edit session.&amp;nbsp; State locks are when a version is simply open.&amp;nbsp; Clearly, disconnecting a session with a version lock risks data loss.&amp;nbsp; However, is the same true for State locks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 14:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837766#M4512</guid>
      <dc:creator>LinkElmore</dc:creator>
      <dc:date>2016-05-25T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837767#M4513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If I disconnect a user with their unposted version open and then run maintenance actions like Compress, Analyze Datasets, and Rebuild Index, do I risk losing the data in their version?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From what I understand, you would like to know if the edits in a Version will be lost if a Reconcile\Post with it's Parent Version has not been done. ---- Yes, if the editor has not yet saved the edits that he had done in that Editing session, they will loose only those edits.&lt;/P&gt;&lt;P&gt;No - As soon as the editor saves their edits....even if you disconnect them..the edits will still not be lost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 18:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837767#M4513</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2016-05-25T18:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837768#M4514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had the same problem over the years.&amp;nbsp; Strategies I've used;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a block of time for maintenance and ask users to stay off during that time.&lt;/P&gt;&lt;P&gt;Email them and ask them to get off.&lt;/P&gt;&lt;P&gt;Bounce them without emailing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each has it's own advantages and disadvantages, as well as varying levels of cooperation.&amp;nbsp; If we (they) lose edits because they ignore the nice guy emails, it's on them and I just move on...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 19:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837768#M4514</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2016-05-25T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837769#M4515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, to sum up, I can safely disconnect sessions with State locks but not with Version locks, without fear of data loss.&amp;nbsp; Of course, I realize they will have to reconnect to continue working after database connections are re-allowed.&amp;nbsp; I can bear the inevitable griping about that as long as I've not caused any data loss.&amp;nbsp; Thanks for your answer, Asrujit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 19:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837769#M4515</guid>
      <dc:creator>LinkElmore</dc:creator>
      <dc:date>2016-05-25T19:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837770#M4516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done all those as well, Joe.&amp;nbsp; A fourth, more common strategy, is to end up working from home at night when there are no users connected.&amp;nbsp; This is, of course, not preferable, but often seems to be unavoidable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 19:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837770#M4516</guid>
      <dc:creator>LinkElmore</dc:creator>
      <dc:date>2016-05-25T19:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837771#M4517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could script it. &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/disconnectuser.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/disconnectuser.htm"&gt;DisconnectUser—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 20:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837771#M4517</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-05-25T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: When is it safe to disconnect an active session from an enterprise geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837772#M4518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Link,&lt;/P&gt;&lt;P&gt;How and what you are updating programmatically. If the feature class are not registered with version, you are good to go by&amp;nbsp; just removing user and locks. If the feature class is registered as version, then you need to consider version view or compress geodatabase to state_id 0 before updating.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Biraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 23:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/when-is-it-safe-to-disconnect-an-active-session/m-p/837772#M4518</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2016-05-26T23:59:55Z</dc:date>
    </item>
  </channel>
</rss>

