CONCURENCY CONTROL DISTRIBUTED DATABASE. M AIN TOPICS Transaction managements Centralized database Distributed database Consistency control Centralized.

Slides:



Advertisements
Presentasi serupa
Slide 3-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercises Apa saja komponen utama.
Advertisements

1 Algoritma Bahasa Pemrograman dan Bab 1.1. Pengertian Algoritma.
Presentasi Keamanan Basis Data “Transaction Management”
PENGONTROLAN KONKURENSI & RECOVERY
Lecture 5 Nonblocking I/O and Multiplexing Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Game Theory Purdianta, ST., MT..
GRADE/ SEMESTER : VII/ I
TRANSAKSI DAN PENGENDALIAN PERSAINGAN
Roesfiansjah Rasjidin Program Studi Teknik Industri Fakultas Teknik – Univ. Esa Unggul.
Pendahuluan Algoritma Pengolahan Paralel S1-TI Prepared by: MT Wilson.
1 DATA STRUCTURE “ STACK” SHINTA P STMIK MDP APRIL 2011.
BLACK BOX TESTING.
Presented By : Group 2. A solution of an equation in two variables of the form. Ax + By = C and Ax + By + C = 0 A and B are not both zero, is an ordered.
PERTEMUAN 8 Teknik recovery.
1 Diselesaikan Oleh KOMPUTER Langkah-langkah harus tersusun secara LOGIS dan Efisien agar dapat menyelesaikan tugas dengan benar dan efisien. ALGORITMA.
Manajemen Transaksi (1)
Transaksi Konsep Transaksi Status transaksi
Menulis Kolom  Kolom adalah opini atau artikel. Tidak seperti editorial, kolom memiliki byline.  Kolom Biasanya ditulis reguler. Biasanya mingguan atau.
TRANSACTION MANAGEMENT
Masalah Transportasi II (Transportation Problem II)
1 Pertemuan > Pengendalian Konkurensi Matakuliah: >/ > Tahun: > Versi: >
Verb Tense Tense denotes the time of the action indicated by a verb. The time is not always the same as that indicated by the name of the tense.
1 Pertemuan 5 Komunikasi antar Proses / Interprocess Communication (IPC) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS01.
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
1 Pertemuan 6 Komunikasi antar Proses (IPC) Lanjutan Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS01.
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
1 INTRODUCTION Pertemuan 1 s.d 2 Matakuliah: A0554/Analisa dan Perancangan Sistem Informasi Akuntansi Tahun: 2006.
Keuangan dan Akuntansi Proyek Modul 2: BASIC TOOLS CHRISTIONO UTOMO, Ph.D. Bidang Manajemen Proyek ITS 2011.
Suharmadi Sanjaya - Matematika ITS. BACKGROUND A Good course has a clear purpose: Applied Mathematics is alive and very vigorous Teaching of Apllied Mathematics.
Samples: Smart Goals ©2014 Colin G Smith
Serializabilitas Two Phase Locking
EIS (Executive Information Systems)
Manajemen Transaksi #5 D. SINAGA, M.KOM.
DISTRIBUSI BINOMIAL.
KOMUNIKASI DATA Materi Pertemuan 3.
Concurrency Control DBMS.
Database Management Systems Bab 9 Overview Manajemen Transaksi (Chap
TRANSACTION MANAGEMENT
LEARNING CYCLE Written by : Agung Purnomo Speaker by : Ust. Hannan.
LIMIT FUNGSI LIMIT FUNGSI ALJABAR.
Sistem Basis Data ABU SALAM, M.KOM.
Lecture 7 Thermodynamic Cycles
Kode Hamming.
COMPOUND NOMENCLATURE AND EQUATION OF REACTION
DISTRIBUSI BINOMIAL.
Pertemuan <<10>> Transaksi Manajemen
Software Engineering Rekayasa Perangkat Lunak
Introduction to Sociology
BILANGAN REAL BILANGAN BERPANGKAT.
Serializabilitas Two Phase Locking
Transaksi Konsep Transaksi Status transaksi
Gerund (the -ing form) For example: Kita tidak bisa makan tanpa minum
REAL NUMBERS EKSPONENT NUMBERS.
IMPLEMENTASI & TESTING E-BISNIS Pertemuan 10
EIS (Executive Information Systems)
Pertemuan <<8>> Pemulihan Kerusakan
ANDROID ACTIVITY.
ACCUMULATION PROBLEMS
Master data Management
Database User Account.
Pemulihan Basis Data D. Sinaga, M.Kom.
Manajemen Transaksi D. SINAGA, M.KOM.
Concurrency Control DBMS.
Customer Relationship Management
Algoritma & Pemrograman 1 Achmad Fitro The Power of PowerPoint – thepopp.com Chapter 3.
HughesNet was founded in 1971 and it is headquartered in Germantown, Maryland. It is a provider of satellite-based communications services. Hughesnet.
Website: Website Technologies.
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
HANDLING RUSH PRESIDENT UNIVERSITY NURLAELA RIZKINA.
Draw a picture that shows where the knife, fork, spoon, and napkin are placed in a table setting.
Transcript presentasi:

CONCURENCY CONTROL DISTRIBUTED DATABASE

M AIN TOPICS Transaction managements Centralized database Distributed database Consistency control Centralized database Distributed database

D ATABASE C ONSISTENCY Setiap data yang disimpan ke dalam database harus konsisten Dikatakan konsisten jika data yang dimasukkan ke dalam database, sesuai dengan kriteria Misal: SSN (social security number harus mempunyai nilai unik) Umur harus mempunyai nilai positif Employee harus bekerja pada satu departemen Saldo dalam rekening harus mempunyai nilai positif

T RANSACTION Transaksi merupakan kumpulan dari operasi yang dilakukan pada sebuah data Suatu transaksi harus mempunyai sifat ACID (Atomicity, Consistency, Isolation, Durability)

T RANSACTION ( CONT ’ D ) Suatu transaksi di dalam database yang utama adalah proses Read dan Write Setiap transaksi berisi sekumpulan operasi yang terurut Pada multi-user transaction processing terdapat banyak transaksi yang dijalankan dalam sekali waktu, dan bisa jadi operasi-operasi yang dilakukan saling tumpang tindih

ACID Atomicity – all of the operation of transaction are carried out or none of them are carried out. Consistency – property of transaction requires a transaction to be written correctly Isolation – property of transaction requires that transaction to be run out without interference from other transaction – can be achieve by locking or timestamping Durability – property of a transaction requires the value that the transaction commit to the database persistent.

T RANSACTION LIFE CYCLE

M ULTITRANSACTION PROCESSING SYSTEM Schedule Conflict Equivalence Serializable Schedule

S CHEDULING Schedule is a the total order of operations or set of transactions. Scheduling type Serial Schedule – the operations for each transaction do not overlap in time Parallel Schedule – the operations for each transaction do overlap in time

S ERIAL AND PARALLEL SCHEDULE

S ERIES TRANSACTION Two or more transactions running in series maintain the consistency of database

C ONFLICTS Conflicts occurs when two running transactions perform noncompatible operations on the same data item of the database

C ONFLICTS ( CONT ’ D ) Each of that schedule produce some anomalies Unrepeatable read anomaly (in-S1) Reading uncommitted data / dirty read anomaly (in S2) Overwriting uncommitted data anomaly (in S2)

E QUIVALENCE The problems Concurrent transactions can cause anomaly – the anomaly can destroy consistency of database Solution Run all transaction in series Run transaction concurrently Goal Preserve the consistency of database If the 2nd solution can achieve the goal – Equivalence

E QUIVALENCE TRANSACTION Example:

S ERIALIZABLE S CHEDULE A schedule is said to be serializable if it equivalent to serrial schedule The check for serial schedule equivalence - serializability. The T1 transaction (R1, W1) must be committed, before T2 transaction (R2, W2) being executed

S ERIALIZABLE EXAMPLE