Unit 5-1
Unit 5-1
Subject: DBMS
Sub Code: KMBA 406
UNIT 5
Centralized database management system is the system in which all the data is
stored and managed in a single unit. This is also known as central computer
database system. This system is mostly used in an organization, in any Business
Company or in institution to centralize the tasks.
Data can be accessed through a network Local Area Network (LAN) or Wide
Area Network (WAN). Mainframe computer is the example of centralized
database management system.
All the data and information are stored in single centralized database
management system. The computer system which fulfills the requirements of all
the connected computers is known as server and other computers are known as
clients.
Transparency
All the queries are processed in a single computer system also known as server.
There is no duplication or irrelevant data stored in this management system. All
connected computer has the access to central computer for their query
processing and requirement.
Scalable
Centralized databases are often used by organizations to store data that is shared
by many users. These are used for storing customer information, inventory data,
financial records, and more.
It also allows for better collaboration, as people can easily share data and ideas
reliably.
This is because they are hosted on servers that are designed to be up and
running all the time. This means that if one server goes down, the others can
still be accessed.
Data integrity
Data redundancy
Data security
Due to storage of data in centralized computer system, the security of data needs
to be stronger. Centralized database management system is more secure and
more efficient.
Scalability and localization
Data portability
Data can be easily transferred from one computer to another computer because
it is stored in centralized database management system.
Slow processing
Less efficiency
If the multiple users try to access and process query toward server
simultaneously then it creates problem. The processing speed of the central
computer turns into low. These problems may reduce the efficiency.
Loss of data
Client and server machines typically require different hardware and software
resources and come from other vendors.
The network has horizontal scalability, which increases the number of client
machines and vertical scalability, an then moves the entire process to more
powerful servers or a multi-server configuration.
One computer server can provide multiple services simultaneously, although
each service requires a separate server program.
Both client and server applications interact directly with a transport layer
protocol. This process establishes communication and enables the entities to
send and receive information.
Both the client and server computers need a complete stack of protocols. The
transport protocol employs lower-layer protocols to send and receive
individual messages.
Email servers: Thanks to ease and speed, e-mail has supplanted traditional
postal mail as the primary form of corporate communication. E-mail servers,
aided by various brands of dedicated software, send and receive e-mails
between parties.
File servers: If you store files on cloud-based services such as Google Docs
or Microsoft Office, you're using a file server. File servers are centralized
locations for file storage and are accessed by many clients.
Web servers: These high-performance servers host many different websites,
and clients access them through the Internet. Here’s a step-by-step
breakdown:
The client/user uses their web browser to enter the URL they want
The browser asks the Domain Name System (DNS) for an IP address
The DNS server finds the desired server’s IP address and sends it to the
web browser
The browser creates either an HTTPS or HTTP request
The server/producer sends the user the correct files
The client/user receives the files sent by the server, and the process is
repeated as needed
It’s a centralized system that keeps all the data and its controls in one place
It brings a high level of scalability, organization, and efficiency
It allows the IT staff to change the Client and Server capacities separately
It’s cost-efficient, especially in terms of maintenance
It allows data recovery
It allows load-balancing, which optimizes performance
It allows different platforms to share resources
Users don’t need to log into a terminal or another processor to access
corporate information or desktop tools like PowerPoint presenters or
spreadsheet utilities
The setup reduces the incidence of data replication
Drawbacks:
If the server has a worm, virus, or Trojan, the users will likely catch it since
the network consists of linked clients and servers
The server is vulnerable to Denial of Service (DoS) attacks
Data packets can be spoofed or modified during transmission
It’s expensive to start up and initially implement
If a critical server goes down, the clients are dead in the water
The setup is prone to phishing and Man in the Middle (MITM) attacks
……………………………………………………………………………………
……
In the most basic terms, a distributed database is a database that stores data in
multiple locations instead of one location. This means that rather than putting
all data on one server or on one computer, data is placed on multiple servers or
in a cluster of computers consisting of individual nodes. These nodes are
oftentimes geographically separate and may be physical computers or virtual
machines within a cloud database.
Within heterogeneous distributed databases, there are two subsets: federated and
unfederated.
As with any type of database solution, there are both benefits and challenges.
Here is a brief summary to consider when researching distributed databases for
your organization.
Latency: If not managed properly, latency can occur when users query
data from multiple nodes.
………………………………………
Actions (methods): Actions are the things that can be done with the data.
For example, there may be specific actions needed to update the
customer's address or to retrieve their order history.
In an OODB, you would store the data associated with this object. By storing
data this way, it becomes more intuitive to manage and work with, especially
for applications that handle complex objects and interconnected data. This
structure aligns closely with object-oriented programming (OPP) languages,
which makes it more straightforward for developers to build and maintain
applications.
Structure
Relational databases: While these are very effective for structured data,
they can be less flexible when dealing with complex data types and
relationships. To manage such complexities, conventional databases often
require numerous tables and complex joins, which can become
cumbersome.
In an OODB, data is organized into objects and classes, mirroring the structure
of object-oriented programming languages. In programming, a class acts as a
blueprint for creating objects, specifying both the data structure and the
behaviors the objects will have.
Consider a "book" class in a library database. This class might include attributes
such as title, author, ISBN, and publication year, along with methods to manage
the book's data. Each book in the library is an instance of the "book" class,
containing actual data and the ability to perform actions related to data
management.
Telecommunications
Multimedia applications
OODBs are well-suited for multimedia applications that require storing and
retrieving images, videos, and audio files metadata. They can manage these data
types as objects, making organizing and accessing multimedia content easier.
……………………
Spatial and Temporal Databases:
Spatial data, also known asgeospatial data, refers to information about the
physical location and shape of objects on Earth. This type of data is becoming
increasingly important in a wide range of industries and applications. Here are
some key use cases of spatial data:
Various specialized software tools exist for working with spatial data in the
contexts of graphics and statistics:
1. GIS software
2. Statistical software
3. Data visualization tools
4. Web-based platforms
1) Feature Data
Feature data follows the vector data model. It represents the entity of the real
world, i.e., roads, trees, buildings, etc. This information can be visually
represented in the form of a point, line, or polygon.
2) Coverage Data
Coverage data follows the raster data model. Coverage Data contains the
mapping of continuous data in space and is represented as a range of values in a
satellite image, a digital surface model, aerial photographs, etc. The visual
representation of coverage data is in the form of a grid or triangulated irregular
network.
Line 1 River
Region 2 County
Temporal data is useful for analyzing the change that is happening over a period
of time. This analysis is later used for identifying the potential cause of the
changes and thus come up with solutions.
Times remembered
SQL supports several different data types for storing numeric values (e.g.,
integer and float), and a temporal database also needs a variety of data types for
storing time values. The first level of distinction is to determine whether the
time value is anchored or unanchored. Anchored time has a defined starting
point (e.g., October 15, 1582), and unanchored time is a block of time with no
specified start (e.g., 45 minutes).
Types of temporal data
……………………………………………………………………..
What is a Decision Support System (DSS)?
The model management system S=stores models that managers can use in their
decision-making. The models are used in decision-making regarding the
financial health of the organization and forecasting demand for a good or
service.
2. User Interface
The user interface includes tools that help the end-user of a DSS to navigate
through the system.
3. Knowledge Base
The cost to develop and implement a DSS is a huge capital investment,
which makes it less accessible to smaller organizations.
A company can develop a dependence on a DSS, as it is integrated into
daily decision-making processes to improve efficiency and speed.
However, managers tend to rely on the system too much, which takes
away the subjectivity aspect of decision-making.
A DSS may lead to information overload because an information system
tends to consider all aspects of a problem. It creates a dilemma for end-
users, as they are left with multiple choices.
Implementation of a DSS can cause fear and backlash from lower-level
employees. Many of them are not comfortable with new technology and
are afraid of losing their jobs to technology.
…………………………………………………..
Mobile database:
A mobile database is a database that resides on a mobile device such as a PDA,
a smart phone, or a laptop. Such devices are often limited in resources such as
memory, computing power, and battery power.
The following list includes both SQL and NoSQL databases that are commonly
associated with the design and development of mobile applications and other
digital platforms.
1. MySQL
MySQL is one of the most well-known SQL databases on the market, so it is
also commonly used within the development of mobile applications. Offering
multiple web frameworks, MySQL is a popular choice for developers that are
working with structured datasets, so this database system is a great choice if you
are developing a simple application that won’t change much over time. This is
because MySQL is a vertically scalable relational database management system,
so it is not always suitable for applications that require flexibility and mobility
when it comes to the amount and type of data that is being stored.
2. PostgreSQL
PostgreSQL is also a SQL database, so it deals with the same rows and columns
model as other relational database management systems. Unlike other SQL
databases, PostgreSQL is also compatible with JSON, so it accommodates more
data types than just structured data. PostgreSQL is commonly used when
developing a database for mobile apps that are more simple and straightforward
in their design and data schema. This ensures that the application can continue
to run smoothly as the database grows.
3. MongoDB
Known as one of the most popular NoSQL databases on the market, MongoDB
offers many features geared towards the development of mobile applications.
As a document-based database, MongoDB is proficient with the JSON data-
interchange format, making the storage of web pages and other documents, like
chat logs and messages. Through MongoDB Atlas, developers can work in a
cloud-based system to build a highly complex and scalable database that has the
capacity to grow with the changing needs of the application and the different
types of user data that will be collected and stored.
5. Couchbase
Another NoSQL database, Couchbase is also a cloud-based system that is
popular amongst technology companies that need to store large collections of
information and data from their users. Through a distributed processing model,
Couchbase is the go-to for the development of enterprise applications as it is a
document database with multiple resources for mobile developers and
engineers, such as the Couchbase Developer Portal. Couchbase is also an
excellent option for mobile apps that require a database that is horizontally
scalable and amenable to growth and change over time.
o FixedHosts:
With the aid of database servers, it handles transactions and manages data.
o MobileUnits:
These are mobile, transportable computers, and the cell tower they utilize
to connect to base stations is a part of that geographical area.
o BaseStations:
These two-way radios, which are installed in fixed places, allow
communication between the stationary hosts and the mobile units.
In many instances, a user may utilize a mobile device to log in to any corporate
database server and deal with data there, depending on the specific requirements
of mobile applications. While in other cases, the user can upload data collected at
the remote location to the company database or download it and work with it on
a mobile device. The interaction between the corporate and mobile databases is
frequently intermittent and only occasionally establishes or establishes a link for
a brief period of time.
There are a lot of limitations or drawbacks available, which are pointed out
o
below:
o Its wireless bandwidth is restricted.
o It is very difficult work to make this database theft-proof.
o To operate this, we need unlimited battery power.
o Wireless communication speed suffers in mobile databases.
o In terms of security, it is less secure.
………………………………………………
OODB & XML Databases
Object oriented databases are also called Object Database Management Systems
(ODBMS). Object databases store objects rather than data such as integers,
strings or real numbers. Objects are used in object oriented languages such as
Smalltalk, C++, Java, and others. Objects basically consist of the following:
Attributes - Attributes are data which defines the characteristics of an
object. This data may be simple such as integers, strings, and real numbers or it
may be a reference to a complex object.
Methods - Methods define the behavior of an object and are what was
formally called procedures or functions.
Therefore objects contain both executable code and data. There are other
characteristics of objects such as whether methods or data can be accessed from
outside the object. We don't consider this here, to keep the definition simple and
to apply it to what an object database is. One other term worth mentioning is
classes. Classes are used in object oriented programming to define the data and
methods the object will contain. The class is like a template to the object.
When to Use Object Databases
Object databases should be used when there is complex data and/or complex
data relationships. This includes a many to many object relationship. Object
databases should not be used when there would be few join tables and there
are large volumes of simple transactional data.
Object databases work well with:
CAS Applications (CASE-computer aided software engineering, CAD-
computer aided design, CAM-computer aided manufacture)
Multimedia Applications
Object projects that change over time.
Commerce
Object Database Advantages over RDBMS
Objects don't require assembly and disassembly saving coding time and
execution time to assemble or disassemble objects.
Reduced paging
Easier navigation
Better concurrency control - A hierarchy of objects may be locked.
Data model is based on the real world.
Works well for distributed architectures.
Less code required when applications are object oriented.
Object Database Disadvantages compared to RDBMS
Lower efficiency when data is simple and relationships are simple.
Relational tables are simpler.
Late binding may slow access speed.
More user tools exist for RDBMS.
Standards for RDBMS are more stable.
Support for RDBMS is more certain and change is less likely to be
required.
XML Database
is used to store huge amount of information in the XML format. As the use of
XML is increasing in every field, it is required to have a secured place to store
the XML documents. The data stored in the database can be queried
using XQuery, serialized, and exported into a desired format.
Reasons to store data in XML format as an XML database include:
An enterprise may have numerous XML documents with similar data, but
dispersed in different XML formats. Conglomerating this data into a
singular, standardized XML database structure will avoid compatibility
issues
Data may need to be exposed or ingested as XML, so using another format
such as relational forces double-modeling of the data
XML is very well suited to parse data, deeply nested data and mixed content
(such as text with embedded markup tags)
XML is human readable whereas relational tables require expertise to access
Metadata is often available as XML
Semantic web data is available as RDF/XML
Provides a solution for Object-relational impedance mismatch
<contact2>
<name>Manisha Patil</name>
<company>TutorialsPoint</company>
<phone>(011) 789-4567</phone>
</contact2>
</contact-info>
Here, a table of contacts is created that holds the records of contacts (contact1
and contact2), which in turn consists of three entities − name,
company and phone
………………………………
Static media: These multimedia datasets are specifically used for static
media objects, i.e., those objects that are independent of time constraints,
such as images and graphic objects.
Dynamic media: These datasets are used to store dynamic forms of
media content, i.e., multimedia data elements that are time-dependent,
like audio data, video data, and animations.
Dimensional media: Dimensional multimedia datasets are typically used
in Computer-Aided Drafting programs. These operate on 3D multimedia
data and include various formats used by image and video editing
applications.
Media data: It is the actual multimedia data or the primary data stored in
the multimedia database. It represents a multimedia object and can be an
image, audio, video, animation, graphic object, or text.
Media format data: It is the information related to the format of the
multimedia data. It contains data such as frame rates, encoding schemes,
etc.
Media keyword data: It is also knowns as content descriptive data and
contains information related to the generation of multimedia data like
date and time in the case of images and videos, etc.
Media feature data: It is used to describe the features of multimedia
data, such as the distribution of colors, etc.
Storage: The large size of multimedia data affects its storage, retrieval,
and transmission. Hence, it requires special storage facilities, which are
bigger and faster than conventional disc storage.
Modelling: Multimedia data exist in various formats, and it is difficult to
convert one form of media content into another. This hugely affects the
multimedia data retrieval process.
Performance: Because of its huge size and storage requirements, it takes
a lot of time to process different kinds of multimedia data. Hence,
multimedia databases are slower than traditional databases and require
large bandwidth and high processing power.
Querying: Content-based searching of multimedia content makes use of
computer vision techniques to retrieve digital multimedia data from a
large database. This is difficult to implement and is not conveniently
supported by traditional relational databases.
Every action you perform in the digital world and every piece of information you put
on the internet, public or private, is called data. Data can be stored by the browser
provider and the website’s owner. While the browser will save everything, the website
will only keep the data recorded within its domain.
This online database is not kept on a user’s local machine but rather on a server
accessible over a network, such as the internet.
Besides saving new data, what is a website database for web development? Simply
put, a website database means a collection of data tables. Each table has
specialized “fields” for storing various kinds of data. A primary key is a column in a
database table that identifies each record uniquely and enables straightforward data
retrieval.
A web database can also save everything you want the front-end to show your
users. For example, when you search for anything on the internet, like “used iPhone,”
the results will show up in your browser immediately since the phrases “used” and
“iPhone” are already in the database. You may join the tables as the website’s owner
to manipulate any data or answer.
Yet, as the web world advanced with dynamic, responsive, and web app technology,
the architecture couldn’t handle it. These modern web techs are much more complex.
Thus, it must be handled by a separate system, known as the three-tier architecture.
By separating the database and the server, you can easily modify and adjust your data
without interfering with the server’s architecture. This makes it easier to scale and
update in the future. Even though the 3 layer works independently, they should still be
built on standard protocols to ensure usability, security and stability.
Types of web database
There are many types of databases to use. Yet for web development, the best two
kinds are relational databases and NoSQL databases.
Relational databases
Because most relational databases employ Structured Query Language (SQL), they
are also known as SQL databases.
Relational database uses “keys” to connect information from various tables. This is
the one-of-a-kind identifier that can be allocated to a row of data in a database. When
a record in another table has a link to the primary one in the main table, this unique
identifier, known as a “primary key,” may be included in that record. When this
unique primary key is connected with a record in another table, it is referred to as a
“foreign key” in that table. The link between entries in different tables is then created
by connecting the primary and foreign keys.
There are many web databases examples to choose from, here are some of the top
ones:
MariaDB: A drop-in replacement for MySQL that improves speed and adds
new functionality.
………………………………………..
Active Database:
What is a trigger?
1. Lack of Standardization:
Active Databases lack standardization and common data Various data sets in
formats