<?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: Managing Layers and Indexes using PL/SQL in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414814#M23679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delete is required for testing purposes to reset the database between tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see there is a layers_util.update_layer_grids to set the grids but there doesn't seem to be an equivalent to CalculateDefaultGridIndex to calculate the grid sizes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 19:35:29 GMT</pubDate>
    <dc:creator>PaulAustin</dc:creator>
    <dc:date>2012-05-30T19:35:29Z</dc:date>
    <item>
      <title>Managing Layers and Indexes using PL/SQL</title>
      <link>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414812#M23677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to setup new features classes using PL/SQL only (no manual steps or Python).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several reasons for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt; Run the install from the command line on unix, no windows requirement&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Completely automate it so that someone can't screw it up&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Allow users to perform specific functions that they wouldn't have permissions to do&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the PL/SQL equivalent of the following?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt; sdelayer -o register -l&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; sdelayer -o delete -l&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; In ArcCatalog right clicking on a feature class and registering it with a geodatabase&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; In ArcCatalog layer properties Index tab, recalculating an index. At the moment this can only be done by the owner of the tables. For corporate reasons we don't have that password. With PL/SQL the procedures are run as the user that created them (the owner of the tables). Then I could grant permission to specific users to update them. Having everything done by the owner can be dangerous as that account should have restricted access as it can delete everything.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 17:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414812#M23677</guid>
      <dc:creator>PaulAustin</dc:creator>
      <dc:date>2012-05-30T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Layers and Indexes using PL/SQL</title>
      <link>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414813#M23678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) There is no SQL equivalent to 'sdelayer -o register'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You should not ever need to use 'sdelayer -o delete'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) There is no SQL equivalent to "Register with geodatabase" (there isn't an ArcSDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;binary equivalent either).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Index creation/recreation is the only process which can be done with SQL (assuming&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ST_GEOMETRY or native storage).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 18:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414813#M23678</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-30T18:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Layers and Indexes using PL/SQL</title>
      <link>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414814#M23679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delete is required for testing purposes to reset the database between tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see there is a layers_util.update_layer_grids to set the grids but there doesn't seem to be an equivalent to CalculateDefaultGridIndex to calculate the grid sizes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 19:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414814#M23679</guid>
      <dc:creator>PaulAustin</dc:creator>
      <dc:date>2012-05-30T19:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Layers and Indexes using PL/SQL</title>
      <link>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414815#M23680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should not 'delete' (sdelayer or sdetable) any layer that has been registered with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the geodatabase.&amp;nbsp; Only an ArcGIS delete can clean up all the metadata tables.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An 'sdelayer -o delete' before a 'sdetable -o delete' is the most common command-line &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scripting mistake -- the SE_table_delete() function [also used by ArcGIS] cleans up all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE metadata, without the need to populate NULLs in all geometry columns (very slow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in large tables).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't ever used anything other than the spatial index grid values I have calculated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I haven't ever seen a significant performance difference for grid sizes that weren't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;completely wacked (ie all features in one cell or one cell per feature).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best performance optimization step I've seen is to use centimeter or decimeter scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;coordinate references on global data (especially true with polygon and line data).&amp;nbsp; Since&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you're using SQL, you have the chance to override the submillimeter default that increases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table size and slows loading and query performance.&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 May 2012 00:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/managing-layers-and-indexes-using-pl-sql/m-p/414815#M23680</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-31T00:08:07Z</dc:date>
    </item>
  </channel>
</rss>

