Local Spatial Index [message #587631] |
Mon, 17 June 2013 09:39 |
gentleman777us
Messages: 122 Registered: April 2005
|
Senior Member |
|
|
Hi,
I have a table and there are about 4 categories. I have created partitions on this table for each category.
I tried to create LOCAL spatial index using the following script.
SQL> CREATE INDEX SHIPPER.SHIP_GEOX ON SHIPPER.SHIPPER_CONSIGNMENTS(GEOM)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
PARAMETERS('LAYER_GTYPE=POINT,TABLESPACE=DEV_IDX')LOCAL
(PARTITION P_EAST
PARAMETERS('LAYER_GTYPE=POINT,TABLESPACE=DEV_IDX'),
PARTITION P_WEST
PARAMETERS('LAYER_GTYPE=POINT,TABLESPACE=DEV_IDX')
)
/
When I execute I get the following error
Sql> ORA-29850: Invalid option for creation of domain indexes.
Is it true that LOCAL spatial indexes can only be created on "RANGE PARTITIONS"?
Please let me know your opinion.
Thanks
|
|
|
|
Re: Local Spatial Index [message #587974 is a reply to message #587657] |
Wed, 19 June 2013 10:27 |
_jum
Messages: 577 Registered: February 2008
|
Senior Member |
|
|
Don't repeat the PARTITION clause in the INDEX (only in the TABLE):
CREATE INDEX SHIPPER.SHIP_GEOX
ON SHIPPER.SHIPPER_CONSIGNMENTS(GEOM)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
PARAMETERS('LAYER_GTYPE=POINT,TABLESPACE=DEV_IDX') LOCAL;
|
|
|