SlideShare uma empresa Scribd logo
1 de 45
CP 121: Introduction to
Database Systems
Lecture 01: Introduction
to Database Systems
Over View of Database
Lecture One
By Christina Muro
Lecturer
CSE-Department
Lecture Objectives
• File based Systems
• Database Approach
• Common Uses of Databases
• Database Users
• Database management Systems(DBMS)
• Components of Database Management Systems(DBMS) Environment
• Functions of DBMS
• Advantages and Disadvantages of DBMS
File based Systems
• A file is a collection of records, which contains logically related data
• A file is a collection of records or documents dealing with one organization,
person, area or subject.
• Manual (paper) files
• Computer files
File based Systems
• A File based system is a collection of related programs that performs services to the end
users such as production of reports.
• Example file systems contains student results, receipts, invoices, bank statements and so on.
• What if you what to look something in the file systems?
• Searching through the file system starting from first entry until you find what you want.
Is it easy????
 Think of indexing
File based Systems
• Early attempt to computerize the manual filling systems
• Developed in C, Cobol and other languages
• Each program manages its own data
Example of Banking File System
Example of file based system
File based Systems
• Assume you want to know the following information: -
• What is the annual total for staffs salaries?
• What is the average rent for two apartments?
• What is expected monthly net income for the next financial year?
Is it easy????
Why Study File Systems?
 It provides historical perspective.
 It teaches lessons to avoid draw backs of data management.
 Its simple characteristics facilitate understanding of the design complexity of
a database.
 It provides useful knowledge for converting a file system to a database
system
Limitations of File Based Systems
• Separation and isolation of data
• Duplication of data
• Data dependence
• Incompatible file formats
Database Approach
• Database is a shared collection of logically related data and its descriptions, designed
to meet the information needs of an organization.
• A single repository of data that can be used by many departments and users
• Database is no longer holds only data but also the description of the data
• The description of the data is sometimes known as system catalog or data
dictionary or metadata
• Database application can be defined as a program that interacts with the database
Database Approach
DATA
 Data are raw or isolated facts from which the required information is
produced.
 Data are distinct pieces of information, usually formatted in a special
way.
Data
INFORMATION
Data and information are closely related and are often used interchangeably.
Information is a processed, organized or summarized data.
Data are processed to create information, which is meaningful to the
recipient.
For example, from the salesperson's view, we might want to know the
current balance of a customer Mis Waterhouse Ltd. or perhaps we might ask for the
average current balance of all the customers in Tanzania. The answers to such
questions are information.
Common Uses of the Database
• Database is now an integral part of our day to day life. Probably we don’t
know!
Think of the following
Purchasing from supermarket
Purchasing using
your credit card Using a local library Using the Internet
Studying at college
Database Management Systems(DBMS)
• A software that enables users to define, create, maintain and control access to
the database.
Components of Database Management
Systems(DBMS) Environment
Components of Database Management
Systems(DBMS) Environment
Hardware
 DBMS and the application requires hardware to run.
 The hardware can range from a single personal computer to a network of computers
 The particular hardware depends of organization’s requirements and the DBMS used.
 Some DBMSs run only on particular hardware or Operating Systems while others run on
variety ranges of hardware and Operating System
 DBMS requires a minimum amount of main memory and disk space to run
Components of Database Management
Systems(DBMS) Environment
Software
The software component comprises of DBMS software itself and the
application programs together with the operating system.
Application programs are written in either 3GL such as C,C++,C#, Java, Vb
etc. or 4GL such as SQL
 Database Languages
• data-definition language(DDL) to specify the database schema
• data-manipulation language(DML) to express database queries
Components of Database Management
Systems(DBMS) Environment
Data
Probably the most important component of the DBMS environment
It acts like a bridge between the machine component and human component
The structure of the database is called Schema
Components of Database Management
Systems(DBMS) Environment
Procedures
Instructions and rules that govern the design and use of the database
The users of the system who manage the database may require documented
procedures on how to use/run the system. For example
• Log on to the system
• Start and stop DBMS
• Make back up copies of the database
• Handle hardware or software failure
Components of Database Management
Systems(DBMS) Environment
People
Includes database designers,
DBAs
application programmers
 end-users
