<?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 ST_CENTROID Function Fails with ORA-20017 and LIB PKG Errors in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/st-centroid-function-fails-with-ora-20017-and-lib/m-p/1575664#M9472</link>
    <description>&lt;P&gt;Oracle 19c, SDE 10.7.1&lt;/P&gt;&lt;P&gt;Tested in ArcMap/Catalog 10.7.1, ArcGIS Pro 3.2.2, Oracle SQL Developer&lt;/P&gt;&lt;P&gt;Not sure when it happened but our Development database is returning the error below when creating a spatial view using sde.ST_CENTROID.&amp;nbsp; Other functions work like ST_BUFFER and I have ran the check geometry on the polygons the view is referencing, and tried multiple feature classes with no luck.&lt;/P&gt;&lt;P&gt;Our DBAs have also recompiled the&amp;nbsp;SDE.ST_GEOMETRY_OPERATORS and&amp;nbsp;SDE.ST_GEOMETRY_SHAPELIB_PKG packages.&lt;/P&gt;&lt;P&gt;I have ran through all the queries that are recommended online to check the health of the database. All of those queries return what is expected.&amp;nbsp; And the library file is pointing to the correct location. Opened a ticket with ESRI but hoping someone here may have answers.&lt;/P&gt;&lt;P&gt;ORA-20017: Invalid Geom_Operation&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 339&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_OPERATORS", line 1553&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select sde.ST_AsText(SDE.ST_Geometry('POINT(10 10)',0)) from dual;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RETURNS "POINT ( 10.0 10.0)"&lt;/P&gt;&lt;P&gt;SELECT object_name, object_type FROM USER_OBJECTS WHERE STATUS = 'INVALID';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nothing returns&lt;/P&gt;&lt;P&gt;SELECT file_spec FROM user_libraries WHERE library_name = 'ST_SHAPELIB';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Correct library file location&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 23:56:50 GMT</pubDate>
    <dc:creator>KrystalPhaneuf4</dc:creator>
    <dc:date>2025-01-14T23:56:50Z</dc:date>
    <item>
      <title>ST_CENTROID Function Fails with ORA-20017 and LIB PKG Errors</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-centroid-function-fails-with-ora-20017-and-lib/m-p/1575664#M9472</link>
      <description>&lt;P&gt;Oracle 19c, SDE 10.7.1&lt;/P&gt;&lt;P&gt;Tested in ArcMap/Catalog 10.7.1, ArcGIS Pro 3.2.2, Oracle SQL Developer&lt;/P&gt;&lt;P&gt;Not sure when it happened but our Development database is returning the error below when creating a spatial view using sde.ST_CENTROID.&amp;nbsp; Other functions work like ST_BUFFER and I have ran the check geometry on the polygons the view is referencing, and tried multiple feature classes with no luck.&lt;/P&gt;&lt;P&gt;Our DBAs have also recompiled the&amp;nbsp;SDE.ST_GEOMETRY_OPERATORS and&amp;nbsp;SDE.ST_GEOMETRY_SHAPELIB_PKG packages.&lt;/P&gt;&lt;P&gt;I have ran through all the queries that are recommended online to check the health of the database. All of those queries return what is expected.&amp;nbsp; And the library file is pointing to the correct location. Opened a ticket with ESRI but hoping someone here may have answers.&lt;/P&gt;&lt;P&gt;ORA-20017: Invalid Geom_Operation&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 339&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_OPERATORS", line 1553&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select sde.ST_AsText(SDE.ST_Geometry('POINT(10 10)',0)) from dual;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RETURNS "POINT ( 10.0 10.0)"&lt;/P&gt;&lt;P&gt;SELECT object_name, object_type FROM USER_OBJECTS WHERE STATUS = 'INVALID';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nothing returns&lt;/P&gt;&lt;P&gt;SELECT file_spec FROM user_libraries WHERE library_name = 'ST_SHAPELIB';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Correct library file location&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 23:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-centroid-function-fails-with-ora-20017-and-lib/m-p/1575664#M9472</guid>
      <dc:creator>KrystalPhaneuf4</dc:creator>
      <dc:date>2025-01-14T23:56:50Z</dc:date>
    </item>
  </channel>
</rss>

