Professional Documents
Culture Documents
Unit 1
The Database Environment
Introduction
Good decisions require good information derived from raw facts. Data
is managed most efficiently when stored in a database and databases
evolved from computer file systems and understanding file system
characteristics is important.
Databases solve many of the problems encountered in data management. It
is used in almost all modern settings involving data management in Business,
Research, and Administration. It is important to understand how databases
work and interact with other applications.
3- tier Architecture
A 3-tier architecture separates its tiers from each other based on the
complexity of the users and how they use the data present in the
database. It is the most widely used architecture to design a DBMS.
Database Schema
Database Instance
DBMS-Data Independence
If a database system is not multi-layered, then it becomes difficult to
make any changes in the database system. Database systems are
designed in multi-layers as we learnt earlier.
Data Independence
Instructor: SONNY BOY M. SASIS Page|4
Unit 1: The Database Environment
program for each application. The data and application program that
uses the data are arranged that any change to data requires
modification of all the programs that use the data. Sometimes, it is not
possible to identify all the programs using data and identified on trial
and error basis. All functional areas in the organization create,
processes its own files.
The files such as inventory and payroll generate separate files and do
not communicate with each other. The organization was simple to
generate and had better local control but the data of an organization is
dispersed throughout the functional subsystem.
• Simple to use.
• Less complex.
• Minimal investment (Not make the investment in software
because it allows us to transport files from one to another
computer).
• No requirement of the specialist.
• Data redundancy (Each application has its own data file so,
same data may have to be recorded and stored in many times).
• Data inconsistency (Due to the same data items that appear in
more than one file do not get updated simultaneously in each
and every file).
• Data dependence (Program and application in the file
processing system are data dependent but, the problem is
incompatible with file format).
• Limited data sharing.
• The problem with security.
• Retrieval (retrieval is not easy).
• Time-consuming.
• Inefficient to maintain the record of the big firm having a large
number of items.
• Required Lots of labor work to do.
Presentation of Contents
The range of database application:
Databases range from those for a single user with a desktop computer
to those on mainframe computer with thousands of user. The range of
database application can be divided into four categories from simplest
to most complex.
The method of sharing the data in this database is shown in the above
figure. Each member of the workgroup has a desktop computer and
the computers are linked by means of Local Area Network (LAN). The
database is stored on a central device called the database server.
Thus each member of the workgroup has access to the shared data.
Instructor: SONNY BOY M. SASIS P a g e | 11
Unit 1: The Database Environment
also for storing real time market data to enable online trading by
customers and automated trading by the firm.
7. Sales: For customer, product and purchase information.
8. Online Retailers: For sales data noted above plus online order
tracking, generation of recommendation lists and maintenance
of online product evaluations.
9. Manufacturing: For management of the supply chain and
tracking production of items in factories, inventories of items in
warehouse and stores and orders for items.
10. Human Resources: For information about employees, salaries,
payroll taxes, benefits and for generation of pay checks.
Presentation of Contents
to the DBMS, which then processes the data and generates and
displays a set of results into a user readable form.
Query Processor This transforms the user queries into a series of low
level instructions. This reads the online user’s query and translates
it into an efficient series of operations in a form capable of being
sent to the run time data manager for execution.
to display selected fields in rows and columns, or also format the data
into different charts.
Presentation of Contents
Roles and Advantages of the
DBMS Roles:
•
DBMS is the intermediary between the user and the database o
Database structure stored as file collection o Can only access
files through the DBMS
•
DBMS enables data to be shared
•
DBMS integrates many users’ views of the data Advantages:
remotely.
• so, to access data it is not necessary for a user to remain
present at location where these data are kept.
6. Sharing:
• Data stored in files of computer-based systems ca be shared
1.
Data Redundancy:
• It is possible that the same information may be duplicated in
different files. this leads to data redundancy results in memory
wastage.
2.
Data Inconsistency:
• Because of data redundancy, it is possible that data may not be
in consistent state.
3.
Difficulty in Accessing Data:
• Accessing data is not convenient and efficient in file processing
system.
4.
Limited Data Sharing:
• Data are scattered in various files. also different files may have
different formats and these files may be stored in different
folders may be of different departments.
• So, due to this data isolation, it is difficult to share data among
different applications.
5.
Integrity Problems:
• Data integrity means that the data contained in the database in
both correct and consistent for this purpose the data stored in
database must satisfy correct and constraints.
6.
Atomicity Problems:
• Any operation on database must be atomic.
• this means, it must happen in its entirely or not at all.
7.
Concurrent Access Anomalies:
References:
https://tutorialink.com/dbms/advantage-and-disadvantages-of-file-oriented-
system.dbms
https://www.includehelp.com/dbms/dbms-vs-traditional-file-system.aspx
Database System concepts, Written by Abraham Silbierschatz (Page no- 1-2)