SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Database Introduction
What is DBMS
• Database
– Is a collection of related Data.
– By data, we mean known facts that can be recorded and
that have implicit meaning. For example, consider the
names, telephone numbers, and addresses of the people
you know.
• Database Management System (DBMS)
– Collection of programs that enables users to create and
maintain a database.
– DBMS contains information about a particular enterprise
– Set of programs to access the data
– An environment that is both convenient and efficient to
use.
Database System Applications
– Banking: all transactions
– Airlines and Hotel: reservations, schedules
– Universities: registration, grades
– Sales: customers, products, purchases.
– Online retailers: order tracking, customized
recommendations
– Manufacturing: production, inventory, orders, supply chain
– Human resources: employee records, salaries, tax
deductions
• IBM DB2
• Microsoft SQL Server
• Oracle
• MySQL
• MariaDB
• PostgreSQL
• SQLite
• Microsoft Access
• SAP HANA
• Dbase
• FoxPro
• LibreOffice Base
• FireMaker Pro
• InterSystems Cache
The Evolution of a Database
Sql server 1.0 1987 (with sybase)
sql server 4.2 for window NT 1992 (with sybase)
sql server 6.0 june 1995 Exclusively
sql server 6.5 april 1996
sql server 7.0 december 1998 Sphnix
sql server 2000 august 2000 shiloh
sql server 2005 Yukon (oracle killer)
sql server 2008 august 2008
sql server 2012 2012 denali
• Informix 11.7 May 26, 2012 "Panther"
• Oracle 12c Standard edition , Enterprise
Edition
• Oracle 11g Release 2
• Oracle 11g Express Edition
• what is DBA
– The function of managing and maintaining
database management systems (DBMS)
• Responsibility of DBA ?
– Installation , Configuring, and upgrading
– Maintain Backup & recovery
– Grant and Revoke Access Permissions.
– Maintenance & performance monitoring.
Database System
Drawbacks of File Management
System / Purpose of Database Systems
– Data redundancy and inconsistency
• Multiple file formats, duplication of information in
different files
– Difficulty in accessing data
• Need to write a new program to carry out each new task
– Data isolation — multiple files and formats
– Integrity problems
• Integrity constraints (e.g. account balance > 0)
• Hard to add new constraints or change existing ones
– Atomicity of updates
• Failures may leave database in an inconsistent state with
partial updates carried out
• Example: Transfer of funds from one account to another
should either complete or not happen at all
– Concurrent access by multiple users
• Concurrent accessed needed for performance
• Uncontrolled concurrent accesses can lead to
inconsistencies
– Example: Two people reading a balance and
updating it at the same time
– Security problems
• Hard to provide user access to some, but not all, data
Advantages of DBMS
• Controlling Redundancy
• Restricting Unauthorized Access
• Centralized Control
• Backup and Recovery
• Enforcing Integrity Constraints
• Providing Multiple User Interface
• Shared Data
• Representing Complex Relationship among Data
Disadvantages of DBMS
• Number of problems are associated with
centralized data.
• Cost of hardware and software
• Complexity of Backup and Recovery
mechanism.
DBMS Architecture
• Two Level Architecture
– Client / Server Architecture.
– A standard called Open Database Connectivity
(ODBC) provides an application programming
interface (API), which allows client-side programs to
call the DBMS, as long as both client and server
machines have the necessary software installed.
• Three level Architecture
– The goal is to separate user applications and physical
database
– A major purpose of database system is to provide users
with an abstract view of the data
• In a basic client/server DBMS architecture,
two types of modules.
– A client module
• user workstation or personal computer. user interface
and application programs.
– A server module
• Data storage, access, search, and other functions. query
server or transaction server
Three-Tier and n-Tier Architectures
for Web Applications
This intermediate layer or middle tier is called the
application server or the Web server,
Three level Schema Architecture
Data Abstraction
• Hiding details of data organization and
storage.
• different users can perceive data at their
preferred level of detail.
Mapping
• Process of transforming the request and result
between different level is called as mapping.
– External / conceptual mapping :
– Conceptual / Internal mapping
Data Independence
• We can define two types of data independence
– Logical data independence is the capacity to change
the conceptual schema without having to change
external schemas or application programs
– Physical data independence is the capacity to
change the internal schema without having to
change the conceptual schema.
Database State or Snapshot
• Actual data in the database may change
frequently
• The data in the database at a particular moment
in time is called a database state or snapshot
• Also called the current set of occurrences or
instances in the database
Database Schema vs. Database State
• The distinction is very important
• When we define a database, we specify its database schema
only to the DBMS
– Database state is the empty state (w/ no data)
– Initial state: when the database is first populated or loaded
with initial data
– Current State: State at any point in time. Every time an
update operation is applied to the database, database state
changes
• Valid State: A state that satisfies the structure
and the constraints specified in the schema
The DBMS is partly responsible for ensuring that
every state of the database is a valid state
• The schema is sometimes called the intension,
and a database state is called an extension of
the schema
Data Models, Schemas, and Instances
• Data model—a collection of concepts that can be
used to describe the structure of a database.
• By structure of a database we mean the data
types, relationships, and constraints that apply to
the data.
– High-level or conceptual data models : users perceive
data. Use concept such as entities, attributes, and
relationships.
– low-level or physical data models: details of how data
is stored.
• An entity represents a real-world object or concept.
– such as an employee or a project
• An attribute represents some property of interest
– employee’s name or salary.
• A relationship among two or more entities represents
an association among the entities.
– works-on relationship between an employee and a project.
• Scheme : The description and overall design of a
database is called the database schema.
• Instance : The collection of information stored in the
database at a particular moment is called an instance.
DBMS Component Modules
DBMS Component Modules
• The top part of the figure refers to the various users of the
database environment and their interfaces.
• The lower part shows the internals of the DBMS
responsible for storage of data and processing of
transactions.
• Access to the disk is controlled primarily by the operating
system (OS), which schedules disk read/write.
• Reducing disk read/write improves performance
considerably.
• Many DBMSs have their own buffer management module
to schedule disk read/write,
• A higher-level stored data manager module of the DBMS
controls access to DBMS information.
Different Users
• DBA staff: who define, monitor and Control the
whole Database access and performance.
• Casual users / Sophisticated User: who work with
interactive interfaces to formulate queries.
• Application programmers : who create programs
using some host programming languages.
• Parametric users/ Naive user/ Web user : who do
data entry work by supplying parameters to
predefined transactions.
• Storage Data Manager : minimize the movement
of data between the disk and main memory.
– Buffer manager : Fetch data from disk storage into
main memory. And decide what data to cache in main
memory.
– File manager: Manage the allocation of space on disk
storage and data structure used to represent info.
– Authorization and integrity Manager: test for
satisfaction of integrity constraints, and authority of
user to access the data.
– Transaction Manager: ensure that the database
remain in consistent state.
• The DDL compiler processes schema definitions and stores descriptions
of the schemas (meta-data) in the DBMS catalog.
• The catalog includes information such as the names and sizes of files,
names and data types of data items, storage details of each file,
mapping information among schemas, and constraints.
• query optimizer is concerned with the rearrangement and possible
reordering of operations, elimination of redundancies, and use of
correct algorithms and indexes during execution.
• Application programmers write programs in host languages such as Java,
C, or C++.
• The Precompiler extracts DML commands from an application program
written in a host programming language.
• These commands are sent to the DML compiler for compilation into
object code for database access.
• The rest of the program is sent to the host language compiler.
• The object codes for the DML commands and the rest of the program
are linked, forming a canned transaction
• Canned transactions are executed repeatedly by parametric users, who
simply supply the parameters to the transactions. Each execution is
considered to be a separate transaction. An example is a bank
withdrawal transaction where the account number and the amount may
be supplied as parameters.
• Runtime database processor executes
– (1) the privileged commands, (2) the executable
query plans, and (3) the canned transactions with
runtime parameters. It works with the system
catalog and also works with the stored data
manager.
– The runtime database processor handles other
aspects of data transfer, such as management of
buffers in the main memory.
Database Languages
• To perform operations on schema and data.
• DDL : data definition language. Deal with
structure of the database.
• DML : data manipulation language.
• DCL : data control language. Control access to
database.
Categories of data models
• Relational Model
• ER Model
• Object based model
• Semi structured data model
Representational or implementation
data models
• Entity-Relationship Model
• Relational data model
• Network data model.
• Hierarchical data models.
• Object-Oriented data model.
Logical structure (schema) of a
database can be expressed graphically
by an E-R diagram
• Rectangles- which represent entity sets
• Ellipses- which represent attributes
• Diamonds- which represent relationships
among entity sets
• Lines- which link attributes to entity sets and
entity sets to relationships.
Beginning Of DBMS (data base)

