A ROLLBACK ends the current transaction by undoing its uncommitted changes. Oracle Database implicitly commits before and after DDL statements. TRUNCATE is DDL, so when it is issued while a transaction is pending, the pending transaction is implicitly committed. A DELETE statement and execution of a PL/SQL anonymous block do not, by themselves, end a transaction.
Community Discussion