Sunteți pe pagina 1din 7

Advantages of Databases

Controlling Data Redundancy


In non-database systems each application program has its own private files. In this case, the
duplicated copies of the same data are created in many places. In DBMS, all data of an
organization is integrated into a single database file. The data is recorded in only one place in
the database and it is not duplicated.
Sharing of Data
In DBMS, data can be shared by authorized users of the organization. The database
administrator manages the data and gives rights to users to access the data. Many users can be
authorized to access the same piece of information simultaneously. The remote users can also
share same data. Similarly, the data of same database can be shared between different
application programs.
Data Consistency
By controlling the data redundancy, the data consistency is obtained. If a data item appears
only once, any update to its value has to be performed only once and the updated value is
immediately available to all users. If the DBMS has controlled redundancy, the database
system enforces consistency.
Integration of Data
In Database management system, data in database is stored in tables. A single database
contains multiple tables and relationships can be created between tables (or associated data
entities). This makes easy to retrieve and update data.
Integration Constraints
Integrity constraints or consistency rules can be applied to database so that the correct data
can be entered into database. The constraints may be applied to data item within a single
record or they may be applied to relationships between records.
Data Security
Form is very important object of DBMS. You can create forms very easily and quickly in
DBMS. Once a form is created, it can be used many times and it can be modified very easily.
The created forms are also saved along with database and behave like a software component.
A form provides very easy way (user-friendly) to enter data into database, edit data and
display data from database. The non-technical users can also perform various operations on
database through forms without going into technical details of a fatabase.
Report Writers
Most of the DBMSs provide the report writer tools used to create reports. The users can
create very easily and quickly. Once a report is created, it can be used may times and it can be
modified very easily. The created reports are also saved along with database and behave like
a software component.
Control Over Concurrency
In a computer file-based system, if two users are allowed to access data simultaneously, it is
possible that they will interfere with each other. For example, if both users attempt to perform
update operation on the same record, then one may overwrite the values recorded by the
other. Most database management systems have sub-systems to control the concurrency so
that transactions are always recorded with accuracy.

Backup and Recovery Procedures


In a computer file-based system, the user creates the backup of data regularly to protect the
valuable data from damage due to failures to the computer system or application program. It
is very time consuming method, if amount of data is large. Most of the DBMSs provide the
'backup and recovery' sub-systems that automatically create the backup of data and restore
data if required.
Data Independence
The separation of data structure of database from the application program that uses the data is
called data independence. In DBMS, you can easily change the structure of database without
modifying the application program.
An organized and comprehensiveness of recording the result of the firms activities.
A receiver of data to be used in meeting the information requirement of the MIS users.
Reduced updating errors and increased consistency.
Greater data integrity and independence from applications programs.
Improved data access to users through use of host and query languages.
Improved data security.
Reduced data entry, storage, and retrieval costs.
Facilitated development of new applications program.
Standard can be enforced: Standardized stored data format is particularly desirable as an old
data to interchange or migration (change) between the system.
Conflicting requirement can be handled.

Disadvantages of databases
Cost of Hardware & Software:
A processor with high speed of data processing and memory of large size is required to run
the DBMS software. It means that you have to upgrade the hardware used for file-based
system. Similarly, DBMS software is also Very costly.
Cost of Data Conversion:
When a computer file-based system is replaced with a database system, the data stored into
data file must be converted to database files. It is difficult and time consuming method to
convert data of data files into database. You have to hire DBA (or database designer) and
system designer along with application programmers; Alternatively, you have to take the
services of some software houses. So a lot of money has to be paid for developing database
and related software.

Cost of Staff Training:


Most DBMSs are often complex systems so the training for users to use the DBMS is
required. Training is required at all levels, including programming, application development,
and database administration. The organization has to pay a lot of amount on the training of
staff to run the DBMS.
Appointing Technical Staff:
The trained technical persons such as database administrator and application programmers etc
are required to handle the DBMS. You have to pay handsome salaries to these persons.
Therefore, the system cost increases.
Database Failures:
In most of the organizations, all data is integrated into a single database. If database is
corrupted due to power failure or it is corrupted on the storage media, then our valuable data
may be lost or whole system stops.
It increases opportunity for fully training person within the organization to misuse the data
resources intentionally.
It increases opportunity for person or groups outside the organization to gain access to
information about the firms operation.
The data approach is a costly due to higher H/W and S/W requirements.
Database systems are complex (due to data independence), difficult, and time-consuming to
design.
It is not maintaining for all organizations. It is only efficient for particularly large
organizations.
Damage to database affects virtually all applications programs.
Extensive conversion costs in moving form a file-based system to a database system.
Initial training required for all programmers and users.

Components of Database Management System


There are four basic components of Database Management System:
Data: Raw facts which we want to feed in the computer.
Hardware: On which the data to be processed.
Software: The interface between the hardware and user, by which the data will change into
the information.
User: There are so many types of users some of them are application programmer, end case
users and DBA.

