1.创建测试表:
SQL> create table test (id int,name varchar(20));
SQL> begin
for i in 1..10000 loop
insert into test values (i,'aa'||i);
commit;
end loop;
end;
/

2.导出数据:
[dmdba@localhost ~]$ dexp sysdba/SYSDBA file=/dm7/test.dmp tables=test

3.删除非分区表:
SQL> drop table test;

4.创建分区表:
create table test (
id int,
name varchar(20)
)
partition by range (id)(
partition p1 values less than (200),
partition p2 values less than (400),
partition p3 values less than (600),
partition p4 values less than (maxvalue) ) ;

5.导入数据:
[dmdba@localhost ~]$ dimp sysdba/SYSDBA file=/dm7/test.dmp tables=test ignore=y