Functions of DBMS
Data Storage Management:
The DBMS creates the complex structures required for data storage in the
physical database. It provides a mechanism for management of permanent
storage of the data.
Functions of DBMS
Transaction Management:
A transaction is a series of database operations, carried out by a application
program, which access or changes the contents of the database. Therefore, a
DBMS must provide a mechanism to ensure either that all the updates
corresponding to a given transaction are made or that none of them is made.
Functions of DBMS
Integrity Services:
Database integrity refers to the correctness and consistency of stored data and
is specially important in transaction oriented database system. Therefore, a
DBMS must provide to ensure that both the data in database and changes to
the data follow certain rules..
Functions of DBMS
Backup and Recovery Management:
The DBMS provides mechanisms for different types of failures. This prevents
the loss of data. The recovery mechanisms of DBMS, make sure that the
database is returned to a consistent state after a transaction fails or aborts due
to a system crash, media failure, hardware or software errors, power failure, and
so on.
Functions of DBMS
Concurrency Control Services:
Since DBMS support sharing of data among multiple users, they must provide
a mechanism for managing concurrent access to the database. DBMS's ensure
that the database is kept in consistent state and that the integrity of the data is
preserved. It ensures that the database is updated correctly when multiple users
are updating the database concurrently
Functions of DBMS
Data Manipulation Management:
DBMS furnishes users with the ability to retrieve, update and delete existing
data in the database or to add new data to the database. It includes DML
processor component to deal with the data manipulation language (DML).
Functions of DBMS
Authorization /Security Management :
The DBMS protects the database against unauthorized access, either intentional
or accidental. It furnishes mechanism to ensure that only authorized users can
access the database. It creates a security system that enforces user security and
data privacy within the database. Security rules determine which users can
access the database, which data items each user may access and which data
operations (add, delete, and modify) the user may perform.
Functions of DBMS
Utility Services:
The DBMS provides a set of utility services used by the DBA and the database
designer to create, implement, monitor and maintain the database. These utility
services help the DBA to administer the database effectively.
Functions of DBMS
Database Access and Application Programming Interfaces
All DBMSs provides interface to enable applications to use DBMS services.
They provide data access via structured query language (SOL).
Database vs. file systems
A file is a sequence of records.
• All records in a file are of the same record type.
• File-processing system is supported by a conventional operating system. The
system stores permanent records in various files, and it needs different
application program to extract records from the appropriate files and add
record to appropriate files
Database users
Data and Database Administrators
Database and DBMS are corporate resources that must be managed like any other
resources.
Data administrator(DA) is responsible for management of data eg. Database
Planning, development and maintenance of the standards, policies and procedures.
Database Administrator(DBA) is responsible with physical realization of the
database including physical database design and implementation, security and integrity
control. In some organization there is no distinction between the two.
Database users
Database Designers
In a large database projects we can distinguish between logical database
designer and physical database designer.
Logical database designer is responsible in identifying data (entities and
attributes), relationship between the data and constraints on the data that is to
be stored on the database. Logical Database Designer must have a complete
understanding of the organization’s data and any constraints on the data.
Constraints are sometimes known as the business rules
Database users
Examples of the constraints are:-
Staff members cannot manage more than 100 properties
A member staff can not handle the sale or rent of his/her own properties.
Database users
Physical database designer is responsible to decide how the logical database
design is to be physically realized, this includes:-
Mapping the logical database design into a set of tables and integrity
constraints
Selecting the specific storage structures and access methods for the data to
achieve good performance
Designing any security measures required on the data
Database users
Application developers
Once the database has been implemented, application programs that provide
required functionalities to end users must be implemented, this is the
responsibility of the application developers.
Each of these programs contains some statements that request DBMS to
perform some operations of the database such as deleting data, updating data,
retrieving data etc.
Database users
End users
End users are the clients of the database. End users can be categorized into:-
Naïve users are typically unaware of the DBMS, they access the database
through specific written programs that attempts to make the operation as
simple as possible. Eg the checkout assistant at the local supermarket uses a
barcode reader to find out the price of the item in the database, However
there is an application that reads the barcode, look up the price in the
database and display the price of the item on the users screen.
Database users
Sophisticated users, These are the users who are familiar with the database and
the facilities offered by the DBMS. Sophisticated end users may use high level
query languages such as SQL to perform the required operations.
Advantages of Database
• Control of data redundancy
• Data consistency
• Sharing of data
• Improved data integrity
• Improved maintenance through data independence.
Disadvantages of Database
• Complexity
• Size
• Cost of DBMS
• Cost of conversion
• Performance
• Higher impact of a failure
End
Review Questions
• Describe the role of database management systems (DBMS) in the database approach. Discuss why knowledge of DBMS is important for
database administrators
• Describe the main characteristics of the database approach and contrast it with the file-based approach
• Describe the five components of the DBMS environment and discuss how they relate to each other
• Discuss the roles of the following personnel in the database environment:
• data administrator
• database administrator
• logical database designer
• physical database designer
• application developer
• end-users

