Академический Документы
Профессиональный Документы
Культура Документы
65
4.4 Summary:
This unit introduced the quality of service in telephony, network planning design and
management. This unit also introduced the concept of DBMS.
4.5 Keywords:
4.6. Exercise:
4.7 References:
66
MODULE- 2
67
5.1 Application of DBMS in management
68
Components of the DBMS Environment
There are five major components in the DBMS environment
- Hardware
- Software
- Data
- Users
- Procedures
1) Hardware: The hardware is the actual computer system used for keeping and accessing
the database. Conventional DBMS hardware consists of secondary devices, usually hard
disks, on which the database physically resides, together with the associated input-output
devices controllers and so forth. Database run on range of machines, from Micro-computer
to large mainframes. Other hardware issues for a DBMS includes database machines, which
is hardware designed specially to support a database system.
2) Software: The software is the actual DBMS. Between the physical databases itself and
the users of the system of software, usually called the Database Management System or
DBMS. All requests from users for access to the database are handled by the DBMS. One
general function provided by the DBMS is thus the shielding of database from complex
hardware-level detail.
The DBMS allows the users to communicate with the database. In a sense, it is the mediator
between the database and the users. The DBMS controls the access and helps to maintain
the consistency of the data. Utilities are usually included as part of the DBMS. Some of the
most common utilities are writers, application development tools and other design aids.
3) Data: It is the most important component of DBMS environment from the end users
point of view. The database contains operational data and the meta-data, the ―data about
data‖.
The database should contain all the data needed by the organization. In of the major
features of databases is that the actual data are separated from the programs that use the
data. A database should always be designed, built and populated for a particular audience
and for a specific purpose.
69
4) Users: there are a number of users who can access or retrieve data on demand using the
application capacities. The users of a database system can be classified in the following
groups, depending on their degrees of expertise or the mode of their interactions with
DBMS.
The users can be:
• Naive Users
• Online Users
• Application Programmers
• Sophisticated users
• DBA
5) Procedures: Procedures refer to the instructions and rules that govern the design and use
of the database. The users of the system and the staff that manage the database require
documented procedures on how to use or run the system.
These may consist of instruction on how to:
- Log onto the DBMS
- Use a particular DBMS facility or application program
- Start and stop the DBMS
- Make backup copies of the database
- Handle hardware or software failures
- Change the structure of a table, reorganize the database across multiple disks, improve
performance, or archive data to secondary storage.
70
3) Internal Level: Internal level indicates hoe the data will be stored and described the data
structures and access method to be used by the database. It contains the definition of stored
record and method of representing the data fields and access aid used.
A mapping between external and conceptual views gives the correspondence among the
records and relationship of the conceptual and external view. The external view is the
abstraction of conceptual view which in turns is the abstraction of internal view. It
describes the contents of the database as perceived by the user or application program of
that view.
A mapping between conceptual records from the physical database.
A major objective for three- level architecture is to provide data independence, which
means that upper levels are unaffected by changes in the lower levels.
1. Logical data independence: Logical data independence indicates that the conceptual
schema can be changed without affecting the existing schemas.
2. Physical data independence: Physical data independence indicates that physical storage
structures or devices could be changed without affecting conceptual schema.
Database Languages
The data definition language (DDL) comprises those instructions used for creating,
removing and altering data structures for containing information.
The data manipulation language (DML) comprises those instructions used for
retrieval, deletion, update & insertion of database contents
The data control language (DCL) comprises those instructions used for specifying
access permissions on the database structures & contents
71
5.3 Steps in Designing DB
Database Design
1st Step: Requirements definition & analysis
2nd Step: Conceptual design
3rd Step: Logical design or data model mapping
4th Step: Physical design
1) Requirements analysis
Database designers interview prospective database users to understand and document their
data requirements.
Two types of requirements
Functional requirements
Database requirements
2) Conceptual design
Create conceptual schema using high level conceptual data model
Conceptual schema is a description of the data requirements of the users and
includes entity types, relationships, and constraints.
Conceptual schema does not include implementation details and can be used to
communicate with nontechnical users.
It can be used to ensure that all users‘ data requirements are met and no conflict
exists
72
4) Physical design
● Internal storage structures, access paths, and file organizations for the database
files are specified
● In parallel with all steps, application programs are designed and implemented as
database transactions corresponding to the high level transaction specifications.
5.4 DB Objects
A database object is any defined object in a database that is used to store or reference data.
Some examples of database objects are:-
1. Table: A table stores data about an entity (a person, place, or thing) and is the
basic element in any database. A table is made up or records, which in turn are
made up of fields. It is columnar in appearance, with each record in a separate
row of the table and each field in a separate column.
2. Form: A form provides a more convenient and attractive way to enter, display
and/or print the data in a table.
3. Query: A query answers a question about the database. The most common
type of query specifies a set of criteria, then searches the database to retrieve the
records that satisfy that criteria.
4. Report: A report presents the data in a table or query in attractive fashion on
the printed page.
5.5 Normalization
73
Eliminate duplicative columns from the same table.
Create separate tables for each group of related data and identify each row with a
unique column or set of columns (the primary key).
Second Normal Form (2NF)
Second normal form (2NF) further addresses the concept of removing duplicative
data:
Meet all the requirements of the first normal form.
Remove subsets of data that apply to multiple rows of a table and place them in
separate tables.
Create relationships between these new tables and their predecessors through the
use of foreign keys.
Third Normal Form (3NF)
Third normal form (3NF) goes one large step further:
Meet all the requirements of the second normal form.
Remove columns that are not dependent upon the primary key.
Boyce-Codd Normal Form (BCNF or 3.5NF)
The Boyce-Codd Normal Form, also referred to as the "third and half (3.5) normal form",
adds one more requirement:
Meet all the requirements of the third normal form.
Every determinant must be a candidate key.
5.6 DBMS
74
Fig: DBMS Software
Functionalities of DBMS
A DBMS is a general purpose software system facilitating each of the following:
Defining a database
Specifying data types, structures, and constraints of the data to be stored in the database.
Constructing the database
The process of storing the data on some storage medium (e.g., magnetic disk) that is
controlled by the DBMS
Manipulating the database
Querying the database to retrieve specific data, updating the database to reflect changes in
the mini-world, and generating reports
Sharing a database
Allowing multiple users and programs to access the database "simultaneously"
Maintaining the database
Allowing the system to evolve as requirements change over time
System protection
Preventing database from becoming corrupted when hardware or software failures occur
Security protection
Preventing unauthorized or malicious access to database.
75
5.7 Data Model
A data model is a collection of concepts for describing data.
A schema is a description of a particular collection of data, using the given data model.
The relational model of data is the most widely used model today.
Main concept: relation, basically a table with rows and columns.
Every relation has a schema, which describes the columns, or fields.
A database model is a type of data model that determines the logical structure of a
database and fundamentally determines in which manner data can be stored, organized, and
manipulated. The most popular example of a database model is the relational model, which
uses a table-based format.
Common logical data models for databases include:
Hierarchical database model
Network model
Relational model
Entity–relationship model
Object Oriented model
76
As the usage of web-based technology increases with the implementation of Intranets and
extranets, companies have a vested interest in OODBMSs to display their complex data.
Using a DBMS that has been specifically designed to store data as objects gives an
advantage to those companies that are geared towards multimedia presentation or
organizations that utilize computer-aided design (CAD).
Some object-oriented databases are designed to work well with object-oriented
programming languages such as Delphi, Ruby, Python, Perl, Java, C#, Visual Basic, .NET,
C++, Objective-C and Smalltalk; others have their own programming languages.
OODBMSs use exactly the same model as object-oriented programming languages.
77
5.9 Types of DB
Types of Databases
• Operational Database
– Supports business processes and operations
– Also called subject-area databases, transaction databases, and production
databases
Examples are customer databases, personnel databases, inventory databases, and other
databases containing data generated by business operations.
• Distributed Database
– Replicated and distributed copies or parts of databases on network servers at
a variety of sites.
– Done to improve database performance and security
Distributed databases may be copies of operational or any other type of database.
• External Database
– Available for a fee from commercial sources or with or without charge on
the Internet or World Wide Web
• Hypermedia Database
– Hyperlinked pages of multimedia
78