Overview of Autonomous Transactions (150)
Autonomous transactions are independent transactions that can be called from within
another transaction. An autonomous transaction lets you leave the context of the
calling transaction, perform some SQL operations, commit or undo those operations,
and then return to the calling transaction’s context and continue with that transaction.
Once invoked, an autonomous transaction is totally independent of the main
transaction that called it. It does not see any of the uncommitted changes made by the
main transaction and does not share any locks or resources with the main transaction.
Changes made by an autonomous transaction become visible to other transactions
upon commit of the autonomous transactions.
One autonomous transaction can call another. There are no limits, other than resource
limits, on how many levels of autonomous transactions can be called.
Deadlocks are possible between an autonomous transaction and its calling transaction.
Oracle detects such deadlocks and returns an error. The application developer is
responsible for avoiding deadlock situations.
Autonomous transactions are useful for implementing actions that need to be
performed independently, regardless of whether the calling transaction commits or
rolls back, such as transaction logging and retry counters.
自治事務塊
1. 自治事務塊獨立與呼叫他的主事務
2. 自治事務可以再呼叫其他自治事務 , 除了資源上的限制 ,自治事務呼叫的巢狀層次沒有限制.
3. 自治事務適合於獨立的操作(不管呼叫事務是否提交或回滾) , 如 : 事務日誌 ,及重試計數.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-980974/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAVIOR Securing Autonomous Vehicles with Robust Physical Invariants
- Flutter OverviewFlutterView
- Replication (Part 2): Transactions, Consistency and Consensus
- Overview of Availability in a CDBViewAI
- dart class overviewDartView
- [英] TensorFlow OverviewView
- jmeter監聽器(Transactions per Second)JMeter
- Oracle 19c Concepts(10):TransactionsOracle
- AUTONOMOUS TRANSACTION(自治事務)的介紹(轉)
- 高通USB overviewView
- 7-Overview-namesView
- 8-Overview-NamespacesViewnamespace
- 10-Overview-AnnotationsView
- 2.4 Overview of Services in a CDBView
- Spring Cloud: Overview 概述SpringCloudView
- DeepLearning – Overview of Sequence modelView
- In-depth analysis of the comparison between AT and XA of distributed transactions
- Laravel 之巢狀事務 transactions 實現Laravel巢狀
- 【Machine Teaching】An Overview of Machine TeachingMacView
- 9-Overview-Labels and SelectorsView
- 11-Overview-Field SelectorsView
- 12-Overview-Recommended LabelsView
- Overview-(概述 What is Kubernetes)View
- 4-Overview-Kubernetes APIViewAPI
- 2.6.2 Overview of Flashback PDB in a CDBView
- 2.2.7 Overview of PDB Lockdown ProfilesView
- 2.2.6 Overview of Common Audit ConfigurationsView
- An Overview of PostgreSQL & MySQL Cross ReplicationViewMySqlROS
- 徵稿| CVPR 2024 Workshop |第一屆 Virtual Humans for Robotics and Autonomous Driving
- 認識 MongoDB 4.0 的新特性——事務(Transactions)MongoDB
- db2批次處理doubt transactionsDB2
- 5-Overview-Understanding Kubernetes ObjectsViewObject
- 6-Overview-Kubernetes Object ManagementViewObject
- 1-Overview-(概述 What is Kubernetes)View
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- 2.5 Overview of Tablespaces and Database Files in a CDBViewDatabase
- 2.2.5 Overview of Common and Local Objects in a CDBViewObject
- 2.2.4 Overview of Privilege and Role Grants in a CDBView
- 2.2.2 Overview of Common and Local Users in a CDBView