SlideShare a Scribd company logo
1 of 11
Mahmudun Nabi
CSE 4507
PL/SQL
Transactions
Mahmudun Nabi
Outline
 Transaction Definition
 Transaction Boundaries
 Committing a transaction
 Rolling Back transaction
 Transaction Control
 Savepoint
 An Example
Mahmudun Nabi
Transactions
• Transaction is a series of one or more SQL statements that are logically
related or a series of operations performed on Oracle table data.
• Transactions are a means to break programming code into manageable
units.
• A successfully executed SQL statement and a committed transaction are
not same. Even if an SQL statement is executed successfully, unless the
transaction containing the statement is committed, it can be rolled back
and all changes made by the statement(s) can be undone.
April 19, 2017
Mahmudun Nabi
Transaction Boundaries
 A transaction has a beginning and an end.
 A transaction begins when one of the following events take
place:
– When the first SQL statement is executed after connecting to the
database.
– At each new SQL statement issued after a transaction is completed.
April 19, 2017
Mahmudun Nabi
Transaction Boundaries (Cont..)
• A transaction ends when one of the following events take
place:
– A COMMIT or a ROLLBACK statement is issued.
• COMMIT makes events within a transaction permanent.
• ROLLBACK erases events within a transaction.
– A DDL statement, like CREATE TABLE statement, is issued; because in
that case a COMMIT is automatically performed.
– The user exits SQL*Plus.
– The system crashes.
April 19, 2017
Mahmudun Nabi
Committing a Transaction
• A transaction is made permanent by issuing the SQL
command COMMIT.
• The general syntax for the COMMIT command is:
Commit;
• When a COMMIT statement is issued to the database, the
following results are true:
– All work done by the transaction becomes permanent.
– Other users can see changes in data made by the transaction.
– Any locks acquired by the transaction are released.
April 19, 2017
Mahmudun Nabi
Example of Commit
April 19, 2017
Mahmudun Nabi
Rolling Back Transactions
• Changes made to the database without COMMIT could be undone using the
ROLLBACK command.
• The general syntax for the ROLLBACK command is:
ROLLBACK [TO SAVEPOINT < savepoint_name>];
• If you are not using savepoint, then simply use the following statement to
rollback all the changes:
ROLLBACK;
• When a ROLLBACK statement is issued to the database, the following results
are true:
– All work done by the transaction is undone.
– Any locks acquired by the transaction are released.
April 19, 2017
Mahmudun Nabi
Advantages of COMMIT and ROLLBACK
• With COMMIT and ROLLBACK statements, you can:
– Ensure data consistency
– Preview data changes before making changes permanent
– Group logically related operations
April 19, 2017
Mahmudun Nabi
Transaction Control
• Savepoints:
– Savepoints are sort of markers that help in splitting a long transaction
into smaller units by setting some checkpoints.
– By setting savepoints within a long transaction, you can roll back to a
checkpoint if required.
– This is done by issuing the SAVEPOINT command.
 The general syntax for the SAVEPOINT command is:
SAVEPOINT < savepoint_name >;
April 19, 2017
Mahmudun Nabi
Example of Rollback and Savepoint
Here, ROLLBACK TO sav1; statement rolls back the changes up to the point, where
you had marked savepoint sav1 and after that new changes will start.
April 19, 2017

More Related Content

What's hot

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 
Database queries
Database queriesDatabase queries
Database queriesIIUM
 
Database Programming
Database ProgrammingDatabase Programming
Database ProgrammingHenry Osborne
 
Concurrency Control Techniques
Concurrency Control TechniquesConcurrency Control Techniques
Concurrency Control TechniquesRaj vardhan
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESVENNILAV6
 
Synchronization.37
Synchronization.37Synchronization.37
Synchronization.37myrajendra
 
Concurrency control
Concurrency controlConcurrency control
Concurrency controlvarsha singh
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#Prasanna Kumar SM
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLEVraj Patel
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMSkoolkampus
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management SystemJanki Shah
 
