<?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: Invalid index on sde.gdb_items in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315397#M44638</link>
    <description>&lt;P&gt;Thanks, the index was dropped and recreated and appears ok.&lt;BR /&gt;We were just hesitant as it was a sde generated index not a user generated one.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 04:41:11 GMT</pubDate>
    <dc:creator>Gunterr</dc:creator>
    <dc:date>2023-08-04T04:41:11Z</dc:date>
    <item>
      <title>Invalid index on sde.gdb_items</title>
      <link>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315377#M44636</link>
      <description>&lt;P&gt;A client reported an error '&lt;SPAN&gt;ORA-29861:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;domain index is marked LOADING/FAILED/UNUSABLE' while trying to load a raster.&lt;BR /&gt;Looking into the issue, we see that the Domain index on the SDE.DGB_ITEMS is the only invalid index.&lt;BR /&gt;We tried a rebuild of the index (as the SDE user) which failed with the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;SPAN&gt;alter index &amp;nbsp;"SDE"."A1_IX1" rebuild&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Error report -&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-29858: error occurred in the execution of ODCIINDEXALTER routine&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-20085: Parameter ST_SRID 0 is different from ST_GEOMETRY_COLUMNS srid (4326).&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-06512: at "SDE.SPX_UTIL", line 1245&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1345&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 2492&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;29858. 00000 - &amp;nbsp;"error occurred in the execution of ODCIINDEXALTER routine"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;*Cause: &amp;nbsp; &amp;nbsp;Failed to successfully execute the ODCIIndexAlter routine.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;*Action: &amp;nbsp; Check to see if the routine has been coded correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;I'm not sure where it is getting the ST_SRID '0' from.&lt;BR /&gt;The index is defined as:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;CREATE INDEX "SDE"."A1_IX1" ON "SDE"."GDB_ITEMS" ("SHAPE")&lt;BR /&gt;&amp;nbsp; &amp;nbsp;INDEXTYPE IS "SDE"."ST_SPATIAL_INDEX" &amp;nbsp;PARAMETERS ('ST_GRIDS = 100 ST_SRID = 4326 ST_COMMIT_ROWS = 10000 &amp;nbsp;PCTFREE 0 INITRANS 4');&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;All the st_geometries in the table are either null or have 4326 defined in them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;As we believe this is a system generated table we are not sure if dropping and recreating the index will break other things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Note a second attempt at rebuilding the index provided a slightly different error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;ORA-29858: error occurred in the execution of ODCIINDEXALTER routine&lt;BR /&gt;ORA-20083: Parameter ST_SRID does not exist in ST_SPATIAL_REFERENCES table.&lt;BR /&gt;ORA-06512: at "SDE.SPX_UTIL", line 1232&lt;BR /&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1345&lt;BR /&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 2492&lt;BR /&gt;29858. 00000 - "error occurred in the execution of ODCIINDEXALTER routine"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Any suggestions?&lt;/P&gt;&lt;P class=""&gt;Note:&lt;BR /&gt;Oracle 19c&lt;BR /&gt;This is the UV database, the loading of the rasters into development worked perfectly&lt;/P&gt;&lt;P class=""&gt;Regards&lt;BR /&gt;Gunther&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 00:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315377#M44636</guid>
      <dc:creator>Gunterr</dc:creator>
      <dc:date>2023-08-04T00:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid index on sde.gdb_items</title>
      <link>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315384#M44637</link>
      <description>&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/error-ora29861-domain-index-is-marked-loadingfailedunus-000010622" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/error-ora29861-domain-index-is-marked-loadingfailedunus-000010622&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the resolution steps below and example. If you continue to experience a problem then please open a ticket with Esri Technical Support for further assistance.&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP INDEX "SDE"."A1_IX1" FORCE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CREATE INDEX "SDE"."A1_IX1" ON "SDE"."GDB_ITEMS" ("SHAPE") &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INDEXTYPE IS "SDE"."ST_SPATIAL_INDEX" PARAMETERS ('ST_GRIDS = .012:.4:12 ST_SRID = 4326 ST_COMMIT_ROWS = 10000 PCTFREE 0 INITRANS 4');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 - We executed the below-mentioned SQL query to identify which of the domain indexes were invalid:&lt;BR /&gt;&lt;BR /&gt;SELECT index_name, table_name, index_type, domidx_status, domidx_opstatus FROM user_indexes WHERE index_type='DOMAIN' ORDER BY 1;&lt;BR /&gt;&lt;BR /&gt;2 - Retrieved the DDL for all the above indexes by running the below-mentioned SQL query:&lt;BR /&gt;&lt;BR /&gt;SELECT dbms_metadata.get_ddl('INDEX','A4042_IX1','SDE')||chr(10)||'/' from dual;&lt;BR /&gt;&lt;BR /&gt;3 - Dropped the respective indexes using the below-mentioned query:&lt;BR /&gt;&lt;BR /&gt;Drop Index Index_Name Force;&lt;BR /&gt;&lt;BR /&gt;4 - Recreated the respective indexes by using the DDL which was retrieved earlier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;! ! !&amp;nbsp; O T H E R&amp;nbsp; &amp;nbsp; E X A M P L E&amp;nbsp; &amp;nbsp;! ! !&amp;nbsp; Featureclass Spatial Index&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DESCRIBE ALL_INDEXES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT count(*) FROM ALL_INDEXES d &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WHERE (d.status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_opstatus NOT IN ('VALID','N/A'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT * FROM ALL_INDEXES d &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WHERE (d.status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_opstatus NOT IN ('VALID','N/A'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT index_name, table_name, index_type, domidx_status, domidx_opstatus FROM user_indexes WHERE index_type='DOMAIN' ORDER BY 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A316_IX1 UNITS DOMAIN VALID FAILED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_METADATA.html#GUID-A4683EEE-6F54-4081-B7BF-1496096675FA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET LONG 2000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET PAGESIZE 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT dbms_metadata.get_ddl('INDEX','A316_IX1','GIS') from dual;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CREATE INDEX "GIS"."A316_IX1" ON "GIS"."UNITS" ("SHAPE") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;INDEXTYPE IS "SDE"."ST_SPATIAL_INDEX" PARAMETERS ('ST_GRIDS = 20 ST_SRID = 300006 ST_COMMIT_ROWS = 10000 PCTFREE 0 INITRANS 4 TABLESPACE GIS_SDATA');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP INDEX GIS.A316_IX1 FORCE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;--Index GIS.A316_IX1 dropped.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CREATE INDEX "GIS"."A316_IX1" ON "GIS"."UNITS" ("SHAPE") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;INDEXTYPE IS "SDE"."ST_SPATIAL_INDEX" PARAMETERS ('ST_GRIDS = 20 ST_SRID = 300006 ST_COMMIT_ROWS = 10000 PCTFREE 0 INITRANS 4 TABLESPACE GIS_SDATA');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;--Index "GIS"."A316_IX1" created.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT count(*) FROM ALL_INDEXES d &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WHERE (d.status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_status NOT IN ('VALID','N/A')) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(d.domidx_opstatus NOT IN ('VALID','N/A'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;--0 zero!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Aug 2023 02:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315384#M44637</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-08-04T02:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid index on sde.gdb_items</title>
      <link>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315397#M44638</link>
      <description>&lt;P&gt;Thanks, the index was dropped and recreated and appears ok.&lt;BR /&gt;We were just hesitant as it was a sde generated index not a user generated one.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 04:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315397#M44638</guid>
      <dc:creator>Gunterr</dc:creator>
      <dc:date>2023-08-04T04:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid index on sde.gdb_items</title>
      <link>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315544#M44640</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/707005"&gt;@Gunterr&lt;/a&gt;&amp;nbsp;- I am glad the issue is fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/invalid-index-on-sde-gdb-items/m-p/1315544#M44640</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-08-04T14:53:33Z</dc:date>
    </item>
  </channel>
</rss>

