Data & Databases Basic Data Fundamentals. Data vs Information l Data: facts Computer systems store data. l Information: facts organized for a specific.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
ICS 434 Advanced Database Systems
Database Management.
Management Information Systems, Sixth Edition
Chapter 1: The Database Environment
Data - Information - Knowledge
Systems Analysis and Design in a Changing World, 6th Edition
10/25/2001Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
1 7 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 7 DBMS Functions.
Transaction Management and Concurrency Control
Transaction Management and Concurrency Control
Concepts of Database Management Seventh Edition
Functions of a Database Management System. Functions of a DBMS C.J. Date n Indexing n Views n Security n Integrity n Concurrency n Backup/Recovery n Design.
Introduction to Data Management
Chapter 1 Introduction to Databases
Chapter 4 Database Management Systems. Chapter 4Slide 2 What is a Database Management System (DBMS)?  Database An organized collection of related data.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 9 Database Management
10/5/1999Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 11: DATA AND DATABASE ADMINISTRATION Modern Database Management 11 th Edition Jeffrey.
Client/Server Databases and the Oracle 10g Relational Database
Discovering Computers 2009 Chapter 10 Database Management.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
Concepts of Database Management Sixth Edition
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
Concepts of Database Management, Fifth Edition
Chapter 2 CIS Sungchul Hong
Security, Transactions, and Views. Security Achieved through GRANT & REVOKE Assumes the database can recognize its users and verify their identity can.
Database Technical Session By: Prof. Adarsh Patel.
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Ch. 1 데이터베이스시스템 (2). Ch.1 Database System 데이터베이스시스템 2 What to Learn Database System Overview Entity-Relationship diagram Relational Data Model  Structure.
D ATABASE A DMINISTRATION L ECTURE N O 3 Muhammad Abrar.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Data & Databases Basic Data Fundamentals. Data vs Information zData: facts Computer systems store data. zInformation: facts organized for a specific application.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
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.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
Introduction to Databases Dr. Osama AL Rababah. Objectives In this capture you will learn: Some common uses of database systems. The characteristics of.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Chapter 13 Managing Transactions and Concurrency Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Copyright © 2016 Pearson Education, Inc. CHAPTER 12: DATA AND DATABASE ADMINISTRATION Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman,
Managing Data Resources File Organization and databases for business information systems.
Databases and DBMSs Todd S. Bacastow January 2005.
Transaction Management and Concurrency Control
Functions of a Database Management System
RELATIONAL DATABASE MODEL
Chapter 2 Database Environment.
Data, Databases, and DBMSs
MANAGING DATA RESOURCES
Database management concepts
Database solutions Database environment Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms: 3.21 C,
Data Model.
Presentation transcript:

Data & Databases Basic Data Fundamentals

Data vs Information l Data: facts Computer systems store data. l Information: facts organized for a specific application Information is the output of a computer system

Data l Atomic Data Data in units that cannot be subdivided First Name, Price, etc. l Binary Large Objects (BLOB) Images and figures Pictures, Cartoons l Objects Data and associated processes Spreadsheet tables, graphics components

Atomic Data Most current systems store atomic data. Atomic data is typically made up of characters (letters and numbers) stored in coded groups of 8 bits called bytes. ASCII American Standard Code for Information Interchange EBCDIC Extended Binary Coded Decimal Interchange Code

Atomic Data Because atomic variables are made up of a relatively small number of codes, computers can interpret and manipulate them

Binary Large Objects These are typically bit mapped pictures or images (such as FAXs) that are stored. Parts of these pictures have meaning (unlike atomic data). Digital pictures, video clips, stored images and signatures are BLOBs. PIXEL blobs are usually stored as pixel codes that represent a point on a video screen

Bit Maps 1028 High Resolution 1028 x 640 = 657,920 pixels Black & White = 1 bit per pixel 256 tone Color = 8 bits per pixel 800

Image Processing Images cannot be processed easily (other than displayed and scaled) by normal technology and usually require atttached atomic indexes. Text images can be con- verted although the software is not fully reliable.

Objects Objects combine data and the processes that manipulate it. An example of an object is a spreadsheet table imported with the manipulation rules. l Encapsulation l Formal Interface for Messages l Inheritance