Weitere ähnliche Inhalte

Was ist angesagt?

Database systems
Database systemsDatabase systems
Database systemsDhani Ahmad
 
Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMSShailesh Pachori
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management systemPrerana Bhattarai
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)welcometofacebook
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsMca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsRai University
 
Assignment on dbms
Assignment on dbmsAssignment on dbms
Assignment on dbmsMohd Arif
 
The database applications
The database applicationsThe database applications
The database applicationsDolat Ram
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)Abdurehman Mahmud
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 
Database management systems
Database management systemsDatabase management systems
Database management systemsJoel Briza
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseWanBK Leo
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemM Harris Hashmi
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
 
Disadvantages of file management system (file processing systems)
Disadvantages of file management system(file processing systems)Disadvantages of file management system(file processing systems)
Disadvantages of file management system (file processing systems) raj upadhyay
 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01ITNet
 

Was ist angesagt? (20)

Database systems
Database systemsDatabase systems
Database systems
 
Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMS
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
 
Mca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbmsMca ii-dbms- u-i-introductory concepts of dbms
Mca ii-dbms- u-i-introductory concepts of dbms
 
DBMS Bascis
DBMS BascisDBMS Bascis
DBMS Bascis
 
Assignment on dbms
Assignment on dbmsAssignment on dbms
Assignment on dbms
 
