<?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: Remove row from SDE.Table_Registry in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126321#M7257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Esri support technician did try this though. It makes sense and would be a logical first step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 23:18:14 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-07-31T23:18:14Z</dc:date>
    <item>
      <title>Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126315#M7251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our SDE (10.0 on Oracle 11g) has a tabular view created from a feature class and a table. The view is valid in Toad but it does not show up in ArcCatalog for either the schema owner or the SDE user; &lt;SPAN style="font-family: 'courier new', courier;"&gt;arcpy.Exists()&lt;/SPAN&gt; returns &lt;SPAN style="font-family: 'courier new', courier;"&gt;False&lt;/SPAN&gt;. There is, however, an entry in the SDE.Table_Registry for the view. How can I remove this view from the table registry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126315#M7251</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-07-23T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126316#M7252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be best to contact ESRI Technical Support so they can verify the view is orphaned and can walk you through the process of removing all records in the repository tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 21:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126316#M7252</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-07-23T21:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126317#M7253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I'll do that and report back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 22:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126317#M7253</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-07-23T22:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126318#M7254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe these orphaned table names in the Table_Registry were caused by dropping the table or view from Toad instead of ArcCatalog. After speaking with Esri support, they recommended cleaning this up by following these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Identify "layer_id" for "table_name" in the SDE_LAYERS table&lt;/LI&gt;&lt;LI&gt;Identify "Registration_ID" for "table_name" in the SDE_TABLE_REGISTRY table&lt;/LI&gt;&lt;LI&gt;Identify "ID" for "Name" in the GDB_items table&lt;/LI&gt;&lt;LI&gt;Identify "g_table_name" for "f_table_name" in the SDE_GEOMETRY_COLUMNS table&lt;/LI&gt;&lt;LI&gt;Delete "f" and "s" tables for "g_table_name" found in Step 4. If "f" table is "f22" then "s" table is "s22".&lt;/LI&gt;&lt;LI&gt;Delete entry for "Name" in GDB_Items.&lt;/LI&gt;&lt;LI&gt;Delete entry for "f_table_name" in SDE_GEOMETRY_COLUMNS&lt;/LI&gt;&lt;LI&gt;Delete entry for "table_name" in SDE_LAYERS&lt;/LI&gt;&lt;LI&gt;Delete "i" table for "Registration_ID" (Step 4)&lt;/LI&gt;&lt;LI&gt;Remove all "table_name" entries in "SDE_COLUMN_REGISTRY".&lt;/LI&gt;&lt;LI&gt;Remove "table_name" entry in "SDE_TABLE_REGISTRY"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/002n/002n0000008m000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/002n/002n0000008m000000.htm"&gt;ArcGIS Help 10.2 - System tables of a geodatabase stored in Oracle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, go through these six system tables and delete any rows that reference the object you are trying to delete.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SDE.LAYERS&lt;/LI&gt;&lt;LI&gt;SDE.TABLE_REGISTRY&lt;/LI&gt;&lt;LI&gt;SDE.COLUMN_REGISTRY&lt;/LI&gt;&lt;LI&gt;SDE.GDB_ITEMS&lt;/LI&gt;&lt;LI&gt;SDE.GEOMETRY_COLUMNS&lt;/LI&gt;&lt;LI&gt;SDE.COLUMN_REGISTRY&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 16:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126318#M7254</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-07-28T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126319#M7255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SQL Server if one of the database owners deletes a Geodatabase registered table or view with the SQL tools the same things happens but the fix is much cleaner.&amp;nbsp; Simply create a dummy table of the same name using the SQL tools (Management Studio) and then go in and delete the table/view using ArcCatalog.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 21:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126319#M7255</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2015-07-31T21:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126320#M7256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is applicable for Oracle and other DBMSs as well. However, sometimes when that doesn't help...the above mentioned steps might be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 21:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126320#M7256</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-07-31T21:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126321#M7257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Esri support technician did try this though. It makes sense and would be a logical first step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 23:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126321#M7257</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-07-31T23:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126322#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A dusty thread but I still found this very helpful. While I recently completed one of the ESRI SDE classes&amp;nbsp;to get more familiar with the data model, this was a good summary. I had&amp;nbsp;one of those orphan&amp;nbsp;table pop up in table_registry. As a check for others, I ran a quick::&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;select A.table_name, B.name
from SDE_table_registry A
left join
sys.tables B
on A.table_name = B.name 
where b.name is NULL&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There&amp;nbsp;can be any number of&amp;nbsp;tables in your database (SQL Server in my case) but I'm thinking there shouldn't be anything in the registry tables that is not also in the system table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126322#M7258</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-11T07:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row from SDE.Table_Registry</title>
      <link>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126323#M7259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea &lt;A href="https://community.esri.com/migrated-users/339735" target="_blank"&gt;Arne Gelfert&lt;/A&gt;‌. Here's the equivalent for us Oracle folks.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; A&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;table_name
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; SDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;table_registry A
&lt;SPAN class="keyword token"&gt;left&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;outer&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;join&lt;/SPAN&gt; ALL_TABLES B
    &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; A&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;table_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;table_name
&lt;SPAN class="keyword token"&gt;where&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;b&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;table_name &lt;SPAN class="operator token"&gt;is&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;NULL&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/remove-row-from-sde-table-registry/m-p/126323#M7259</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-11T07:10:46Z</dc:date>
    </item>
  </channel>
</rss>