Object Processing Object databases are new technologies with immature design methodologies. They promise extensive code reuse and easy system development if the tech- nology proves itself.

Data, Metadata and Business Rules Metadata is data about data, the structure descriptions of the stored files. Metadata includes location, format, field name, data description, etc. Business rules include editing and processing rules as well as automatic procedures that must be processed for accurate data.

Data Access Technology l Flat File structures. Data in one location; metadata and business rules in programs l Database Management Systems Data and metadata together; business rules in programs l Object Oriented systems Data, metadata and business rules together

Database Approach Program 1 Program 2 Program 3 Meta-Data Data Program 1 Program 2 Program 3 Meta- Data FILE SYSTEM DATABASE

Distribution Strategies for Databases Centralized Data and Processing: Dumb terminal with "screen scraping". Intelligent Terminal: Data and processing centralized; data preparation and display on remote devices. Distributed Logic: Data storage distributed; processed at the optimal location. A version of parallel processing. Client Server: Data (usually departmental) maintained on a server. Subsetting occurs on the server, processing on client machines. Distributed Database: Data distributed among different locations; processing access data wherever it is located. Data may be replicated or partitioned.

Data Trends l Centralized and Client/Server systems l Multi Layered architectures l Objects and encapsulation l Data driven organizations

Functions of a DBMS C.J. Date l Indexing l Views l Security l Integrity l Concurrency l Backup/Recovery l Design l Documentation l Update/Query

Views Custom representations of a database that correspond to the needs of a class of users. Stored SELECT statements.

Views Views Permit l Maintaining a constant user interface l Restricting access to specified attributes l Specifying user rights

Views 3 Schema Architecture PHYSICAL CONCEPTUAL LOGICAL User Views (Views or Queries) Database administrators model for the data (E-R diagrams) Actual data placement and structure (SQL statements)

Security Components that limit access or actions to limit potential damage to data.

Security Approaches l Views limit access and actions l Authorization Rules identify users and restrict actions l User Defined Procedures in addition to database security functions l Encryption encode stored data l Authentication positively identify users

Authorization Rules Some DBMS products authorize actions based on specific records and functional descriptions. However, most DBMS’s limit actions on tables to one of: Read: view but not change Insert: read and add records Update: read, insert and change records Alter/Delete: read, insert, update and delete records, change table structure

Authorization Rules

Integrity Components that preserve the relationship among different related records in the database

Integrity The relationship among records in the database l Referential Integrity l Non Key Integrity l Derived Conditions

Concurrency Preventing two users from interfering with each other when they use the same information

Concurrency l Lockout Restricting access to users who could be misled by partial transactions l Versioning Making trial updates on versions of the database and denying one if there is a data conflict.

Locks Program 1 locks record. No other program can read the record. No program can have an active lock. Program 2 locks record Other programs can read, but not change record. No program can have an exclusive lock.

Versioning Version 1 Time 1 Version 2 Time 2 Version 3 Time 3 Commits version 3 only after changes to versions 1 and 2 have been rolled back.

Backup and Recovery Processes to confirm and repeat transactions so that database can be restored to a valid state after a problem.

Backup and Recovery l Backup Copies Master Transaction Log l Journalization Forward Log Backward Log l Checkpoints

DBMS Logs

Recover from Backup l Slow l May give different answers from original Backup Transac- tion + = Recovered Database

DBMS Logs

Recover to Checkpoint Using Logs Contaminated Database Backward Log - Correct at Checkpoint = Recent Transactions + Recovered Database =

Transaction Processing A set of computer operations required to process a single unit of work. A transaction must conclude with the database in a valid state whether the transaction terminates correctly or abnormally

Transaction Boundaries l Set Boundary Obtain Locks Execute Code Modules Evaluate Correctness l Commit or Rollback Release Locks

Transaction Boundaries Premiere Products Example SALESREPCUSTOMER ORDER-PRODUCT ORDER PRODUCT Place an order for a new customer with a 1500 credit limit

Transaction Boundaries Premiere Products Example SALESREP CUSTOMER ORDER-PRODUCT ORDER PRODUCT Insert CUSTOMER Record Update CUSTOMER with SALESREP Foreign Key Insert ORDER Record Insert ORDER-PRODUCT with Foreign Keys Update ProductOnHand in PRODUCT Check Credit Limit

DATA