方法一:
只复制表结构: create table table_name_new as select * from table_name_old where 1=2;
然后:
alter session enable parallel dml;
insert /*+ parallel(t,10) */ into table_name_new t as select * from bb;
方法二:
复制表数据:CREATE TABLE aa PARALLEL(DEGREE 10) NOLOGGING AS SELECT /*+PARALLEL(A,10)*/ * from bb;
注:
方法二速度要快于方法一,时间要少三分之一