<?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: EXTPROC/Oracle-index problem in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179389#M10135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just figured out that if I use the parameter &lt;/SPAN&gt;&lt;STRONG&gt;spatial_grid_1=1&lt;/STRONG&gt;&lt;SPAN&gt; instead of spatial_grid_1=0 in my python script, my SQL Query works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it seems that I need to set the grid values explicitly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for helping me so far!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I hope this will help me solving my original problem, which is a bit more complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 08:05:45 GMT</pubDate>
    <dc:creator>MortenBødtkjer</dc:creator>
    <dc:date>2013-10-31T08:05:45Z</dc:date>
    <item>
      <title>EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179381#M10127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have installed the EXTPROC (only the st_geometry.dll part) on an Oracle 10.1.0.1 (and 10.1.0.3) and use SQL directly to my ArcSDE geodatabase instance (ArcGIS 10.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine, except that I get an error when my SQL query uses a spatial index (like in the example below).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message (including SQL statement) is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error starting at line 1 in command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SELECT COUNT(objectid) FROM myfeatureclass WHERE sde.st_intersects(shape, sde.st_geomfromtext('POINT(-50.7 64.6)', 4326)) = 1
Error report:
SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
ORA-28579: network error during callback from external procedure agent
ORA-06512: ved "SDE.ST_GEOMETRY_SHAPELIB_PKG", linje 870
ORA-06512: ved "SDE.SPX_UTIL", linje 2927
ORA-06512: ved "SDE.SPX_UTIL", linje 3206
ORA-06512: ved "SDE.ST_DOMAIN_METHODS", linje 299
29902. 00000 -&amp;nbsp; "error in executing ODCIIndexStart() routine"
*Cause:&amp;nbsp;&amp;nbsp;&amp;nbsp; The execution of ODCIIndexStart routine caused an error.
*Action:&amp;nbsp;&amp;nbsp; Examine the error messages produced by the indextype code and
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; take appropriate action.
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really hope someone can help me solve the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179381#M10127</guid>
      <dc:creator>MortenHansen</dc:creator>
      <dc:date>2021-12-11T09:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179382#M10128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oracle 10gR1 hasn't been supported in a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;long&lt;/SPAN&gt;&lt;SPAN&gt; time (10.1.0.1 was never supported at all).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It certainly isn't supported for use with ArcGIS 10.1.&amp;nbsp; I don't think you can &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;ever&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; get this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configuration to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179382#M10128</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-29T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179383#M10129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, It was a typing mistake. I meant &lt;/SPAN&gt;&lt;STRONG&gt;Oracle version 11.2.0.1&lt;/STRONG&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;I have also tested it on 11.2.0.3, since I suspected some bug fixes in the Oracle patch to be related to my problem. However it didn't make any difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(boedtkjer=mbhansen)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 19:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179383#M10129</guid>
      <dc:creator>MortenBødtkjer</dc:creator>
      <dc:date>2013-10-29T19:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179384#M10130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A search on the 28579 error turned up &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/38823"&gt;an Oracle bug&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 0; font-style: italic;"&gt;I think it more accurate to say that "a query on a layer without an index" causes&lt;BR /&gt;this problem.&amp;nbsp; I always create my indexes as part of table creation, so I've never&lt;BR /&gt; seen anything like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: RE-reading the Oracle defect description, it seems the ODCIindexstart is failing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;even when the index exists, so my comment isn't applicable (I wish the editor had&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a strikethrough option).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 22:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179384#M10130</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-29T22:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179385#M10131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Morten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It probably is something we need to fix or have already fixed...we'd have to look at the data ("myfeatureclass"). Would you be able to open a tech support incident and send the data, or even narrow it down to a particular geometry in the feature class that causes the failure, please?&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, 30 Oct 2013 15:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179385#M10131</guid>
      <dc:creator>ForrestJones</dc:creator>
      <dc:date>2013-10-30T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179386#M10132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Vince and FJ&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I could open a tech support incident.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems I can reproduce the error by creating a simple polygon feature class using the python script below, and then afterwards run the SQL query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;PYTHON:&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
import sys

