Vous êtes sur la page 1sur 3

Comparison of Traditional File-Based Approach and

Database Approach
At the beginning, you should understand the rationale of
replacing the traditional file-based system with the
database system.

File-based systems also give tremendous pressure on


data processing staff, with users' complaints on programs
that are inadequate or inefficient in meeting their
demands. Documentation may be limited and
maintenance of the system is difficult. Provision for
security, integrity and recovery capability is very limited.

File-based System
Database Approach
File-based systems were an early attempt to computerize
the manual filing system. File-based system is a
collection of application programs that perform services for
the end-users. Each program defines and manages its
data.

In order to overcome the limitations of the file-based


approach, the concept of database and the Database
Management System (DMS) was emerged in 60s.
Advantages

However, five types of problem are occurred in using the


file-based approach:

A number of advantages of applying database approach in


application system are obtained including:

Separation and isolation of data


Control of data redundancy
When data is isolated in separate files, it is more difficult
for us to access data that should be available. The
application programmer is required to synchronize the
processing of two or more files to ensure the correct data
is extracted.

The database approach attempts to eliminate the


redundancy by integrating the file. Although the database
approach does not eliminate redundancy entirely, it
controls the amount of redundancy inherent in the
database.

Duplication of data
Data consistency
When employing the decentralized file-based approach,
the uncontrolled duplication of data is occurred.
Uncontrolled duplication of data is undesirable because:
i.
ii.

Duplication is wasteful
Duplication can lead to loss of data integrity

Data dependence
Using file-based system, the physical structure and
storage of the data files and records are defined in the
application program code. This characteristic is known as
program-data dependence. Making changes to an
existing structure are rather difficult and will lead to a
modification of program. Such maintenance activities are
time-consuming and subject to error.
Incompatible file formats
The structures of the file are dependent on the application
programming language. However file structure provided
in one programming language such as direct file, indexedsequential file which is available in COBOL programming,
may be different from the structure generated by other
programming language such as C. The direct
incompatibility makes them difficult to process jointly.
Fixed queries / proliferation of application programs
File-based systems are very dependent upon the
application programmer. Any required queries or reports
have to be written by the application programmer.
Normally, a fixed format query or report can only be
entertained and no facility for ad-hoc queries if offered.

By eliminating or controlling redundancy, the database


approach reduces the risk of inconsistencies occurring. It
ensures all copies of the idea are kept consistent.
More information from the same amount of data
With the integration of the operated data in the database
approach, it may be possible to derive additional
information for the same data.
Sharing of data
Database belongs to the entire organization and can be
shared by all authorized users.
DATABASE
DEFINITION OF (DATABASE) APPLICATION PROGRAM
=>A COMPUTER PROGRAM THAT INTERACTS WITH
THE DATABASE BY ISSUING AN APPROPRIATE
REQUEST (TYPICALLY AN SQL STATEMENT) TO THE
DBMS =>USERS INTERACT WITH THE DATABASE
THROUGH A NUMBER OF APPLICATION PROGRAMS
(USED TO CREATE & MAINTAIN THE DATABASE &
WRITTEN IN SOME PROGRAMMING LANGUAGETO
GENERATE INFORMATION)
A database is an organized collection of data. The data is
4

typically organized to model relevant aspects of reality (for

different types of DBMSs, ranging from

example, the availability of rooms in hotels), in a way that

small systems that run on personal computers to huge

supports processes requiring this information (for

systems that run on mainframes. The following are

example, finding a hotel with vacancies).

examples of database applications:


computerized library systems

A database is a collection of information that is organized

flight reservation systems

so that it can easily be accessed, managed, and updated.


In one view, databases can be classified according to

automated teller machines

computerized parts inventory systems

types of content: bibliographic, full-text, numeric, and

From a technical standpoint, DBMSs can differ widely. The

images.

terms relational,network, flat, and hierarchicalall refer to

In computing, databases are sometimes classified

the way a DBMS organizes information internally. The

according to their organizational approach. The most

internal organization can affect how quickly and flexibly

prevalent approach is the relational database, a tabular

you can extract information.

database in which data is defined so that it can be

