Category: 

What Is an Autonomous Transaction?

Article Details
  • Written By: T.S. Adams
  • Edited By: M. C. Hughes
  • Last Modified Date: 26 August 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Roughly one-fifth of the world's stock of gold - worth over $200 billion USD - is stored under the streets of London.  more...

September 30 ,  1949 :  The Berlin Air Lift ended.  more...

An autonomous transaction is a type of transaction used in the Oracle® line of database software programs. In the simplest sense of the term, an autonomous transaction is a transaction which occurs and completes as part of another transaction. During autonomous transactions, the computer software pauses its processing of the original transaction, branching off to retrieve the information or complete the process required by the autonomous transaction. Once it has obtained a result for the autonomous transaction, it picks up exactly where it left off in processing the original transaction.

Autonomous transactions are typically used when a database operator wants to break a more complex transaction into its component parts. For example, if the database operator wants to produce of a list of all employees who make more than $60,000 US Dollars (USD) a year and then wishes to subdivide that list into only the employees under 30 years of age, using an autonomous transaction would allow the operator to split the request into two parts. First, the computer will being gathering a list of all employees who make $60,000 USD. In the midst of this operation, it will resolve the second part of the request to complete the autonomous transaction, selecting only those employees from the $60,000 USD or more list who are also under 30 years of age.

Ad

One major advantage to autonomous transactions is that they provide greater simplicity when calling database operations. In breaking things down into their component parts, it can become easier for a database operator to visualize each step in the process, easing the process of coding the actual request. A second advantage to autonomous transactions is that they can be nested within each other; a skilled database operator can program a transaction which calls an autonomous transaction where the autonomous transaction then calls any number of additional autonomous transactions. This drastically improves the flexibility of the Oracle database transaction software, allowing more complex transactions to be coded with ease.

Each transaction which occurs in the program is tracked by the software itself for auditing purposes. This allows individuals to review the transactions that have been requested from the database. Writing transactions in autonomous form can help to simplify the auditing procedure, as it is far easier to make sense of a number of sequential simple transactions than a single complex statement.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}