db2 建立索引index
阿新 • • 發佈:2019-02-16
drop index IX_TPP_AHEADCASH_PROFITRATIO1;
create index IX_TPP_AHEADCASH_PROFITRATIO1 on TPP_AHEADCASH_PROFITRATIO(I_REFDEBTSRLNO ASC,S_AHEADDRAWPERIODCODE ASC) disallow reverse scans PctFree 10 MinPctUsed 50 collect statistics ;
drop index IX_TPP_CONSIGN1;
create index IX_TPP_CONSIGN1 on TPP_CONSIGN(S_DEBTKIND ASC,S_TOPCONSIGNORGCODE ASC) disallow reverse scans PctFree 10 MinPctUsed 50 collect statistics ;
drop index IX_TPP_CONSIGNORG_ACCT1;
create index IX_TPP_CONSIGNORG_ACCT1 on TPP_CONSIGNORG_ACCT(I_REFCONSIGNSRLNO ASC,S_ACCTTYPE ASC,S_DEBTKIND ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_CORP1;
create index IX_TPP_CORP1 on TPP_CORP(I_YEAR ASC,S_DEPOSITORID ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_CORPACCT1;
create index IX_TPP_CORPACCT1 on TPP_CORPACCT(I_YEAR ASC,S_DEPOSITORID ASC,S_OPNBNKACCT ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_DEBT1;
create index IX_TPP_DEBT1 on TPP_DEBT(S_DEBTKIND ASC,S_DEBTCODE ASC) disallow reverse scans;
drop index IX_TPP_DWBKREASON1;
create index IX_TPP_DWBKREASON1 on TPP_DWBKREASON(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_DWBKREASON(S_DWBKREASONCODE ASC);
drop index IX_TPP_ORG1;
create index IX_TPP_ORG1 on TPP_ORG(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_ORG(S_ORGCODE ASC);
drop index IX_TPP_STATSBT1;
create index IX_TPP_STATSBT1 on TPP_STATSBT(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_STATSBT(S_STATSBTCODE ASC,S_STATSBTSORT ASC);
drop index IX_TPP_STOCKACCT1;
create index IX_TPP_STOCKACCT1 on TPP_STOCKACCT(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_STOCKACCT(S_BOOKACCT ASC);
drop index IX_TPP_TANDSTATSBT_CRP1;
create index IX_TPP_TANDSTATSBT_CRP1 on TPP_TANDSTATSBT_CRP(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_TANDSTATSBT_CRP(S_TSBTCODE ASC,S_CRPSTATSBTCODE ASC);
drop index IX_TPP_TREASURY1;
create index IX_TPP_TREASURY1 on TPP_TREASURY(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_TREASURY(S_TRECODE ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_NORM1;
create index IX_TR_BDGINCOME_NORM1 on TR_BDGINCOME_NORM(D_ACCT ASC,S_TRECODE ASC,S_OFPROVTRECODE ASC,S_TAXORGATTRIB ASC,S_BDGKIND ASC,S_BDGLEVEL ASC,S_STATSBTCODE ASC,S_STATSBTSORT ASC,S_STATSBTLEVEL ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_TRIM1;
create index IX_TR_BDGINCOME_TRIM1 on TR_BDGINCOME_TRIM(D_ACCT ASC,S_TRECODE ASC,S_OFPROVTRECODE ASC,S_TAXORGATTRIB ASC,S_BDGKIND ASC,S_BDGLEVEL ASC,S_STATSBTCODE ASC,S_STATSBTSORT ASC,S_STATSBTLEVEL ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_SPEC_NORM1;
create index IX_TR_BDGINCOME_SPEC_NORM1 on TR_BDGINCOME_SPEC_NORM(D_ACCT ASC,S_TRECODE ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_SPEC_TRIM1;
create index IX_TR_BDGINCOME_SPEC_TRIM1 on TR_BDGINCOME_SPEC_TRIM(D_ACCT ASC,S_TRECODE ASC) disallow reverse scans;
create index IX_TPP_AHEADCASH_PROFITRATIO1 on TPP_AHEADCASH_PROFITRATIO(I_REFDEBTSRLNO ASC,S_AHEADDRAWPERIODCODE ASC) disallow reverse scans PctFree 10 MinPctUsed 50 collect statistics ;
drop index IX_TPP_CONSIGN1;
create index IX_TPP_CONSIGN1 on TPP_CONSIGN(S_DEBTKIND ASC,S_TOPCONSIGNORGCODE ASC) disallow reverse scans PctFree 10 MinPctUsed 50 collect statistics ;
drop index IX_TPP_CONSIGNORG_ACCT1;
create index IX_TPP_CONSIGNORG_ACCT1 on TPP_CONSIGNORG_ACCT(I_REFCONSIGNSRLNO ASC,S_ACCTTYPE ASC,S_DEBTKIND ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_CORP1;
create index IX_TPP_CORP1 on TPP_CORP(I_YEAR ASC,S_DEPOSITORID ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_CORPACCT1;
create index IX_TPP_CORPACCT1 on TPP_CORPACCT(I_YEAR ASC,S_DEPOSITORID ASC,S_OPNBNKACCT ASC) disallow reverse scans collect statistics ;
drop index IX_TPP_DEBT1;
create index IX_TPP_DEBT1 on TPP_DEBT(S_DEBTKIND ASC,S_DEBTCODE ASC) disallow reverse scans;
drop index IX_TPP_DWBKREASON1;
create index IX_TPP_DWBKREASON1 on TPP_DWBKREASON(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_DWBKREASON(S_DWBKREASONCODE ASC);
drop index IX_TPP_ORG1;
create index IX_TPP_ORG1 on TPP_ORG(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_ORG(S_ORGCODE ASC);
drop index IX_TPP_STATSBT1;
create index IX_TPP_STATSBT1 on TPP_STATSBT(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_STATSBT(S_STATSBTCODE ASC,S_STATSBTSORT ASC);
drop index IX_TPP_STOCKACCT1;
create index IX_TPP_STOCKACCT1 on TPP_STOCKACCT(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_STOCKACCT(S_BOOKACCT ASC);
drop index IX_TPP_TANDSTATSBT_CRP1;
create index IX_TPP_TANDSTATSBT_CRP1 on TPP_TANDSTATSBT_CRP(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_TANDSTATSBT_CRP(S_TSBTCODE ASC,S_CRPSTATSBTCODE ASC);
drop index IX_TPP_TREASURY1;
create index IX_TPP_TREASURY1 on TPP_TREASURY(I_YEAR ASC) disallow reverse scans;
drop index IX_;
create index IX_ on TPP_TREASURY(S_TRECODE ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_NORM1;
create index IX_TR_BDGINCOME_NORM1 on TR_BDGINCOME_NORM(D_ACCT ASC,S_TRECODE ASC,S_OFPROVTRECODE ASC,S_TAXORGATTRIB ASC,S_BDGKIND ASC,S_BDGLEVEL ASC,S_STATSBTCODE ASC,S_STATSBTSORT ASC,S_STATSBTLEVEL ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_TRIM1;
create index IX_TR_BDGINCOME_TRIM1 on TR_BDGINCOME_TRIM(D_ACCT ASC,S_TRECODE ASC,S_OFPROVTRECODE ASC,S_TAXORGATTRIB ASC,S_BDGKIND ASC,S_BDGLEVEL ASC,S_STATSBTCODE ASC,S_STATSBTSORT ASC,S_STATSBTLEVEL ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_SPEC_NORM1;
create index IX_TR_BDGINCOME_SPEC_NORM1 on TR_BDGINCOME_SPEC_NORM(D_ACCT ASC,S_TRECODE ASC) disallow reverse scans;
drop index IX_TR_BDGINCOME_SPEC_TRIM1;
create index IX_TR_BDGINCOME_SPEC_TRIM1 on TR_BDGINCOME_SPEC_TRIM(D_ACCT ASC,S_TRECODE ASC) disallow reverse scans;