SQL-4 2 PDF
SQL-4 2 PDF
SQL-4 2 PDF
PL/SQL
3-4
Using Transaction Control Statements
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 3
Using Transaction Control Statements
Purpose
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 4
Using Transaction Control Statements
Database Transaction
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 5
Using Transaction Control Statements
Example of a Transaction
Transaction
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 6
Using Transaction Control Statements
Example of a Transaction
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 7
Using Transaction Control Statements
Example of a Transaction
Record the
transaction in the
If OK, then
transaction journal.
COMMIT!
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 8
Using Transaction Control Statements
Example of a Transaction
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 9
Using Transaction Control Statements
Transaction Control Statements
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 10
Using Transaction Control Statements
COMMIT
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 12
Using Transaction Control Statements
SAVEPOINT
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 13
Using Transaction Control Statements
Terminology
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 14
Using Transaction Control Statements
Summary
PLSQL S3L4 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. 15
Using Transaction Control Statements