I understand that a savepoint in Oracle SQL identifies a point in a transaction to which you can later rollback.
So technically if I create a savepoint now and performs 100 manipulations on the DB, I can rollback to before those 100 manipulations.
But what if now I don't want to track my changes and delete the savepoint?
thanks
As commented by a_horse_with_no_name, there is no syntax in Oracle to delete a savepoint.
When you COMMIT or a ROLLBACK the transaction, the savepoints are automatically deleted.
From the Oracle docs on Transaction Control :
The
COMMITstatement ends the current transaction and makes all changes performed in the transaction permanent.COMMITalso erases all savepoints in the transaction and releases transaction locks.The
ROLLBACKstatement reverses the work done in the current transaction; it causes all data changes since the lastCOMMITorROLLBACKto be discarded.
You may also want to modify your code to not create savepoints.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With