used time: 39.750(ms). Execute id is 55302.
SQL> create tablespace CNDBA4 DATAFILE
'/dm/dmdbms/data/DCP/CNDBA4_01.dbf' size 128;
executed successfully
used time: 38.049(ms). Execute id is 55303.
SQL> create user CNDBA identified by dameng123 default tablespace
CNDBA1;
executed successfully
used time: 4.349(ms). Execute id is 55304.
SQL> grant public,resource,dba to cndba;
executed successfully
used time: 3.058(ms). Execute id is 55305.
SQL>
2.2
创建范围分区表
create
table CNDBA."T1"
(
"ID" INT,
"NAME" VARCHAR(20)
)
PARTITION BY RANGE
(
"ID"
)
(
PARTITION "P1" VALUES LESS THAN (100) STORAGE( initial 1,
next 1, minextents 1, fillfactor 0, on "CNDBA1"),
PARTITION "P2" VALUES LESS THAN (200) STORAGE( initial 1,
next 1, minextents 1, fillfactor 0, on "CNDBA2"),
PARTITION "P3" VALUES LESS THAN (300) STORAGE( initial 1,
next 1, minextents 1, fillfactor 0, on "CNDBA3"),
PARTITION "PN" VALUES LESS THAN (MAXVALUE) STORAGE( initial
1, next 1, minextents 1, fillfactor 0, on "CNDBA4")
)
storage
(
评论