How to stop oracle undo process?

前端 未结 3 1542
终归单人心
终归单人心 2021-01-19 09:32

I want to know how to stop undo process of oracle ? I tried to delete millions of rows of a big table and in the middle of process I killed session but It started to undo de

3条回答
  •  误落风尘
    2021-01-19 09:51

    You can't stop the process of rolling back the transaction because doing so would leave the database in an inconsistent state.

    When you are executing a long-running delete process, Oracle will likely be writing the changed blocks to your data files before you decide whether to commit or rollback the transaction. If you interrupted the process in the middle of executing the transaction, there will be some changed blocks on disk, some changed blocks in memory, and some unchanged blocks. Rolling back the transaction is the only way to return the database to the state it was in before you started executing the DELETE statement.

提交回复
热议问题