Transaction slide
Transaction slideTransaction slide
Transaction slideshawon roy
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsBHARATH KUMAR
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-SystemsVenkata Sreeram
 
Transaction management in DBMS
Transaction management in DBMSTransaction management in DBMS
Transaction management in DBMSMegha Sharma
 

What's hot (20)

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Trigger
TriggerTrigger
Trigger
 
Database queries
Database queriesDatabase queries
Database queries
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
 
SQL - RDBMS Concepts
SQL - RDBMS ConceptsSQL - RDBMS Concepts
SQL - RDBMS Concepts
 
Concurrency Control Techniques
Concurrency Control TechniquesConcurrency Control Techniques
Concurrency Control Techniques
 
STRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIESSTRUCTURE OF SQL QUERIES
STRUCTURE OF SQL QUERIES
 
Synchronization.37
Synchronization.37Synchronization.37
Synchronization.37
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMS
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Transaction slide
Transaction slideTransaction slide
Transaction slide
 
DBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL CommandsDBMS languages/ Types of SQL Commands
DBMS languages/ Types of SQL Commands
 
trigger dbms
trigger dbmstrigger dbms
trigger dbms
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Transaction management in DBMS
Transaction management in DBMSTransaction management in DBMS
Transaction management in DBMS
 

Similar to Transaction

Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryKunal Anand
 
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfLecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfbadboy624277
 
WF_in_retail_banking_enterprise_systems
WF_in_retail_banking_enterprise_systemsWF_in_retail_banking_enterprise_systems
WF_in_retail_banking_enterprise_systemsOleh Zheleznyak
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Propertiesnomanbarki
 
Empowering Enterprise Planning Solutions with Calculation Manager
Empowering Enterprise Planning Solutions with Calculation ManagerEmpowering Enterprise Planning Solutions with Calculation Manager
Empowering Enterprise Planning Solutions with Calculation ManagerAlithya
 
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDay
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDayEmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDay
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDayVatsal Gaonkar
 
Introduction to transaction management
Introduction to transaction managementIntroduction to transaction management
Introduction to transaction managementDr. C.V. Suresh Babu
 
Module 3: NETCONF and YANG Concepts
Module 3: NETCONF and YANG ConceptsModule 3: NETCONF and YANG Concepts
Module 3: NETCONF and YANG ConceptsTail-f Systems
 
1_Transaction.pdf
1_Transaction.pdf1_Transaction.pdf
1_Transaction.pdfNhtHong96
 
Azure Business rules v0.3
Azure Business rules v0.3Azure Business rules v0.3
Azure Business rules v0.3Luca Mauri
 
Concurrent transactions
Concurrent transactionsConcurrent transactions
Concurrent transactionsSajan Sahu
 
IMS04 BMC Software Strategy and Roadmap
IMS04   BMC Software Strategy and RoadmapIMS04   BMC Software Strategy and Roadmap
IMS04 BMC Software Strategy and RoadmapRobert Hain
 
Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on TransactionRahul Prajapati
 
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...Neo4j
 
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERYTRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERYRohit Kumar
 
Getting the Most out of EPM: Insight and Considerations related to upgrading ...
Getting the Most out of EPM: Insight and Considerations related to upgrading ...Getting the Most out of EPM: Insight and Considerations related to upgrading ...
Getting the Most out of EPM: Insight and Considerations related to upgrading ...finitsolutions
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsTuyen Vuong
 

Similar to Transaction (20)

Chapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error RecoveryChapter-10 Transaction Processing and Error Recovery
Chapter-10 Transaction Processing and Error Recovery
 
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdfLecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
Lecture1414_20592_Lecture1419_Transactions.ppt (2).pdf
 
Transation.....thanveeer
Transation.....thanveeerTransation.....thanveeer
Transation.....thanveeer
 
WF_in_retail_banking_enterprise_systems
WF_in_retail_banking_enterprise_systemsWF_in_retail_banking_enterprise_systems
WF_in_retail_banking_enterprise_systems
 
