-- IBM Confidential
-- OCO Source Materials
-- 5724-I68.
-- (C) Copyright IBM Corp. 2000, 2006 - All Rights Reserved.
-- US Government Users Restricted Rights - Use, duplication or disclosure 
-- restricted by GSA ADP Schedule Contract with IBM Corp. 


-- drop index ictg_cab_0
drop index ictg_cab_0;

commit;


-- reorganize the table
ALTER TABLE tctg_cab_category_attributes MOVE PCTFREE 10 PCTUSED 60;

commit;


-- create all indices
create index ictg_cab_0 on tctg_cab_category_attributes (
        cab_category_id,
        cab_next_version_id,
        cab_version_id,
        cab_cat_tree_id,
        cab_node_id,
        cab_occurrence_id
)
tablespace indx NOLOGGING;

create index ictg_cab_1 on tctg_cab_category_attributes (
        cab_node_id,
        cab_occurrence_id,
        cab_value_string,
        cab_next_version_id,
        cab_version_id,
        cab_cat_tree_id,
        cab_category_id
)
tablespace indx NOLOGGING;

create index ictg_cab_2 on tctg_cab_category_attributes (
        cab_node_id,
        cab_occurrence_id,
        cab_value_numeric,
        cab_next_version_id,
        cab_version_id,
        cab_cat_tree_id,
        cab_category_id
)
tablespace indx NOLOGGING;

create index ictg_cab_3 on tctg_cab_category_attributes (
        cab_node_id,
        cab_occurrence_id,
        cab_value_string_ignorecase,
        cab_next_version_id,
        cab_version_id,
        cab_cat_tree_id,
        cab_category_id
)
tablespace indx NOLOGGING;

commit;