<?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: What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525765#M29834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Oracle no string can exceed 4000 bytes (4000 ASCII/UTF-8 characters or 2000 UTF-16&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; characters). That's probably four times higher than I'd allow. If you have strings that could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; stretch two gigabytes in length, they are not strings, they're documents. Documents are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; stored in LOBs (CLOB for UTF-8, NCLOB for UTF-16). When LOBs are tossed around, you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; wind up needing several copies of the bytestream as it propagates into the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your 2Gb doc could easily use 4-18Gb of RAM each time it was touched, but it could only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do so if you raised the default limits on document size of 1-4Mb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message you specified is an Oracle one, but should only occur when the app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and database disagree on datatypes, which makes me wonder if you've been editing the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; table schema outside of ArcGIS' ken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 14:34:10 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-10-19T14:34:10Z</dc:date>
    <item>
      <title>What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB</title>
      <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525764#M29833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a feature class which I created thorugh ArcSDE 9.3.1, using ArcCatalog 10. This is stored in Oracle 10g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the columns is a string column of 1073741822 characters. This is stored in Oracle as a NCLOB column. I choose this number because I didn't know what my longest string in ArcMap would be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to sort on this column I am getting the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00932: inconsistent datatypes: expected - got NCLOB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me why that occurs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 13:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525764#M29833</guid>
      <dc:creator>TimLangner</dc:creator>
      <dc:date>2012-10-19T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB</title>
      <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525765#M29834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Oracle no string can exceed 4000 bytes (4000 ASCII/UTF-8 characters or 2000 UTF-16&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; characters). That's probably four times higher than I'd allow. If you have strings that could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; stretch two gigabytes in length, they are not strings, they're documents. Documents are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; stored in LOBs (CLOB for UTF-8, NCLOB for UTF-16). When LOBs are tossed around, you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; wind up needing several copies of the bytestream as it propagates into the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your 2Gb doc could easily use 4-18Gb of RAM each time it was touched, but it could only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do so if you raised the default limits on document size of 1-4Mb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message you specified is an Oracle one, but should only occur when the app&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and database disagree on datatypes, which makes me wonder if you've been editing the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; table schema outside of ArcGIS' ken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525765#M29834</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-10-19T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB</title>
      <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525766#M29835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;SPAN style="color: #3e3e3e; font-family: Arial, Helvetica, sans-serif;"&gt;vangelo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 2; font-family: arial;"&gt;&lt;SPAN style="color:#3e3e3e;"&gt;Thank you for your reply. Sorry for not replying sooner but I appear to have missed reading your reply on here before now.&lt;BR /&gt;&lt;BR /&gt;I haven't been editing the tables outside of ArcMap. I only choose that large figure to make sure I didn't ever ran out of space when typing in text. &lt;/SPAN&gt;&lt;SPAN style="color:#3E3E3E;"&gt;As ArcCatalog only displays the column type as text &lt;/SPAN&gt;&lt;SPAN style="color:#3e3e3e;"&gt;I didn't consider what impact it would have since I knew I would never reach that amount or even come close. I don't think it was a random number. From memory I think it was the largest one I could enter into ArcCatlog. However colleague was told that in theory any number could be entered for an NCLOB so I may be misremembering.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#3E3E3E;"&gt;I didn't know what was going on underneath when I created it because ArcSDE hides all of the underlying data types and just lumps them all under the term text. I just assumed it would be okay because it is only a text column I am creating. However it appears not to have been okay because it is stored as NCLOB and that is causing problems as I am now finding out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#3E3E3E;"&gt;I've currently got a support call with ESRI UK technical support and now appears that this error is related to that support call, not that I knew it at the time I raised that call.&lt;/SPAN&gt; &lt;SPAN style="color:#3e3e3e;"&gt;I have another forum thread I posted, which now is likely to be linked to this issue. I am about to update that thread in case it helps other people:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/68053-Feature-class-stuck-in-LOAD-ONLY-mode-due-to-duplicate-keys-being-found-ORA-01452"&gt;http://forums.arcgis.com/threads/68053-Feature-class-stuck-in-LOAD-ONLY-mode-due-to-duplicate-keys-being-found-ORA-01452&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525766#M29835</guid>
      <dc:creator>TimLangner</dc:creator>
      <dc:date>2012-11-29T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB</title>
      <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525767#M29836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not ArcSDE which is hiding the types involved -- the API is quite clear on which is which type &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(just run 'sdetable -o describe') -- it's actually ArcGIS which is doing the generalization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ss64.com/ora/syntax-datatypes.html"&gt;The actual Oracle CLOB maximum is 4Gb&lt;/A&gt;&lt;SPAN&gt;, but ArcSDE uses the SE_CLOB_INFO storage structure,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which limits the absolute length to 2^31-1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, arbitrary length LOB types are difficult to use at times; at a minimum, you need to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;work with a different set of helper functions than the usual string operators (and there's fewer LOB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;functions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see any correlation between these two very different problems (besides low-level corruption&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of your Oracle instance) -- they might share the same cause, but one doesn't cause the other.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525767#M29836</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-11-29T11:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: What does following mean? ORA-00932: inconsistent datatypes: expected - got NCLOB</title>
      <link>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525768#M29837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's not ArcSDE which is hiding the types involved -- the API is quite clear on which is which type &lt;BR /&gt;(just run 'sdetable -o describe') -- it's actually ArcGIS which is doing the generalization.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ss64.com/ora/syntax-datatypes.html"&gt;The actual Oracle CLOB maximum is 4Gb&lt;/A&gt;, but ArcSDE uses the SE_CLOB_INFO storage structure,&lt;BR /&gt;which limits the absolute length to 2^31-1.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;As you can see, arbitrary length LOB types are difficult to use at times; at a minimum, you need to &lt;BR /&gt;work with a different set of helper functions than the usual string operators (and there's fewer LOB&lt;BR /&gt;functions).&lt;BR /&gt;&lt;BR /&gt;I don't see any correlation between these two very different problems (besides low-level corruption&lt;BR /&gt;of your Oracle instance) -- they might share the same cause, but one doesn't cause the other.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply. That is really interesting and useful information. I don't have access to the sdetable command myself because I am not the administrator but a colleague has access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess it would be helpful if ArcGIS didn't generalise the terms. Had I been presented with the underlying Oracle terms I would have seen the word NCLOB and though is this what I actually require? I would have then looked up the format and probably decided no. However as I was presented with the word text, I didn't look anything up as I didn't see that I would need to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess giving the actual format names would make a good idea for the ESRI ideas site, so I will post something when I get time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/what-does-following-mean-ora-00932-inconsistent/m-p/525768#M29837</guid>
      <dc:creator>TimLangner</dc:creator>
      <dc:date>2012-11-30T09:17:26Z</dc:date>
    </item>
  </channel>
</rss>

