<?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: Lock Database Schema - where to change default behavior? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167937#M6672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alison,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri said it wasn't possible with the current architecture.&amp;nbsp; It was suggested I put in an enhancement request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not dig any further into the .js files but that seemed like the logical place to change it globally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 19:49:41 GMT</pubDate>
    <dc:creator>bbieb</dc:creator>
    <dc:date>2014-02-20T19:49:41Z</dc:date>
    <item>
      <title>Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167930#M6665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When publishing an ArcMap document to ArcGIS Server, the "schemaLockingEnabled" is set to true by default.&amp;nbsp; Where in the ArcGIS configuration files can a person change this so the default is set to false?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0154000005z9000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//0154000005z9000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 18:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167930#M6665</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2013-10-24T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167931#M6666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The locks acquired by ArcGIS Services could be disabled by modifying the ArcGIS service configuration file which has the naming convention &amp;lt;configuration name&amp;gt;.&amp;lt;service type&amp;gt;.cfg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, MyService.MapServer.cfg, under the &amp;lt;Properties&amp;gt; tag add a new tag&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;SchemaLockingEnabled&amp;gt;false&amp;lt;/SchemaLockingEnabled&amp;gt; to disable auto schema locking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;ServerObjectConfiguration&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Properties&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SchemaLockingEnabled&amp;gt;false&amp;lt;/SchemaLockingEnabled&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Properties&amp;gt;&lt;BR /&gt;&amp;lt;/ServerObjectConfiguration&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restart SOM service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 19:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167931#M6666</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2013-10-24T19:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167932#M6667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://esriaustraliatechblog.wordpress.com/2011/11/30/map-services-sde-and-locks/"&gt;blog post&lt;/A&gt;&lt;SPAN&gt; by Tania (ESRI Australia) might help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 19:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167932#M6667</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2013-10-24T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167933#M6668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the responses.&amp;nbsp; I am at 10.2.&amp;nbsp; I did find the MyService.MapServer.json file where the parameter "schemaLockingEnabled": "true" is set for each individual map service but I was looking for a way so when adding a map service, the schemaLockingEnabled would default to false instead of true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is some code in the C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#manager\js\esri\arcgismanager.js file that looks like it is setting the check box within ArcGIS Manager.&amp;nbsp; I am not quite following the code so I am not sure if I can change it in here or not.&amp;nbsp; Plus I do not know if ArcMap calls some of these files when initially publishing.&amp;nbsp; I did watch the publishing process through Fiddler and didn't figure out what url was used to populate that field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From arcgismanager.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;_schemaLockingEnabledCheck:null

_setSchemaLockingEnabledAttr:function(_620){if(!_620){_620="true";}this._schemaLockingEnabledCheck.set("checked",_620==="true"?true:false);},_getSchemaLockingEnabledAttr:function(){return this._schemaLockingEnabledCheck.get("checked");}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167933#M6668</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2021-12-11T08:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167934#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Starting at 10.1, you can toggle the switch from Desktop or on Manager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Open a service's properties page, go to Parameter page, the option to toggle the switch is inside the "Properties" section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click "Save and Restart" button on the Manager or in Desktop click OK buttons to save and restart the service &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(it is NOT needed to restart the entire ArcGIS Server service unlike ArcGIS Server pre-10.1 releases)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;... but I was looking for a way so when adding a map service, the schemaLockingEnabled would default to false instead of true.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;this is not currently supported.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 16:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167934#M6669</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2013-10-25T16:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167935#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes Tanu, I understand how to change the lock database schema on a service by service basis.&amp;nbsp; I have the instructions link in the original post.&amp;nbsp; We have made a business decision that all of our web services should have this feature turned off.&amp;nbsp; I am looking how to change this so when we add a new web service, it is unchecked by default.&amp;nbsp; There must a config file somewhere that can be changed so the default is set to false.&amp;nbsp; I realize that I can easily change it every single time I add a web service.&amp;nbsp; But as you know when you forget to do something and you have to make a change and restart a service it renders every other web service (within that specific folder) useless while it is being restarted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167935#M6670</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2013-10-28T11:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167936#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever find the answer to this? We have the same issue. I don't want to have to change every service post publish. I would prefer to do it pre publish.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alison&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 19:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167936#M6671</guid>
      <dc:creator>AlisonGaiser</dc:creator>
      <dc:date>2014-02-20T19:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167937#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alison,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri said it wasn't possible with the current architecture.&amp;nbsp; It was suggested I put in an enhancement request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not dig any further into the .js files but that seemed like the logical place to change it globally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 19:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167937#M6672</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2014-02-20T19:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167938#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've discovered that this actually can be done during publishiing, but only if you're using Python/ArcPy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic steps are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create a service definition draft using arcpy.mapping.CreateMapSDDraft(...)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Open the service definition draft XML file generated by the previous step and look for the "&amp;lt;ConfigurationProperties&amp;gt;" element.&amp;nbsp; Underneath this element there is a &amp;lt;PropertyArray&amp;gt; element containing a series of &amp;lt;PropertySetProperty&amp;gt; entries, one of which contains the "schemaLockingEnabled" parameter.&amp;nbsp; You just need to change its &amp;lt;Value&amp;gt; to "false" instead of "true"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Proceed with the remaining publishing steps, e.g. arcpy.mapping.AnalyzeForSD(...), arcpy.StageService_server(...), and arcpy.UploadServiceDefinition_server(...)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML item you're looking for should look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;PropertySetProperty xsi:type="typens:PropertySetProperty"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Key&amp;gt;schemaLockingEnabled&amp;lt;/Key&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Value xsi:type="xs:string"&amp;gt;true&amp;lt;/Value&amp;gt;
&amp;lt;/PropertySetProperty&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML editing can also be accomplished in python by using the xml.dom.minidom module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend taking a look at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000006q000000" rel="nofollow noopener noreferrer" target="_blank"&gt;this help article&lt;/A&gt;&lt;SPAN&gt; which contains some good examples about the ArcPy publishing workflow as well as editing the service definition XML.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167938#M6673</guid>
      <dc:creator>JasonGreenlaw</dc:creator>
      <dc:date>2021-12-11T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Database Schema - where to change default behavior?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167939#M6674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Idea posted to ideas page&lt;A href="https://community.esri.com/ideas/15221" target="_blank"&gt;https://community.esri.com/ideas/15221&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/lock-database-schema-where-to-change-default/m-p/167939#M6674</guid>
      <dc:creator>MelanieWawryk</dc:creator>
      <dc:date>2021-06-22T08:23:12Z</dc:date>
    </item>
  </channel>
</rss>

