<?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: ArcSDE 10.0 - Partitioned IOT issue in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92951#M5496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Partition management is better done with SQL than with DBTUNE files.&amp;nbsp; The main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;problem you have to avoid is splitting an active partition, which invalidates the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;entire index.&amp;nbsp; Partitions are exotic enough that you should take proactive control&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;over table and index creation (spatial and otherwise), only registering the result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after all the necessary tweaks are twiddled.&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, 03 Apr 2013 19:47:14 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2013-04-03T19:47:14Z</dc:date>
    <item>
      <title>ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92950#M5495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are experiencing an issue with ArcSDE 10.0 SP5 and Oracle 10G.&amp;nbsp; We have some large spatially-enabled tables that are partitioned.&amp;nbsp; The performance for adding a partition to the largest table was very bad, it was taking 4 hours to rebuild the associated IOT.&amp;nbsp; We ran the following command to create a new DBTUNE keyword and used this new keyword when registering the partitioned tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sdedbtune -o insert -k PART_IOT -P ST_INDEX_PARTITION_LOCAL -v TRUE&amp;nbsp; -i sde:oracle10g:xxxxxx -u sde -p xxxxxx&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked well and ArcSDE created one IOT per partition for each of the tables.&amp;nbsp; However, we're running into a problem when we try to add a partition to any of the tables.&amp;nbsp; The following steps are performed just fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Table partition created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. LOB partition created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Index partition created (for each local index)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we then get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00942: table or view does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SYS.DBMS_SYS_SQL", line 909&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SYS.DBMS_SQL", line 39&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1454&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;errors related to how I called it, either via alter table...add partition or via my PL/SQL&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the problem is that the IOT related to the new partition is not created, but the ESRI code is trying to insert into the (non-existent) IOT.&amp;nbsp; I verified this by performing the following steps, which succeeded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Created the IOT manually&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Created the partition&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is obviously not a good solution because the SDE reference tables aren't updated, but it did confirm the problem.&amp;nbsp; For now, I've gotten around my immediate problem by putting the tables into load-only io mode, adding the partitions and switching them back to normal-io mode.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone advise how to create a new partition without the ESRI code failing?&amp;nbsp; I'm wondering if I created the DBTUNE data incorrectly.&amp;nbsp; I can't update the DEFAULT DBTUNE data because that causes problems with other datasets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 12:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92950#M5495</guid>
      <dc:creator>Surendrakumar_Thirumappan</dc:creator>
      <dc:date>2013-04-03T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92951#M5496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Partition management is better done with SQL than with DBTUNE files.&amp;nbsp; The main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;problem you have to avoid is splitting an active partition, which invalidates the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;entire index.&amp;nbsp; Partitions are exotic enough that you should take proactive control&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;over table and index creation (spatial and otherwise), only registering the result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after all the necessary tweaks are twiddled.&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, 03 Apr 2013 19:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92951#M5496</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-04-03T19:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92952#M5497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can certainly make a change to create the new IOT before creating a new partition.&amp;nbsp; However, when I register the partitioned table, the SDE process is creating a # for it and creating the IOT's with the number embedded in the table name.&amp;nbsp; How would I get around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the data loads will be ongoing so I will need to continue to add partitions.&amp;nbsp; It isn't clear to me how I would accomplish this if I need to set everything up before registering the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example of how I'm doing this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;create table part_test
(OBJECTID&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER
,MY_DATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE
,SHAPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ST_GEOMETRY
)
partition by range (my_date)
(partition P201301 values less than (to_date('02/01/2013','mm/dd/yyyy'))
,partition P201302 values less than (to_date('03/01/2013','mm/dd/yyyy'))
);

create bitmap index part_test_idx1 on part_test
(my_date)
local;


insert into part_test
(select objectid, eff_dt, shape
 from&amp;nbsp;&amp;nbsp; other_table
 where&amp;nbsp; rownum &amp;lt;= 100
);

