---
title: "oracle 回滚 不仅是回滚表中的数据 而且回滚表上的索引"
author: "winzenghua"
date: "2010-05-13T19:46:00Z"
tags: []
slug: "oracle"
draft: false
lastmod: "2010-05-13T19:46:00Z"
id: 987767
url: "https://java4gis.iteye.com/blog/987767"
---

有个场景 因为用户信息表采用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; 马上停止了索引回滚！