Randomly getting ORA-08177 with only one active session

后端 未结 2 824
野性不改
野性不改 2021-01-07 18:20

I\'m running a program that creates a table and then inserts some data.
This is the only program that accesses the database.
I\'m getting ORA-08177 randomly.
Act

2条回答
  •  梦谈多话
    2021-01-07 19:02

    In comments user Gary posted a link to thread that explains this strange behavior. Shortly, sometimes during index restructurization undo data becomes unavailable. Any transaction that runs at serializable isolation level and requests the data that is somehow related with this index will get ORA-08177. This is a half-bug half-feature of Oracle. ROWDEPENDENCIES reduces the chance of getting this error. For my application I've simply switched to ReadCommited level for large data uploads. It seems that there is no other way to escape this problem completely.

    Thanks, Gary, I've upvoted your answer to other question.

提交回复
热议问题