The Database Environment

30
The Database Environment IST359 M005 Yang Wang [email protected] 342 Hinds http://blackboard.sy r.edu

description

The Database Environment. IST359 M005. Yang Wang [email protected] 342 Hinds http://blackboard.syr.edu. Acknowledgements and caveat. These slides draw liberally, with permission, from the following sources: IST359 material s by Prof. Michael Fudge Jr. - PowerPoint PPT Presentation

Transcript of The Database Environment

Page 1: The Database Environment

The Database Environment

IST359 M005

Yang [email protected] Hindshttp://blackboard.syr.edu

Page 2: The Database Environment

Acknowledgements and caveat

These slides draw liberally, with permission, from the following sources:

• IST359 materials by Prof. Michael Fudge Jr.

Caveat (beware): At best, PowerPoint slides are only a pale limitation of the entirety of a class meeting. In IST359 in particular, the lectures will cover topics beyond what appears in these slides. Don’t rely on them as a substitute for attending class.

Page 3: The Database Environment

Teaching Assistant

Zhiheng Mai

[email protected]

Page 4: The Database Environment

Learning Objectives

• Concretize the concepts of data, information, data management and metadata

• Explain what a database is and why databases are important• Describe a database management system• Differentiate between the DBMS and a database• Describe the different data models and abstraction layers• Explain the similarities and differences among DBMS products• Explain DBMS history and modern uses• Describe how data is physically stored in primary and

secondary storage

Page 5: The Database Environment

Before we begin…What’s…

Data?

Information?

Data Management?

Metadata?

Query?

Page 6: The Database Environment

Data or Information?

Page 7: The Database Environment

Where’s theData?

Where’s the

Metadata?

Page 8: The Database Environment

Where is the:

Data?Meta-Data?

Page 9: The Database Environment

Activity: Data or Meta-Data?

1. A Zip Code: 132442. A Zip Code is 5 Characters XXXXX3. A List of First Names: Tom, Dick, Harry4. A Picture, Like This One:5. The Name of the Picture

file FrostTrees.jpg6. When you place an order, the quantity of the

item ordered must be a number >0

Page 10: The Database Environment

Something strange and confusing:• Data can be information:

– $5 (the amount of money in my wallet)• Information can be data:

– I calculate student final grades, then place them on a form sent to the registrar’s office.

• Metadata can be data:– The names of MP3 files in your personal

collection.

Actually it’s all about context!

Page 11: The Database Environment

What is it, part duex!

Database

Database Management System (DBMS)

Page 12: The Database Environment

Elements of a Database

Meta-Data

Data

DatabaseData-Management

Data “In”

Information “Out”

End-User

DBMS is software. It stores the data/meta data and “enables” data-management

Page 13: The Database Environment

Clarification via Family Guy

• Brian can write his novel on a typewriter or w/pen and paper.

• But there are obvious advantages to using word processing software.

• Most databases use DBMS’s just like most papers are written with word processors

Database Brian’s NovelDBMS WP Software

Page 14: The Database Environment

Is this: Database or DBMS?

Page 15: The Database Environment

Database or DBMS?

Page 16: The Database Environment

Database or DBMS?

Page 17: The Database Environment

SQL Server: Database or DBMS?

Page 18: The Database Environment

Database or DBMS?

Page 19: The Database Environment

Database or DBMS?

Page 20: The Database Environment

Database or DBMS?

Page 21: The Database Environment

Fundamental Axioms of DBMSs

• Users communicate with computer apps• Computer apps communicate with DBMSs• Users normally do not communicate with

DBMSs directly• Normally DBMSs are not used interactively• A DBMS is not a replacement for sound

database design principles.

Page 22: The Database Environment

First of many examples for the semester

• https://my.ischool.syr.edu

Db using Relational

ModelYou Website

User Interface and Business

Logic (HTML/C#)

Data access logic and

Data (SQL)

Web Browser Web Server (IIS) SQL Server

ApplicationComponents

Page 23: The Database Environment

Data or Metadata?

Database?

DBMS?

Page 24: The Database Environment

Evolution of DBMSs

Page 25: The Database Environment

Enterprise DBMS Market Share

Product ShareOracle 44.4%IBM (DB2) 21.2%Microsoft (SQL Server) 18.6%Others: (Sybase, NCR Terdata, etc…) 5.9%Open Source (MySQL, PostgreSQL, etc…) 9.9%

* Source: Computerworld 2007

Page 26: The Database Environment

DBMS deployment plans 2008

* source: gartner

Page 27: The Database Environment

An employable skill in the future.

Source BLS: 2008http://www.bls.gov/oes/current/oes151061.htm

Page 28: The Database Environment

Data Models: Abstraction Levels

Conceptual

Internal

External

Physical

Logical

Highly AbstractHardware and Software

Independent

Somewhat Abstract Hardware IndependentSoftware Dependent

Not Abstract (Concrete)Hardware and Software Dependent

Page 29: The Database Environment

An Concrete Example• SU administration asks us to build a database for class enrollment

o E.g., student info, class info, a student enrolls in a class• Logical model: what database model to use? Relational, object-

oriented, object-relational, etc. o E.g., we use relational model (entities, relations).

• Internal model: use a DBMS to implement our relational modelo E.g., what do the student, class tables look like?

• External model: what the internal model looks like to end users (hide details of the implementation, e.g., tables)o E.g., you can see a student enrolls in a class

• Physical model: how database is implemented by the DBMSo E.g., how is the database physically stored? In a single file?

• Conceptual model: represent requirements, what needs to be represent in the database?

Page 30: The Database Environment

Elements of the DBMS Approach

• Enterprise Data Model– Graphical model showing high-level entities and relationships

for the organization• Relational Databases

– Database technology involving tables (relations) representing entities and primary/foreign keys representing relationships

• Use of Internet Technology– Networks and telecommunications, distributed databases,

client-server and 3-tier architectures• Database Applications

– Application programs used to perform database activities CRUD for database users