Print Thread
Autonoumous Transactions
#523 05/11/00 09:34 PM
Joined: Mar 2000
Posts: 13
Reisterstown, MD, USA
I
igon Offline OP
Member
OP Offline
Member
I
Joined: Mar 2000
Posts: 13
Reisterstown, MD, USA
I am in a transaction and need to do an autonomous transaction within that transaction. For example: The program is adding a client. While adding the client one may need to add an insurance company from that screen but if the client screen is canceled I still want the insurance company information saved. How would I accomplish this with the doa components.

Re: Autonoumous Transactions
#524 05/12/00 05:28 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
There are several alternatives for this. If you are using Oracle8i, you can use the autonomous_transaction pragma in a PL/SQL block or PL/SQL stored program unit to add the insurance company. If you are not using Oracle8i, you can either use a secondary session to add the insurance company, or you can arrange it so that the insurance company transaction is finished before the client transaction starts.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.031s Queries: 12 (0.010s) Memory: 2.4985 MB (Peak: 3.0423 MB) Data Comp: Off Server Time: 2024-05-20 00:53:29 UTC
Valid HTML 5 and Valid CSS