The database applications
The database applicationsThe database applications
The database applications
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)
 
Intro to DBMS
Intro to DBMSIntro to DBMS
Intro to DBMS
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
database
databasedatabase
database
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To Database
 
Database
DatabaseDatabase
Database
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
Disadvantages of file management system (file processing systems)
Disadvantages of file management system(file processing systems)Disadvantages of file management system(file processing systems)
Disadvantages of file management system (file processing systems)
 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
 

Ähnlich wie Beginning Of DBMS (data base)

Ähnlich wie Beginning Of DBMS (data base) (20)

Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
CST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxCST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptx
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
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
 
01-database-management.pptx
01-database-management.pptx01-database-management.pptx
01-database-management.pptx
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
CST204 DBMS Module-1
CST204 DBMS Module-1CST204 DBMS Module-1
CST204 DBMS Module-1
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 

Mehr von Surya Swaroop

Pie chart - qualitative aptitude
Pie chart - qualitative aptitude Pie chart - qualitative aptitude
Pie chart - qualitative aptitude Surya Swaroop
 
Simplification and data interpretation table
Simplification and data interpretation tableSimplification and data interpretation table
Simplification and data interpretation tableSurya Swaroop
 
Quantitative aptitude table data interpretation
Quantitative aptitude  table data interpretationQuantitative aptitude  table data interpretation
Quantitative aptitude table data interpretationSurya Swaroop
 
Environmental engineering text book
Environmental engineering text bookEnvironmental engineering text book
Environmental engineering text bookSurya Swaroop
 
Development of surfaces
Development of surfacesDevelopment of surfaces
Development of surfacesSurya Swaroop
 
Design and Drawing of Steel Structures
Design and Drawing of Steel StructuresDesign and Drawing of Steel Structures
Design and Drawing of Steel StructuresSurya Swaroop
 
Design & Drawing of Steel Structures
 Design & Drawing of Steel Structures Design & Drawing of Steel Structures