Trancastion
TrancastionTrancastion
Trancastion
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Properties
 
Empowering Enterprise Planning Solutions with Calculation Manager
Empowering Enterprise Planning Solutions with Calculation ManagerEmpowering Enterprise Planning Solutions with Calculation Manager
Empowering Enterprise Planning Solutions with Calculation Manager
 
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDay
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDayEmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDay
EmpoweringEnterprisePlanning_CalculationManager_2015HUGMNTechDay
 
Introduction to transaction management
Introduction to transaction managementIntroduction to transaction management
Introduction to transaction management
 
Module 3: NETCONF and YANG Concepts
Module 3: NETCONF and YANG ConceptsModule 3: NETCONF and YANG Concepts
Module 3: NETCONF and YANG Concepts
 
1_Transaction.pdf
1_Transaction.pdf1_Transaction.pdf
1_Transaction.pdf
 
Azure Business rules v0.3
Azure Business rules v0.3Azure Business rules v0.3
Azure Business rules v0.3
 
Concurrent transactions
Concurrent transactionsConcurrent transactions
Concurrent transactions
 
IMS04 BMC Software Strategy and Roadmap
IMS04   BMC Software Strategy and RoadmapIMS04   BMC Software Strategy and Roadmap
IMS04 BMC Software Strategy and Roadmap
 
Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on Transaction
 
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...
011 Neo4j Ops Manager Intro and Roadmap - NODES2022 AMERICAS Advanced 3 - Chr...
 
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERYTRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
 
Transaction processing
Transaction processingTransaction processing
Transaction processing
 
Getting the Most out of EPM: Insight and Considerations related to upgrading ...
Getting the Most out of EPM: Insight and Considerations related to upgrading ...Getting the Most out of EPM: Insight and Considerations related to upgrading ...
Getting the Most out of EPM: Insight and Considerations related to upgrading ...
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and Concepts
 

More from Amin Omi

Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : MemoryAmin Omi
 
Pipelining
PipeliningPipelining
PipeliningAmin Omi
 
Sad lecture 1
Sad lecture 1Sad lecture 1
Sad lecture 1Amin Omi
 
Sad lecture 2
Sad lecture 2Sad lecture 2
Sad lecture 2Amin Omi
 
Sad lecture 3
Sad lecture 3Sad lecture 3
Sad lecture 3Amin Omi
 
Sad lecture 4
Sad lecture 4Sad lecture 4
Sad lecture 4Amin Omi
 
Sad lecture 5
Sad lecture 5Sad lecture 5
Sad lecture 5Amin Omi
 
Chapter 05
Chapter 05Chapter 05
Chapter 05Amin Omi
 
Normalization
NormalizationNormalization
NormalizationAmin Omi
 
Transport Layer
Transport LayerTransport Layer
Transport LayerAmin Omi
 
Basic health tips
Basic health tipsBasic health tips
Basic health tipsAmin Omi
 
Style of living
Style of livingStyle of living
Style of livingAmin Omi
 
0/1 knapsack
0/1 knapsack0/1 knapsack
0/1 knapsackAmin Omi
 
Basic SQL Command
Basic SQL CommandBasic SQL Command
Basic SQL CommandAmin Omi
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link LayerAmin Omi
 
Chapter 2 : Application Layer
Chapter 2 : Application LayerChapter 2 : Application Layer
Chapter 2 : Application LayerAmin Omi
 

More from Amin Omi (20)

Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : Memory
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Pipelining
PipeliningPipelining
Pipelining
 
Sad lecture 1
Sad lecture 1Sad lecture 1
Sad lecture 1
 
Sad lecture 2
Sad lecture 2Sad lecture 2
Sad lecture 2
 
Sad lecture 3
Sad lecture 3Sad lecture 3
Sad lecture 3
 
Sad lecture 4
Sad lecture 4Sad lecture 4
Sad lecture 4
 
