Database Management:.

Slides:



Advertisements
Similar presentations
Introduction to Database How to Organize Information?  What are the different structures we use to organize information?  What are the organizing principles?
Advertisements

1 1 File Systems and Databases Chapter 1 The Worlds of Database Systems Prof. Sin-Min Lee Dept. of Computer Science.
Adapted from: ©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Fly-over Introduction Purpose of Database Systems View of Data Data.
SLIDE 1IS Fall 2002 Database Management: Introduction University of California, Berkeley School of Information Management and Systems.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
SLIDE 1IS 257 – Fall 2006 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257:
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
11/28/2000Information Organization and Retrieval Introduction to Databases and Database Design University of California, Berkeley School of Information.
8/29/2000Database Management -- Fall R. Larson Database Management: Introduction University of California, Berkeley School of Information Management.
Data Definition Language (DDL) Specification notation for defining the database schema –E.g. create table account ( account-number char(10), balance integer)
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
8/28/2001Database Management -- Fall R. Larson Database Management: Introduction University of California, Berkeley School of Information Management.
Callie’s Birthday SLIDE 1IS 202 – FALL 2004 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Database Management Systems Purpose of Database Systems View of Data.
SLIDE 1IS 257 – Fall 2009 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257:
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
1 1 File Systems and Databases Chapter 1 The Worlds of Database Systems Prof. Sin-Min Lee Dept. of Computer Science.
SLIDE 1IS 257 – Spring 2004 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information Management.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database.
Introduction to DBMS Purpose of Database Systems View of Data
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Introduction to Databases
Chapter 2 CIS Sungchul Hong
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
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.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1 Chapter 1 Introduction to Databases Transparencies.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Database Management: Introduction
Database Management.
Chapter 2 Database Environment.
An Introduction to database system
Chapter 1: Introduction
Unit 1: INTRODUCTION Database system, Characteristics Database Users
Chapter 1: Introduction
Database Management System
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction to Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Introduction to Database Management System
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 1 The Worlds of Database Systems
Basic Concepts in Data Management
Chapter 2 Database Environment.
Chapter 1: Introduction
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Lecture 1 File Systems and Databases.
Introduction to Databases
Database Design Hacettepe University
Chapter 1: Introduction
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 1: Introduction
Presentation transcript:

Database Management:

Files and Databases File: A collection of records or documents dealing with one organization, person, area or subject. (Rowley) Manual (paper) files Computer files Database: A collection of similar records with relationships between the records. (Rowley) graphic, statistical, business data, images, etc. IS 257 – Spring 2004

Database A Database is a collection of stored operational data used by the application systems of some particular enterprise. (C.J. Date) Paper “Databases” Still contain a large portion of the world’s knowledge File-Based Data Processing Systems Early batch processing of (primarily) business data Database Management Systems (DBMS) IS 257 – Spring 2004

Terms and Concepts Database Management System -- DBMS Software system used to define, create, maintain and provide controlled access to the database and repository IS 257 – Spring 2004

Terms and Concepts Repository Data Dictionary The place where all metadata for a particular database is stored may also include information on relationships between files or tables in a particular database IS 257 – Spring 2004

Terms and Concepts Metadata Data about data In DBMS means all of the characteristics describing the attributes of an entity, E.G.: name of attribute data type of attribute size of the attribute format or special characteristics Characteristics of files or relations name, content, notes, etc. IS 257 – Spring 2004

From File Systems to DBMS Problems with File Processing systems Inconsistent Data Inflexibility Limited Data Sharing Poor enforcement of standards Excpensive program maintenance IS 257 – Spring 2004

DBMS Benefits Minimal Data Redundancy Consistency of Data Integration of Data Sharing of Data Ease of Application Development Uniform Security, Privacy, and Integrity Controls Data Accessibility and Responsiveness Data Independence Reduced Program Maintenance IS 257 – Spring 2004

Terms and Concepts Data Independence Physical representation and location of data and the use of that data are separated The application doesn’t need to know how or where the database has stored the data, but just how to ask for it. Moving a database from one DBMS to another should not have a material effect on application program Recoding, adding fields, etc. in the database should not affect applications IS 257 – Spring 2004

Database Environment CASE Tools DBMS User Interface Application Programs Repository Database IS 257 – Spring 2004

Database Components DBMS Application Programs Design tools Database =============== Design tools Table Creation Form Creation Query Creation Report Creation Procedural language compiler (4GL) ============= Run time Form processor Query processor Report Writer Language Run time User Interface Applications Application Programs Database Database contains: User’s Data Metadata Indexes Application Metadata IS 257 – Spring 2004

Types of Database Systems PC Databases Centralized Database Client/Server Databases Distributed Databases Database Models IS 257 – Spring 2004

PC Databases E.G. Access FoxPro Dbase Etc. IS 257 – Spring 2004

Centralized Databases Cental Computer IS 257 – Spring 2004

Client Server Databases Network Client Database Server

Distributed Databases Location B Location C computer computer Homogeneous Databases computer Location A IS 257 – Spring 2004

Distributed Databases Client Heterogeneous Or Federated Databases Remote Comp. Local Network Database Server Comm Server Remote Comp. Client IS 257 – Spring 2004

Terms and Concepts Database Application An application program (or set of related programs) that is used to perform a series of database activities: Create Read Update Delete On behalf of database users IS 257 – Spring 2004

Range of Database Applications PC databases Usually for individual WorkGroup databases Small group use where everyone has access to the database over a LAN Departmental databases Larger than a workgroup – but similar Enterprises databases For the entire organization over an intranet (or sometimes the internet) IS 257 – Spring 2004

