现有几张分区表的initial参数太大,有几百M,请问如何能减小initial参数值,谢谢。
例:
-- Create table
create table kevin_uu
(
xxxxxx
)
partition by range (PARTITION_ID)
(
partition P01 values less than ('02')
tablespace TBS_SYS
pctfree 0
initrans 10
maxtrans 255
storage
(
initial 890M
minextents 1
maxextents unlimited
),
partition P02 values less than ('03')
tablespace TBS_SYS
pctfree 0
initrans 10
maxtrans 255
storage
(
initial 593M
minextents 1
maxextents unlimited
),
....每个分区都占几百M的空间,太大了,一般80K就够了,恳请各位大大们指点。
例:
-- Create table
create table kevin_uu
(
xxxxxx
)
partition by range (PARTITION_ID)
(
partition P01 values less than ('02')
tablespace TBS_SYS
pctfree 0
initrans 10
maxtrans 255
storage
(
initial 890M
minextents 1
maxextents unlimited
),
partition P02 values less than ('03')
tablespace TBS_SYS
pctfree 0
initrans 10
maxtrans 255
storage
(
initial 593M
minextents 1
maxextents unlimited
),
....每个分区都占几百M的空间,太大了,一般80K就够了,恳请各位大大们指点。
直接修改还真不知道.等高手给你出出其他主意
虽然也可以,但麻烦了,可以ALTER TABLE storage(initial 大小)NOLOGGING UPDATE INDEXES;来定义表的初始表空间