sdeconn = "c:\\arcgisconfig\\oracle.sde"
prj_file_path = "c:/Program Files (x86)/ArcGIS/Desktop10.1/Reference Systems/World Time Zones.prj"
arcpy.CreateFeatureclass_management(sdeconn, "MYFEATURECLASS", "POLYGON", spatial_reference=prj_file_path, spatial_grid_1=0, spatial_grid_2=0, spatial_grid_3=0)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SQL:&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
SELECT COUNT(objectid) FROM MYFEATURECLASS WHERE sde.st_intersects(shape, sde.st_geomfromtext('POINT(-50.7 64.6)', 4326)) = 1
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It makes no difference whether I include or exclude the "spatial_grid_1=0, spatial_grid_2=0, spatial_grid_3=0" parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179386#M10132</guid>
      <dc:creator>MortenBødtkjer</dc:creator>
      <dc:date>2021-12-11T09:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179387#M10133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you don't specify an index grid size, ArcGIS will leave the table un-indexed, assuming you'll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;get around to loading eventually.&amp;nbsp; Once data is added, then the index is built, using grid sizes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; chosen from the characteristics of the first loaded dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Is there data in your table?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Is there a spatial index on that table?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;How is the index described (grid sizes)?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 20:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179387#M10133</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-30T20:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179388#M10134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;I have tried both with and without data =&amp;gt; same problem&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;As I understand a spatial index is automatically added. I do not add a spatial index explicitly. (also see console output below)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;My parameters are spatial_grid_1=0, spatial_grid_2=0, and spatial_grid_3=0, so I leave it to ArcGIS to determine the values.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run the python code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
deconn = "c:\\arcgisconfig\\oracle.sde"
prj_file_path = "c:/Program Files (x86)/ArcGIS/Desktop10.1/Reference Systems/World Time Zones.prj"
fc = arcpy.CreateFeatureclass_management(sdeconn, "MYFEATURECLASS", "POLYGON", spatial_reference=prj_file_path, spatial_grid_1=0, spatial_grid_2=0, spatial_grid_3=0)

array = arcpy.Array([arcpy.Point(45, 50), arcpy.Point(47, 50), arcpy.Point(47, 49), arcpy.Point(45, 50)])
polygon = arcpy.Polygon(array)
cursor = arcpy.da.InsertCursor(fc, ("SHAPE@"))
cursor.insertRow((polygon,))
del cursor

desc = arcpy.Describe(fc)
print "Feature Type:&amp;nbsp; " + desc.featureType
print "Shape Type :&amp;nbsp;&amp;nbsp; " + desc.shapeType
print "Spatial Index: " + str(desc.hasSpatialIndex)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output from my console is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Feature Type:&amp;nbsp; Simple
Shape Type :&amp;nbsp;&amp;nbsp; Polygon
Spatial Index: True
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I still get the error from my SQL Query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179388#M10134</guid>
      <dc:creator>MortenBødtkjer</dc:creator>
      <dc:date>2021-12-11T09:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179389#M10135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just figured out that if I use the parameter &lt;/SPAN&gt;&lt;STRONG&gt;spatial_grid_1=1&lt;/STRONG&gt;&lt;SPAN&gt; instead of spatial_grid_1=0 in my python script, my SQL Query works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it seems that I need to set the grid values explicitly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for helping me so far!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I hope this will help me solving my original problem, which is a bit more complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 08:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179389#M10135</guid>
      <dc:creator>MortenBødtkjer</dc:creator>
      <dc:date>2013-10-31T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC/Oracle-index problem</title>
      <link>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179390#M10136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a bit of a slippery slope, because it's not enough to set a spatial index size -- &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to set an &lt;/SPAN&gt;&lt;STRONG&gt;appropriate&lt;/STRONG&gt;&lt;SPAN&gt; spatial index size.&amp;nbsp; This is why ArcGIS started&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delaying the calculation process until a better idea of the data characteristics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;was available.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is, however, generally safe to establish a trivial index (e.g., 100 degrees for a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;global dataset in GCS_WGS_1984 coordinate system), then after data load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is complete, rebuild to something which will perform better.&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, 31 Oct 2013 11:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/extproc-oracle-index-problem/m-p/179390#M10136</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-31T11:23:04Z</dc:date>
    </item>
  </channel>
</rss>

