<?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: SDEGDBREPAIR help in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46376#M2617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//00050000000s000000"&gt;this Help page&lt;/A&gt;&lt;SPAN&gt;, 51 is just a generic error code generated when ArcSDE doesn't recognize the DBMS error. Have you checked the logs as in the Help text?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"&lt;STRONG&gt;Underlying DBMS error (-51)&lt;/STRONG&gt;&lt;BR /&gt;An error was returned from the database that was not recognized by ArcSDE or the client application. Check the DBMS logs for more information."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is probably a completely unsupported operation by ESRI, but since it only affects two layers and it seems to concern orphaned rows "referencing non-existent states", you might consider joining the &lt;/SPAN&gt;&lt;STRONG&gt;SDE_states&lt;/STRONG&gt;&lt;SPAN&gt; system table to the A and D tables (User1.A172 etc.) that have the orphaned rows. This will quickly tell you which rows are orphaned, as there will be no join results from the SDE_states table for those records in the A and D tables that are orphaned. You could than delete those, or maybe even better copy them first to another table for reference and examining to make sure nothing important is lost upon delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*** EDIT ***:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only do the above if your Feature Classes do &lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt; participate in any geodatabase behavior (e.g. no relationship classes, topology, network dataset etc. defined), so Simple Feature layers only. Otherwise the layers and A and D tables may, or better said will, have relationships and dependencies on other tables and Feature Classes, and that may cause additional issues. Backup the database beforehand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 May 2013 08:28:52 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2013-05-05T08:28:52Z</dc:date>
    <item>
      <title>SDEGDBREPAIR help</title>
      <link>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46375#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running sdegdbrepair -o diagnose_tables daily to know the status of table. One day I found below result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI ArcSDE Server Repair Utility Wed Apr 24 06:56:42 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;35235 rows referencing nonexistent states found in User1.A172 (User1.Layer1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;27678 rows referencing nonexistent states found in User1.D172 (User1.Layer1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;15 rows referencing nonexistent states found in User1.A231 (User1.Layer2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Diagnose Tables: 145 multiversioned tables examined,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 multiversioned tables had orphaned, duplicate, missing or redundant rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried running sdegdbrepair as below for first layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d ORACLE11G -r User1.Layer1 -V ALL&amp;nbsp; -u sde-adminusrname -p password -D databasename&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I got below error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Underlying DBMS error (-51).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Unable to complete repairing orphaned rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had ensured that no other user is working on this database and ensured to remove all existing locks also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone point me into right direction to resolve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2013 21:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46375#M2616</guid>
      <dc:creator>AbhijeetKulkarni</dc:creator>
      <dc:date>2013-05-04T21:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: SDEGDBREPAIR help</title>
      <link>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46376#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/arcgisdesktop/10.0/help/index.html#//00050000000s000000"&gt;this Help page&lt;/A&gt;&lt;SPAN&gt;, 51 is just a generic error code generated when ArcSDE doesn't recognize the DBMS error. Have you checked the logs as in the Help text?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"&lt;STRONG&gt;Underlying DBMS error (-51)&lt;/STRONG&gt;&lt;BR /&gt;An error was returned from the database that was not recognized by ArcSDE or the client application. Check the DBMS logs for more information."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is probably a completely unsupported operation by ESRI, but since it only affects two layers and it seems to concern orphaned rows "referencing non-existent states", you might consider joining the &lt;/SPAN&gt;&lt;STRONG&gt;SDE_states&lt;/STRONG&gt;&lt;SPAN&gt; system table to the A and D tables (User1.A172 etc.) that have the orphaned rows. This will quickly tell you which rows are orphaned, as there will be no join results from the SDE_states table for those records in the A and D tables that are orphaned. You could than delete those, or maybe even better copy them first to another table for reference and examining to make sure nothing important is lost upon delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*** EDIT ***:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only do the above if your Feature Classes do &lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt; participate in any geodatabase behavior (e.g. no relationship classes, topology, network dataset etc. defined), so Simple Feature layers only. Otherwise the layers and A and D tables may, or better said will, have relationships and dependencies on other tables and Feature Classes, and that may cause additional issues. Backup the database beforehand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 08:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46376#M2617</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-05-05T08:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: SDEGDBREPAIR help</title>
      <link>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46377#M2618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If tools indicate corruption of your geodatabase you should:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Immediately transfer as many of your incremental backups as possible to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;permanent storage (something that won't be overwritten by future backups --&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be careful not to corrupt the ability to restore to a future point in time).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Make a complete (snapshot) backup of the current database (in such a way&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; as to not prevent the ability to roll back -- see above)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Contact Esri Tech Support (these Forums are &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; Tech Support).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 17:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46377#M2618</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-05-05T17:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: SDEGDBREPAIR help</title>
      <link>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46378#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3) Contact Esri Tech Support (these Forums are &lt;SPAN style="font-style:italic;"&gt;not&lt;/SPAN&gt; Tech Support).&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Agree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2013 18:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdegdbrepair-help/m-p/46378#M2619</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2013-05-05T18:15:28Z</dc:date>
    </item>
  </channel>
</rss>

