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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於oracle autonomous transactionOracle
- Transactions and beyond it..
- SESSIONS, PROCESSES, TRANSACTIONSSession
- Autonomous PL/SQL Blocks (151)SQLBloC
- Commit Transactions (143)MIT
- Oracle自治事務autonomous_transaction用法Oracle
- oracle自治事務(PRAGMA AUTONOMOUS_TRANSACTION)Oracle
- Oracle中的自治事務(Autonomous Transaction)Oracle
- Flutter OverviewFlutterView
- Shipping Transactions Date 相關
- SAVIOR Securing Autonomous Vehicles with Robust Physical Invariants
- dart class overviewDartView
- Stormstarter-OverviewORMView
- Overview of PartitioningView
- Overview of Database CheckpointsViewDatabase
- Overview of Unix ResourcesView
- oracle function overviewOracleFunctionView
- Item Import OverviewImportView
- Overview of Extents(11)View
- Overview of Partitioned IndexesViewIndex
- Overview of Tablespaces (38)View
- Overview of Views (174)View
- Overview of Datafiles (62)View
- Overview of Segments (22)View
- 高通USB overviewView
- Fragment Transactions和Activity狀態丟失Fragment
- MySQL 5.5 -- Metadata Locking Within TransactionsMySql
- Overview of Availability in a CDBViewAI
- 2.4 Overview of Services in a CDBView
- 7-Overview-namesView
- 8-Overview-NamespacesViewnamespace
- 10-Overview-AnnotationsView
- [英] TensorFlow OverviewView
- Deadlock Overview and DiscussionView
- Overview of Data Blocks(二)ViewBloC
- Overview of Clusters (238)View
- Overview of Tables (154)View
- Overview of Dimensions (191)View