<?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: Schema Locks in Multi-User SDE in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565576#M32057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have problems with schema locks too.&amp;nbsp; The feature classes that sometimes have locks are not versioned or a part of any replication process.&amp;nbsp; A computer (sometimes a user PC, sometimes a server) will have a lock on a feature class without having ArcGIS open.&amp;nbsp; Even with all users logged off, all map services shut down, I can still see the connection coming from the computer.&amp;nbsp; I try to use the SDE kill command, but it always says "failed to execute".&amp;nbsp; Sometimes I can kill the connection as a task in the task manager (gsrvr process) from the ArcSDE server.&amp;nbsp; But most the time I have to stop and start SDE to remove the lock.&amp;nbsp; Sometimes still, even this doesn't work, and I have to restart the offending computer that ArcSDE says has a connection.&amp;nbsp; This last work around does the trick which tells me that the computer itself is maintaining some connection lock to ArcSDE even if ArcGIS is not open on that machine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the importance of schema locks with a multi-user versioned database, but it appears I am not the only one that is frustrated by dealing with random locks that can't be disconnected.&amp;nbsp; I have the GDBT Toolkit for ArcCatalog installed but it is really not useful as a database administration tool.&amp;nbsp; Please please ESRI, give us more tools for managing ArcSDE....especially for schema locks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 14:05:03 GMT</pubDate>
    <dc:creator>StephanieSnider</dc:creator>
    <dc:date>2012-03-21T14:05:03Z</dc:date>
    <item>
      <title>Schema Locks in Multi-User SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565573#M32054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We recently upgraded to AGS10, and simultaneously moved from Shapefiles to a Multi-User SDE.&amp;nbsp; We have had issues over the last 4 weeks attempting to update data in SDE.&amp;nbsp; I have been editing data in a second instance of SDE then attempting to replace our published data with the production SDE but continually run into Schema locks, whether there are any users logged on or not. Sometimes, the schema locks are on my PC, even if I am the only user, and I can't update the Features.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, I recently got an error message that "The index passed is not within a valid range"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried making the changes first thing in the morning (before other users are here), end of the day (after users go home), and on the weekend when no users are working, all with the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any input would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 18:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565573#M32054</guid>
      <dc:creator>KarimNaguib</dc:creator>
      <dc:date>2011-11-28T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Schema Locks in Multi-User SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565574#M32055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Karim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sorry to hear of the difficulties you are encountering while editing within your ArcSDE geodatabase.&amp;nbsp; Can you please provide some additional information on your configuration and the processes you are running when seeing the schema lock error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;What types of updates are being executed?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Do any map services pull data from either ArcSDE instance?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;The following links may be useful if you have not already referenced them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FAQ:&amp;nbsp; What schema changes can be made to versioned data?&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/29885"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/29885&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FAQ:&amp;nbsp; Why does ArcGIS Server lock the ArcSDE schema?&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/32536"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/32536&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FAQ:&amp;nbsp; How are the various lock mechanisms implemented in ArcSDE and the geodatabase?&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/27034"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/27034&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 16:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565574#M32055</guid>
      <dc:creator>JonDeRose</dc:creator>
      <dc:date>2011-12-05T16:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Schema Locks in Multi-User SDE When Running Python Script...</title>
      <link>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565575#M32056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following python script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This leaves behind a schema lock on the resulting sde featureclass so the next day it runs, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How, in python, can I clear a schema lock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: My older code used to do a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then recreate the layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and no arcpy.env.overwriteoutput=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and this does not leave behind a schema lock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something with the overwriteoutput is leaving &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the lock around...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# ---------------------------------------------------------------------------
# gisbuild_layer.py
# Created on: 2011-09-29 11:35:46.00000
#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)
# Author: Anastasia Aourik
# Description: 
# Regenerate featureclass WG_POMDJOBS from source table with xy values
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy, os, datetime
arcpy.env.overwriteOutput = True

# Local variables:
WCSS_SOURCE = "Database Connections\\OLE DB ConnectionMYDRS0.odc\\WCSS.POMD_JOBREC_MV"
WCSS_Layer = "WCSS_Layer"
SIIGIS_WG_LAYER = "Database Connections\\Connection to sql04.sde\\siiview.SIIGIS.WELLSGENERAL\\siiview.SIIGIS.WG_POMDJOBS"
now = datetime.datetime.now()

print "GisBuild of PATHFINDER JOBS"
print "Started: " + str(now)

try:

&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(WCSS_SOURCE):
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Make XY Event Layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Source Table Exists"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeXYEventLayer_management(WCSS_SOURCE, "LONGITUDE_NBR", "LATITUDE_NBR", WCSS_Layer, "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision", "")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Make XY Layer Succeeded"
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(WCSS_Layer):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Proceed to Copy Features"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Copy Features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Begin Copy Features Management"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(WCSS_Layer, SIIGIS_WG_LAYER, "", "0", "0", "0")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "All Features Copied\n"
&amp;nbsp;&amp;nbsp;&amp;nbsp; now = datetime.datetime.now()
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Ended: " + str(now) + "\n"

except: 
&amp;nbsp;&amp;nbsp; arcpy.AddError("Python Messages: " + arcpy.GetMessages())&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565575#M32056</guid>
      <dc:creator>AnastasiaAourik</dc:creator>
      <dc:date>2021-12-12T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Schema Locks in Multi-User SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565576#M32057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have problems with schema locks too.&amp;nbsp; The feature classes that sometimes have locks are not versioned or a part of any replication process.&amp;nbsp; A computer (sometimes a user PC, sometimes a server) will have a lock on a feature class without having ArcGIS open.&amp;nbsp; Even with all users logged off, all map services shut down, I can still see the connection coming from the computer.&amp;nbsp; I try to use the SDE kill command, but it always says "failed to execute".&amp;nbsp; Sometimes I can kill the connection as a task in the task manager (gsrvr process) from the ArcSDE server.&amp;nbsp; But most the time I have to stop and start SDE to remove the lock.&amp;nbsp; Sometimes still, even this doesn't work, and I have to restart the offending computer that ArcSDE says has a connection.&amp;nbsp; This last work around does the trick which tells me that the computer itself is maintaining some connection lock to ArcSDE even if ArcGIS is not open on that machine.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the importance of schema locks with a multi-user versioned database, but it appears I am not the only one that is frustrated by dealing with random locks that can't be disconnected.&amp;nbsp; I have the GDBT Toolkit for ArcCatalog installed but it is really not useful as a database administration tool.&amp;nbsp; Please please ESRI, give us more tools for managing ArcSDE....especially for schema locks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 14:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/schema-locks-in-multi-user-sde/m-p/565576#M32057</guid>
      <dc:creator>StephanieSnider</dc:creator>
      <dc:date>2012-03-21T14:05:03Z</dc:date>
    </item>
  </channel>
</rss>

