ADBMS
ADBMS
FUNDAMENTALS
WHAT IS A DATABASE?
a collection of related facts
a very large, integrated collection of data
a store of information, held over a period of a time, in
computer-readable form
WHAT IS A DBMS?
DBMS Database Management System
A Database Management System (DBMS) is a
software system designed to store, manage, and
f a c i l i t a t e a c c e s s t o d a t a b a s e s .
A software for defining, constructing and
manipulating databases for various applications
THE DBMS Facilitates..
Defining a database
specifying the types, structures, and
constraints for the data
Constructing a database
storing the data on a storage medium
Manipulating a database
querying and updating the database
WHAT IS A DATABASE SYSTEM?
Users / Programmers
DATABASE SYSTEM
Application Programs /
Queries
DBMS SOFTWARE
Software to Process
Queries / Programs
Software to Access Stored
Data
DBMS
+
Database
=
Database
System
DATABASE SYSTEM COMPONENTS
The Stored Database
a collection of related facts
The DBMS
the software that defines, constructs and
manipulate database
The Applications
the programs (in specific languages) that
manipulate the database
The Users
people who use the database system, through the
DBMS interface or through application programs
USERS OF THE DATABASE SYSTEM
Database Administrators
Database Designers and Application
Programmers
End Users
casual end users
parametric end users
sophisticated end users
WHY USE A DATABASE SYSTEM
The database approach provides a central store of
data and meta-data, and thus
is not internal to an application program, as in
traditional file processing environments
provides shared access for multiple users
relieves the application programmer from
various tedious book keeping tasks
provides the facility to change the data without
affecting the applications
TYPICAL FUNCTIONS OF THE DBMS
1. Controlling redundancy
2. Restricting unauthorized access
3. Providing multi-user interfaces
4. Representing complex relationships
5. Enforcing integrity constraints
6. Providing backup and recovery
CONTROLLING REDUNDANCY
Users of traditional file processing systems, each
had a copy of relevant data, causing
duplication of effort
wastage of storage space
inconsistent data
However, redundancy sometimes enhances
performance DBMS provides an environment
where redundancy can be controlled
CONTROLLING REDUNDANCY
Stud-No Name Degree Subject Grade
90 Smith BA CS182 7
87 Brown BA CS182 7
98 James BSc CS181 6
90 Smith BIT CS181 6
Stud-No Name Degree Finance - Type
90 Smith BIT Self
87 Brown BA UQ Scholar
98 Harrison BSc Self
RESTRICTING UNAUTHORIZED ACCESS
Different user groups may have different access
privileges ( create / alter, update, and retrieve ),
which are controlled through DBMS security sub-
system, through the use of Accounts and Passwords
Casual users may not have access to confidential
data.
RESTRICTING UNAUTHORIZED ACCESS
Parametric users may be given update access, but
are generally not allowed to change the structure
of data
Database administrators (DBAs) generally have
highest privileges, create user accounts and enforce
restrictions
PROVIDING MULTI-USER INTERFACES
Query Languages for Casual End Users
Forms and Commands for Parametric Users
Graphical User Interface (GUI)
Interface for Web Enabling
Natural Language Interfaces
Programming Language Interfaces for Application
Programmers
COMPLEX RELATIONSHIPS
Stud-No Name Degree Subject Grade
90 Smith BA CS182 7
87 Brown BA CS182 7
98 James BSc CS181 6
90 Smith BIT CS181 6
Sub-Code Title Credit Department
CS181 Software Eng 12 CSEE
CS182 Intro to Info Sys 12 CSEE
CO362 Business Info Sys 10 Commerce
DBMS has ability to represent complex relationships
a m o n g t h e d a t a
ENFORCING INTEGRITY CONSTRAINTS
The DBMS has the capability to define and enforce
integrity constraints which are restrictions placed
on the data, based on the semantics or meaning of
the data
every subject must have a unique code
a student cannot have 2 different grades for
the same subject
a student cannot enroll in more than four 12-
credit subjects in a semester
student no must be a 9 digit integer
PROVIDING BACKUP AND RECOVERY
DBMS provides facility to recover from hardware and
software failures through its backup and recovery sub-
system
An update program is executing
Computer system fails in the middle of the update
DBMS restores the database to a state prior to the
update and restarts the update program
DATABASE ARCHITECTURE
External Level (View)
concerned with the way users perceive the database
Conceptual Level (Conceptual schema)
concerned with abstract representation of the
database in its entirety
Internal Level (Physical schema)
concerned with the way data is actually stored
DATABASE ARCHITECURE
External level
View_1 View_2 View_3 View_n
Conceptual level
Internal level
Physical
storage
Physical
Data
Independence
Logical
Data
Independence
DATA INDEPENDENCE
Logical Data Independence
users and user programs are independent of logical
structure of the database
Physical Data Independence
the separation of structural information about the
data from the programs that manipulate and use the
data
Data Independence
- the ability to modify a schema definition in one level
without affecting a scheme definition in a higher level.
Two (2) Kinds of Schema
DB DEVELOPMENT LIFE CYCLE
1
Database planning
2
System definition
3
Requirement collection and
analysis
4
Database design
5
DBMS selection
6
Application design
7
Prototyping
8
Implementation
9
Data conversion and loading
DB DEVELOPMENT LIFE CYCLE
10
Testing
11
Operational maintenance
THE DATABASE SYSTEM: Then
THE DATABASE SYSTEM: Today
OTHER DATABASES YOU MAY USE
CURRENT COMMERCIAL OUTLOOK
A major part of the software industry:
Oracle, IBM, Microsoft
also Sybase, Informix (now IBM), Teradata
smaller players: java based dbms, devices
Well known benchmarks (esp. TPC)
Lots of related industries
data warehouse, document management, storage,
backup, reporting, business intelligence, ERP, CRM,
app integration
CURRENT COMMERCIAL OUTLOOK
Relational products dominant and evolving
adapting for extensibility (user-defined types), adding
native XML support
Microsoft merging file system/DB for longhorn
Open source coming on strong
MYSQL, PostgreSQL, BerkeleyDB
FUNDAMENTALS OF DATABASE SYSTEMS
The design and implementation of the database
component is a most significant aspect of Information
s y s t e m d e v e l o p m e n t .
Success of the Information system depends on the
design of the database!
I think our smaller sized
cans of drink are selling
faster than the larger ones.
C a n y o u g i v e me a
b r e a k d o w n ?
Sorry but we can only
o b t a i n r e p o r t s
showi ng total cans
sold to each store.
End
of
Presentation