在线等分析,oracle的insert插入非常慢
现在有两台服务器一台是150,一台是144
昨天用150服务器上的plsql登录144的数据库并执行导入操作aa_distancehost_log,tmp_aa_distancehost_log均在144服务器上。
insert into tmp_aa_distancehost_log(log_datetime索引已建)
select *
from aa_distancehost_log t
where t.log_datetime between
to_date('2008-10-01 00:00:00 ', 'yyyy-mm-dd hh24:mi:ss') and
to_date('2008-10-31 00:00:00', 'yyyy-mm-dd hh24:mi:ss');
commit;
在执行了大概1个小时后还在执行,不得已直接在plsql上中断连接,直到今早还是没有中断。不得已直接中断144服务器上的oracle进程。
但是现在150服务器上的oracle CPU占用一直在50%以上。
并且我现在把时间分一天天执行。insert 一天的数据就commit虽然非常慢但是总算导入了。
请高手分析下为什么144的服务器执行insert操作如此的慢,才200多万的数据。
还有150的机器为什么现在cpu占用率一直在50%以上