19
Database Models Database Models Database Systems Architecture Database Systems Architecture Version 1.0 Version 1.0 1 Rushdi Shams, Dept of CSE, KUET

L7 data model and dbms architecture

  • View
    392

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: L7  data model and dbms architecture

Database ModelsDatabase ModelsDatabase Systems ArchitectureDatabase Systems Architecture

Version 1.0Version 1.0

1Rushdi Shams, Dept of CSE, KUET

Page 2: L7  data model and dbms architecture

Database is structured collection of records of data stored in a computer system

Database Management System (DBMS) is a computer software designed to manage (Access/Manipulate/Duplicate) database based on various Data Models.

Rushdi Shams, Dept of CSE, KUET2

Page 3: L7  data model and dbms architecture

Teacher

PK Teacher_ID

Title Name Department

Student

PK Roll

Name Year Semester

Staff

PK Staff_ID

Title Name Department

ORACLE DBMS

Rushdi Shams, Dept of CSE, KUET3

Database

Page 4: L7  data model and dbms architecture

A data model is a formal description of how data maybe structure, represented, and accessed

A database model is a theory or specification describing how a database is structured and can be used

Rushdi Shams, Dept of CSE, KUET4

Page 5: L7  data model and dbms architecture

1. Hierarchical Model2. Network Model3. Relational Model4. Entity-Relationship Model5. Object Relational Model

Rushdi Shams, Dept of CSE, KUET5

Page 6: L7  data model and dbms architecture

Organized in Tree Structure Allows repeating information using

parent/child relationships Each parent can have many children

but a child will have only one parent

Rushdi Shams, Dept of CSE, KUET6

Page 7: L7  data model and dbms architecture

Rushdi Shams, Dept of CSE, KUET7

Customer Data Name Address Phone Pointer to Checking

Acct. Data Pointer to Auto Loan Data

Maria Chavez 1441 Adams Court 605-777-8992 John Severson 8988 Grover Road 605-898-2314 Harold Brown 3511 Pluto Drive 605-666-3298 Checking Account Data Acct. Number Current Balance Date Last

Transaction 986-335 445.11 07/11/03 988-310 2988.44 07/01/03 355-822 898.14 06/15/03 Auto Loan Data Acct. Number Current Balance Date Last Pmt 100988 5676 06/15/03 101732 1545.33 07/01/03

ParentData

ChildData

Pointer

Page 8: L7  data model and dbms architecture

Employee

First Name Last Name Job Salary

Children

First Name Last Name Date of Birth

Rushdi Shams, Dept of CSE, KUET8

Employee has many children But a child has only one parent

Page 9: L7  data model and dbms architecture

Rushdi Shams, Dept of CSE, KUET9

a is boss of b and d b is boss of c

Page 10: L7  data model and dbms architecture

Allows each record to have multiple parent and multiple children records

More natural modelling than hierarchical model

But network model failed-1. IBM made an improvement on

hierarchical model making it semi-networked

2. Displaced by relational model, which offered higher level of interface

Rushdi Shams, Dept of CSE, KUET10

Page 11: L7  data model and dbms architecture

Based on predicate logic and set theory

Enforced database integrity Data are operated upon by means of

relational algebra Designs relations (tables) by

normalization Accessing data differs according to

the DBMS

Rushdi Shams, Dept of CSE, KUET11

Page 12: L7  data model and dbms architecture

The basic building blocks of this model is-

1. Data type2. Rows3. Columns4. Values

Rows are called body and columns are called heading

Rushdi Shams, Dept of CSE, KUET12

Page 13: L7  data model and dbms architecture

Illustrates logical database Commonly aids relational database

design End product of the model is Entity

Relation Diagram (ERD)

Rushdi Shams, Dept of CSE, KUET13

Page 14: L7  data model and dbms architecture

Artist

PK Artist_ID

Name Band

Song

PK Song_IDPK Artist_ID

Song_Name Album_Name

Rushdi Shams, Dept of CSE, KUET14

Page 15: L7  data model and dbms architecture

Relational model but allows user to integrate a database with their own data types and methods

Mostly, external software runs over traditional DBMS to provide this functionality

Polymorphism, inheritance, function overloading, etc are present

Rushdi Shams, Dept of CSE, KUET15

Page 16: L7  data model and dbms architecture

Mainframe databases • Both DBMS and applications run on mainframe

computer• Users access database and applications using

terminals Personal databases

• Both DBMS and applications run on user’s workstation

Client/server databases • DBMS runs on central server• Applications run on user’s (client) workstation

Rushdi Shams, Dept of CSE, KUET16

Page 17: L7  data model and dbms architecture

Handling server and client failures Processing transactions Handling high data volumes Providing security Servicing multiple simultaneous users

Rushdi Shams, Dept of CSE, KUET17

Page 18: L7  data model and dbms architecture

Enterprise Edition (on central DB server)

Express EditionOr Oracle Personal Edition

Personal database that acts just like a client/server database

Rushdi Shams, Dept of CSE, KUET18

Page 19: L7  data model and dbms architecture

SQL*Plus & PL/SQL Developer

Procedure Builder Form Builder Report Builder Graphics Builder Project Builder

Rushdi Shams, Dept of CSE, KUET19