Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

database_computer_12

The document provides a comprehensive overview of data, information, databases, and database management systems (DBMS), including their definitions, advantages, and disadvantages. It also discusses various database models, normalization processes, SQL, and the roles of database administrators. Additionally, it highlights the differences between centralized, distributed, and decentralized databases, along with data security measures and data integrity concepts.

Uploaded by

srijalgupta627
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

database_computer_12

The document provides a comprehensive overview of data, information, databases, and database management systems (DBMS), including their definitions, advantages, and disadvantages. It also discusses various database models, normalization processes, SQL, and the roles of database administrators. Additionally, it highlights the differences between centralized, distributed, and decentralized databases, along with data security measures and data integrity concepts.

Uploaded by

srijalgupta627
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Data:

Data is known facts and figures about a person, place event or thing
which can be recorded in computer in the form of number, text,
picture, audio, video etc. For example, ‘101’, ‘Dinesh”, ‘XII’ etc. are some
example of data. Data is the raw facts to generate information and
data itself only is not very meaningful. It is processed to produce
meaning and useful information.
Information:
When data are processed using a database program or software, they
are converted to the meaningful result, called information. In other
words, the output of data processing is called information. It is an
organized collection of related data which gives a complete sense.

S.No. Student’s Name Age


1 Ramesh Shrestha 18
2 Umesh Mahat 21
3 Kamal Lama 34
Field: A field is the property or attributes of a table. Examples: S.No., Name,
Age are fields.
Record: A record is the collection of interrelated fields. For example: there
are three records in above table.
Table: A table is the arrangements of rows and columns. Each table must
have unique name and must be simple. A row defines a record and a column
defines a field in a table.
Database:
A database is a collection of related information about a subject organized
in a useful manner that provides a base or foundation for the procedure,
such as retrieving information, drawing and conclusion and make a
decision. In other word, database is a collection of interrelated data of
certain place or person or thing in such a way that it can be easily accessed
by an application program like DBMS.
Database Management System (DBMS)
A DBMS is a set of program that manages the database files. The DBMS
allows accessing the files, updating the records and retrieving data as
requested. The DBMS acts as in interface between the application program
and the data in the database. For example: Microsoft Access, Oracle,
MySQL, SQL Server, dBase, FoxPro etc.
Advantages of DBMS
Sharing Data:
Data stored in a database can be shared. It refers to the capacity that makes
the data simultaneously accessible by many users without interference.
Reduce Data Redundancy:
The same data may be duplicated at many times or places, is called data
redundancy, DBMS reduces such type of duplication of data from database.
Backup and Recovery:
DBMS provides backup facilities to store data for future use. If any files or
data lost in any computer, it is possible to restore them from database
server.
Data Integrity:
Data integrity means data accuracy, consistency and up to data. A DBMS
should provide capabilities for defining and enforcing constraints for data
integrity.
Data Security:
In database system, an unauthorized person cannot access data from
database. Although various departments may share data in database, access
to specific information that can be limited to selected users.
Multiple User Interface:
DBMS provides variety of interfaces for various users. It provides query
language interface, forms and command interfaces so that users interact
easily with the database.
Searching Records:
DBMS searches the specific record according to the user’s need. The
database contains a lot of records and but the user does not need all the
records at once. The DBMS searches the required records and provides it to
the user.
Sorting Records:
After the database records are stored in the database, the users need to
arrange the records in order. It can be done on the basis of numerical or
alphabetical in ascending or descending order.

Disadvantages of DBMS
Expensive:
Database software is very expensive for large computer system. It also
requires overhead costs for maintaining and integrity functions.
Changing Technology:
It is fast changing technology.
Needs Technical Training:
It is complex to understand and implement. So, proper training is required
for staff to work properly in the database system.
Backup is Needed:
It needs to explicit backup. This adds costs as new storage space are needed
to hold the data.
There are different forms of database management system, each
characterized by the way where data are defined and structured, called
database model. It is organizing principles of records in secondary
storage.
Hierarchical Database Model:
It is one of the oldest database model. This model arranges the files
used in the database in a top-down structure which is similar to an
upside-down
Network Database Model:
The network database model looks similar to the hierarchical
model but it is more flexible to access the data. Unlike the
hierarchical model, each child can be linked with more than one
parents. So, the records can be accessed from more than parents
which are linked. This model is more flexible and has
multidimensional connections.
Relational Database Model:
In relational database model, data is organized into tables which
contain multiple rows and columns. These tables are called relations.
A row in a table represents a relationship among a set of values. Since
a table is a collection of such relationships, it is generally referred to
the mathematical term relation, from which the relational database
model derives its name. It is also known as RDBMS.
Entity:
An entity is a ‘thing’ or ‘object’ in the real world that is different from other
objects. An entity has a set of properties and the values for some set of properties
may uniquely identity an entity. For example, if student is an entity, is identified
by registration number. It is represented by rectangle.
Attribute:
Attributes are properties processed by an entity or relationship. Attributes are
also called elements or fields. Attributes are represented by ellipse. For example
stu_name, stu_roll are attributes of the entity student.
Relationship:
A relationship is an association among several entities and represents
meaningful dependencies between them. It is represented by diamond. For
example the association between teachers and students is teaching. There are
three types of relationship.