commit;

 sdelayer -o register -l part_test,shape -e p -u XXXXXX -p XXXXXX -i sde:oracle10g:XXXXXX -C objectid,SDE -t ST_GEOMETRY -E empty -k PART_IOT&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This properly creates the ST_SPATIAL_INDEX as partitioned.&amp;nbsp; It also creates the unique index on the OBJECTID field.&amp;nbsp; I could create those manually, but the ST_SPATIAL_INDEX has a particular number embedded in it (the same number as the IOT's).&amp;nbsp; Also, I had issues using some of the other sde commands when I created the OBJECTID unique key via SQL (they would fail because the index already existed).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, the following IOT's are created:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;S7193P201301&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;S7193P201302&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Records for the IOT's are put in the SDE.ST_PARTITION_INDEX table, which doesn't happen if I manually create the IOT's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what happens when I try to add a new partition to the main table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;alter table part_test 
add partition P201303
values less than (to_date('04/01/2013','mm/dd/yyyy'));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-00942: table or view does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SYS.DBMS_SYS_SQL", line 909&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SYS.DBMS_SQL", line 39&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1454&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code successfully took care of everything except creating a new IOT.&amp;nbsp; Are you suggesting that I manually create it and ignore the fact that the SDE reference table is missing a record?&amp;nbsp; Is there something I should be doing differently when I create/register the object?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92952#M5497</guid>
      <dc:creator>Surendrakumar_Thirumappan</dc:creator>
      <dc:date>2021-12-10T23:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92953#M5498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think your problem is the open-ended date ranges.&amp;nbsp; This causes index invalidation, which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; causes real-time loading to crash and burn.&amp;nbsp; You need to manage your range constraints&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; explicitly, adding new partitions before they're needed (usually just-in-time).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create the LOCAL spatial index explictly during creation (before registration) then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; the SDE-named index will not be created at registration, and then you can drop the index&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; before population, then add it back in after you're done with initial loading. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've never had issues with the registered rowid index being created in advance, so you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; should review your index procedure, to make sure it's compatible with ArcSDE.&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, 04 Apr 2013 14:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92953#M5498</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-04-04T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92954#M5499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the advice.&amp;nbsp; I made a new test table and tried to create the spatial index myself:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;CREATE INDEX PART_TEST2_SPATIAL_INDEX ON PART_TEST2
(SHAPE)
INDEXTYPE IS SDE.ST_SPATIAL_INDEX
&amp;nbsp; LOCAL ;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gave me an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-20083: Parameter ST_SRID&amp;nbsp; does not exist in ST_SPATIAL_REFERENCES table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SDE.SPX_UTIL", line 938&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1291&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am creating the partitions on the data table before I try to use them, but they're failing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try setting the ST_INDEX_PARTITION_LOCAL value in the DEFAULTS DBTUNE set instead of separately.&amp;nbsp; I'm thinking the ESRI software may not be consistent in where it checks for this value.&amp;nbsp; The documentation does indicate that it should be in the DEFAULTS set, perhaps there is a reason for that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92954#M5499</guid>
      <dc:creator>Surendrakumar_Thirumappan</dc:creator>
      <dc:date>2021-12-10T23:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92955#M5500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's been years and years since I last played with partitioning, but your index&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;creation syntax looks wrong.&amp;nbsp; I was doing SDO_GEOMETRY and ST_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;side by side, so I used the SDO documentation for partitioned index creation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as the template for ST_GEOMETRY syntax.&amp;nbsp; I never once touched the DBTUNE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might be better served by contacting Tech Support.&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, 04 Apr 2013 15:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92955#M5500</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-04-04T15:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcSDE 10.0 - Partitioned IOT issue</title>
      <link>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92956#M5501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We reached out to ESRI technical support and they determined it is a bug that was introduced with ArcSDE 10.0 SP5.&amp;nbsp; A bug was logged (see below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][#NIM091900&amp;nbsp; After applying SP5 for ArcSDE 10, adding a new partition on an ST_Geometry table that contains a spatial index causes an error "ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine". ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now, a valid workaround for this issue would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drop the spatial index, add the new partition, and then re-create the spatial index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We discovered this issue when we tried to create the first partitioned spatial indexes.&amp;nbsp; We will continue using non-partitioned spatial indexes until a fix is available or we upgrade to 10.1, whichever comes first.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 16:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcsde-10-0-partitioned-iot-issue/m-p/92956#M5501</guid>
      <dc:creator>Surendrakumar_Thirumappan</dc:creator>
      <dc:date>2013-05-23T16:15:44Z</dc:date>
    </item>
  </channel>
</rss>