Mais conteúdo relacionado

Mais procurados

Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1shahab3
 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
 
The Key Responsibilities of a Database Administrator
The Key Responsibilities of a Database AdministratorThe Key Responsibilities of a Database Administrator
The Key Responsibilities of a Database Administratordsp
 
Sistema de gerenciamento de banco de dados
Sistema de gerenciamento de banco de dadosSistema de gerenciamento de banco de dados
Sistema de gerenciamento de banco de dadosJuh Souza
 
Database management system
Database management system   Database management system
Database management system 9535814851
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System IntroductionSmriti Jain
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMSMegha Patel
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modelingDhani Ahmad
 
Implementation of dbms
Implementation of dbmsImplementation of dbms
Implementation of dbmsPrashant Ranka
 
Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?David Evans
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolStacksol
 
Open Source Grid Middleware Packages
Open Source Grid Middleware  PackagesOpen Source Grid Middleware  Packages
Open Source Grid Middleware PackagesShivaramBose
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and ImplementationChristian Reina
 
Object persistence
Object persistenceObject persistence
Object persistenceVlad Vega
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 

Mais procurados (20)

Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
The Key Responsibilities of a Database Administrator
The Key Responsibilities of a Database AdministratorThe Key Responsibilities of a Database Administrator
The Key Responsibilities of a Database Administrator
 
Sistema de gerenciamento de banco de dados
Sistema de gerenciamento de banco de dadosSistema de gerenciamento de banco de dados
Sistema de gerenciamento de banco de dados
 
Database management system
Database management system   Database management system
Database management system
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
 
Relational Calculus
Relational CalculusRelational Calculus
Relational Calculus
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Advanced data modeling
Advanced data modelingAdvanced data modeling
Advanced data modeling
 
Implementation of dbms
Implementation of dbmsImplementation of dbms
Implementation of dbms
 
Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?
 
DFD Slides
DFD SlidesDFD Slides
DFD Slides
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 
Open Source Grid Middleware Packages
Open Source Grid Middleware  PackagesOpen Source Grid Middleware  Packages
Open Source Grid Middleware Packages
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and Implementation
 
Concurrency
ConcurrencyConcurrency
Concurrency
 
Object persistence
Object persistenceObject persistence
Object persistence
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 

Semelhante a Cp 121 lecture 01

Semelhante a Cp 121 lecture 01 (20)

Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_material
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Database administrator
Database administratorDatabase administrator
Database administrator
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 
Database management system (part 1)
Database management system (part 1)Database management system (part 1)
Database management system (part 1)
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
 
