Lecture 1 - Introduction to DBMS
Lecture 1 - Introduction to DBMS
management systems.
1
Data vs information
• Data – raw facts, that is the facts have not
been processed to reveal their meaning.
• Information – is the result of processing data
to reveal its meaning. Data processing can be
as simple as organizing data to reveal patterns
or as complex as making forecasts or drawing
inferences using statistical modeling. To reveal
meaning, information requires context.
Lecture 1 - DBMS 2
Data and information cont…
• Key points:
– Data constitute the building blocks of information.
– Information is produced by processing data.
– Information is used to reveal the meaning of
data.
– Accurate, relevant, and timely information is the
key to good decision making.
– Good decision making is the key to organizational
survival in a global environment.
Lecture 1 - DBMS 3
• Before Computerization the data/information
was available only in the papers/documents.
• The need to store massive data and retrieve it
faster necessitated more efficient methods.
Lecture 1 - DBMS 4
Manual file system
In order to be successful, an organization must
come up with systems for handling core
business tasks. Historically, such systems were
often manual, paper-and-pencil systems. The
papers within these systems were organized
in order to facilitate the expected use of the
data. Typically, this was accomplished through
a system of file folders and filing cabinets.
Manual file system cont..
As long as a data collection was relatively small and
an organization’s business users had few
reporting requirements, the manual system
served its role well as a data repository.
However, as organizations grew and as reporting
requirements became more complex, keeping
track of data in a manual file system became
more difficult. Therefore, companies looked to
computer technology for help.
Computerized file system
Generating reports from manual file systems
was slow and cumbersome. In fact, some
business managers faced government-
imposed reporting requirements that required
weeks of intensive effort each quarter, even
when a well-designed manual system was
used.
Computer-based systems that would track data
and produce required reports were created.
Computerized file system..
Initially, the computer files within the file system
were similar to the manual files.
The description of computer files requires a
specialized vocabulary. Every discipline
develops its own jargon to enable its
practitioners to communicate clearly.
Computerized file system..
When business users wanted data from the
computerized file, they sent requests for the data
to the data processing (DP) specialist. For each
request, the DP specialist had to create programs
to retrieve the data from the file, manipulate it in
whatever manner the user had requested, and
present it as a printed report. If a request was for
a report that had been previously run, the DP
specialist could rerun the existing program and
provide the printed results to the user.
Computerized file system..
The continued use of and demand for a
computerized file exposed some of its major
weaknesses that necessitated a more efficient
approach to data storage and retrieval.
Problems with file systems
• Data are Still Highly Redundant
– Sharing Limited and at the File Level
• Data is Unstructured
– “Flat” Files
Lecture 1 - DBMS 13
Databases…
Every database is a model of some real world system. At
all times, the contents of a database are intended to
represent a snapshot of the state of an application
environment, and each change to the database should
reflect an event (or sequence of events).
A database can be of any size and of varying complexity.
For example, a database can contain the information of
only a few hundred people working on the same project
but It could also contain the information of a bank, an
airline company, or data collected from scientific
experiments.
Lecture 1 - DBMS 14
DBMS
• A database management system (DBMS) is a
generalized collection of integrated mechanisms
and tools to support the definition, manipulation,
and control of databases for a variety of
application environments.
• The goal of a DBMS is to simplify the storing and
accessing of data. To this purpose DBMSs provide
facilities that serve the most common operations
performed on data.
Lecture 1 - DBMS 15
Who uses a DB?
• Banks
• Hotels
• Hospitals
• Schools and colleges
Lecture 1 - DBMS 16
Functional capabilities of a DBMS
Lecture 1 - DBMS 17
Functional capabilities of a DBMS…
Lecture 1 - DBMS 18
Advantages of DBMS
Control of data Improved data
redundancy accessibility and
Data consistency responsiveness
Multipurpose use of Increased productivity
data Improved
Sharing of data,
maintenance through
Enforcement of
data independence
standards
Increased concurrency
Economy of scale
Improved backup and
recovery services.
Improved data
security
Lecture 1 - Database Management Systems 19
Disadvantages of DBMS
Complexity(implementation, use and
maintenance)
Costly:
Acquisition and maintenance
Additional hardware costs
Cost of data conversion.
App 1 App 2
DBMS
DB
Lecture 1 - DBMS 21
Commonly used data types
• Numeric
• Alphanumeric
• Date
• Logical
• Memo
Lecture 1 - DBMS 22
Components of a database system
Components of a Database Systems
• Hardware
• Software – DBMS
• Data
• Procedures
• Users
Hardware
•These are secondary storage on which the
database physically resides, together with
the associated I/O devices, device
controllers etc.
Lecture 1 - Database Management Systems 23
Components of a database system
Software
• Comprises the DBMS software and
application programs as well as the
operating system and network software(if
DBMS being used over a network).
Procedures
• Instruction and rules that govern design
and use of databases e.g. starting and
stopping db, backup and recovery
services.
Lecture 1 - Database Management Systems 24
Data
• The data in the database will be
expected to be both integrated and
shared particularly on multi-user
systems
• Integration - The database may be
thought of as a unification of several
otherwise distinct files, with any
redundancy among these files
eliminated.
• Shared - individual pieces of data in the
database may be shared among several
different users.
Lecture 1 - Database Management Systems 25
Users Roles
• Database Designers - designs conceptual
and logical database
• Application Developers - writes
application programs that use the
database.
• Data and Database Administrator
• End user - interacts with the system by
using Query Languages etc.
Lecture 1 - DBMS 28