Wrap an Oracle schema update in a transaction

前端 未结 1 1723
自闭症患者
自闭症患者 2021-01-13 22:02

I\'ve got a program that periodically updates its database schema. Sometimes, one of the DDL statements might fail and if it does, I want to roll back all the changes. I w

1条回答
  •  一整个雨季
    2021-01-13 22:47

    You can not turn this off. Fairly easy to work around by designing your scripts to drop tables in the event they already exist etc...

    You can look at using FLASHBACK database, I believe you can do this at the schema/object level but check the docs to confirm that. You would need to be on 10G for that to work.

    0 讨论(0)
提交回复
热议问题