l8 components and properties of dbms

20
Components of DBMS Properties of DBMS Version 1.1 Rushdi Shams, Dept of CSE, KUET 1

Upload: rushdi-shams

Post on 19-Jan-2015

551 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: L8  components and properties of dbms

Components of DBMSProperties of DBMS

Version 1.1

Rushdi Shams, Dept of CSE, KUET 1

Page 2: L8  components and properties of dbms

File Processing System

Rushdi Shams, Dept of CSE, KUET 2

CheckingAccountPrograms

AutoLoan

Programs

SavingsAccountPrograms

CheckingAccount

DataFiles

SavingsAccount

DataFiles

Auto LoanDataFiles

Page 3: L8  components and properties of dbms

Database Processing System

Rushdi Shams, Dept of CSE, KUET 3

DatabaseManagementSystem

CheckingAccountPrograms

AutoLoan

Programs SavingsAccountPrograms

Database

Page 4: L8  components and properties of dbms

How DBMS Works

Rushdi Shams, Dept of CSE, KUET 4

SQL PLUS

Fetching Code

Code in HDD

ORACLE DBMS

Plan-> Runs-> Compiles ->Result set

Code fetched

Page 5: L8  components and properties of dbms

How DBMS Works

Rushdi Shams, Dept of CSE, KUET 5

JAVA Code

{

String( “select…”);

}

Fetching Code

Code fetched

ORACLE DBMS

Plan-> Runs-> Compiles ->Result set

JDBC

Page 6: L8  components and properties of dbms

Components of DBMS

1. Models Hierarchical model Network model and Relational model

Rushdi Shams, Dept of CSE, KUET 6

Page 7: L8  components and properties of dbms

Components of DBMS (continued)

2. Data structuresThis defines the properties of several aspects of rows/records and columns/fields, etc

Rushdi Shams, Dept of CSE, KUET 7

Page 8: L8  components and properties of dbms

Components of DBMS (continued)

3. A query languageallow users to interactively interrogate the database, analyse its data and update it according to the user privileges on data

so, you can say query language actually provides

Analysis on data Interrogation on data Security on data

Rushdi Shams, Dept of CSE, KUET 8

Page 9: L8  components and properties of dbms

Components of DBMS (continued)

4. Transaction MechanismTransaction means data moving between two or more databases. It provides ACID property.

In case of database systems, ACID stands for Atomicity Consistency Isolation and Durability

Rushdi Shams, Dept of CSE, KUET 9

Page 10: L8  components and properties of dbms

Components of DBMS (continued)

AtomicityIt is the ability of the DBMS that ensures either all of the transactions take place or none of them take place!Kind of weird, huh? Well, let me give an example. If a bank account is debited, another bank account must be credited- that is called atomicity!

Rushdi Shams, Dept of CSE, KUET 10

Page 11: L8  components and properties of dbms

Components of DBMS (continued)

ConsistencyEvery database has some rules according to the organization to which it belongs. This property ensures that the databases are in legal state after a transaction takes place.For example, if a bank says that its client’s account balance can never be negative, then no such transaction will take place that makes a balance negative.

Rushdi Shams, Dept of CSE, KUET 11

Page 12: L8  components and properties of dbms

Components of DBMS (continued)

IsolationThis property ensures that no other operation can intervene the transaction operation.For example, a bank manager, during a transaction should be able to see balance of one account, not on both.

This is the most relaxed option in ACID properties.

Rushdi Shams, Dept of CSE, KUET 12

Page 13: L8  components and properties of dbms

Components of DBMS (continued)

DurabilityThis property ensures that once a transaction takes place, it cannot be undone.

when an account to account transfer takes place, after completion, it should notify the user that transaction successfully done and you cannot rewind that!

Rushdi Shams, Dept of CSE, KUET 13

Page 14: L8  components and properties of dbms

Properties of Database Data Sharing Data Integration Data Security Data Abstraction Data Independence

Rushdi Shams, Dept of CSE, KUET 14

Page 15: L8  components and properties of dbms

Data Sharing Do you think records are kept to be used by

only one person? Or, should it be shared, so that we can use it?

Rushdi Shams, Dept of CSE, KUET 15

Page 16: L8  components and properties of dbms

Data Integration This implies that a database should be a

collection of data which, at least ideally, has no redundant data.

Redundant data is unnecessarily duplicated data.

A data value is redundant when an attribute has two or more identical values.

A data value is redundant if you can delete it without information being lost.

Rushdi Shams, Dept of CSE, KUET 16

Page 17: L8  components and properties of dbms

Data Integrity The database should accurately reflect the

universe of discourse that it is attempting to model.

if relationships exist in the real world between objects represented by data in a database then changes made to one partner in such a relationship should be accurately reflected in changes made to other partners in that relationship

Rushdi Shams, Dept of CSE, KUET 17

Page 18: L8  components and properties of dbms

Data Security One of the major ways of ensuring the

integrity of a database is by restricting access – in other words, securing the database.

Define a set of authorised users of the whole, or more usually parts, of the database.

Rushdi Shams, Dept of CSE, KUET 18

Page 19: L8  components and properties of dbms

Data Abstraction An academic database is meant to record

relevant details of university activity. We say relevant, because no database can store all the properties of real-world objects. A database is therefore an abstraction of the real world

Rushdi Shams, Dept of CSE, KUET 19

Page 20: L8  components and properties of dbms

Data Independence If a change is made to some part of the

underlying database, no application programs using affected data should need to be changed.

Also, if a change is made to some part of an application system then this should not affect the structure of the underlying data used by the application.

Rushdi Shams, Dept of CSE, KUET 20