databas (2).pdf
databas (2).pdfdatabas (2).pdf
databas (2).pdf
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
Intro to dbms
Intro to dbmsIntro to dbms
Intro to dbms
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptx
 
CST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxCST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptx
 
DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
 

Mais de ITNet

lecture 8 b main memory
lecture 8 b main memorylecture 8 b main memory
lecture 8 b main memoryITNet
 
lecture 9.pptx
lecture 9.pptxlecture 9.pptx
lecture 9.pptxITNet
 
lecture 10.pptx
lecture 10.pptxlecture 10.pptx
lecture 10.pptxITNet
 
lecture 11.pptx
lecture 11.pptxlecture 11.pptx
lecture 11.pptxITNet
 
lecture 12.pptx
lecture 12.pptxlecture 12.pptx
lecture 12.pptxITNet
 
lecture 13.pptx
lecture 13.pptxlecture 13.pptx
lecture 13.pptxITNet
 
lecture 15.pptx
lecture 15.pptxlecture 15.pptx
lecture 15.pptxITNet
 
kandegeeee.pdf
kandegeeee.pdfkandegeeee.pdf
kandegeeee.pdfITNet
 
Ia 124 1621324160 ia_124_lecture_02
Ia 124 1621324160 ia_124_lecture_02Ia 124 1621324160 ia_124_lecture_02
Ia 124 1621324160 ia_124_lecture_02ITNet
 
Ia 124 1621324143 ia_124_lecture_01
Ia 124 1621324143 ia_124_lecture_01Ia 124 1621324143 ia_124_lecture_01
Ia 124 1621324143 ia_124_lecture_01ITNet
 
Cp 111 5 week
Cp 111 5 weekCp 111 5 week
Cp 111 5 weekITNet
 
Teofilo kisanji university mbeya (TEKU) ambassador 2020
Teofilo kisanji university mbeya (TEKU) ambassador 2020Teofilo kisanji university mbeya (TEKU) ambassador 2020
Teofilo kisanji university mbeya (TEKU) ambassador 2020ITNet
 
Tn 110 lecture 8
Tn 110 lecture 8Tn 110 lecture 8
Tn 110 lecture 8ITNet
 
Tn 110 lecture 2 logic
Tn 110 lecture 2 logicTn 110 lecture 2 logic
Tn 110 lecture 2 logicITNet
 
Tn 110 lecture 1 logic
Tn 110 lecture 1 logicTn 110 lecture 1 logic
Tn 110 lecture 1 logicITNet
 
internet
internetinternet
internetITNet
 
Im 111 lecture 1
Im 111   lecture 1Im 111   lecture 1
Im 111 lecture 1ITNet
 
development study perspective full
development study perspective fulldevelopment study perspective full
development study perspective fullITNet
 
Gender issues in developement
Gender issues in developementGender issues in developement
Gender issues in developementITNet
 
Religion
ReligionReligion
ReligionITNet
 

Mais de ITNet (20)

lecture 8 b main memory
lecture 8 b main memorylecture 8 b main memory
lecture 8 b main memory
 
lecture 9.pptx
lecture 9.pptxlecture 9.pptx
lecture 9.pptx
 
lecture 10.pptx
lecture 10.pptxlecture 10.pptx
lecture 10.pptx
 
lecture 11.pptx
lecture 11.pptxlecture 11.pptx
lecture 11.pptx
 
lecture 12.pptx
lecture 12.pptxlecture 12.pptx
lecture 12.pptx
 
lecture 13.pptx
lecture 13.pptxlecture 13.pptx
lecture 13.pptx
 
lecture 15.pptx
lecture 15.pptxlecture 15.pptx
lecture 15.pptx
 
kandegeeee.pdf
kandegeeee.pdfkandegeeee.pdf
kandegeeee.pdf
 
