<?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 Failed to compress the database. Underlying DBMS error[ORA-00001: unique constraint in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460836#M26342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following is the error faced while trying to compress the Geodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Failed to compress the database.&lt;BR /&gt;Underlying DBMS error[ORA-00001: unique constraint(constraint name) violated]&lt;BR /&gt;[SDE.DEFAULT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;Geodatabase Environment:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE Release: ArcSDE Oracle_11g (64-bit) 9.3.1 Service Pack 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBMS Release: Oracle 11gR2 (PSU 11.2.0.1.4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server: IBM AIX 6.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;Troubleshooting and Resolution:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE Logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;check the arcsde log file named : sde_esri_sde.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The log file location is under $SDEHOME/etc directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In UNIX you can use the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tail -f sde_esri_sde.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log file output would be similar to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Sat Feb 2 07:10:02 2013] [550533] Warning: Unable to trim state 850980-&amp;gt;851105 for table XXX, error = -51&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Sat Feb 2 07:10:02 2013] [550533] DBMS error code: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00001: unique constraint (Schema.A4327_PK) violated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference document: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.esri.com/en/knowledgebase/techarticles/detail/35298" rel="nofollow" target="_blank"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/35298&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Execute the following queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT table_name FROM sde.table_registry WHERE registration_id =&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XX&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XX:&lt;/SPAN&gt;&lt;SPAN&gt; is the index name found in the error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;another query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT owner, name FROM sde.versions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE STATE_ID IN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (SELECT DISTINCT lineage_id &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FROM SDE.STATE_LINEAGES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE lineage_name IN &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (SELECT DISTINCT lineage_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FROM SDE.STATE_LINEAGES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE lineage_id = &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ORDER BY STATE_ID;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;Remark: &lt;/STRONG&gt;&lt;SPAN&gt;this query has typos in the ESRI reference document, instead of (ORDER BY sde.state_id) replace it with (ORDER BY STATE_ID) because itâ??s a column under sde.versions table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN&gt;: is the number found in the error log message â??Warning: Unable to trim state 850980-&amp;gt;851105â?? which is 850980 in our case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To Fix the problem you need to execute the following command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d oracle11g -r schema.feature class name -V DEFAULT -u sde -p password&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;Remark:[/&lt;/SPAN&gt;&lt;SPAN&gt;B] No editors should be connecting while executing this command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Emad Al-Mousa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Feb 2013 07:20:14 GMT</pubDate>
    <dc:creator>EmadAl-Mousa</dc:creator>
    <dc:date>2013-02-02T07:20:14Z</dc:date>
    <item>
      <title>Failed to compress the database. Underlying DBMS error[ORA-00001: unique constraint</title>
      <link>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460836#M26342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following is the error faced while trying to compress the Geodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Failed to compress the database.&lt;BR /&gt;Underlying DBMS error[ORA-00001: unique constraint(constraint name) violated]&lt;BR /&gt;[SDE.DEFAULT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;Geodatabase Environment:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE Release: ArcSDE Oracle_11g (64-bit) 9.3.1 Service Pack 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBMS Release: Oracle 11gR2 (PSU 11.2.0.1.4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server: IBM AIX 6.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;Troubleshooting and Resolution:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE Logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;check the arcsde log file named : sde_esri_sde.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The log file location is under $SDEHOME/etc directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In UNIX you can use the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tail -f sde_esri_sde.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log file output would be similar to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Sat Feb 2 07:10:02 2013] [550533] Warning: Unable to trim state 850980-&amp;gt;851105 for table XXX, error = -51&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Sat Feb 2 07:10:02 2013] [550533] DBMS error code: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00001: unique constraint (Schema.A4327_PK) violated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference document: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.esri.com/en/knowledgebase/techarticles/detail/35298" rel="nofollow" target="_blank"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/35298&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Execute the following queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT table_name FROM sde.table_registry WHERE registration_id =&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XX&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XX:&lt;/SPAN&gt;&lt;SPAN&gt; is the index name found in the error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;another query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT owner, name FROM sde.versions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE STATE_ID IN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (SELECT DISTINCT lineage_id &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FROM SDE.STATE_LINEAGES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE lineage_name IN &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (SELECT DISTINCT lineage_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FROM SDE.STATE_LINEAGES&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE lineage_id = &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ORDER BY STATE_ID;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="text-decoration: underline;"&gt;Remark: &lt;/STRONG&gt;&lt;SPAN&gt;this query has typos in the ESRI reference document, instead of (ORDER BY sde.state_id) replace it with (ORDER BY STATE_ID) because itâ??s a column under sde.versions table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN&gt;: is the number found in the error log message â??Warning: Unable to trim state 850980-&amp;gt;851105â?? which is 850980 in our case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To Fix the problem you need to execute the following command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d oracle11g -r schema.feature class name -V DEFAULT -u sde -p password&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;Remark:[/&lt;/SPAN&gt;&lt;SPAN&gt;B] No editors should be connecting while executing this command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Emad Al-Mousa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 07:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460836#M26342</guid>
      <dc:creator>EmadAl-Mousa</dc:creator>
      <dc:date>2013-02-02T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to compress the database. Underlying DBMS error[ORA-00001: unique constrai</title>
      <link>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460837#M26343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;correction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XXX: is the number found in the error log message â??Warning: Unable to trim state 850980-&amp;gt;851105â?� which is 851105 in our case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;upper boundry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 07:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460837#M26343</guid>
      <dc:creator>EmadAl-Mousa</dc:creator>
      <dc:date>2013-02-02T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to compress the database. Underlying DBMS error[ORA-00001: unique constrai</title>
      <link>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460838#M26344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this command is better:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdegdbrepair -o repair_tables -d ORACLE11G -V state:XX -u XXX -p YYY&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XX: is the state upper bound number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XXX: sde user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;YYY: sde password&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 10:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/failed-to-compress-the-database-underlying-dbms/m-p/460838#M26344</guid>
      <dc:creator>EmadAl-Mousa</dc:creator>
      <dc:date>2013-03-05T10:25:12Z</dc:date>
    </item>
  </channel>
</rss>

