Session – 19 INTEGRATY AND SECURITY INTEGRITY Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:

Slides:



Advertisements
Similar presentations
Data Definition and Integrity Constraints
Advertisements

Chapter 10: Designing Databases
MSc IT UFCE8K-15-M Data Management Prakash Chatterjee Room 2Q18
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Databases Revision.
Session - 21 DISTRIBUTED DATABASE DESIGN AND ADMINISTRATION DISTRIBUTED DATABASE DESIGN Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Session - 22 DISTRIBUTED DATABASE DESIGN AND ADMINISTRATION DISTRIBUTED DATABASE ADMINISTRATION Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Session – 5 DISTRIBUTED DATABASE ARCHITECTURE Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Session - 20 INTEGRATY AND SECURITY SECURITY Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Thomas Connolly and Carolyn Begg’s
Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Transforming Data Models into Database Designs
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Chapter 3 Relational Model Chapter 4 in Textbook.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapters 17 & 18 Physical Database Design Methodology.
Database Management System Lecture 6 The Relational Database Model – Keys, Integrity Rules.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Module 3: The Relational Model.  Overview Terminology Relational Data Structure Mathematical Relations Database Relations Relational Keys Relational.
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
DBMS Spring 2014 Database Integrity Sources: Security in Computing, Pfleeger and Pfleeger, Prentice Hall, 2003 Lecture Slides, CSE6243, MSU, Rayford B.
Data Integrity An empty database is a correct database.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
Principles of Database Design, Conclusions AIMS 2710 R. Nakatsu.
The Relational Model Pertemuan 03 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Relational Database. Database Management System (DBMS)
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved CHAPTER 6 DATABASES AND DATA WAREHOUSES CHAPTER 6 DATABASES AND DATA WAREHOUSES.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
Session – 11 CONCURRENCY CONTROL USER ACCESS CONTROL Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
Session – 12 CONCURRENCY CONTROL USER ACCESS CONTROL Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Logical Database Design and Relation Data Model Muhammad Nasir
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Chapter 4 The Relational Model Pearson Education © 2009.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
In this session, you will learn to: Manage databases Manage tables Objectives.
Getting started with Accurately Storing Data
Session – 4 DISTRIBUTED DATABASE AND COMPUTER NETWORK
Database Systems Instructor Name: Lecture-12.
Chapter 3 The Relational Model.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Chapter 4 The Relational Model Pearson Education © 2009.
Designs for Data Integrity, validations, security and controls
Chapter 4 The Relational Model Pearson Education © 2009.
INSTRUCTOR: MRS T.G. ZHOU
Chapter 3 The Relational Model
Presentation transcript:

Session – 19 INTEGRATY AND SECURITY INTEGRITY Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:

OBJECTIVE Integrity constraint Integrity in centralized database Integrity in distributed database

Integrity Integrity of a DB is concerned with consistency, correctness, validity and accuracy that stated by the rules of organizational model These rules called integrity constraints

Integrity in Centralized Database Basic integrity constraint Relation Domain Referential Explicit

Relation Constraint The method used to define relations. Example : CREATE TABLE PATIENT (patient# integer NOT NULL, name varchar (20) NOT NULL, DOB date, address varchar(50), sex varchar(1) ) Primary key patient# Primary key must always define with NOT NULL to guarantee the uniqueness property and no two patient will have the same patient#

DOMAIN Constraint Example : CREATE DOMAIN patient#integer patient# > 0 and patient# < 10000, It can be specified : patient# is integer in range 1 to 9999

Referential Integrity Example : PATIENT (patient#, name, DOB, address, sex) LABREQ (patient#, test-type, date, docter-req) Laboratory request can be request by patient only Patient# in LABREQ as a foreign key must have match in PATIENT table.

Integrity in distributed database Problem issue around integrity in DDB Inconsistencies between local integrity constraint Difficulties in specifying global integrity constraint Inconsistencies between local and global constraint

Local Integrity Constraint Specified and enforced by the local DBMS and nodal autonomy Different rules could apply at different nodes. So it will make confusion for global user

Global Integrity Constraint Global constraint is necessary to maintain integrity of a large organizational with several semi-autonomous department, each running its own DBMS and managing its own DB employee Global integrity constraint can be stored in the global schema catalogue and apply at the global level to global transactions

Inconsistencies between local and global constraint If both local and global constraint are permit, there must be a way of resolving inconsistencies between them If there’s a strong global control, then it’s likely global constraint will have priority If the DB just participating in a loose federation with no global control, then local integrity will dominate