<?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: Table To Domain failing - Cannot get exclusive schema lock in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59726#M3396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are no locks on the database nor are there any orphaned gsrvrs.&amp;nbsp; But just to be safe I restarted the SDE service.&amp;nbsp; I ran the TableToDomain again and got the same error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So then just to make sure I had enough permissions I ran it and created a new domain.&amp;nbsp; Then I ran it a second time to try and replace the existing domain but it failed with the same error message as before.&amp;nbsp; Has anyone else seen this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an ArcSDE 9.3.1&amp;nbsp; 64-bit, SQL 2008 64-bit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 15:32:22 GMT</pubDate>
    <dc:creator>RandyKreuziger</dc:creator>
    <dc:date>2010-08-17T15:32:22Z</dc:date>
    <item>
      <title>Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59724#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm the only one logged into SDE right now but can't update a domain using the TableToDomain command.&amp;nbsp; It says I can't get an exclusive schema lock but with no one else on what could it be?&amp;nbsp; I just created the the SDE and no one but myself has a login so I know there is just me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the TableToDomain dialog.&amp;nbsp; ArcSDE 9.3.1 64-bit, SQL 2008 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: TableToDomain "Database Connections\GIS_Common.odc\dbo.ws_FileLocation_LUT" FileLocation_Code FileLocation_Desc "Database Connections\2008 GeoScratch.sde" dFileLocation "File Location" REPLACE "Database Connections\2008 GeoScratch.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Mon Aug 16 14:20:56 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000464: Cannot get exclusive schema lock.&amp;nbsp; Either being edited or in use by another application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (TableToDomain).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Time: Mon Aug 16 14:20:57 2010 (Elapsed Time: 1.00 seconds)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 21:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59724#M3394</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2010-08-16T21:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59725#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try restarting an ArcSDE service (if applicable) to release possible locks. Thereafter, you can always check if you got any orphaned connections to the service (if not using direct connection).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Close ArcCatalog and any other applications that could consume the sde database you are working with. Use the commands as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To show who is connected to an ArcSDE service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sdemon -o info -I users -i &amp;lt;servicename&amp;gt; -p &amp;lt;sdepassword&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To kill all connections to an sde service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sdemon -o kill -t all -i &amp;lt;servicename&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using direct connection, it is going to be a bit harder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To kill a direct connect to an sde database:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ths can be done either by restarting SQL Server database engine or by using SQL Server Activity Monitor, tracing the locked processes, and killing those processes. These things are being done on the SQL Server level, because direct connection has nothing to do with sde services �?? all users connect directly to the SQL Server database engine bypassing sde.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell us if you succeed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS. Hope you did not compressed the dataset, since compressing datasets in a file geodatabase makes them read-only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59725#M3395</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2010-08-17T06:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59726#M3396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are no locks on the database nor are there any orphaned gsrvrs.&amp;nbsp; But just to be safe I restarted the SDE service.&amp;nbsp; I ran the TableToDomain again and got the same error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So then just to make sure I had enough permissions I ran it and created a new domain.&amp;nbsp; Then I ran it a second time to try and replace the existing domain but it failed with the same error message as before.&amp;nbsp; Has anyone else seen this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an ArcSDE 9.3.1&amp;nbsp; 64-bit, SQL 2008 64-bit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59726#M3396</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2010-08-17T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59727#M3397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, if this does not help, then you can refer to this forum post, there might be some help. Someone suggested to convert file geodatabase to personal and then export the personal to file geodatabase again. It should be time consuming though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=206951"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=985&amp;amp;t=206951&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 06:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59727#M3397</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2010-08-18T06:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59728#M3398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Someone suggested to convert file geodatabase to personal and then export the personal to file geodatabase again. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not using a file geodatabase.&amp;nbsp; The problem is with an ArcSDE (SQL 2008) geodatabase.&amp;nbsp; Exporting it is not an option.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 13:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59728#M3398</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2010-08-18T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59729#M3399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please contact Technical Support so that they can help you in troubleshooting this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 13:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59729#M3399</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2010-08-19T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table To Domain failing - Cannot get exclusive schema lock</title>
      <link>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59730#M3400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently had this problem and found that once the domain is assigned to a column in a feature class in my SDE, any lock on the feature class will also lock the domain. Once I disconnected all users from the feature class and closed arc catalog (in case I was also creating a lock), my python script would run without the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 18:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/table-to-domain-failing-cannot-get-exclusive/m-p/59730#M3400</guid>
      <dc:creator>ThomasRoussell</dc:creator>
      <dc:date>2020-01-29T18:06:26Z</dc:date>
    </item>
  </channel>
</rss>

