SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecturesontumax
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelPAQUIAAIZEL
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administrationsreehari orienit
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data modelAnilPokhrel7
 
DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data SharingSurekha Parekh
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Atik Israk
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database conceptsTemesgenthanks
 
Sql database object
Sql database objectSql database object
Sql database objectHarry Potter
 
Object relational database management system
Object relational database management systemObject relational database management system
Object relational database management systemSaibee Alam
 
Database Systems
Database SystemsDatabase Systems
Database SystemsUsman Tariq
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data modelsABDUL KHALIQ
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training P S Rani
 

What's hot (20)

Database System Concepts and Architecture
Database System Concepts and ArchitectureDatabase System Concepts and Architecture
Database System Concepts and Architecture
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Database user’s
Database user’sDatabase user’s
Database user’s
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Types of databases
Types of databases   Types of databases
Types of databases
 
DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data Sharing
 
Normalization
NormalizationNormalization
Normalization
 
Database systems
Database systemsDatabase systems
Database systems
 
Dba
DbaDba
Dba
 
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]Basic Concept Of Database Management System (DBMS) [Presentation Slide]
Basic Concept Of Database Management System (DBMS) [Presentation Slide]
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Sql database object
Sql database objectSql database object
Sql database object
 
Object relational database management system
Object relational database management systemObject relational database management system
Object relational database management system
 
Ordbms
OrdbmsOrdbms
Ordbms
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
Dbms classification according to data models
Dbms classification according to data modelsDbms classification according to data models
Dbms classification according to data models
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
 

Similar to Cp 121 lecture 01

Similar to 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
 

More from 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
 

More from 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
 

Recently uploaded

AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 

Recently uploaded (20)

AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 

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