Notes Chapter 1.1 Lecture 1.1(Databases Concepts)
Notes Chapter 1.1 Lecture 1.1(Databases Concepts)
Lecture-1.1
Database
A database intends to have a collection of data stored together to serve multiple applications
as possible. Hence a database is often conceived of as a repository of information needed for
running certain functions in a corporation or organization. Such a database would permit not
only the retrieval of data but also the continuous modification of data needed for control of
operations. It may be possible to search the database to obtain answers to queries or
information for planning purposes.
Data: It is a collection of information. The facts that can be recorded and which have implicit
meaning known as 'data'.
Database: It is a collection of interrelated data . These can be stored in the form of tables. A
database can be of any size and varying complexity. A database may be generated and
manipulated manually or it may be computerized.
Many persons are involved in the design, use and maintenance of any database. These
persons can be classified into 2 types as below.
Actors on the scene: The people whose jobs involve the day-to-day use of a database are
called 'Actors on the scene', listed as below.
1.Database Administrators (DBA): The DBA is responsible for authorizing access to the
database, for Coordinating and monitoring its use and for acquiring software and hardware
resources as needed. These are the people who maintain and design the database daily. DBA
is responsible for the following issues.
● Design of the conceptual and physical schemas: The DBA is responsible for
interacting with the users of the system to understand what data is to be stored in the
DBMS and how it is likely to be used. The DBA creates the original schema by
writing a set of definitions and is Permanently stored in the 'Data Dictionary'.
● Security and Authorization: The DBA is responsible for ensuring unauthorized data
access is not permitted. The granting of different types of authorization allows the
DBA to regulate which parts of the database various users can access.
● Storage structure and Access method definition: The DBA creates appropriate
storage structures and access methods by writing a set of definitions, which are
translated by the DDL compiler.
● Data Availability and Recovery from Failures: The DBA must take steps to ensure
that if the system fails, users can continue to access as much of the uncorrupted data
as possible. The DBA also works to restore the data to a consistent state.
● Database Tuning: The DBA is responsible for modifying the database to ensure
adequate Performance as requirements change.
● Integrity Constraint Specification: The integrity constraints are kept in a special
system structure that is consulted by the DBA whenever an update takes place in the
system.
2.Database Designers: Database designers are responsible for identifying the data to be
stored in the database and for choosing appropriate structures to represent and store this data.
3. End Users: People who wish to store and use data in a database. End users are the people
whose jobs require access to the database for querying, updating and generating reports,
listed as below.
a. Casual End users: These people occasionally access the database, but they may
need different information each time.
b. Naive or Parametric End Users: Their job function revolves around constantly
querying and updating the database using standard types of queries and updates.
d. Stand alone End users: These people maintain personal databases by using ready-
made program packages that provide easy to use menu based interfaces.
4.System Analyst: These people determine the requirements of end users and develop
specifications for transactions.
1.Database Designers and Implementers: These people who design and implement the
DBMS modules and interfaces as a software package.
2.Tool Developers: Include persons who design and implement tools consisting of the
packages for design, performance monitoring, and prototyping and test data generation.
3.Operators and maintenance personnel: These are the system administration personnel
who are responsible for the actual running and maintenance of the hardware and software
environment for the database system.
Purpose of Database:
A database should be a repository of data needed for an organization's data processing. That
data should be accurate, private, and protected from damage. It should be accurate so that
diverse applications with different data requirements can employ the data. Different
application programmers and various end-users have different views upon data, which must
be derived from a common overall data structure. Their methods of searching and accessing
data will be different.
The database is implemented through three general levels. These levels are:
● Internal Level or Physical level
● Conceptual Level
● External Level or View Level
The Concept of Data Independence
As the database may be viewed through three levels of abstraction, any change at any level
can affect other levels' schemas. Since the database keeps on growing, then there may be
frequent changes at times. This should not lead to redesigning and re-implementation of the
database. The concepts of data independence prove beneficial in such types of contexts.
● Physical data independence
● Logical data independence
Relation: In general, a relation is a table, i.e., data is arranged in rows and columns. A
relation has the following properties:
● In any given column of a table, all the items are of the same kind, whereas items in
different columns may not be of the same kind.
● For a row, each column must have an atomic value, and also for a row, a column
cannot have more than one value.
● All rows of a relation are distinct.
● The ordering of rows in a relationship is immaterial.
● The columns of a relation are assigned distinct names, and the ordering of these
columns is immaterial.
Degree: The number of attributes in a relation determines the degree of relation. A relation
having three attributes is said to have a relation of degree 3.
OTHER REFRENCES
DBMSI-III.pdf (jbiet.edu.in)
Korth, H. F. and Silverschatz, A., Database System Concepts, Tata McGraw Hill (2010).