Home  >  Article  >  Database  >  oracle 回滚 不仅是回滚表中的数据 而且回滚表上的索引

oracle 回滚 不仅是回滚表中的数据 而且回滚表上的索引

WBOY
WBOYOriginal
2016-06-07 15:50:311162browse

有个场景 因为用户信息表采用deletel ; insert into select ; 方式更新用户数据。导致关键字异常和数据丢失。 没办法 只好从另外个库重新导入数据进去; truncate table userinfo ; insert into userinfo select * from o_userinfo@backup; 执行的时候,忘了

有个场景 因为用户信息表采用deletel ; insert into select ; 方式更新用户数据。导致关键字异常和数据丢失。

没办法 只好从另外个库重新导入数据进去;  truncate table userinfo ; insert into userinfo  select * from o_userinfo@backup;

执行的时候,忘了把旧表的索引给干掉。原表570万数据 1.5G大小,包括6个索引,1个关键字,大小为知。插入了很久,很久 都快2个小时了。没办法 只好KILL -9 XXXXX 掉它、

kill 掉后 oracle 在回滚它,以及它的索引。从下班的6:10 跑到7:40分 都没回滚完。都在db sequenct read file  ;

 

drop indexe .xxxxx;  马上停止了索引回滚!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:oracle 11g ora-00972Next article:oracle压力测试之orabm