分割槽表對應的表空間遷移案例

shiyihai發表於2007-03-19

最近現網一系統分割槽表無法錄入資料(按月分割槽,新的月份來臨)急需新增新的分割槽.但發現從去年200609到現在該表的資料量很小,而每個分割槽對應的表空間都是2G,有點浪費空間,特提出下來的方案.

將該表2007-03-01前的分割槽(子分割槽)資料都move到一個表空間上,比如SPACE_EXRE_DATA06,並刪除表空間SPACE_EXRE_DATA01到SPACE_EXRE_DATA05,然後釋放這些表空間上的裸裝置.該分割槽表對應的索引表空間也作類似處理.另外新建分割槽表的表空間,在回收的裸裝置上建即可,不然新資料無法寫入.具體操作如下:

操作前的查詢:

SQL> select table_owner,PARTITION_NAME,SUBPARTITION_NAME,SUBPARTITION_POSITION,TABLESPACE_NAME
2 from DBA_TAB_SUBPARTITIONS
3 where table_name ='EXP_RELATION'
4 and table_owner='CEMWWWPPS';

TABLE_OWNER PARTITION_NAME SUBPARTITION_NAME SUBPARTITION_POSITION TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ --------------------- ------------------------------
CEMWWWPPS PART_EXRE_200609 SYS_SUBP441 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200609 SYS_SUBP442 2 SPACE_EXRE_DATA02
CEMWWWPPS PART_EXRE_200609 SYS_SUBP443 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200609 SYS_SUBP444 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200609 SYS_SUBP445 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200609 SYS_SUBP446 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP447 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200610 SYS_SUBP448 2 SPACE_EXRE_DATA02
CEMWWWPPS PART_EXRE_200610 SYS_SUBP449 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200610 SYS_SUBP450 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200610 SYS_SUBP451 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200610 SYS_SUBP452 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP453 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200611 SYS_SUBP454 2 SPACE_EXRE_DATA02
CEMWWWPPS PART_EXRE_200611 SYS_SUBP455 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200611 SYS_SUBP456 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200611 SYS_SUBP457 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200611 SYS_SUBP458 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP459 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200612 SYS_SUBP460 2 SPACE_EXRE_DATA02

TABLE_OWNER PARTITION_NAME SUBPARTITION_NAME SUBPARTITION_POSITION TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ --------------------- ------------------------------
CEMWWWPPS PART_EXRE_200612 SYS_SUBP461 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200612 SYS_SUBP462 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200612 SYS_SUBP463 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200612 SYS_SUBP464 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP465 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200701 SYS_SUBP466 2 SPACE_EXRE_DATA02
CEMWWWPPS PART_EXRE_200701 SYS_SUBP467 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200701 SYS_SUBP468 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200701 SYS_SUBP469 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200701 SYS_SUBP470 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP471 1 SPACE_EXRE_DATA01
CEMWWWPPS PART_EXRE_200702 SYS_SUBP472 2 SPACE_EXRE_DATA02
CEMWWWPPS PART_EXRE_200702 SYS_SUBP473 3 SPACE_EXRE_DATA03
CEMWWWPPS PART_EXRE_200702 SYS_SUBP474 4 SPACE_EXRE_DATA04
CEMWWWPPS PART_EXRE_200702 SYS_SUBP475 5 SPACE_EXRE_DATA05
CEMWWWPPS PART_EXRE_200702 SYS_SUBP476 6 SPACE_EXRE_DATA06

36 rows selected

SQL>
SQL> select * from user_segments where segment_name='EXP_RELATION';

SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS BUFFER_POOL
-------------------------------------------------------------------------------- ------------------------------ ------------------ ------------------------------ ---------- ---------- ---------- -------------- ----------- ----------- ----------- ------------ ---------- --------------- -----------
EXP_RELATION SYS_SUBP441 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP442 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP443 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP444 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP445 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP446 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP447 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP448 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP449 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP450 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP451 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP452 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP453 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP454 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP455 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP456 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP457 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP458 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP459 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP460 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT

SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS BUFFER_POOL
-------------------------------------------------------------------------------- ------------------------------ ------------------ ------------------------------ ---------- ---------- ---------- -------------- ----------- ----------- ----------- ------------ ---------- --------------- -----------
EXP_RELATION SYS_SUBP461 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP462 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP463 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP464 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP465 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP466 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP467 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP468 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP469 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP470 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP471 TABLE SUBPARTITION SPACE_EXRE_DATA01 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP472 TABLE SUBPARTITION SPACE_EXRE_DATA02 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP473 TABLE SUBPARTITION SPACE_EXRE_DATA03 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP474 TABLE SUBPARTITION SPACE_EXRE_DATA04 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP475 TABLE SUBPARTITION SPACE_EXRE_DATA05 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP476 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT

36 rows selected

將所有子分割槽都move到一個表空間上,如下的語句:

alter table exp_relation move subpartition SYS_SUBP441 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP442 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP443 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP444 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP445 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP446 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP447 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP448 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP449 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP450 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP451 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP452 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP453 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP454 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP455 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP456 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP457 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP458 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP459 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP460 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP461 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP462 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP463 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP464 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP465 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP466 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP467 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP468 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP469 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP470 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP471 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP472 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP473 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP474 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP475 tablespace SPACE_EXRE_DATA06;
alter table exp_relation move subpartition SYS_SUBP476 tablespace SPACE_EXRE_DATA06;

操作後的查詢:


SQL>
SQL> select table_owner,PARTITION_NAME,SUBPARTITION_NAME,SUBPARTITION_POSITION,TABLESPACE_NAME
2 from DBA_TAB_SUBPARTITIONS
3 where table_name ='EXP_RELATION'
4 and table_owner='CEMWWWPPS';

TABLE_OWNER PARTITION_NAME SUBPARTITION_NAME SUBPARTITION_POSITION TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ --------------------- ------------------------------
CEMWWWPPS PART_EXRE_200609 SYS_SUBP441 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200609 SYS_SUBP442 2 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200609 SYS_SUBP443 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200609 SYS_SUBP444 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200609 SYS_SUBP445 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200609 SYS_SUBP446 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP447 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP448 2 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP449 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP450 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP451 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200610 SYS_SUBP452 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP453 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP454 2 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP455 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP456 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP457 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200611 SYS_SUBP458 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP459 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP460 2 SPACE_EXRE_DATA06

TABLE_OWNER PARTITION_NAME SUBPARTITION_NAME SUBPARTITION_POSITION TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ --------------------- ------------------------------
CEMWWWPPS PART_EXRE_200612 SYS_SUBP461 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP462 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP463 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200612 SYS_SUBP464 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP465 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP466 2 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP467 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP468 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP469 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200701 SYS_SUBP470 6 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP471 1 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP472 2 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP473 3 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP474 4 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP475 5 SPACE_EXRE_DATA06
CEMWWWPPS PART_EXRE_200702 SYS_SUBP476 6 SPACE_EXRE_DATA06

36 rows selected

SQL>

SQL> select * from user_segments where segment_name='EXP_RELATION';

SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS BUFFER_POOL
-------------------------------------------------------------------------------- ------------------------------ ------------------ ------------------------------ ---------- ---------- ---------- -------------- ----------- ----------- ----------- ------------ ---------- --------------- -----------
EXP_RELATION SYS_SUBP441 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP442 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP443 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP444 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP445 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP446 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP447 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP448 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP449 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP450 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP451 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP452 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP453 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP454 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP455 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP456 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP457 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP458 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP459 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP460 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT

SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES BLOCKS EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE FREELISTS FREELIST_GROUPS BUFFER_POOL
-------------------------------------------------------------------------------- ------------------------------ ------------------ ------------------------------ ---------- ---------- ---------- -------------- ----------- ----------- ----------- ------------ ---------- --------------- -----------
EXP_RELATION SYS_SUBP461 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP462 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP463 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP464 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP465 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP466 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP467 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP468 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP469 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP470 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP471 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP472 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP473 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP474 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP475 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT
EXP_RELATION SYS_SUBP476 TABLE SUBPARTITION SPACE_EXRE_DATA06 65536 8 1 65536 1 2147483645 1 1 DEFAULT

36 rows selected

SQL>

ok.已經將該分割槽表都遷移到一個空空間上.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/38542/viewspace-905817/,如需轉載,請註明出處,否則將追究法律責任。

相關文章