I can certainly make a change to create the new IOT before creating a new partition. 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. How would I get around this?Also, the data loads will be ongoing so I will need to continue to add partitions. It isn't clear to me how I would accomplish this if I need to set everything up before registering the table.Here is an example of how I'm doing this:create table part_test
(OBJECTID INTEGER
,MY_DATE DATE
,SHAPE 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 other_table
where rownum <= 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
This properly creates the ST_SPATIAL_INDEX as partitioned. It also creates the unique index on the OBJECTID field. I could create those manually, but the ST_SPATIAL_INDEX has a particular number embedded in it (the same number as the IOT's). 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). In addition, the following IOT's are created:S7193P201301S7193P201302Records for the IOT's are put in the SDE.ST_PARTITION_INDEX table, which doesn't happen if I manually create the IOT's.Here's what happens when I try to add a new partition to the main table:alter table part_test
add partition P201303
values less than (to_date('04/01/2013','mm/dd/yyyy'));
Error:ORA-29855: error occurred in the execution of ODCIINDEXCREATE routineORA-29855: error occurred in the execution of ODCIINDEXCREATE routineORA-00942: table or view does not existORA-06512: at "SYS.DBMS_SYS_SQL", line 909ORA-06512: at "SYS.DBMS_SQL", line 39ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 1454The code successfully took care of everything except creating a new IOT. Are you suggesting that I manually create it and ignore the fact that the SDE reference table is missing a record? Is there something I should be doing differently when I create/register the object?Thanks for your help.