Lecture 1 Overview of Database Systems 2
Lecture 1 Overview of Database Systems 2
1
Data and Information
2
Database
3
Database Management System
Objectives of DBMS
4
ramifications stem from the stated objective of
shareability:
Serving differently types of users with varying
skill levels
Handling different user views of the same stored
data.
Combining interrelated data
Setting standards
Controlling concurrent updates so as to maintain
data integrity
Coordinating restart and recovery operations
across multiple users.
5
The bulk of organization data, as traditionally handled
in accounting systems, lied in the enclosed region of
historical, internal, financial data. A database
management system must be capable of reaching
beyond this region to handle greater diversity in the
data stored, including subjective data, fragmentary
marketing intelligence data, uncertain forecasts and
aggregated data, as well as factual marketing,
manufacturing, personnel and accounting data.
7
5. Data Independence. DBMS allows the user to store,
update, and retrieve data in an efficient manner.
DBMS provides an “abstract view” of how the data is
stored in the database.
8
Components of DBMS
10
Fig. 1.2 People using DBMS
Database Administrator
11
3. To support the development and
maintenance of database application projects
4. To ensure all documentation related to
standards and implementation is up-to-date
Database Designer
13
Database Users
14
Specialized End Users. Specialized end users write
specialized database application that does not fit
into data-processing frame work. Application
involves knowledge base and expert system,
environment modeling system, etc.
Functions of DBMS
16
5. Recovery services. A DBMS must furnish a
mechanism for recovering the database in the event
that the datbase is damaged in any way.
6. Authorization services. A DBMS must furnish a
mechanism to ensure that only authorized users can
access the database.
7. Support for data communication. A DBMS must be
capable of integrating with communication software.
8. Integrity services. A DBMS must furnish a means to
ensure that both the data in the database and
changes to the data follow certain rules.
9. Services to promote data independence. A DBMS
must include facilities to support the independence
of programs from the actual structure of the
database.
10. Utility services. A DBMS should provide a set of
utility services.
Data Models
Hierarchical Model. The hierarchical data model
organizes data in a tree structure. There is a hierarchy
of parent and child data segments. This structure
implies that a record can have repeating information,
generally in the child data segments. Data in a series
17
of records, which have a set of field values attached
to it. It collects all the instances of a specific record
together as a record type. These record types are the
equivalent of tables in the relational model, and with
the individual records being the equivalent of rows.
To create links between these record types, the
hierarchical model uses Parent Child Relationships.
18
formally defined the network model. The basic data
modeling construct in the network model is the set
construct. A set consists of an owner record type, a
set name, and a member record type. A member
record type can have that role in more than one set,
hence the multiparent concept is supported. An
owner record type can also be a member or owner in
another set. The data model is a simple network, and
link and intersection record types (called junction
records by IDMS) may exist, as well as sets between
them . Thus, the complete network of relationships is
represented by several pairwise sets; in each set
some (one) record type is owner (at the tail of the
network arrow) and one or more record types are
members (at the head of the relationship arrow).
Usually, a set defines a 1:M relationship, although 1:1
is permitted. The CODASYL network model is based
on mathematical set theory.
19
Relational Model. (RDBMS - relational database
management system) A database based on the
relational model developed by E.F. Codd. A relational
database allows the definition of data structures,
storage and retrieval operations and integrity
constraints. In such a database the data and relations
between them are organised in tables. A table is a
collection of records and each record in a table
contains the same fields.
Properties of Relational Tables:
20
Object/Relational Model. Object/relational database
management systems (ORDBMSs) add new object
storage capabilities to the relational systems at the
core of modern information systems. These new
facilities integrate management of traditional fielded
data, complex objects such as time-series and
geospatial data and diverse binary media such as
audio, video, images, and applets. By encapsulating
methods with data structures, an ORDBMS server can
execute comple x analytical and data manipulation
operations to search and transform multimedia and
other complex objects.
As an evolutionary technology, the object/relational
(OR) approach has inherited the robust transaction-
21
and performance-management features of it s
relational ancestor and the flexibility of its object-
oriented cousin. Database designers can work with
familiar tabular structures and data definition
languages (DDLs) while assimilating new object-
management possibilities. Query and procedural
languages and call interfaces in ORDBMSs are
familiar: SQL3, vendor procedural languages, and
ODBC, JDBC, and proprietary call interfaces are all
extensions of RDBMS languages and interfaces. And
the leading vendors are, of course, quite well known:
IBM, Informix, and Oracle.
23
flat relational databases, to nested databases which
allow the nesting (or encapsulation) of entities, and
to object databases which, in addition, allow cyclic
references between objects.
24
Database Architecture
25
Fig. 1.4 Two-tier client-server architecture
26
organization. These rules can be validation rules, used
to be sure that the incoming information is of a valid
type and format, or they can be process rules, which
ensure that the proper business process is followed in
order to complete an operation.
27
Drawbacks of Two-tier Architecture
28
Fig. 1.5 Three-Tier Client-Server Architecture
29
Fig. 1.6 Multi-Tier Architecture
Assignment:
30