Print Thread
Autonomous Transactions
#713 07/26/00 01:32 AM
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 would like to use a data aware form and when calling post have it post autonomously.
For example: I add a patient to a database and while editing the patient I must add his insurance company and I do not want to use another session because of the overhead. On the post of the insurance company I want it committed to the database but not effect the current transaction and maintain data aware.
How do I start and end an autonomous transaction with TOracleDataSet calling post?

Re: Autonomous Transactions
#714 08/01/00 04:51 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
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.202s Queries: 14 (0.162s) Memory: 2.4962 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-04-27 05:52:46 UTC
Valid HTML 5 and Valid CSS