<?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: Quest to Counting Adds/Deletes Table in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569958#M32288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your feedback. We overlooked some details. We pointed the full path with the file name for&amp;nbsp;&lt;STRONG style="background-color: #f6f6f6; border: 0px; font-weight: bold;"&gt;ST_SHAPELIB &lt;/STRONG&gt;file. Also, as per the other thread, we ran the following code to grant some privileges to the SDE user .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;i.As sys user, grant execute on SYS.UTL_RECOMP TO SDE. SQL&amp;gt; GRANT EXECUTE ON SYS.UTL_RECOMP TO SDE;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii.As SDE user, recompile. SQL&amp;gt; EXECUTE sys.utl_recomp.recomp_serial('SDE');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did the above changes and the sample script is now working but add/deletes SQL script posted on GITHUB -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql" title="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql"&gt;developer-support/delta-table-record-count.sql at master · Esri/developer-support · GitHub&lt;/A&gt;&amp;nbsp; has issue parsing XML. Need to dig into that issue now.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 12:51:48 GMT</pubDate>
    <dc:creator>AdityarajChavada</dc:creator>
    <dc:date>2018-04-02T12:51:48Z</dc:date>
    <item>
      <title>Quest to Counting Adds/Deletes Table</title>
      <link>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569956#M32286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I, Geodata Admin, desperately trying to execute the script posted here -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql" title="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql"&gt;developer-support/delta-table-record-count.sql at master · Esri/developer-support · GitHub&lt;/A&gt;&amp;nbsp;using the geodatabase administrative account outside of ArcGIS clients from the Oracle SQL Developer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our Oracle Enterprise 11.2g database is installed on AIX OS server. And, the ArcSDE 10.4 is installed on the Microsoft Windows 2012 server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, when I execute the SQL from the SQL Developer to populate the required count in adds and deletes tables, I am getting the following error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ORA-28595: Extproc agent : Invalid DLL Path&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 1325&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOM_UTIL", line 822&lt;BR /&gt;ORA-06512: at line 18&lt;BR /&gt;28595. 00000 - "Extproc agent : Invalid DLL Path"&lt;BR /&gt;*Cause: The path of DLL supplied for the extproc execution is invalid.&lt;BR /&gt;*Action: Check if the DLL path is set properly using the EXTPROC_DLLS&lt;BR /&gt; environment variable&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After carrying out some more research, I found following two threads and help doc explaining the cause of the issue and proposing some solution for the same -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000009074" title="https://support.esri.com/en/technical-article/000009074"&gt;Error: ORA-28595: Extproc agent : Invalid DLL Path&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&lt;A href="https://community.esri.com/thread/100338"&gt;ST_GEOMETRY&amp;nbsp; problem on Oracle RDBMS 11g R2 11.2.0.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/configure-oracle-extproc.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/configure-oracle-extproc.htm"&gt;Configure the extproc to access ST_Geometry in Oracle—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reviewing both the threads and the help document, DBA (walking god in the workplace) and I took on this challenge and performed the following steps to make an attempt to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Run the following SQL script to check the user_libraries for SDE user:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SQL&amp;gt; SELECT library_name, file_spec FROM user_libraries;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Result - we found no records.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) So, we copied the &lt;STRONG&gt;libst_shapelib.so&lt;/STRONG&gt; file (as shown below) from our dearly Windows Server where the ArcSDE is installed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/400374_pastedImage_1.png" style="width: 620px; height: 138px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) We pasted the above file to our precise Linux database server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) As there was no library under the SDE User, my DBA created one and pointed to the path where the above file saved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) We took a backup the extproc.ora file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) Opened the magical&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff; font-size: 15px;"&gt;&lt;STRONG&gt;extproc.ora&lt;/STRONG&gt; file and set the path to file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="background-color: #eeeeee; border: 1px dashed #c2c4ba; font-size: 11.44px; margin: 0px 0px 0px 15px; padding: 10px 10px 25px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;SET &lt;STRONG&gt;EXTPROC_DLLS&lt;/STRONG&gt;=ONLY:&lt;SPAN style="color: #ff6600;"&gt;&lt;EM&gt;UNIX PATH to the libst_shapelib.so FILE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) Since &lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;no location was set to ST_SHAPELIB file, &lt;/SPAN&gt;we created &lt;STRONG&gt;ST_SHAPELIB&lt;/STRONG&gt; library by running the following SQL code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CREATE or REPLACE LIBRARY &lt;STRONG&gt;ST_SHAPELIB&lt;/STRONG&gt; AS&amp;nbsp;&lt;SPAN style="color: #ff6600; font-size: 15px;"&gt;&lt;EM&gt;UNIX PATH to the libst_shapelib.so FILE&lt;/EM&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; Finally, we&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;recompiled the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe; font-size: 14px;"&gt;sde.st_geometry_shapelib_pkg&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;package using the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ALTER PACKAGE sde.st_geometry_shapelib_pkg COMPILE REUSE SETTINGS;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9) We checked the library and its path for the SDE user for confirmation. We got the following results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="400373" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/400373_pastedImage_2.png" style="width: 620px; height: 128px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10) My DBA told me that let's try to run the original SQL Script again. I kept my fingers crossed,&amp;nbsp; told him Ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11) We ran the SQL Script and got the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error report -&lt;BR /&gt;ORA-06520: PL/SQL: Error loading external library&lt;BR /&gt;ORA-06522: Permission denied&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 1325&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOM_UTIL", line 822&lt;BR /&gt;ORA-06512: at line 18&lt;BR /&gt;06520. 00000 - "PL/SQL: Error loading external library"&lt;BR /&gt;*Cause: An error was detected by PL/SQL trying to load the external&lt;BR /&gt; library dynamically.&lt;BR /&gt;*Action: Check the stacked error (if any) for more details.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12) My DBA and I are pulling each other's hair out to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any observations, feedback from the wise GISers in the community will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ambitious Geodata Admin&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569956#M32286</guid>
      <dc:creator>AdityarajChavada</dc:creator>
      <dc:date>2018-04-02T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Quest to Counting Adds/Deletes Table</title>
      <link>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569957#M32287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Any clients that need access to the library (including web services) must reconnect to the database.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The last piece of advice on the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.4/manage-data/gdbs-in-oracle/configure-oracle-extproc.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;WebHelp link&lt;/A&gt;...did you follow that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, to check whether the Extrpoc was configured correctly, you can try the below SQL:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;SQL&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;select&lt;/SPAN&gt; sde&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ST_AsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ST_Geometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'POINT (10 10)'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; dual&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

SDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ST_ASTEXT&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SDE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ST_GEOMETRY&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'POINT(1010)'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;--------------------------------------------------------------------------------&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;POINT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10.00000000&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10.00000000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error that you receive, mentions &lt;STRONG style="background-color: #f6f6f6;"&gt;ORA-06522: Permission denied&lt;/STRONG&gt;, so does the user have the necessary permissions to access the file in that directory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569957#M32287</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2021-12-12T00:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Quest to Counting Adds/Deletes Table</title>
      <link>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569958#M32288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your feedback. We overlooked some details. We pointed the full path with the file name for&amp;nbsp;&lt;STRONG style="background-color: #f6f6f6; border: 0px; font-weight: bold;"&gt;ST_SHAPELIB &lt;/STRONG&gt;file. Also, as per the other thread, we ran the following code to grant some privileges to the SDE user .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;i.As sys user, grant execute on SYS.UTL_RECOMP TO SDE. SQL&amp;gt; GRANT EXECUTE ON SYS.UTL_RECOMP TO SDE;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii.As SDE user, recompile. SQL&amp;gt; EXECUTE sys.utl_recomp.recomp_serial('SDE');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did the above changes and the sample script is now working but add/deletes SQL script posted on GITHUB -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql" title="https://github.com/Esri/developer-support/blob/master/arcsde-sql/oracle/multi-user-management/delta-table-record-count.sql"&gt;developer-support/delta-table-record-count.sql at master · Esri/developer-support · GitHub&lt;/A&gt;&amp;nbsp; has issue parsing XML. Need to dig into that issue now.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 12:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/quest-to-counting-adds-deletes-table/m-p/569958#M32288</guid>
      <dc:creator>AdityarajChavada</dc:creator>
      <dc:date>2018-04-02T12:51:48Z</dc:date>
    </item>
  </channel>
</rss>

