Database Features Lecture 2. Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Management Information Systems, Sixth Edition
Relational Databases Chapter 4.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
ETEC 100 Information Technology
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
Chapter 3 Database Management
Introduction to Databases Transparencies
Introduction to Database Management System
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Week 2 Lecture 2 Structure of a database. External Schema Conceptual Schema Internal Schema Physical Schema.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
IST Databases and DBMSs Todd S. Bacastow January 2005.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Database Design - Lecture 1
Introduction. 
Chapter 2 CIS Sungchul Hong
 Definition  Components  Advantages  Limitations Contents  DBMS DBMS  Functions Functions  Architecture Architecture.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Introduction: Databases and Database Users
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Database Organization and Design
Introduction to CO22001 Chapter 1.2 (First Lecture) V3.0 Napier University Dr Gordon Russell.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
 Three-Schema Architecture Three-Schema Architecture  Internal Level Internal Level  Conceptual Level Conceptual Level  External Level External Level.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Data resource management
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Database Environment Session 2 Course Name: Database System Year : 2013.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
1 Chapter 1 Introduction to Databases Transparencies.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Dr Gordon Russell, Napier University Unit Introduction 1 Introduction to CO22001 Unit 1.1.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security Privacy.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Introduction to DBMS Purpose of Database Systems View of Data
Outline Types of Databases and Database Applications Basic Definitions
Database Management:.
Information Systems Today: Managing in the Digital World
Chapter 4 Relational Databases
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Data Base System Lecture : Database Environment
Fundamentals of Databases CSU 07203
Database Systems Instructor Name: Lecture-3.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 2 Database Environment Pearson Education © 2014.
Introduction to CO22001 Chapter 1.2 (First Lecture) V3.0
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Database Features Lecture 2

Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security Privacy

Integrity Valid and consistent stored data –If there is a rule that a schoolchild should be between 4 and 18 years old, is the rule: 4<age<18 or 4<=age<18 or 4<=age<=18 or 4<age<=18? –By keeping the rule with the data definition, this ensures integrity.

Referential integrity Data has referential integrity if it is valid in its own right and valid in relation to another occurrence. E.g. a student is not a student unless he/she is studying a course The course listed against the student must exist. –Master : detail relationship –Implemented through Foreign Keys.

Data independence This is where the data is independent of the program that uses it: –E.g. Select stock_code from stock; –This will work, regardless of the definition of the table stock, unless You have no access to the table stock There is no column ‘stock_code’ in the table stock –This allows us to change the front layers of software without changing the tables The tables without changing the front layers (some recompilation may be required)

Controlled redundancy –Redundant data causes problems E.g. staff details – addresses and phone numbers, If recorded separately for payroll and human resources, then when one is changed, the other is not. Bank accounts and credit card accounts. –NO redundancy causes problems One server goes down, there is no other server In order to retrieve information, a traversal of three tables is required – inefficient.

Security From theft and fraud Loss of confidentiality DBMS controls: –Granting of different privileges to different users You will have SELECT access to the tables in the BUILDER schema. You have owner access to your own Schema and to your team schema. You may grant and revoke access to your tables to others in your class. –Backup and Recovery –Journalling –Commit and Rollback –Encryption

Privacy Can be maintained through: –Use of views E.g. although the staff table shows full details of –Salary –Direct payments to family members –Loan repayments, etc. The person in charge of the staff roster only sees: Name, rank, qualifications, free slots (probably a different table)

Database definition a computerised record-keeping system used by a range of users who have different requirements –minimal enquiries –in-depth updating –restructuring A well-implemented database will have data integrity, data independence, controlled redundancy, security and privacy, for all users.

Uses of a Database Generally used for on-line transaction processing (OLTP) Data Warehouses are a hybrid of databases which are used for On-line analytical processing (OLAP)

File systems Predecessors of Database Systems File types: –Sequential or serial Suitable for use on a serial medium – e.g. a tape. Access is determined by the ‘position’ of the reader on the serial file or tape. No sharing. –Indexed sequential Closest in form to relational databases Can be used to implement relational databases, but all of the DBMS features must be programmed in. –Relative Based on the offset of the record from the start of the file. Field values are not involved in keys.

File systems Sequential or serial Indexed sequential Relative

Database definition a computerised record-keeping system used by a range of users who have different requirements –minimal enquiries –in-depth updating –restructuring A well-implemented database will have data integrity, data independence, controlled redundancy, security and privacy, for all users.

Uses of a Database Generally used for on-line transaction processing (OLTP) Data Warehouses are a hybrid of databases which are used for On-line analytical processing (OLAP)

Structure of a database External Schema Conceptual Schema Internal Schema Physical Schema

External level Level visible to user Multiple views of the system –e.g. View an order - see limited product and customer information Only the database Administrator may access the whole database at this level

EXTERNAL SCHEMA Each external view is defined by means of an external schema Provides definitions of each external view. Written in a Data Definition Language individual to the user accessed through a 3GL, a query language or a special purpose forms or menu-based language

Conceptual level CONCEPTUAL - represents the entire information content of the database Consists of multiple types of conceptual record. This level preserves the data independence of the database. CONCEPTUAL SCHEMA - defines each of the various types of conceptual record, in a conceptual Data Definition Language.

Internal level INTERNAL - a low-level representation of the entire database; it consists of multiple occurrences of multiple types of internal record. It is the stored record, inasmuch as it contains all but the device-specific information on the storage of the database. PHYSICAL - the physical device and block addresses for each of the records.

Mappings Each level maps onto adjoining levels conceptual / internal mapping specifies how conceptual records and fields are represented at the internal level Changes can be made in the internal level without affecting the conceptual level external / conceptual mapping defines the correspondence between an external view and the conceptual view

DBMS - Database Management System software handling access to the database allows both the database administrator and all users the access to the database to which they are entitled

How requests are processed User issues request (e.g. through SQL) DBMS intercepts and analyses request DBMS inspects user's external schema, external to conceptual mapping, conceptual schema, conceptual to internal mapping and the storage structure definition. DBMS executes operations on stored database.

DATABASE ADMINISTRATOR (DBA) Decide on the storage structure and access strategy Liaise with the users Define security and integrity checks Define a backup and recovery strategy Monitor and respond to performance

Utilities used by the DBA Load routines Dump/Restore routines Reorganisation routines Statistics routines Analysis routines Data dictionary (containing METADATA, which gives data descriptions and mappings)

Relational database Data is independent from programs and from other data Data is represented in TABLES rather than files. (one entity corresponds to 1 table) Column headings are described as DOMAINS. (i.e. attributes) Items of information as TUPLES or ROWS rather than records (i.e. occurrences of the entity)