<?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>question ambari-server upgrade Issues from  Ambari 2.4.2 to 2.5.0.3 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209971#M59994</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;I was trying to upgrade ambari 2.5.0.3&lt;/P&gt;&lt;P&gt;ambari-server upgrade&lt;/P&gt;&lt;P&gt;facing below error,&lt;/P&gt;&lt;P&gt;ERROR [main]
DBAccessorImpl:847 - Error executing query: ALTER TABLE
hostcomponentdesiredstate ADD CONSTRAINT PK_hostcomponentdesiredstate PRIMARY
KEY (id)java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an
existing object .&lt;/P&gt;&lt;P&gt;Failed to run the Amba                                                     ri Server
org.apache.ambari.server.AmbariException: Current database store version is not                                                      compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4                                                     .2
        at org.apache.ambari.server.checks.DatabaseConsistencyCheckHelper.checkD                                                     BVersionCompatible(DatabaseConsistencyCheckHelper.java:222)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.ja                                                     va:1002)&lt;/P&gt;&lt;P&gt;Oracle Database need to update Schema automatically once ambari-server upgrade, but some how i am geting above issues.                     &lt;/P&gt;&lt;P&gt;any solution ?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7900i77C4F1C2BC76FE3D/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="upgrade.png" title="upgrade.png" /&gt;</description>
    <pubDate>Tue, 25 Apr 2017 06:35:05 GMT</pubDate>
    <dc:creator>hadoopadmn99</dc:creator>
    <dc:date>2017-04-25T06:35:05Z</dc:date>
    <item>
      <title>ambari-server upgrade Issues from  Ambari 2.4.2 to 2.5.0.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209971#M59994</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;I was trying to upgrade ambari 2.5.0.3&lt;/P&gt;&lt;P&gt;ambari-server upgrade&lt;/P&gt;&lt;P&gt;facing below error,&lt;/P&gt;&lt;P&gt;ERROR [main]
DBAccessorImpl:847 - Error executing query: ALTER TABLE
hostcomponentdesiredstate ADD CONSTRAINT PK_hostcomponentdesiredstate PRIMARY
KEY (id)java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an
existing object .&lt;/P&gt;&lt;P&gt;Failed to run the Amba                                                     ri Server
org.apache.ambari.server.AmbariException: Current database store version is not                                                      compatible with current server version, serverVersion=2.5.0.3, schemaVersion=2.4                                                     .2
        at org.apache.ambari.server.checks.DatabaseConsistencyCheckHelper.checkD                                                     BVersionCompatible(DatabaseConsistencyCheckHelper.java:222)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.ja                                                     va:1002)&lt;/P&gt;&lt;P&gt;Oracle Database need to update Schema automatically once ambari-server upgrade, but some how i am geting above issues.                     &lt;/P&gt;&lt;P&gt;any solution ?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7900i77C4F1C2BC76FE3D/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="upgrade.png" title="upgrade.png" /&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:35:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209971#M59994</guid>
      <dc:creator>hadoopadmn99</dc:creator>
      <dc:date>2017-04-25T06:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server upgrade Issues from  Ambari 2.4.2 to 2.5.0.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209972#M59995</link>
      <description>&lt;P&gt;You're hitting an issue with Ambari Server Upgrade from 2.4.2 to 2.5.0.3 - as part of this upgrade, we need to drop and re-create the primary key on the hostcomponentdesiredstate table. The error you're getting indicates that the primary key already exists and thus can't be added again.&lt;/P&gt;&lt;P&gt;In your logs, you might see something like this statement:&lt;/P&gt;&lt;PRE&gt;Unable to determine the primary key constraint name for hostcomponentdesiredstate&lt;/PRE&gt;&lt;P&gt;I'd like to know why this might be happening (could be an artifact of how your Oracle DB is installed). In any event, you should be able to correct this by hand and re-run the upgrade:&lt;/P&gt;&lt;PRE&gt;
ALTER TABLE hostcomponentdesiredstate DROP CONSTRAINT PK_hostcomponentdesiredstate;
ALTER TABLE hostcomponentdesiredstate ADD CONSTRAINT PK_hostcomponentdesiredstate PRIMARY KEY (id);&lt;/PRE&gt;&lt;P&gt;Now you can retry "ambari-server upgrade"&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:35:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209972#M59995</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-04-25T06:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server upgrade Issues from  Ambari 2.4.2 to 2.5.0.3</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209973#M59996</link>
      <description>&lt;P&gt;I found the root cause, ambari user which is created for oracle DB not have enough privileges to drop the Constraint. When I run ambari-server update the constraint is not dropping and not replacing new constraint.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:35:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-upgrade-Issues-from-Ambari-2-4-2-to-2-5-0-3/m-p/209973#M59996</guid>
      <dc:creator>hadoopadmn99</dc:creator>
      <dc:date>2017-04-25T06:35:07Z</dc:date>
    </item>
  </channel>
</rss>