-One to one relationship

-One to many relationship

-Many to many relationship


One-to-one relationship:
In one record of an entity is related with only one record of another entity then such type
of relationship is called One-to-one Relationship. For example the relationship between
‘College’ entity and ‘Principal’ entity as one college has one principal.

One-to-many relationship:
If one instance of one entity is related with many instance of other entity, then it
is called the One-to-many relationship. For example the relationship between
the ‘College’ entity and ‘Student’ entity as one college has many students.

Many-to-many relationship:
If the many instance of the one entity are related with many instances of
another entity then it is called Many-to-many relationship. For example, the
relationship between the ‘Teacher’ entity and ‘Student’ considered as many to
many relationship.
Concept of Normalization
Data normalization is a process of database in a normal form to avoid undesirable things
such as repetition of information, inability to represent information etc. It improves
performance by reducing data redundancy to a large extent. There are several normal
forms. Among them the most used three normal forms are as follows:
- First Normal Form (1NF)
A relation or table is said to be in 1NF if it’s all attributes are atomic. That is, there should
not be any repeating groups of an attribute. The purpose of 1NF is to eliminate repeating
groups of attributes in any entity. In other words, if any characteristics is repeated again
and again in the same table/row, then such attributes are removed either into separate
table or decomposed into different rows.
Second Normal Form(2NF):
A relation is to be in second normal form if it is in first normal form and each
attribute is functionally dependent on the entire primary key. The purpose of
second normal form is to eliminate partial key dependencies. In other words,
each attribute in the table must depend on the whole key, not just the part of it.
Third Normal Form (3NF):
A relation is said to be in third normal form if it is in second normal form and
it does not contain any transitive dependency on the primary key. All
attributes that are not dependent upon the primary key must be eliminated.
SQL (Structured Query Language)
SQL stands for Structured Query Language. It is an international standard database query
language for accessing and managing data in the database. In order to provide various
facilities to different types of users, a DBMS provides one or more specialized
programming languages called database languages. However, a language called SQL has
recently been taken as the standard database language. Query language allows users to
retrieve data from the database without having detailed information about the structure
of the records and without being concerned about the DBMS process.
SQL statements
DDL:
DDL stands for Data Definition Language and DDL statements are used to create, modify
and drop database and database objects like table, user-defined data types, index, views
etc. CREATE, ALTER and DROP are the DDL statements. CREATE is used to make new
database objects. ALTER is used to modify the existing database objects and DROP is used
to remove the unnecessary database objects from the database.
DCL:
DCL stands for Data Control Language and DCL statements are used to change the
permission associated with a database user or role. DCL contains the commands that allow
system and data privileges to be passed to various users. The DCL commands normally
available to database administrator . The DCL statements are GRANT, DENY and
REVOKE.
DML:
DML stands for Data Manipulation Language and DML statements are used to work with
data in database. The DML statements are SELECT, INSERT, UPDATE and DELETE. The
DML statements are used to retrieve required data from database, modify existing data
and delete unnecessary data from the database.
Centralized Vs Distributed Database
Centralized Database:
Centralized database system works in a client-server system. The centralized
database has one central computer, called database server, to store all the data
and files and it provides services to all the clients in the networks. Only the
central computer or database server is responsible for processing the data. It is
simple type which works on a client-server basis. It is located on a particular
central location and peripherals are connected with it to storing and retrieving
data as requirement. It is only suitable for small organization and small-scale
operation. The database is centralized, so there is no chance of data
modification. Hence, security is not so crucial part here. The maintenance of
database is easier because of data or records are centrally stored.
Distributed Database:
Distributed database is a complex type of database system. It is a
collection of multiple logically interrelated databases which are
distributed in many geographical locations. Data communication is
difficult because they should communicate through different system
to different platform. It has the problem of security, increased the
problem of control of database and need more computer resources. It
can manage people with functional knowledge. This mode of
processing is more expensive with limited security, control and
protection of data.
Centralized Database System Distributed Database System
Centralized Database System is simple Distributed Database System is complex
type. type.
They are located on particular location. They are located in many geographical
locations.
It consists only one server. It contains server in several locations.
It is only suitable for small organization It is suitable for large organization.
and small-scale operation.
There is less chance of data lost. More chances of data hacking, theft and
lost.
Maintenance is easy and security is high. Maintenance is not easy and security is
low as compared to centralized database
system.
Failure of server makes the whole system Failure of one server does not make
down. whole system down.
Low cost High cost.
Advantages of Centralized Database System
➢Since all data is stored at a single location only thus it is easier to access and
co-ordinate data.
➢The centralized database has very minimal data redundancy since all data is
stored at a single place.
➢It is cheaper in comparison to all other database available.
Disadvantages
➢The data traffic in case of centralized database is more.
➢If any kind of system failure occurs at centralized system then entire data will
be destroyed.
Advantages of Distributed Database System
➢This database can be easily expanded as data is already spread across
different physical locations.
➢The distributed database can easily be accessed from different networks.
➢This database is more secure in comparison to centralized database.
Disadvantages
➢This database is very costly and it is difficult to maintain because of its
complexity.
➢In this database, it is difficult to provide a uniform view to users since it is
spread across different physical locations.
Decentralized Database:
It is a database that is installed on systems that are geographically located at different
locations but not linked through a data communication network. This means that it
is a group of independent database instances which have no logical connections
between them. The user can access a specific network in a specific area of database
locally.