Software
The main component of a DBMS is the software. It is the set of programs used to handle the
database and to control and manage the overall computerized database
1. DBMS software itself, is the most important software component in the overall
system
2. Operating system including network software being used in network, to share the data
of database among multiple users.
3. Application programs developed in programming languages such as C++, Visual
Basic that are used to to access database in database management system. Each
program contains statements that request the DBMS to perform operation on database.
The operations may include retrieving, updating, deleting data etc . The application
program may be conventional or online workstations or terminals.
Hardware
Hardware consists of a set of physical electronic devices such as computers (together with
associated I/O devices like disk drives), storage devices, I/O channels, electromechanical
devices that make interface between computers and the real world systems etc, and so on. It is
impossible to implement the DBMS without the hardware devices, In a network, a powerful
computer with high data processing speed and a storage device with large storage capacity is
required as database server.
Data
Data is the most important component of the DBMS. The main purpose of DBMS is to
process the data. In DBMS, databases are defined, constructed and then data is stored,
updated and retrieved to and from the databases. The database contains both the actual (or
operational) data and the metadata (data about data or description about data).
Procedures
Procedures refer to the instructions and rules that help to design the database and to use the
DBMS. The users that operate and manage the DBMS require documented procedures on hot
use or run the database management system. These may include.
1. Procedure to install the new DBMS.
2. To log on to the DBMS.
3. To use the DBMS or application program.
4. To make backup copies of database.
5. To change the structure of database.
6. To generate the reports of data retrieved from database.
Database Access Language
The database access language is used to access the data to and from the database. The users
use the database access language to enter new data, change the existing data in database and

to retrieve required data from databases. The user writes a set of appropriate commands in a
database access language and submits these to the DBMS. The DBMS translates the user
commands and sends it to a specific part of the DBMS called the Database Jet Engine. The
database engine generates a set of results according to the commands submitted by user,
converts these into a user readable form called an Inquiry Report and then displays them on
the screen. The administrators may also use the database access language to create and
maintain the databases.
The most popular database access language is SQL (Structured Query Language). Relational
databases are required to have a database query language.
Users
The users are the people who manage the databases and perform different operations on the
databases in the database system. There are three kinds of people who play different roles in
database system
1. Application Programmers
2. Database Administrators
3. End-Users
Application Programmers
The people who write application programs in programming languages (such as Visual Basic,
Java, or C++) to interact with databases are called Application Programmer.
Database Administrators
A person who is responsible for managing the overall database management system is called
database administrator or simply DBA.
End-Users
The end-users are the people who interact with database management system to perform
different operations on database such as retrieving, updating, inserting, deleting data etc.

Discuss DDL and DML


SQL statements are divided into two major categories: data definition language (DDL) and
data manipulation language (DML).

DDL
Data Definition Language (DDL) statements are used to define the database structure or
schema. Some examples:

CREATE - to create objects in the database


ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including all spaces allocated for the
records are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object

DML
Data Manipulation Language (DML) statements are used for managing data within schema
objects. Some examples:
SELECT - retrieve data from a database
INSERT - insert data into a table
UPDATE - updates existing data within a table
DELETE - deletes all records from a table, the space for the records remain
MERGE - UPSERT operation (insert or update)
CALL - call a PL/SQL or Java subprogram
EXPLAIN PLAN - explain access path to data
LOCK TABLE - control concurrency

DCL
Data Control Language (DCL) statements. Some examples:

GRANT - gives user's access privileges to database


REVOKE - withdraw access privileges given with the GRANT command

REFERENCES
ELMASRI, R., NAVATHE, S.B., 1994. Fundamentals of Database Systems.
2nd. Redwood City, California: Addison-Wesley.
P. A. Bernstein, C. W. Reid, and S. Das. Hyder - a transactional record manager for shared ash.
In CIDR, pages 920, 2011.
ACheung, S. Madden, O. Arden, and A. C. Myers.
Speeding up database applications with Pyxis. In SIGMOD, 2013.
C. Diaconu, C. Freedman, E. Ismert, P. ke Larson, P. Mittal, R. Stonecipher, N. Verma, and
M.Zwilling. Hekaton: Sql servers memory-optimized oltp engine. In SIGMOD, 2013.
J. Gray. Notes on database operating systems. Operating System, An Advanced Course.
SpringerVerlag, Berlin, 1979.
S. Harizopoulos, D. J. Abadi, S. R. Madden, and M. Stonebraker. OLTP through the looking glass,
and what we found there. In SIGMOD, 2008.
J. M. Hellerstein, M. Stonebraker, and J. Hamilton. Architecture of a database system. Found.
Trends databases, 1(2):141259, Feb. 2007.
R. Jimenez-Peris, M. Patino-Martinez, and S. Arevalo. Deterministic scheduling for
transactional multithreaded replicas. In IEEE SRDS, 2000

S-ar putea să vă placă și