Exchange Table, Index Type. Partition Add , Drop

CREATE INDEX idx_maprg_pp_pnlty_u_4
    ON tbl_maprg_pp_pnlty_u(cup_crd_no)
local(
partition idx_maprg_pp_pnlty_u_4_201208
,partition idx_maprg_pp_pnlty_u_4_201404
,partition idx_maprg_pp_pnlty_u_4_201405
)
PCTFREE 0
TABLESPACE  tbs_mapg_jd_crm
NOLOGGING
;

the indexes  type in two tables should be same .
Local or BITMAP of fields should be same .

---------------------
Add Partition:
alter table tbl_mapra_hcc_cd_xact_ext_p1
add partition tp_mapra_hcc_cd_xact_p1_201409
values less than (to_date('2014-10-01','YYYY-MM-DD'))
tablespace TBS_MAPG_JD_CRM
pctfree 0
nologging ;


Drop Partition :

alter table tbl_maprg_pp_pnlty_u
drop  partition TP_MAPRG_PP_PNLTY_U_201408  ;


猜你喜欢

转载自ticojj.iteye.com/blog/2144826