<?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 Oracle join view and spatial index in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/oracle-join-view-and-spatial-index/m-p/726748#M41187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running SDE 10 on Oracle 11.1.0.7.0; what I have are two tables - one with just objectid and ST_GEOMETRY fields, and the other with some attribute data.&amp;nbsp; Now I can join these tables just fine (on objectid, which is a PK for both tables), register the layer via sdelayer, and they show up and work fine in arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcmap shows that the view-based feature class has no spatial index, and sdelayer - o describe_long shows the layer as having SPIDX_NONE (-1,0,0).&amp;nbsp; The spatial table that the view is built off of does have an index, which both Arc and sdelayer recognize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen a handful of posts on the forum describing similar situations, but as far as I can tell, none of them have been resolved; has anyone out there gotten this to work, or is it just unsupported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMF&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 12:57:34 GMT</pubDate>
    <dc:creator>IanFirkin1</dc:creator>
    <dc:date>2011-12-21T12:57:34Z</dc:date>
    <item>
      <title>Oracle join view and spatial index</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-join-view-and-spatial-index/m-p/726748#M41187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running SDE 10 on Oracle 11.1.0.7.0; what I have are two tables - one with just objectid and ST_GEOMETRY fields, and the other with some attribute data.&amp;nbsp; Now I can join these tables just fine (on objectid, which is a PK for both tables), register the layer via sdelayer, and they show up and work fine in arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcmap shows that the view-based feature class has no spatial index, and sdelayer - o describe_long shows the layer as having SPIDX_NONE (-1,0,0).&amp;nbsp; The spatial table that the view is built off of does have an index, which both Arc and sdelayer recognize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen a handful of posts on the forum describing similar situations, but as far as I can tell, none of them have been resolved; has anyone out there gotten this to work, or is it just unsupported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMF&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 12:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-join-view-and-spatial-index/m-p/726748#M41187</guid>
      <dc:creator>IanFirkin1</dc:creator>
      <dc:date>2011-12-21T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle join view and spatial index</title>
      <link>https://community.esri.com/t5/data-management-questions/oracle-join-view-and-spatial-index/m-p/726749#M41188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please note that spatial view does not&amp;nbsp; have spatial index. Reason of separate spatial index would not exist for the spatial view is as it is simply querying the spatial column of the feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check the below explanation for more information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a ST_Geometry feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a ST_Geometry feature class in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create a spatial view from this feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Query the SDE.ST_GEOMETRY_INDEX table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select index_id, table_name from sde.st_geometry_index where table_name = 'VIEW' or table_name = 'FEATURE CLASS';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the only record returned is for the feature class spatial index, not the view. If the index_id for the feature class is 10 you will see a spatial index named S10_IDX$ in the schema of the feature class owner, but there is no entry for the view in the ST_geometry_index table and therefore no separate spatial index for the spatial view.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 20:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/oracle-join-view-and-spatial-index/m-p/726749#M41188</guid>
      <dc:creator>BirajaNayak</dc:creator>
      <dc:date>2011-12-30T20:36:24Z</dc:date>
    </item>
  </channel>
</rss>

