<?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: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22035#M1151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, this is not the case. I don't work in Tech Support, and I don't have access to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tools they have for incident management.&amp;nbsp; Even if I called them to create an incident, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it would be under my user number, not yours, so you wouldn't receive notifications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These User Forums are not a replacement for Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would point out that your 9.1 code did not work with SE_NSTRING_TYPE columns,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since SE_NSTRING_TYPE columns weren't supported before ArcGIS 9.2.&amp;nbsp; The default&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_NSTRING_TYPE creation of Desktop can be overridden through the use of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the "UNICODE_STRING=FALSE" flag in the DBTUNE file (see the documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002n0000001q000000"&gt;here&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002n00000067000000"&gt;here&lt;/A&gt;&lt;SPAN&gt; for more info).&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, 18 Apr 2014 21:52:50 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2014-04-18T21:52:50Z</dc:date>
    <item>
      <title>ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22022#M1138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm maintaing an ArcSDE client application which apparently was working with ArcSDE 9.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Current configuration: ArcSDE 10.1 with Oracle 10.1, Win 7 x32/x64&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Symptoms when calling &lt;/SPAN&gt;&lt;STRONG&gt;SE_stream_calculate_table_statistics() &lt;/STRONG&gt;&lt;SPAN&gt;with SE_DISTINCT_STATS as mask on a STRING property: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1. crashes with SE_NET_FAILURE (-10) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2. memory violation when using direct connect in sdeora11gsrvr101.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 3. Works fine with numerial properties (integer/double)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 4. Works fine with SqlServer with any property type (integer/double/string)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: 2) and 3) prove the code is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any information greatly appreciated. Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22022#M1138</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-16T14:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22023#M1139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oracle 10gR1 is not supported with ArcGIS 10.1.&amp;nbsp; The library you mention only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;works with Oracle 11g.&amp;nbsp; Can you please prove the exact Oracle release in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A.B.C.D.E notation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you applied SP1 to 10.1, and applied the QIP on top of that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22023#M1139</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-16T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22024#M1140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Vince for your fast response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I double checked and the Oracle server is in fact 'Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This means there is no compatibility issue. As a matter of fact the application works very well except for this particular function. Is there an known bug? I have been looking around in vain for other users experiencing the same. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22024#M1140</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-16T17:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22025#M1141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you applied SP1 to 10.1, and applied the QIP on top of that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not many folks use the 'C' API, and with Direct Connect, there is no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;performance advantage to using SE_stream_calculate_table_statistics()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;over a local query that does the same (though you'd have to write your&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;own distinct value generator from a stream with order_by set).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 18:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22025#M1141</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-16T18:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22026#M1142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have applied SDE101sp1-CApiSDK.msp. No difference. What is a QIP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reimplementing this query is not an easy decision to make, unless I have an official answer this is an ArcSDE bug and there is no chance to be fixed soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22026#M1142</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-17T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22027#M1143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have applied SDE101sp1-CApiSDK.msp. No difference. &lt;STRONG&gt;What is a QIP?&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look here, it is a larger patch up on top of SP1, kind of like a mini "service pack":&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/downloads/patches-servicepacks/view/productid/160/metaid/2064"&gt;ArcGIS 10.1 SP1 for (Desktop, Engine, Server) Quality Improvement Patch&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22027#M1143</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-04-17T18:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22028#M1144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using wide strings (SE_WCHAR) or ANSI strings (CHAR)?&amp;nbsp; I'm trying&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to reproduce your issue.&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, 17 Apr 2014 19:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22028#M1144</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-17T19:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22029#M1145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using wide strings (SE_WCHAR) or ANSI strings (CHAR)?&amp;nbsp; I'm trying&lt;BR /&gt;to reproduce your issue.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The SE column type doesn't matter here since SE_stream_calculate_table_statistics() doesn't use it. Please see:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcsde/9.1/capi_functions/stream_query/se_strm_calculate_table_stats.htm"&gt;http://edndoc.esri.com/arcsde/9.1/capi_functions/stream_query/se_strm_calculate_table_stats.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the connection and the name of the property it allocates and populates the stats structure. Internally it gets the column type in order to allocate the appropriate amount of memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22029#M1145</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-17T20:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22030#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two ways to compile the 'C' API, one of which redefines all functions which take &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string parameters to use ACHAR (char) and one which redefines all functions to use SE_WCHAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (unsigned short) parameters.&amp;nbsp; There are different SE_stream_calculate_table_statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;functions based on how you compile, and they return different structures (SE_DISTINCT vs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_DISTINCTW) with different member types (SE_VALUE vs SE_VALUEW).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you compile with SDE_UNICODE enabled (SE_WCHAR parameters) or not?&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, 17 Apr 2014 20:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22030#M1146</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-17T20:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22031#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At least the server code is consistent -- SE_DISTINCT_STATS computation on an&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_NSTRING_TYPE column crashes both SE_stream_calculate_table_statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and SE_stream_calculate_table_statisticsW with 10.1 SP1 (no QIP).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't crash on 10.2.0, but it doesn't produce correct output either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That leaves you with two options -- Using SE_STRING_TYPE columns (with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AL32UTF8 character set for international characters) or coding your own&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;distinct function for SE_NSTRING_TYPE cols.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should certainly contact Tech Support (and have them contact me for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sample code to demonstrate the problem).&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, 17 Apr 2014 21:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22031#M1147</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-17T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22032#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may be a red herring, but when you contact tech support, you should also tell them that there was a very, very similar bug that was fixed in version 10.0 but for the SDE Java API. I looked at the fix and the same issue is not apparent to me in the C API code--which is why it might not be the same bug. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference NIM040332: Running SeQuery.createTableStatistics with the 'SeTable.SeTableStats.SE_DISTINCT_STATS' option hangs when processing an nvarchar field from an ArcSDE 9.2 SQL Server 2005 database and gives an error when processing an nvarchar2 field from an ArcSDE 9.2 Oracle database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Melita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 22:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22032#M1148</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2014-04-17T22:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22033#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This may be a red herring, but when you contact tech support, you should also tell them that there was a very, very similar bug that was fixed in version 10.0 but for the SDE Java API. I looked at the fix and the same issue is not apparent to me in the C API code--which is why it might not be the same bug. &lt;BR /&gt;&lt;BR /&gt;Reference NIM040332: Running SeQuery.createTableStatistics with the 'SeTable.SeTableStats.SE_DISTINCT_STATS' option hangs when processing an nvarchar field from an ArcSDE 9.2 SQL Server 2005 database and gives an error when processing an nvarchar2 field from an ArcSDE 9.2 Oracle database.&lt;BR /&gt;&lt;BR /&gt;Melita&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you compile with SDE_UNICODE enabled (SE_WCHAR parameters) or not?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That leaves you with two options -- Using SE_STRING_TYPE columns&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Such change will break for sure cases which currenly work fine. Not an option. My point is the code used to work and we deal with an ArcSDE regression.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should certainly contact Tech Support (and have them contact me for sample code to demonstrate the problem).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure I understand. You reproduced the problem, located the issue and I would expect ESRI to fix it. That is, I expect you provide me with a case # and a tentative SP so I can inform my customer. Is this not the case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 20:02:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22033#M1149</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-18T20:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22034#M1150</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;Both Vince and I are on the development-side, not the technical support side. It is possible for me to enter a bug into the development bug-tracking software and export it to the public/technical support software, but it's frowned upon. Partially, because I don't have access to the customer information, and don't know the right questions to ask (like DBMS/OS/release/etc) that's useful to have when putting together a bug report. Technical Support will also be able to identify if the issue has been reported before; I can't always do that reliably. It also gets the bug report into the correct queue; neither Vince nor I will be directly involved in triaging, fixing, or testing it and an analyst familiar with the area will have a better idea where to put it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vince was able to repro it, I identified a similar bug but in a different API and stated that I couldn't identify the same issue in the C API code, so someone will still have to figure out what the real problem is. I pointed out the other bug because it might help an analyst/developer to compare working code (even in a different language). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Melita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 21:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22034#M1150</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2014-04-18T21:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22035#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, this is not the case. I don't work in Tech Support, and I don't have access to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tools they have for incident management.&amp;nbsp; Even if I called them to create an incident, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it would be under my user number, not yours, so you wouldn't receive notifications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These User Forums are not a replacement for Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would point out that your 9.1 code did not work with SE_NSTRING_TYPE columns,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since SE_NSTRING_TYPE columns weren't supported before ArcGIS 9.2.&amp;nbsp; The default&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_NSTRING_TYPE creation of Desktop can be overridden through the use of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the "UNICODE_STRING=FALSE" flag in the DBTUNE file (see the documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002n0000001q000000"&gt;here&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002n00000067000000"&gt;here&lt;/A&gt;&lt;SPAN&gt; for more info).&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, 18 Apr 2014 21:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22035#M1151</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-18T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22036#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. Our ESRI representative indicated there is no support for ArcSDE 10.0 and 10.1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please confirm? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22036#M1152</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-23T19:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22037#M1153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, please do not consider this a binding/legal Esri answer, but going by the &lt;/SPAN&gt;&lt;A href="http://downloads.esri.com/support/product%20life%20cycle/server_gis/ArcGISServer_PLC.pdf"&gt;ArcGIS for Server Product life cycle document&lt;/A&gt;&lt;SPAN&gt;, 10.0 is in mature support while 10.1 is still in extended support. Further information on what that means is available &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/shared/product-life-cycle/ProductLifeCycle.pdf"&gt;here&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Melita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22037#M1153</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2014-04-23T19:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22038#M1154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Okay, please do not consider this a binding/legal Esri answer, but going by the &lt;A href="http://downloads.esri.com/support/product%20life%20cycle/server_gis/ArcGISServer_PLC.pdf"&gt;ArcGIS for Server Product life cycle document&lt;/A&gt;, 10.0 is in mature support while 10.1 is still in extended support. Further information on what that means is available &lt;A href="http://help.arcgis.com/en/shared/product-life-cycle/ProductLifeCycle.pdf"&gt;here&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;Melita&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ergo (looking at the document Melita linked): they should help you out in Technical Support and answer your questions, as long as you have a support contract. Even for the "Mature" 10.0 that doesn't get any new service packs or patches.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22038#M1154</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-04-23T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22039#M1155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 'C' API is deprecated at 10.2, and won't be released with the next rev.&amp;nbsp; This adds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some quirks to the base support policy (I found documentation bugs that are no longer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;being corrected), but 10.1 SP1 should be supported (as an Extended product).&amp;nbsp; 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is not yet Retired, but it won't be getting QFEs the way 10.1 would.&amp;nbsp; Try pointing out&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the support policy doc to the person with whom you spoke.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround is to write a helper function to do a GROUP BY, ORDER BY query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when the column type is SE_NSTRING_TYPE -- It's probably no more than a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dozen API calls:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;SE_queryinfo_get_tables to get the table name&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SE_table_describe to get all column types&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SE_stream_calculate_table_statistics on non-SE_NSTRING_TYPE columns&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SE_stream_prepare_sql to execute the query with the stream , in the format&lt;/LI&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SELECT count(&lt;SPAN style="font-style:italic;"&gt;colname&lt;/SPAN&gt;) cnt,&lt;SPAN style="font-style:italic;"&gt;colname&lt;/SPAN&gt; FROM &lt;SPAN style="font-style:italic;"&gt;tablename&lt;/SPAN&gt; GROUP BY &lt;SPAN style="font-style:italic;"&gt;colname&lt;/SPAN&gt; ORDER BY &lt;SPAN style="font-style:italic;"&gt;colname&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;LI&gt;SE_stream_execute to start the stream&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;se_stream_bind_output_column to a CHAR array long enough to hold the &lt;/LI&gt;&lt;BR /&gt;column data and the CNT value (which may come back LFLOAT)&lt;BR /&gt;&lt;LI&gt;SE_stream_fetch for up to the maximum number of distinct values&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SE_stream_close to end the query&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SE_table_free_descriptions to clean up the describe&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Also in there is a malloc of enough space for the maximum number of pointers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and a buffer large enough to store all the returned strings, plus the SE_DISTINCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and SE_VALUE elements.&amp;nbsp; You'd also need your own cleanup function (to call&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_table_free_stats or to free your own datatype [which needs a flag to indicate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how the data is stacked]).&amp;nbsp; In this situation, I'd name the wrapper &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;se_stream_calculate_table_statistics and the cleanup se_table_free_stats.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I weren't on deadline for a delivery I'd code the thing myself right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22039#M1155</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-23T21:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE C-API SE_stream_calculate_table_statistics() crash with Oracle</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22040#M1156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent information about 10.0 and 10.1 life cycles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vince, I know how to code such query. My problem was not how but why &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks everyone here for the outstanding level of support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 14:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-c-api-se-stream-calculate-table-statistics/m-p/22040#M1156</guid>
      <dc:creator>sbrockwell</dc:creator>
      <dc:date>2014-04-24T14:44:21Z</dc:date>
    </item>
  </channel>
</rss>