Ia 124 1621324160 ia_124_lecture_02
Ia 124 1621324160 ia_124_lecture_02Ia 124 1621324160 ia_124_lecture_02
Ia 124 1621324160 ia_124_lecture_02
 
Ia 124 1621324143 ia_124_lecture_01
Ia 124 1621324143 ia_124_lecture_01Ia 124 1621324143 ia_124_lecture_01
Ia 124 1621324143 ia_124_lecture_01
 
Cp 111 5 week
Cp 111 5 weekCp 111 5 week
Cp 111 5 week
 
Teofilo kisanji university mbeya (TEKU) ambassador 2020
Teofilo kisanji university mbeya (TEKU) ambassador 2020Teofilo kisanji university mbeya (TEKU) ambassador 2020
Teofilo kisanji university mbeya (TEKU) ambassador 2020
 
Tn 110 lecture 8
Tn 110 lecture 8Tn 110 lecture 8
Tn 110 lecture 8
 
Tn 110 lecture 2 logic
Tn 110 lecture 2 logicTn 110 lecture 2 logic
Tn 110 lecture 2 logic
 
Tn 110 lecture 1 logic
Tn 110 lecture 1 logicTn 110 lecture 1 logic
Tn 110 lecture 1 logic
 
internet
internetinternet
internet
 
Im 111 lecture 1
Im 111   lecture 1Im 111   lecture 1
Im 111 lecture 1
 
development study perspective full
development study perspective fulldevelopment study perspective full
development study perspective full
 
Gender issues in developement
Gender issues in developementGender issues in developement
Gender issues in developement
 
Religion
ReligionReligion
Religion
 

Último

SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119APNIC
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxMario
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxAndrieCagasanAkio
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxmibuzondetrabajo
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxNIMMANAGANTI RAMAKRISHNA
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 

Último (11)

SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119IP addressing and IPv6, presented by Paul Wilson at IETF 119
IP addressing and IPv6, presented by Paul Wilson at IETF 119
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
Company Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptxCompany Snapshot Theme for Business by Slidesgo.pptx
Company Snapshot Theme for Business by Slidesgo.pptx
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
TRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptxTRENDS Enabling and inhibiting dimensions.pptx
TRENDS Enabling and inhibiting dimensions.pptx
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
Unidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptxUnidad 4 – Redes de ordenadores (en inglés).pptx
Unidad 4 – Redes de ordenadores (en inglés).pptx
 
ETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptxETHICAL HACKING dddddddddddddddfnandni.pptx
ETHICAL HACKING dddddddddddddddfnandni.pptx
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 

