Programming and Coding
Autonomous Transaction in Oracle
You cannot apply this pragma to an entire package, but you can apply it to each subprogram in a package.
Unlike an ordinary trigger, an autonomous trigger can contain transaction control statements, such as COMMIT and ROLLBACK, and can issue DDL statements (such as CREATE and DROP) through the EXECUTE IMMEDIATE statement.
If you try to exit an active autonomous transaction without committing or rolling back, the database raises an exception. If the exception goes unhandled, or if the transaction ends because of some other unhandled exception, the transaction is rolled back.
© 2020 Digcode.com. All rights reserved.