在改变了会话并行为enable之后语句也要加上hint并行插入才可以
insert/*+parallel(table_name1,6)*/ into table_name1 select/*+parallel(table_name2,6)*/ * from table_name2;
类似这个样子,这样子拆入才能实现compress!

解决方案 »

  1.   

    楼上说的对,在enable parallel dml以后,还要加上Hint
    例如
    insert/*+parallel(testCompress ,6)*/ into testCompress basic compress需要以直接路径插入才能进行压缩
    并行默认是append,因此compress会生效但是如果不开并行,实际上压缩效果会更好
    insert/*+append */ into testCompress ............