Cp 121 lecture 01

  • 1. CP 121: Introduction to Database Systems Lecture 01: Introduction to Database Systems
  • 2. Over View of Database Lecture One By Christina Muro Lecturer CSE-Department
  • 3. Lecture Objectives • File based Systems • Database Approach • Common Uses of Databases • Database Users • Database management Systems(DBMS) • Components of Database Management Systems(DBMS) Environment • Functions of DBMS • Advantages and Disadvantages of DBMS
  • 4. File based Systems • A file is a collection of records, which contains logically related data • A file is a collection of records or documents dealing with one organization, person, area or subject. • Manual (paper) files • Computer files
  • 5. File based Systems • A File based system is a collection of related programs that performs services to the end users such as production of reports. • Example file systems contains student results, receipts, invoices, bank statements and so on. • What if you what to look something in the file systems? • Searching through the file system starting from first entry until you find what you want. Is it easy????  Think of indexing
  • 6. File based Systems • Early attempt to computerize the manual filling systems • Developed in C, Cobol and other languages • Each program manages its own data
  • 7. Example of Banking File System
  • 8. Example of file based system
  • 9. File based Systems • Assume you want to know the following information: - • What is the annual total for staffs salaries? • What is the average rent for two apartments? • What is expected monthly net income for the next financial year? Is it easy????
  • 10. Why Study File Systems?  It provides historical perspective.  It teaches lessons to avoid draw backs of data management.  Its simple characteristics facilitate understanding of the design complexity of a database.  It provides useful knowledge for converting a file system to a database system
  • 11. Limitations of File Based Systems • Separation and isolation of data • Duplication of data • Data dependence • Incompatible file formats
  • 12. Database Approach • Database is a shared collection of logically related data and its descriptions, designed to meet the information needs of an organization. • A single repository of data that can be used by many departments and users • Database is no longer holds only data but also the description of the data • The description of the data is sometimes known as system catalog or data dictionary or metadata • Database application can be defined as a program that interacts with the database
  • 13. Database Approach DATA  Data are raw or isolated facts from which the required information is produced.  Data are distinct pieces of information, usually formatted in a special way.
  • 14. Data
  • 15. INFORMATION Data and information are closely related and are often used interchangeably. Information is a processed, organized or summarized data. Data are processed to create information, which is meaningful to the recipient. For example, from the salesperson's view, we might want to know the current balance of a customer Mis Waterhouse Ltd. or perhaps we might ask for the average current balance of all the customers in Tanzania. The answers to such questions are information.
  • 16. Common Uses of the Database • Database is now an integral part of our day to day life. Probably we don’t know!
  • 17. Think of the following Purchasing from supermarket Purchasing using your credit card Using a local library Using the Internet Studying at college
  • 18. Database Management Systems(DBMS) • A software that enables users to define, create, maintain and control access to the database.
  • 19. Components of Database Management Systems(DBMS) Environment
  • 20. Components of Database Management Systems(DBMS) Environment Hardware  DBMS and the application requires hardware to run.  The hardware can range from a single personal computer to a network of computers  The particular hardware depends of organization’s requirements and the DBMS used.  Some DBMSs run only on particular hardware or Operating Systems while others run on variety ranges of hardware and Operating System  DBMS requires a minimum amount of main memory and disk space to run
  • 21. Components of Database Management Systems(DBMS) Environment Software The software component comprises of DBMS software itself and the application programs together with the operating system. Application programs are written in either 3GL such as C,C++,C#, Java, Vb etc. or 4GL such as SQL  Database Languages • data-definition language(DDL) to specify the database schema • data-manipulation language(DML) to express database queries
  • 22. Components of Database Management Systems(DBMS) Environment Data Probably the most important component of the DBMS environment It acts like a bridge between the machine component and human component The structure of the database is called Schema
  • 23. Components of Database Management Systems(DBMS) Environment Procedures Instructions and rules that govern the design and use of the database The users of the system who manage the database may require documented procedures on how to use/run the system. For example • Log on to the system • Start and stop DBMS • Make back up copies of the database • Handle hardware or software failure
  • 24. Components of Database Management Systems(DBMS) Environment People Includes database designers, DBAs application programmers  end-users
  • 25. Functions of DBMS Data Storage Management: The DBMS creates the complex structures required for data storage in the physical database. It provides a mechanism for management of permanent storage of the data.
  • 26. Functions of DBMS Transaction Management: A transaction is a series of database operations, carried out by a application program, which access or changes the contents of the database. Therefore, a DBMS must provide a mechanism to ensure either that all the updates corresponding to a given transaction are made or that none of them is made.
  • 27. Functions of DBMS Integrity Services: Database integrity refers to the correctness and consistency of stored data and is specially important in transaction oriented database system. Therefore, a DBMS must provide to ensure that both the data in database and changes to the data follow certain rules..
  • 28. Functions of DBMS Backup and Recovery Management: The DBMS provides mechanisms for different types of failures. This prevents the loss of data. The recovery mechanisms of DBMS, make sure that the database is returned to a consistent state after a transaction fails or aborts due to a system crash, media failure, hardware or software errors, power failure, and so on.
  • 29. Functions of DBMS Concurrency Control Services: Since DBMS support sharing of data among multiple users, they must provide a mechanism for managing concurrent access to the database. DBMS's ensure that the database is kept in consistent state and that the integrity of the data is preserved. It ensures that the database is updated correctly when multiple users are updating the database concurrently
  • 30. Functions of DBMS Data Manipulation Management: DBMS furnishes users with the ability to retrieve, update and delete existing data in the database or to add new data to the database. It includes DML processor component to deal with the data manipulation language (DML).
  • 31. Functions of DBMS Authorization /Security Management : The DBMS protects the database against unauthorized access, either intentional or accidental. It furnishes mechanism to ensure that only authorized users can access the database. It creates a security system that enforces user security and data privacy within the database. Security rules determine which users can access the database, which data items each user may access and which data operations (add, delete, and modify) the user may perform.
  • 32. Functions of DBMS Utility Services: The DBMS provides a set of utility services used by the DBA and the database designer to create, implement, monitor and maintain the database. These utility services help the DBA to administer the database effectively.
  • 33. Functions of DBMS Database Access and Application Programming Interfaces All DBMSs provides interface to enable applications to use DBMS services. They provide data access via structured query language (SOL).
  • 34. Database vs. file systems A file is a sequence of records. • All records in a file are of the same record type. • File-processing system is supported by a conventional operating system. The system stores permanent records in various files, and it needs different application program to extract records from the appropriate files and add record to appropriate files
  • 35. Database users Data and Database Administrators Database and DBMS are corporate resources that must be managed like any other resources. Data administrator(DA) is responsible for management of data eg. Database Planning, development and maintenance of the standards, policies and procedures. Database Administrator(DBA) is responsible with physical realization of the database including physical database design and implementation, security and integrity control. In some organization there is no distinction between the two.
  • 36. Database users Database Designers In a large database projects we can distinguish between logical database designer and physical database designer. Logical database designer is responsible in identifying data (entities and attributes), relationship between the data and constraints on the data that is to be stored on the database. Logical Database Designer must have a complete understanding of the organization’s data and any constraints on the data. Constraints are sometimes known as the business rules
  • 37. Database users Examples of the constraints are:- Staff members cannot manage more than 100 properties A member staff can not handle the sale or rent of his/her own properties.
  • 38. Database users Physical database designer is responsible to decide how the logical database design is to be physically realized, this includes:- Mapping the logical database design into a set of tables and integrity constraints Selecting the specific storage structures and access methods for the data to achieve good performance Designing any security measures required on the data
  • 39. Database users Application developers Once the database has been implemented, application programs that provide required functionalities to end users must be implemented, this is the responsibility of the application developers. Each of these programs contains some statements that request DBMS to perform some operations of the database such as deleting data, updating data, retrieving data etc.
  • 40. Database users End users End users are the clients of the database. End users can be categorized into:- Naïve users are typically unaware of the DBMS, they access the database through specific written programs that attempts to make the operation as simple as possible. Eg the checkout assistant at the local supermarket uses a barcode reader to find out the price of the item in the database, However there is an application that reads the barcode, look up the price in the database and display the price of the item on the users screen.
  • 41. Database users Sophisticated users, These are the users who are familiar with the database and the facilities offered by the DBMS. Sophisticated end users may use high level query languages such as SQL to perform the required operations.
  • 42. Advantages of Database • Control of data redundancy • Data consistency • Sharing of data • Improved data integrity • Improved maintenance through data independence.
  • 43. Disadvantages of Database • Complexity • Size • Cost of DBMS • Cost of conversion • Performance • Higher impact of a failure
  • 44. End
  • 45. Review Questions • Describe the role of database management systems (DBMS) in the database approach. Discuss why knowledge of DBMS is important for database administrators • Describe the main characteristics of the database approach and contrast it with the file-based approach • Describe the five components of the DBMS environment and discuss how they relate to each other • Discuss the roles of the following personnel in the database environment: • data administrator • database administrator • logical database designer • physical database designer • application developer • end-users