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
|
CREATE TABLE MaTable
(
cle_Sous_Partition VARCHAR2(4) NOT NULL ENABLE,
cle_Partition VARCHAR2(10) NOT NULL ENABLE,
colonne1 VARCHAR2(5) NOT NULL ENABLE,
colonne2 VARCHAR2(15),
colonne3 VARCHAR2(5),
...
...
)
TABLESPACE "TAB_DRLD_DB_XL"
PARTITION BY RANGE ("cle_Partition")
SUBPARTITION BY HASH ("cle_Sous_Partition")
(PARTITION "P_MaTable_20060203" VALUES LESS THAN ('2006/02/04')
TABLESPACE "TAB_DB_P4_L"
( SUBPARTITION "SYS_SUBP9221" TABLESPACE "TAB_DB_P4_L",
SUBPARTITION "SYS_SUBP9222" TABLESPACE "TAB_DB_P4_L",
SUBPARTITION "SYS_SUBP9223" TABLESPACE "TAB_DB_P4_L",
SUBPARTITION "SYS_SUBP9224" TABLESPACE "TAB_DB_P4_L") ,
PARTITION "P_MaTable_20060204" VALUES LESS THAN ('2006/02/05')
TABLESPACE "TAB_DB_P5_L"
( SUBPARTITION "SYS_SUBP9241" TABLESPACE "TAB_DB_P5_L",
SUBPARTITION "SYS_SUBP9242" TABLESPACE "TAB_DB_P5_L",
SUBPARTITION "SYS_SUBP9243" TABLESPACE "TAB_DB_P5_L",
SUBPARTITION "SYS_SUBP9244" TABLESPACE "TAB_DB_P5_L") ,
...
...
PARTITION "P_MaTable_20060207" VALUES LESS THAN ('2006/02/08')
TABLESPACE "TAB_DB_P2_L"
( SUBPARTITION "SYS_SUBP9295" TABLESPACE "TAB_DB_P2_L",
SUBPARTITION "SYS_SUBP9296" TABLESPACE "TAB_DB_P2_L",
SUBPARTITION "SYS_SUBP9297" TABLESPACE "TAB_DB_P2_L",
SUBPARTITION "SYS_SUBP9298" TABLESPACE "TAB_DB_P2_L") ) |
Partager