Have Oracle automatically roll back abandoned sessions?

后端 未结 3 1079
旧巷少年郎
旧巷少年郎 2021-01-24 17:57

Is there any way to guarantee that an application won\'t fail to release row locks in Oracle? If I make sure to put commit statements in finally blocks, that handles the case of

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-24 18:36

    COMMIT inside finally is probably the last thing you should do since you should (almost) never commit anything that threw an exception.

提交回复
热议问题