1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
mhouri > alter index part_ind modify partition p1 unusable;
Index altered.
mhorui> select index_name, status
2 from user_ind_partitions
3 where status = 'UNUSABLE';
INDEX_NAME STATUS
------------------------------ --------
PART_IND UNUSABLE
INSERT /*+ append */ INTO ma_table partition (p1)
(
champs_1,
champs_2,
champs_3,
champs_4,
champs_5,
champs_6,
champs_7,
champs_7
)
SELECT champs_1,
champs_2,
champs_3,
champs_4,
champs_5,
champs_6,
champs_7,
champs_7
FROM la_table_cible@mon_dblink
WHERE cle_partition = :cle_qui_correspond a la partition p1
;
mhouri> alter index part_ind rebuild partition p1;
Index altered.
mhouri> select index_name, status
2 from user_ind_partitions
3 where status = 'UNUSABLE';
no rows selected |
Partager