Design & Drawing of Steel StructuresSurya Swaroop
 
design drawing of steel structures
design drawing of steel structuresdesign drawing of steel structures
design drawing of steel structuresSurya Swaroop
 
design-and-drawing Steel structures
design-and-drawing Steel structuresdesign-and-drawing Steel structures
design-and-drawing Steel structuresSurya Swaroop
 
design drawing steel structures
design drawing steel structuresdesign drawing steel structures
design drawing steel structuresSurya Swaroop
 
Integration material
Integration material Integration material
Integration material Surya Swaroop
 
deadlock and locking - dbms
deadlock and locking -  dbmsdeadlock and locking -  dbms
deadlock and locking - dbmsSurya Swaroop
 
transaction management, concept & State
transaction management, concept & Statetransaction management, concept & State
transaction management, concept & StateSurya Swaroop
 
relational algebra Tuple Relational Calculus - database management system
relational algebra Tuple Relational Calculus - database management systemrelational algebra Tuple Relational Calculus - database management system
relational algebra Tuple Relational Calculus - database management systemSurya Swaroop
 

Mehr von Surya Swaroop (20)

Pie chart - qualitative aptitude
Pie chart - qualitative aptitude Pie chart - qualitative aptitude
Pie chart - qualitative aptitude
 
Simplification and data interpretation table
Simplification and data interpretation tableSimplification and data interpretation table
Simplification and data interpretation table
 
Quantitative aptitude table data interpretation
Quantitative aptitude  table data interpretationQuantitative aptitude  table data interpretation
Quantitative aptitude table data interpretation
 
Environmental engineering text book
Environmental engineering text bookEnvironmental engineering text book
Environmental engineering text book
 
Development of surfaces
Development of surfacesDevelopment of surfaces
Development of surfaces
 
Elasticity
ElasticityElasticity
Elasticity
 
Design and Drawing of Steel Structures
Design and Drawing of Steel StructuresDesign and Drawing of Steel Structures
Design and Drawing of Steel Structures
 
Design & Drawing of Steel Structures
 Design & Drawing of Steel Structures Design & Drawing of Steel Structures
Design & Drawing of Steel Structures
 
design drawing of steel structures
design drawing of steel structuresdesign drawing of steel structures
design drawing of steel structures
 
design-and-drawing Steel structures
design-and-drawing Steel structuresdesign-and-drawing Steel structures
design-and-drawing Steel structures
 
design drawing steel structures
design drawing steel structuresdesign drawing steel structures
design drawing steel structures
 
Integration material
Integration material Integration material
Integration material
 
Probability
ProbabilityProbability
Probability
 
Other transform dip
Other transform dipOther transform dip
Other transform dip
 
deadlock and locking - dbms
deadlock and locking -  dbmsdeadlock and locking -  dbms
deadlock and locking - dbms
 
transaction management, concept & State
transaction management, concept & Statetransaction management, concept & State
transaction management, concept & State
 
relational algebra Tuple Relational Calculus - database management system
relational algebra Tuple Relational Calculus - database management systemrelational algebra Tuple Relational Calculus - database management system
relational algebra Tuple Relational Calculus - database management system
 
relational database
relational databaserelational database
relational database
 
er question dbms
er question dbmser question dbms
er question dbms
 
dbms er model
dbms er modeldbms er model
dbms er model
 

