ics321-20091110-transaction2

ics321-20091110-transaction2 - ICS 321 Fall 2009 Overview...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
ICS 321 Fall 2009 Overview of Transaction Management (ii) Asst. Prof. Lipyeow Lim University of Hawaii at Manoa 11/10/2009 1 Lipyeow Lim -- University of Hawaii at Manoa
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Transactions in SQL After connection to a database, a transaction is automatically started Different connections -> different transactions Within a connection, a transaction is ended by COMMIT or COMMIT WORK ROLLBACK (= “abort”) SAVEPOINT <savepoint name> ROLLBACK TO SAVEPOINT <savepoint name> Locks obtained after savepoint can be released after rollback to that savepoint Using savepoints vs sequence of transactions Transaction rollback is to last transaction only 11/10/2009 Lipyeow Lim -- University of Hawaii at Manoa 2
Background image of page 2
What should the DBMS lock ? Row ? Page ? A Table ? 11/10/2009 Lipyeow Lim -- University of Hawaii at Manoa 3 UPDATE Sailors SET rating=0 WHERE rating>9 UPDATE Boats SET
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/15/2010 for the course ICS 321 taught by Professor Lim during the Fall '09 term at University of Hawaii, Manoa.

Page1 / 8

ics321-20091110-transaction2 - ICS 321 Fall 2009 Overview...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online