Hi,
I wish to add a new local index to an already partitioned table. In the df i specify the below syntax...but it is not loading and is throwing out errors...index field nnumber is the key on which the table has been partitioned...
CREATE INDEX "TEST_EFFDATE" ON "FIELDHST"
PRIMARY
IS-LOCAL "TRUE"
INDEX-FIELD "NNUMBER" ASCENDING
INDEX-FIELD "EFFDATE" DESCENDING
INDEX-FIELD "TRANTIME" DESCENDING
FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA "FH_HTP_IDX_01"
FOR PARTITION fieldhstpartition-1-2 USING INDEX AREA "FH_HTP_IDX_02"
FOR PARTITION fieldhstpartition-1-3 USING INDEX AREA "FH_HTP_IDX_03"
FOR PARTITION fieldhstpartition-1-4 USING INDEX AREA "FH_HTP_IDX_04"
FOR PARTITION fieldhstpartition-1 USING INDEX AREA "FH_DATA_04"
the error that is thrown is ..
**Error during ADD INDEX TEST_EFFDATE**
**Line 7 FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA FH_HTP_IDX_01
Unknown INDEX keyword
Thanks,
Viswanath Sekar
Hi,
I wish to add a new local index to an already partitioned table. In the df i specify the below syntax...but it is not loading and is throwing out errors...index field nnumber is the key on which the table has been partitioned...
CREATE INDEX "TEST_EFFDATE" ON "FIELDHST"
PRIMARY
IS-LOCAL "TRUE"
INDEX-FIELD "NNUMBER" ASCENDING
INDEX-FIELD "EFFDATE" DESCENDING
INDEX-FIELD "TRANTIME" DESCENDING
FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA "FH_HTP_IDX_01"
FOR PARTITION fieldhstpartition-1-2 USING INDEX AREA "FH_HTP_IDX_02"
FOR PARTITION fieldhstpartition-1-3 USING INDEX AREA "FH_HTP_IDX_03"
FOR PARTITION fieldhstpartition-1-4 USING INDEX AREA "FH_HTP_IDX_04"
FOR PARTITION fieldhstpartition-1 USING INDEX AREA "FH_DATA_04"
the error that is thrown is ..
**Error during ADD INDEX TEST_EFFDATE**
**Line 7 FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA FH_HTP_IDX_01
Unknown INDEX keyword
Thanks,
Viswanath Sekar
Flag this post as spam/abuse.
Hi
The issue is that FOR PARTITION is not supported syntax. Remove those lines and you should be all set. The client will automatically add the partitions for the index when the new index is added. The area for each index partition will be the default area defined for each partition in the partition policy details.
Hi
The issue is that FOR PARTITION is not supported syntax. Remove those lines and you should be all set. The client will automatically add the partitions for the index when the new index is added. The area for each index partition will be the default area defined for each partition in the partition policy details.
Hi,
I wish to add a new local index to an already partitioned table. In the df i specify the below syntax...but it is not loading and is throwing out errors...index field nnumber is the key on which the table has been partitioned...
CREATE INDEX "TEST_EFFDATE" ON "FIELDHST"
PRIMARY
IS-LOCAL "TRUE"
INDEX-FIELD "NNUMBER" ASCENDING
INDEX-FIELD "EFFDATE" DESCENDING
INDEX-FIELD "TRANTIME" DESCENDING
FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA "FH_HTP_IDX_01"
FOR PARTITION fieldhstpartition-1-2 USING INDEX AREA "FH_HTP_IDX_02"
FOR PARTITION fieldhstpartition-1-3 USING INDEX AREA "FH_HTP_IDX_03"
FOR PARTITION fieldhstpartition-1-4 USING INDEX AREA "FH_HTP_IDX_04"
FOR PARTITION fieldhstpartition-1 USING INDEX AREA "FH_DATA_04"
the error that is thrown is ..
**Error during ADD INDEX TEST_EFFDATE**
**Line 7 FOR PARTITION fieldhstpartition-1-1 USING INDEX AREA FH_HTP_IDX_01
Unknown INDEX keyword
Thanks,
Viswanath Sekar
Flag this post as spam/abuse.
Thank you for all for your inputs. It is working now.
Regards
Viswanath Sekar