[精品]Oracle将system表空间的数据文件变小 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

问题描述:今天闲的 ,在自己破电脑上面跑了一下这个过程:

create or replace procedure pro_test_pga isbegin  insert into t_test2  select t.*  from t_test t,(select rownum from dual connect by rownum <= 10 )  order by t.object_name;  commit;end pro_test_pga;

当时t_test有2883968行数据,这个过程跑下来各种direct path read temp因为我的pga_aggregate_target只有可怜的194M,其实开始跑这个过程的目的是验证把pga_aggregate_target调小会不会让速度更慢,因为这个数字是我建库的时候用的默认值,结果跑了5455.62秒,心都碎了,我的机器上的数据库是开了归档的,反正硬盘只这么多,他一边产生我一边删,不然空间一没,就停在那了,本来还想来个把pga_aggregate_target设置为10M试试的,但后来想想还是算了,至少这周算了,以后有时间试试,挂一晚就是,

[精品]Oracle将system表空间的数据文件变小

电脑资料

[精品]Oracle将system表空间的数据文件变小》(https://www.unjs.com)。
最新文章