Data Models A collection of tools for describing: Data relationships Data semantics Data constraints Object-based logical models Entity-relationship model Object-oriented model Semantic model Functional model Record-based logical models Relational model (e.g., SQL/DS, DB2) Network model Hierarchical model (e.g., IMS) CIS-552

Entity-Relationship Model Example of entity-relationship model customer-street social-security account-number customer-city customer-name balance depositor customer account CIS-552

Relational Model Example of tabular data in the relational model: CIS-552

Data Definition Language (DDL) Specification notation for defining the database schema DDL compiler generates a set of tables stored in a data dictionary Data dictionary contains metadata (data about data) Data storage and definition language – special type of DDL in which the storage structure and access methods used by the database system are specified CIS-552

Terms and Concepts Database activities: Create Read Update Delete Add new data to the database Read Read current data from the database Update Update or modify current database data Delete Remove current data from the database IS 257 – Spring 2004

Terms and Concepts Enterprise Entity Attributes Data values Organization Entity Person, Place, Thing, Event, Concept... Attributes Data elements (facts) about some entity Also sometimes called fields or items or domains Data values instances of a particular attribute for a particular entity IS 257 – Spring 2004

Terms and Concepts Records File The set of values for all attributes of a particular entity AKA or “rows” in relational DBMS File Collection of records AKA “Relation” or “Table” in relational DBMS IS 257 – Spring 2004

Terms and Concepts Key Primary Key an attribute or set of attributes used to identify or locate records in a file Primary Key an attribute or set of attributes that uniquely identifies each record in a file IS 257 – Spring 2004

Terms and Concepts DA DBA Data administrator - person responsible for the Data Administration function in an organization Sometimes may be the CIO - Chief Information Officer DBA Database Administrator - person responsible for the Database Administration Function IS 257 – Spring 2004

Terms and Concepts Data Administration Database Administration Responsibility for the overall management of data resources within an organization Database Administration Responsibility for physical database design and technical issues in database management Data Steward Responsibility for some subset of the organization’s data, and all of the interactions (applications, user access, etc.) for that data IS 257 – Spring 2004

Terms and Concepts Models (1) Levels or views of the Database Conceptual, logical, physical (2) DBMS types Relational, Hierarchic, Network, Object-Oriented, Object-Relational IS 257 – Spring 2004

Models (1) Conceptual Model Logical Internal Model requirements External requirements Application 1 Application 2 Application 3 Application 4 Internal Model IS 257 – Spring 2004

Data Models(2): History Hierarchical Model (1960’s and 1970’s) Similar to data structures in programming languages. Books (id, title) Publisher Subjects Authors (first, last) IS 257 – Spring 2004

Data Models(2): History Network Model (1970’s) Provides for single entries of data and navigational “links” through chains of data. Subjects Books Authors Publishers IS 257 – Spring 2004

Data Models(2): History Relational Model (1980’s) Provides a conceptually simple model for data as relations (typically considered “tables”) with all data visible. IS 257 – Spring 2004

Data Models(2): History Object Oriented Data Model (1990’s) Encapsulates data and operations as “Objects” Books (id, title) Publisher Subjects Authors (first, last) IS 257 – Spring 2004

Data Models(2): History Object-Relational Model (1990’s) Combines the well-known properties of the Relational Model with such OO features as: User-defined datatypes User-defined functions Inheritance and sub-classing IS 257 – Spring 2004

Database System Life Cycle Growth, Change, & Maintenance 6 Operations 5 Integration 4 Design 1 Conversion 3 Physical Creation 2 IS 257 – Spring 2004

Design Determination of the needs of the organization Development of the Conceptual Model of the database Typically using Entity-Relationship diagramming techniques Construction of a Data Dictionary Development of the Logical Model IS 257 – Spring 2004

Conversion Convert existing data sets and applications to use the new database May need programs, conversion utilities to convert old data to new formats. IS 257 – Spring 2004

Integration Integration of converted applications and new applications into the new database IS 257 – Spring 2004

Operations All applications run full-scale Privacy, security, access control must be in place. Recovery and Backup procedures must be established and used IS 257 – Spring 2004

Growth, Change & Maintenance Change is a way of life Applications, data requirements, reports, etc. will all change as new needs and requirements are found The Database and applications and will need to be modified to meet the needs of changes IS 257 – Spring 2004

Data Manipulation Language (DML) Language for accessing and manipulating the data organized by the appropriate data model Two classes of languages Procedural – user specifies what data is required and how to get those data Nonprocedural – user specifies what data is required without specifying how to get those data CIS-552

Transaction Management A transaction is a collection of operations that performs a single logical function in a database application. Transaction-management component ensures that the database remains in a consistent (correct) state despite system failures (e.g. power failures and operating system crashes) and transaction failures. Concurrency-control manager controls the interaction among the concurrent transactions, to ensure the consistency of the database. CIS-552

Storage Management A storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system. The storage manager is responsible for the following tasks: Interaction with the file manager Efficient storing, retrieving, and updating of data CIS-552

Database Administrator Coordinates all the activities of the database system; the database administrator has a good understanding of the enterprise’s information resources and needs: Database administrator’s duties include: Schema definition Storage structure and access method definition Schema and physical organization modification Granting user authority to access the database Specifying integrity constraints Acting as liaison with users Monitoring performance and responding to changes in requirements CIS-552

Overall System Structure indices Statistical data Data files Data dictionary disk storage CIS-552