SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

Database basics
Database basicsDatabase basics
Database basicsprachin514
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)pptGowarthini
 
Microsoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxMicrosoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxsamtakke1
 
Database architecture
Database architectureDatabase architecture
Database architectureVENNILAV6
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity ConstraintsMegha yadav
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introductionHasan Kata
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recoveryMustafa Khan
 
Structured query language
Structured query languageStructured query language
Structured query languageRashid Ansari
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019Juan Fabian
 
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALADATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALASaikiran Panjala
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architectureAmrit Kaur
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)Ishucs
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recoveryAnne Lee
 
Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job ScopeCacheWorks©
 

La actualidad más candente (20)

Database basics
Database basicsDatabase basics
Database basics
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
 
Microsoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxMicrosoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptx
 
Database architecture
Database architectureDatabase architecture
Database architecture
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
Object oriented database
Object oriented databaseObject oriented database
Object oriented database
 
Sql a practical introduction
Sql   a practical introductionSql   a practical introduction
Sql a practical introduction
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recovery
 
Structured query language
Structured query languageStructured query language
Structured query language
 
Dbms and sqlpptx
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
 
Overview SQL Server 2019
Overview SQL Server 2019Overview SQL Server 2019
Overview SQL Server 2019
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALADATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
 
Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job Scope
 
Sql
SqlSql
Sql
 

Similar a Cp 121 lecture 01

Similar 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
 

Más 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
 

Más 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

一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制pxcywzqs
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdfMatthew Sinclair
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查ydyuyu
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样ayvbos
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Balliameghakumariji156
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...kumargunjan9515
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理F
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfJOHNBEBONYAP1
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查ydyuyu
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasDigicorns Technologies
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdfMatthew Sinclair
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Roommeghakumariji156
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtrahman018755
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.krishnachandrapal52
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsMonica Sydney
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsMonica Sydney
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsPriya Reddy
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样ayvbos
 

Último (20)

一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 

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