Sad lecture 5
Sad lecture 5Sad lecture 5
Sad lecture 5
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Chapter04
Chapter04Chapter04
Chapter04
 
Chapter02
Chapter02Chapter02
Chapter02
 
Chapter01
Chapter01Chapter01
Chapter01
 
Normalization
NormalizationNormalization
Normalization
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Basic health tips
Basic health tipsBasic health tips
Basic health tips
 
Style of living
Style of livingStyle of living
Style of living
 
0/1 knapsack
0/1 knapsack0/1 knapsack
0/1 knapsack
 
Basic SQL Command
Basic SQL CommandBasic SQL Command
Basic SQL Command
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link Layer
 
Chapter 2 : Application Layer
Chapter 2 : Application LayerChapter 2 : Application Layer
Chapter 2 : Application Layer
 

Recently uploaded

Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 

Transaction

  • 2. Mahmudun Nabi Outline  Transaction Definition  Transaction Boundaries  Committing a transaction  Rolling Back transaction  Transaction Control  Savepoint  An Example
  • 3. Mahmudun Nabi Transactions • Transaction is a series of one or more SQL statements that are logically related or a series of operations performed on Oracle table data. • Transactions are a means to break programming code into manageable units. • A successfully executed SQL statement and a committed transaction are not same. Even if an SQL statement is executed successfully, unless the transaction containing the statement is committed, it can be rolled back and all changes made by the statement(s) can be undone. April 19, 2017
  • 4. Mahmudun Nabi Transaction Boundaries  A transaction has a beginning and an end.  A transaction begins when one of the following events take place: – When the first SQL statement is executed after connecting to the database. – At each new SQL statement issued after a transaction is completed. April 19, 2017
  • 5. Mahmudun Nabi Transaction Boundaries (Cont..) • A transaction ends when one of the following events take place: – A COMMIT or a ROLLBACK statement is issued. • COMMIT makes events within a transaction permanent. • ROLLBACK erases events within a transaction. – A DDL statement, like CREATE TABLE statement, is issued; because in that case a COMMIT is automatically performed. – The user exits SQL*Plus. – The system crashes. April 19, 2017
  • 6. Mahmudun Nabi Committing a Transaction • A transaction is made permanent by issuing the SQL command COMMIT. • The general syntax for the COMMIT command is: Commit; • When a COMMIT statement is issued to the database, the following results are true: – All work done by the transaction becomes permanent. – Other users can see changes in data made by the transaction. – Any locks acquired by the transaction are released. April 19, 2017
  • 7. Mahmudun Nabi Example of Commit April 19, 2017
  • 8. Mahmudun Nabi Rolling Back Transactions • Changes made to the database without COMMIT could be undone using the ROLLBACK command. • The general syntax for the ROLLBACK command is: ROLLBACK [TO SAVEPOINT < savepoint_name>]; • If you are not using savepoint, then simply use the following statement to rollback all the changes: ROLLBACK; • When a ROLLBACK statement is issued to the database, the following results are true: – All work done by the transaction is undone. – Any locks acquired by the transaction are released. April 19, 2017
  • 9. Mahmudun Nabi Advantages of COMMIT and ROLLBACK • With COMMIT and ROLLBACK statements, you can: – Ensure data consistency – Preview data changes before making changes permanent – Group logically related operations April 19, 2017
  • 10. Mahmudun Nabi Transaction Control • Savepoints: – Savepoints are sort of markers that help in splitting a long transaction into smaller units by setting some checkpoints. – By setting savepoints within a long transaction, you can roll back to a checkpoint if required. – This is done by issuing the SAVEPOINT command.  The general syntax for the SAVEPOINT command is: SAVEPOINT < savepoint_name >; April 19, 2017
  • 11. Mahmudun Nabi Example of Rollback and Savepoint Here, ROLLBACK TO sav1; statement rolls back the changes up to the point, where you had marked savepoint sav1 and after that new changes will start. April 19, 2017