Requests for information from a database are made in the

reorganized and accessed in a number of different ways.

form of a query, which is a stylized question. For example,

A distributed database is one that can be dispersed or

the query

replicated among different points in a network. An object-

SELECT ALL WHERE NAME = "SMITH" AND AGE > 35

oriented programming database is one that is congruent

requests all records in which the NAME field is SMITH and

with the data defined in object classes and subclasses.

the AGE field is greater than 35. The set of rules for

Computer databases typically contain aggregations of

constructing queries is known as a query language.

data records or files, such as sales transactions, product

Different DBMSs support different query languages,

catalogs and inventories, and customer profiles. Typically,

although there is a semi-standardized query language

a database manager provides users the capabilities of

called SQL (structured query language).

controlling read/write access, specifying report generation,

Sophisticated languages for managing database systems

and analyzing usage. Databases and database managers

are called fourth-generation languages, or 4GLsfor short.

are prevalent in largemainframe systems, but are also

The information from a database can be presented in a

present in smaller distributed workstation and mid-range

variety of formats. Most DBMSs include a report

systems such as the AS/400 and on personal

writer program that enables you to output data in the form

computers. SQL (Structured Query Language) is a

of a report. Many DBMSs also include

standard language for making interactive queries from and

a graphicscomponent that enables you to output

updating a database such as IBM's DB2, Microsoft's SQL

information in the form of graphs and charts.

Server, and database products from Oracle, Sybase, and


Computer Associates.

database management system


A collection of programs that enables you to store, modify,
and extract information from a database. There are many
5

Improved data integrity


Database integrity provides the validity and consistency of
stored data. Integrity is usually expressed in terms of
constraints, which are consistency rules that the database
is not permitted to violate.
Improved security
Database approach provides a protection of the data from
the unauthorized users. It may take the term of user
names and passwords to identify user type and their
access right in the operation including retrieval, insertion,
updating and deletion.
Enforcement of standards
The integration of the database enforces the necessary
standards including data formats, naming conventions,
documentation standards, update procedures and access
rules.
Economy of scale
Cost savings can be obtained by combining all
organization's operational data into one database with
applications to work on one source of data.
Balance of conflicting requirements
By having a structural design in the database, the conflicts
between users or departments can be resolved.
Decisions will be based on the base use of resources for
the organization as a whole rather that for an individual
entity.
Improved data accessibility and responsiveness
By having an integration in the database approach, data
accessing can be crossed departmental boundaries. This
feature provides more functionality and better services to
the users.

Database can manage concurrent data access effectively.


It ensures no interference between users that would not
result any loss of information nor loss of integrity.
Improved backing and recovery services
Modern database management system provides facilities
to minimize the amount of processing that can be lost
following a failure by using the transaction approach.
Disadvantages
In split of a large number of advantages can be found in
the database approach, it is not without any challenge.
The following disadvantages can be found including:
Complexity
Database management system is an extremely complex
piece of software. All parties must be familiar with its
functionality and take full advantage of it. Therefore,
training for the administrators, designers and users is
required.
Size
The database management system consumes a
substantial amount of main memory as well as a large
number amount of disk space in order to make it run
efficiently.
Cost of DBMS
A multi-user database management system may be very
expensive. Even after the installation, there is a high
recurrent annual maintenance cost on the software.
Cost of conversion
When moving from a file-base system to a database
system, the company is required to have additional
expenses on hardware acquisition and training cost.

Increased productivity
Performance
The database approach provides all the low-level filehandling routines. The provision of these functions allows
the programmer to concentrate more on the specific
functionality required by the users. The fourth-generation
environment provided by the database can simplify the
database application development.
Improved maintenance
Database approach provides a data independence. As a
change of data structure in the database will be affect the
application program, it simplifies database application
maintenance.

As the database approach is to cater for many


applications rather than exclusively for a particular one,
some applications may not run as fast as before.
Higher impact of a failure
The database approach increases the vulnerability of the
system due to the centralization. As all users and
applications reply on the database availability, the failure
of any component can bring operations to a halt and affect
the services to the customer seriously.

Increased concurrency
6

Vous aimerez peut-être aussi