Advantages of Decentralized Database


➢Less likely to fail than a centralized system. It is more reliable.
➢Better performance in the sense fast access.
➢Allows for more diverse and more flexible system.
➢Lower communication cost.
➢It is localized and specific database.
➢It is easy to expand, modularization.
Disadvantages
➢Security and privacy risks to users due to multiple access.
➢Higher maintenances cost, means more overheads.
➢Inconsistent performance when not properly optimized.
➢There will be data integrity problem.
➢May not be proper data distribution.
Data Security:
Data security is a protection of data in database system against
unauthorized access, modification, failure, losses or destruction. The
authorized access means only right people can get the right access to
the right data. There are different cause of database physical
destruction such as fire, water, heat, dust, power failure, theft etc. It
might be accidental loss or physical damage in computer system. In
order to protect from such damages database is stored in different
location in different disk. Different types of data recovery and data
locking techniques are used for the security. Some of the data
security methods are:
➢Using proper backup in disks, tapes, CD etc. provides the security
of data from the accidental loss.
➢Making physical prevention by using stabilizer and UPS to supply a
regular power through which we can prevent hardware and software
from high electricity voltage and irregular power supply.
➢Using strong password protection system, making log in the system
to prevent data from unauthorized access to the database.
➢By keeping the system under lock or safe place.
Some other Terms related to DBMS
Database Administrator (DBA):
DBA is the most responsible person in an organization with sound knowledge
of DBMS. He/She is the overall administrator of the system. The main goal of
the DBA is to keep the database server up-to-date, secure and provides
information to users on demand. In other word, The data administrator is the
person who makes the strategic and policy decisions regarding the data of the
enterprise and the database administrator is a person who provides necessary
technical support for implementing those decisions. Thus, the DBA is
responsible for the overall control of the system at a technical level.
Function/Role of DBA
➢The role of DBA is to define data security, data integrity, forms, reports
relations, and user privileges.
➢DBA has the role of installing, monitoring and upgrading the database
server.
➢DBA has to provide the different facilities for data retrieving and making
reports required.
➢DBA ha to create user manuals, gives training, describe the entire facilities
offer by the system and provide facilities to make effective use.
➢He/She has responsibility to maintain database security, backup-recovery,
strategy and documentation of data dictionary.
➢Effective supervision has to made in all activities in the system: the
addition, modification and deletion data from the database.
Data Abstraction:
Data Abstraction refers to the act of representing essential features without
including the background details or explanations. A Switchboard is an
example of Data Abstraction. It hides all the details of the circuitry and
current flow and provides a very simple way to switch ON or OFF electrical
appliances. The main purpose of a database system is to provide users with
an abstract view of the data. That is the system hides certain details of how
the data are stored and maintained.
There are three levels of data abstraction
(1) Physical Level: It is the lowest level of data abstraction. It
shows how the data is actually stored in the memory.
(2) Logical Level: It includes the information that is actually
stored in the database in the form of tables. It also stores the
relationship among the data entities in relatively simple
structure.
(3) View Level: It is the highest level of data abstraction. The
actual database is visible to the users.
Date Integrity:
Data integrity refers to the accuracy and consistency (validity)
of data over its lifecycle. It is the accuracy, completeness, and
quality of data as it’s maintained over time and across formats.
Preserving the integrity of your company’s data is a constant
process. Data integrity is usually imposed during the database
design phase through the use of standard procedures and rules.
It is maintained through the use of various error-checking
methods and validation procedures.

You might also like