Kürzlich hochgeladen

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Kürzlich hochgeladen (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Beginning Of DBMS (data base)

  • 2. What is DBMS • Database – Is a collection of related Data. – By data, we mean known facts that can be recorded and that have implicit meaning. For example, consider the names, telephone numbers, and addresses of the people you know. • Database Management System (DBMS) – Collection of programs that enables users to create and maintain a database. – DBMS contains information about a particular enterprise – Set of programs to access the data – An environment that is both convenient and efficient to use.
  • 3. Database System Applications – Banking: all transactions – Airlines and Hotel: reservations, schedules – Universities: registration, grades – Sales: customers, products, purchases. – Online retailers: order tracking, customized recommendations – Manufacturing: production, inventory, orders, supply chain – Human resources: employee records, salaries, tax deductions
  • 4. • IBM DB2 • Microsoft SQL Server • Oracle • MySQL • MariaDB • PostgreSQL • SQLite • Microsoft Access • SAP HANA • Dbase • FoxPro • LibreOffice Base • FireMaker Pro • InterSystems Cache
  • 5. The Evolution of a Database Sql server 1.0 1987 (with sybase) sql server 4.2 for window NT 1992 (with sybase) sql server 6.0 june 1995 Exclusively sql server 6.5 april 1996 sql server 7.0 december 1998 Sphnix sql server 2000 august 2000 shiloh sql server 2005 Yukon (oracle killer) sql server 2008 august 2008 sql server 2012 2012 denali
  • 6. • Informix 11.7 May 26, 2012 "Panther" • Oracle 12c Standard edition , Enterprise Edition • Oracle 11g Release 2 • Oracle 11g Express Edition
  • 7. • what is DBA – The function of managing and maintaining database management systems (DBMS) • Responsibility of DBA ? – Installation , Configuring, and upgrading – Maintain Backup & recovery – Grant and Revoke Access Permissions. – Maintenance & performance monitoring.
  • 9. Drawbacks of File Management System / Purpose of Database Systems – Data redundancy and inconsistency • Multiple file formats, duplication of information in different files – Difficulty in accessing data • Need to write a new program to carry out each new task – Data isolation — multiple files and formats – Integrity problems • Integrity constraints (e.g. account balance > 0) • Hard to add new constraints or change existing ones
  • 10. – Atomicity of updates • Failures may leave database in an inconsistent state with partial updates carried out • Example: Transfer of funds from one account to another should either complete or not happen at all – Concurrent access by multiple users • Concurrent accessed needed for performance • Uncontrolled concurrent accesses can lead to inconsistencies – Example: Two people reading a balance and updating it at the same time – Security problems • Hard to provide user access to some, but not all, data
  • 11. Advantages of DBMS • Controlling Redundancy • Restricting Unauthorized Access • Centralized Control • Backup and Recovery • Enforcing Integrity Constraints • Providing Multiple User Interface • Shared Data • Representing Complex Relationship among Data
  • 12. Disadvantages of DBMS • Number of problems are associated with centralized data. • Cost of hardware and software • Complexity of Backup and Recovery mechanism.
  • 13. DBMS Architecture • Two Level Architecture – Client / Server Architecture. – A standard called Open Database Connectivity (ODBC) provides an application programming interface (API), which allows client-side programs to call the DBMS, as long as both client and server machines have the necessary software installed. • Three level Architecture – The goal is to separate user applications and physical database – A major purpose of database system is to provide users with an abstract view of the data
  • 14. • In a basic client/server DBMS architecture, two types of modules. – A client module • user workstation or personal computer. user interface and application programs. – A server module • Data storage, access, search, and other functions. query server or transaction server
  • 15. Three-Tier and n-Tier Architectures for Web Applications This intermediate layer or middle tier is called the application server or the Web server,
  • 16. Three level Schema Architecture
  • 17.
  • 18. Data Abstraction • Hiding details of data organization and storage. • different users can perceive data at their preferred level of detail.
  • 19.
  • 20. Mapping • Process of transforming the request and result between different level is called as mapping. – External / conceptual mapping : – Conceptual / Internal mapping
  • 21. Data Independence • We can define two types of data independence – Logical data independence is the capacity to change the conceptual schema without having to change external schemas or application programs – Physical data independence is the capacity to change the internal schema without having to change the conceptual schema.
  • 22.
  • 23. Database State or Snapshot • Actual data in the database may change frequently • The data in the database at a particular moment in time is called a database state or snapshot • Also called the current set of occurrences or instances in the database
  • 24. Database Schema vs. Database State • The distinction is very important • When we define a database, we specify its database schema only to the DBMS – Database state is the empty state (w/ no data) – Initial state: when the database is first populated or loaded with initial data – Current State: State at any point in time. Every time an update operation is applied to the database, database state changes
  • 25. • Valid State: A state that satisfies the structure and the constraints specified in the schema The DBMS is partly responsible for ensuring that every state of the database is a valid state • The schema is sometimes called the intension, and a database state is called an extension of the schema
  • 26. Data Models, Schemas, and Instances • Data model—a collection of concepts that can be used to describe the structure of a database. • By structure of a database we mean the data types, relationships, and constraints that apply to the data. – High-level or conceptual data models : users perceive data. Use concept such as entities, attributes, and relationships. – low-level or physical data models: details of how data is stored.
  • 27. • An entity represents a real-world object or concept. – such as an employee or a project • An attribute represents some property of interest – employee’s name or salary. • A relationship among two or more entities represents an association among the entities. – works-on relationship between an employee and a project. • Scheme : The description and overall design of a database is called the database schema. • Instance : The collection of information stored in the database at a particular moment is called an instance.
  • 28.
  • 30. DBMS Component Modules • The top part of the figure refers to the various users of the database environment and their interfaces. • The lower part shows the internals of the DBMS responsible for storage of data and processing of transactions. • Access to the disk is controlled primarily by the operating system (OS), which schedules disk read/write. • Reducing disk read/write improves performance considerably. • Many DBMSs have their own buffer management module to schedule disk read/write, • A higher-level stored data manager module of the DBMS controls access to DBMS information.
  • 31. Different Users • DBA staff: who define, monitor and Control the whole Database access and performance. • Casual users / Sophisticated User: who work with interactive interfaces to formulate queries. • Application programmers : who create programs using some host programming languages. • Parametric users/ Naive user/ Web user : who do data entry work by supplying parameters to predefined transactions.
  • 32. • Storage Data Manager : minimize the movement of data between the disk and main memory. – Buffer manager : Fetch data from disk storage into main memory. And decide what data to cache in main memory. – File manager: Manage the allocation of space on disk storage and data structure used to represent info. – Authorization and integrity Manager: test for satisfaction of integrity constraints, and authority of user to access the data. – Transaction Manager: ensure that the database remain in consistent state.
  • 33. • The DDL compiler processes schema definitions and stores descriptions of the schemas (meta-data) in the DBMS catalog. • The catalog includes information such as the names and sizes of files, names and data types of data items, storage details of each file, mapping information among schemas, and constraints. • query optimizer is concerned with the rearrangement and possible reordering of operations, elimination of redundancies, and use of correct algorithms and indexes during execution. • Application programmers write programs in host languages such as Java, C, or C++. • The Precompiler extracts DML commands from an application program written in a host programming language. • These commands are sent to the DML compiler for compilation into object code for database access. • The rest of the program is sent to the host language compiler. • The object codes for the DML commands and the rest of the program are linked, forming a canned transaction • Canned transactions are executed repeatedly by parametric users, who simply supply the parameters to the transactions. Each execution is considered to be a separate transaction. An example is a bank withdrawal transaction where the account number and the amount may be supplied as parameters.
  • 34. • Runtime database processor executes – (1) the privileged commands, (2) the executable query plans, and (3) the canned transactions with runtime parameters. It works with the system catalog and also works with the stored data manager. – The runtime database processor handles other aspects of data transfer, such as management of buffers in the main memory.
  • 35. Database Languages • To perform operations on schema and data. • DDL : data definition language. Deal with structure of the database. • DML : data manipulation language. • DCL : data control language. Control access to database.
  • 36. Categories of data models • Relational Model • ER Model • Object based model • Semi structured data model
  • 37. Representational or implementation data models • Entity-Relationship Model • Relational data model • Network data model. • Hierarchical data models. • Object-Oriented data model.
  • 38. Logical structure (schema) of a database can be expressed graphically by an E-R diagram • Rectangles- which represent entity sets • Ellipses- which represent attributes • Diamonds- which represent relationships among entity sets • Lines- which link attributes to entity sets and entity sets to relationships.