2014.08.28 - slide 1i257 – fall 2014 database management: introduction ray r. larson university of...
TRANSCRIPT
![Page 1: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/1.jpg)
2014.08.28 - SLIDE 1I257 – Fall 2014
Database Management:Introduction
Ray R. Larson
University of California, Berkeley
School of Information
IS 257: Database Management
![Page 2: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/2.jpg)
2014.08.28 - SLIDE 2I257 – Fall 2014
Overview
• Announcements• Course Description• Database Concepts and Terminology• Database Models• Database Life Cycle
![Page 3: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/3.jpg)
2014.08.28 - SLIDE 3I257 – Fall 2014
Overview
• Announcements• Course Description• Database Concepts and Terminology• Database Models• Database Life Cycle
![Page 4: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/4.jpg)
2014.08.28 - SLIDE 4I257 – Fall 2014
Course Overview
• Description of the Course• Assignments• Readings• Grading• Schedule• Web site:
http://courses.ischool.berkeley.edu/i257/f13
![Page 5: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/5.jpg)
2014.08.28 - SLIDE 5I257 – Fall 2014
Course Description
• This course is concerned with the design of the database itself -- not with the design of database system software.– We will discuss DBMS internals only as they
relate to the database and its design and structure
• We will spend a fair amount time on database application design, especially on options for Web application database support -- but this will not be primary focus.
![Page 6: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/6.jpg)
2014.08.28 - SLIDE 6I257 – Fall 2014
Assignments
• Two kinds of assignments– Using a pre-built database for search and retrieval
and database modification queries– Designing, populating, and running queries against
your own personal (or group) database• Types of database project
– Individual» Work related» Course only» Projects from around campus that need doing…
– Group» Course related» Final Master’s project
![Page 7: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/7.jpg)
2014.08.28 - SLIDE 7I257 – Fall 2014
Readings
• Textbook is:– Jeffrey A. Hoffer, Ramesh Venkataraman and
Heikki Topi. Modern Database Management (Eleventh Edition). Prentice Hall (Pearson Educational) : Upper Saddle River, NJ, 2011. • ISBN 0132662256 or 978-0132662253
– 10th, Ninth (or even earlier) editions are OK too
![Page 8: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/8.jpg)
2014.08.28 - SLIDE 8I257 – Fall 2014
Grading
• Grades will be based on:– Assignments (30%)– Personal/Group Database project (60%)– Class participation (10%)– (No midterm or final)
![Page 9: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/9.jpg)
2014.08.28 - SLIDE 9I257 – Fall 2014
Schedule
• On website:• http://courses.ischool.berkeley.edu/i257/f14
![Page 10: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/10.jpg)
2014.08.28 - SLIDE 10I257 – Fall 2014
Overview
• Announcements• Course Description• Database Concepts and Terminology• Database Models• Database Life Cycle
![Page 11: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/11.jpg)
2014.08.28 - SLIDE 11I257 – Fall 2014
Overview
• What’s a database?• What’s a DataBase Management System?• Why use a database & DBMS?• How can you use a DBMS?
![Page 12: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/12.jpg)
2014.08.28 - SLIDE 12I257 – Fall 2014
What is a Database?
How many have used a database today?
![Page 13: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/13.jpg)
2014.08.28 - SLIDE 13I257 – Fall 2014
What is a database?
• Broadly speaking – any collection of data might be called a database
• Normally, though, certain characteristics of the data and how it is stored distinguish a database from any collection of data
![Page 14: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/14.jpg)
2014.08.28 - SLIDE 14I257 – Fall 2014
What is a database?
• Wikipedia tells us:– “A database is an organized collection of data.
The data is typically organized to model relevant aspects of reality (for example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, finding a hotel with vacancies).”
![Page 15: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/15.jpg)
2014.08.28 - SLIDE 15I257 – Fall 2014
What is a 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– Changing as, for example, book scanning projects like Google
Books and the Open Content Alliance convert paper docs
– File-Based Data Processing Systems• Early batch processing of (primarily) business data
– Still with us – in fact the entire MapReduce suite used in Big Data processing is primarily file-based
– Database Management Systems (DBMS)• Some old ones still in use, but most modern DBMS are
relational, object or object-relational, but there is increasing use of so-called “noSQL” key/object databases
![Page 16: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/16.jpg)
2014.08.28 - SLIDE 16I257 – Fall 2014
What is a DataBase Management System?
• Wikipedia again:– “A general-purpose database management
system (DBMS) is a software system designed to allow the definition, creation, querying, update, and administration of databases.
– Well-known DBMSs include MySQL, PostgreSQL, SQLite, Microsoft SQL Server, Microsoft Access, Oracle, Sybase, dBASE, FoxPro, and IBM DB2.”
![Page 17: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/17.jpg)
2014.08.28 - SLIDE 17I257 – Fall 2014
What’s a DBMS
• It maintains Metadata about the database– Data about data
• In DBMS this means all of the characteristics describing the attributes of an entity, E.G.:
– name of attributes– data type of attributes– size of the attributes– format or special characteristics
– Characteristics of tables or ‘relations’• Name, content, notes, etc.• Associated elements in other tables
![Page 18: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/18.jpg)
2014.08.28 - SLIDE 18I257 – Fall 2014
Why Databases and DBMS
• In programming courses you have learned about data and file structures and how they can be used in your programs to help you accomplish various goals
• Let’s say you want to create a program to keep a list of names and addresses– How would you write a program to do it?– Suppose the list got REALLY big – what kind
of file structures might you use in searching it?
![Page 19: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/19.jpg)
2014.08.28 - SLIDE 19I257 – Fall 2014
Why Use a DBMS?
• History– 50’s and 60’s all applications were custom
built for particular needs– File based– Many similar/duplicative applications dealing
with collections of business data– Early DBMS were extensions of programming
languages– 1970 - E.F. Codd and the Relational Model– 1979 - Ashton-Tate & first Microcomputer
DBMS
![Page 20: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/20.jpg)
2014.08.28 - SLIDE 20I257 – Fall 2014
From File Systems to DBMS
• Problems with File Processing systems– Inconsistent Data– Inflexibility–Limited Data Sharing–Poor enforcement of standards–Excessive program maintenance
![Page 21: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/21.jpg)
2014.08.28 - SLIDE 21I257 – Fall 2014
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
![Page 22: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/22.jpg)
2014.08.28 - SLIDE 22I257 – Fall 2014
Why use a DBMS?
• You don’t need to write all the code to manage your data
• It will gracefully scale to VERY large collections of data
• It will support transactions that are– Atomic (all or nothing)– Consistent (from valid state to valid state)– Isolated (no interference from concurrent use)– Durable (once committed is part of DB)
• Easy to port data to other DBMS or files
![Page 23: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/23.jpg)
2014.08.28 - SLIDE 23I257 – Fall 2014
Terms and Concepts
• Database activities:– Create
• 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
![Page 24: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/24.jpg)
2014.08.28 - SLIDE 24I257 – Fall 2014
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 programs
• Recoding, adding fields, etc. in the database should not affect applications
![Page 25: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/25.jpg)
2014.08.28 - SLIDE 25I257 – Fall 2014
Database Environment
CASE Tools
DBMS
UserInterface
ApplicationPrograms
Repository Database
![Page 26: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/26.jpg)
2014.08.28 - SLIDE 26I257 – Fall 2014
Database Components
DBMS===============
Design toolsTable CreationForm CreationQuery CreationReport Creation
Procedural language
compiler (4GL)=============
Run timeForm processorQuery processor
Report WriterLanguage Run time
UserInterface
Applications
ApplicationPrograms
Database
Database contains:User’s DataMetadataIndexesApplication Metadata
![Page 27: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/27.jpg)
2014.08.28 - SLIDE 27I257 – Fall 2014
Types of Database Systems
• Local Databases• Centralized Database• Client/Server Databases• Distributed Databases• Cloud-Based Databases
• Database Models
![Page 28: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/28.jpg)
2014.08.28 - SLIDE 28I257 – Fall 2014
Local Databases
E.G.,AccessSQLiteEtc.
![Page 29: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/29.jpg)
2014.08.28 - SLIDE 29I257 – Fall 2014
Centralized Databases
Cental Computer
![Page 30: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/30.jpg)
2014.08.28 - SLIDE 30I257 – Fall 2014
Client Server Databases
Network/Internet
Client
Client
Client
DatabaseServer
![Page 31: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/31.jpg)
2014.08.28 - SLIDE 31I257 – Fall 2014
Distributed Databases
computercomputer
computer
Location A
Location CLocation B
HomogeneousDatabases
![Page 32: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/32.jpg)
2014.08.28 - SLIDE 32I257 – Fall 2014
Distributed Databases
Local NetworkOr Internet
DatabaseServer
Client
Client
CommServer
Remote Comp.
Remote Comp.
HeterogeneousOr FederatedDatabases
![Page 33: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/33.jpg)
2014.08.28 - SLIDE 33I257 – Fall 2014
Cloud-Based Databases
RemoteServer
Client
Client
Remote Server
Remote Servers
Server may be oneor more remotemachines, dependingon task demands
Client
Remote Server
![Page 34: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/34.jpg)
2014.08.28 - SLIDE 34I257 – Fall 2014
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
![Page 35: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/35.jpg)
2014.08.28 - SLIDE 35I257 – Fall 2014
Range of Database Applications
• Local databases– Usually for individual user applications
• E.g. SQLite is used by many iPhone Apps including IOS itself
• WorkGroup databases– Small group use where everyone has access
to the database over a LAN (or internet)• Departmental databases
– Larger than a workgroup – but similar• Enterprise databases
– For the entire organization over an intranet or the internet
![Page 36: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/36.jpg)
2014.08.28 - SLIDE 36I257 – Fall 2014
Terms and Concepts
• Enterprise– 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
![Page 37: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/37.jpg)
2014.08.28 - SLIDE 37I257 – Fall 2014
Terms and Concepts
• Records– The set of values for all attributes of a
particular entity– AKA “tuples” or “rows” in relational DBMS
• File– Collection of records – AKA “Relation” or “Table” in relational DBMS
![Page 38: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/38.jpg)
2014.08.28 - SLIDE 38I257 – Fall 2014
Terms and Concepts
• Key– an attribute or set of attributes used to identify
or locate rows in a table• Primary Key
– an attribute or set of attributes that uniquely identifies each row in a table
![Page 39: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/39.jpg)
2014.08.28 - SLIDE 39I257 – Fall 2014
Terms and Concepts
• DA– Data adminstrator - 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
![Page 40: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/40.jpg)
2014.08.28 - SLIDE 40I257 – Fall 2014
Terms and Concepts
• Models– (1) Levels or views of the Database
• Conceptual, logical, physical
– (2) DBMS types• Relational, Hierarchic, Network, Object-Oriented,
Object-Relational
![Page 41: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/41.jpg)
2014.08.28 - SLIDE 41I257 – Fall 2014
Overview
• Announcements• Course Description• Database Concepts and Terminology• Database Models• Database Life Cycle
![Page 42: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/42.jpg)
2014.08.28 - SLIDE 42I257 – Fall 2014
Models (1)
ConceptualModel
LogicalModel
External Model
Conceptual requirements
Conceptual requirements
Conceptual requirements
Conceptual requirements
Application 1
Application 1
Application 2 Application 3 Application 4
Application 2
Application 3
Application 4
External Model
External Model
External Model
Internal Model
![Page 43: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/43.jpg)
2014.08.28 - SLIDE 43I257 – Fall 2014
Data Models(2): History
• Hierarchical Model (1960’s and 1970’s)– Similar to data structures in programming
languages.
Books(id, title)
Publisher SubjectsAuthors
(first, last)
![Page 44: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/44.jpg)
2014.08.28 - SLIDE 44I257 – Fall 2014
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
![Page 45: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/45.jpg)
2014.08.28 - SLIDE 45I257 – Fall 2014
Data Models(2): History
• Relational Model (1980’s)– Provides a conceptually simple model for data
as relations (typically considered “tables”) with all data visible.
![Page 46: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/46.jpg)
2014.08.28 - SLIDE 46I257 – Fall 2014
Data Models(2): History
• Object Oriented Data Model (1990’s)– Encapsulates data and operations as
“Objects”
Books(id, title)
Publisher SubjectsAuthors
(first, last)
![Page 47: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/47.jpg)
2014.08.28 - SLIDE 47I257 – Fall 2014
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
![Page 48: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/48.jpg)
2014.08.28 - SLIDE 48I257 – Fall 2014
NoSQL Databases
• Usually very simple key/value search operations
• Usually very fast, with low storage overhead, but often lack security, consistency and other features of RDBMS
• May use distributed parallel processing (grid/cloud, e.g. MongoDB + Hadoop)
• Semantic Web “TripleStores” are one type
![Page 49: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/49.jpg)
2014.08.28 - SLIDE 49I257 – Fall 2014
Overview
• Announcements• Course Description• Database Concepts and Terminology• Database Models• Database Life Cycle
![Page 50: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/50.jpg)
2014.08.28 - SLIDE 50I257 – Fall 2014
Database System Life Cycle
Growth,Change, &
Maintenance6
Operations5
Integration4
Design1
Conversion3
PhysicalCreation
2
![Page 51: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/51.jpg)
2014.08.28 - SLIDE 51I257 – Fall 2014
The “Cascade” View
Project Identifcation and Selection
ProjectInitiation
and Planning
Analysis
Logical Design
PhysicalDesign
Implementation
MaintenanceSee Hoffer, p. 41
![Page 52: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/52.jpg)
2014.08.28 - SLIDE 52I257 – Fall 2014
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
![Page 53: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/53.jpg)
2014.08.28 - SLIDE 53I257 – Fall 2014
Physical Creation
• Development of the Physical Model of the Database– data formats and types– determination of indexes, etc.
• Load a prototype database and test• Determine and implement security,
privacy and access controls• Determine and implement integrity
constraints
![Page 54: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/54.jpg)
2014.08.28 - SLIDE 54I257 – Fall 2014
Conversion
• Convert existing data sets and applications to use the new database– May need programs, conversion utilities to
convert old data to new formats.
![Page 55: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/55.jpg)
2014.08.28 - SLIDE 55I257 – Fall 2014
Integration
• Overlaps with Phase 3• Integration of converted applications and
new applications into the new database
![Page 56: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/56.jpg)
2014.08.28 - SLIDE 56I257 – Fall 2014
Operations
• All applications run full-scale• Privacy, security, access control must be
in place.• Recovery and Backup procedures must be
established and used
![Page 57: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/57.jpg)
2014.08.28 - SLIDE 57I257 – Fall 2014
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
![Page 58: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/58.jpg)
2014.08.28 - SLIDE 58I257 – Fall 2014
Another View of the Life Cycle
Operations5
Conversion3
PhysicalCreation
2Growth, Change
6
Integration4
Design1
![Page 59: 2014.08.28 - SLIDE 1I257 – Fall 2014 Database Management: Introduction Ray R. Larson University of California, Berkeley School of Information IS 257: Database](https://reader036.vdocument.in/reader036/viewer/2022062407/56649d975503460f94a80980/html5/thumbnails/59.jpg)
2014.08.28 - SLIDE 59I257 – Fall 2014
Next Time
• Introduction to the Diveshop database• Introduction to Database Design