<?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 ORA-00932: inconsistent datatypes: expected NUMBER got LONG in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ora-00932-inconsistent-datatypes-expected-number-got-long/m-p/18682#M8552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running alfresco on Oracle 10G XE (Express/Free Edition). I am able to log into the application and create spaces etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Oracle web client when I look at the data in the 'node_properties' table I see the following message instead of the data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;report error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00932: inconsistent datatypes: expected NUMBER got LONG BINARY&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I beleive this is becuase we are passing Java Null?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I query this table using slq*plus I see 1943 rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the application version:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System Information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Current User: admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Version: Open Source - v1.1.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2005 06:17:35 GMT</pubDate>
    <dc:creator>hm</dc:creator>
    <dc:date>2005-12-26T06:17:35Z</dc:date>
    <item>
      <title>ORA-00932: inconsistent datatypes: expected NUMBER got LONG</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ora-00932-inconsistent-datatypes-expected-number-got-long/m-p/18682#M8552</link>
      <description>I am running alfresco on Oracle 10G XE (Express/Free Edition). I am able to log into the application and create spaces etc.In the Oracle web client when I look at the data in the 'node_properties' table I see the following message instead of the data:report error&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;RA-00932: inconsistent datatypes: e</description>
      <pubDate>Mon, 26 Dec 2005 06:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ora-00932-inconsistent-datatypes-expected-number-got-long/m-p/18682#M8552</guid>
      <dc:creator>hm</dc:creator>
      <dc:date>2005-12-26T06:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-00932: inconsistent datatypes: expected NUMBER got LONG</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ora-00932-inconsistent-datatypes-expected-number-got-long/m-p/18683#M8553</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;BR /&gt;&lt;SPAN&gt;I am not sure what you mean by "Java Null".&amp;nbsp; Null values are allowed in the columns and we use them liberally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact that one client fails while the other succeeds suggests to me that the failing client is executing an illegal query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Long datatype has some restrictions , one of them is ;&lt;BR /&gt;LONG columns cannot be used in WHERE, GROUP BY, ORDER BY, or CONNECT BY clauses or with the DISTINCT operator in SELECT statements&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;&lt;A href="http://datawarehouse.ittoolbox.com/groups/technical-functional/oracle-db-l/760953" rel="nofollow noopener noreferrer"&gt;http://datawarehouse.ittoolbox.com/groups/technical-functional/oracle-db-l/760953&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At any rate, as long as you are able to perform queries using SQLPLUS, it should be fine.&amp;nbsp; The schema has already had to be modified specifically to handle Oracle restrictions that get applied to column types.&amp;nbsp; As we don't ever select specific values from the LONG BINARY column, it is probably just the Oracle web client doing a DISTINCT or something.&amp;nbsp; Try SQLPLUS with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SQL&amp;gt; select distinct ( serializable_value) from node_properties;&lt;BR /&gt;select distinct ( serializable_value) from node_properties&lt;BR /&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;&amp;nbsp; *&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-00997: illegal use of LONG datatype&lt;BR /&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 15:35:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ora-00932-inconsistent-datatypes-expected-number-got-long/m-p/18683#M8553</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2006-01-04T15:35:48Z</dc:date>
    </item>
  </channel>
</rss>

