5

My ArcGIS Server services are locking tables in SDE. This is a problem if I need to edit or overwrite them. Unfortunately the locks don't go away upon stopping the services. The only solution I have found is to restart the Linux arcsde service, which has many implications. Is there a better way to lose these phantom locks?

1
  • Are spatially-enabled views an option? They've worked well for me in cases where I can't have a table locked.
    – Roger D.
    Commented Jul 31, 2010 at 16:15

2 Answers 2

9

Tell ArcGIS Server not to make those locks.

In your service cfg files, add this:

<ServerObjectConfiguration>
...
    <Properties>
         ...
         <SchemaLockingEnabled>false</SchemaLockingEnabled>
    </Properties>
</ServerObjectConfiguration>

ESRI does not recommend this practice, but it should work for you. I did this for a bunch of really big services that required a massive (thousands of layers) data update while still running.

For more info, refer to the ESRI docs.

1
  • It worked! Restarting map services + SDE was not enough for the changes to take effect. I also had to restart AGS + IIS. (Not sure whether AGS or IIS was the problem, but I figure either one could be caching the XML content.)
    – nw1
    Commented Jul 30, 2010 at 14:56
1

At the UC ESRI was in fact recommending the use of the <SchemaLockingEnabled> tag, so long as you carefully consider the "Use caution..." paragraph in the documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.