DBMS WH
DBMS WH
DBMS WH
There are different fields where a database management system is utilized. Following
are a few applications that utilize the information base administration framework.
Data Abstraction
The main purpose of data abstraction is to achieve data independence in order to save
the time and cost required when the database is modified or altered.
Ans:-
• Data independence can be explained using the three-schema architecture.
• Data independence refers characteristic of being able to modify the schema at one
level of the database system without altering the schema at the next higher level.
Information :-
1. Processed form of data.
2. Used for conclusion can be drawn .
3. Plays important role in decision making.
4. Information can also be further utilized to produce highly densified information.
5. It is time bound.
2-Tier:-
In this type of architecture, the applications on client-side interact directly with the
database present at the server-side.
This interaction between client and server uses Application Program Interface like ODBC
and JDBC.
When there are a large number of users at client side to access the database, this
architecture gives a poor performance.
The server side is responsible for delivering the functionalities like query processing and
management of transactions.
3-Tier :-
The 3-tier architecture contains one more layer between the client and the server.
Layers
• Presentation layer − This layer is also called the client layer. The front-end layer
consists of a user interface. The main purpose is to communicate with the
application layer.
• Application layer − This layer is also called the business logic layer. It acts as a
middle layer between the client and the database server which are used to
exchange partially processed data.
• Database layer − In this layer the data or information is stored. This layer performs
operations like insert, update and delete to connect with the database.
N-Tier :-
• That means that these different functions are hosted on several machines or
clusters, ensuring that services are provided without resources being shared and,
as such, these services are delivered at top capacity. The “N” in the name n-tier
architecture refers to any number from 1.
N-tier architecture would involve dividing an application into three different tiers. These
would be the
• logic tier,
• the presentation tier, and
• the data tier
Explain DBMS architecture
Ans:-
• A database system is partitioned into modules that deal with each of the
responsibilities of the overall system
• The functional components of a database system can be broadly divided into -
the storage manager, - the query processor components, - the transaction
management component
Storage Manager :-
• A program module that provides the interface between the lowlevel data stored in
the database and the application programs and queries submitted to the system.
• The storage manager is responsible to the following tasks: – Interaction with the
OS file manager – Efficient storing, retrieving and updating of data
• The storage manager components include: – Authorization and integrity manager
– Transaction manager – File manager – Buffer manager
Short Note :
a) Transaction Server:-
• Transaction servers which are widely used in relational database systems.
• It provide an interface to which clients can send requests to perform an
action, in response to which they execute the action and send back results
to the client. Transaction – Server Systems :
• Usually, client machines ship transactions to the server systems, where
those transactions are executed, and results are shipped back to clients
that are in charge of displaying the data.
• Requests may be specified by using SQL, or through a specialized
application program interface.
• Server processes: -
1. These are processes that receive user queries (transactions),
execute them, and send the results back. The queries may be
submitted to the server processes from a user interface, or from a
user process running embedded SQL, or via JDBC, ODBC, or
similar protocols.
2. Some database systems use a separate process for each user
session, and a few use a single database process for all user
sessions, but with multiple threads so that multiple queries can
execute concurrently.
3. (A thread is similar to a process, but multiple threads execute as
part of the same process, and all threads within a process run in
the same virtual-memory space. Multiple threads within a process
can execute concurrently.
• Lock manager process: This process implements lock manager
functionality, which includes lock grant, lock release, and deadlock
detection.
• Database writer process: There are one or more processes that output
modified buffer blocks back to disk on a continuous basis.
• Log writer process: This process outputs log records from the log record
buffer to stable storage. Server processes simply add log records to the
log record buffer in shared memory, and if a log force is required, they
request the log writer process to output log records (recall that a log force
causes the log contents in memory to be output to stable storage).
• Checkpoint process: This process performs periodic checkpoints
b) Data Server:-
• Data servers, used in object-oriented database systems (OODBMS).
• It allow clients to interact with the servers by making requests to read or
update data, in units such as files or pages.
• For example, file servers provide a file-system interface where clients can
create, update, read, and delete files.
• They support units of data—such as pages, tuples, or objects—that are
smaller than a file.
• They provide indexing facilities for data, and provide transaction facilities
so that the data are never left in an inconsistent state if a client machine or
process fails.
• Data-server systems are used in local-area networks.
• High-speed connection between the clients and the server.
• It makes sense to ship data to client machines, to perform all processing
at the client machine and then to ship the data back to the server
machine.
• Data-server architectures have been particularly popular in object-oriented
database systems.
c) Cloud Server:-
• A cloud server is a logical server that is built, hosted and delivered through
a cloud computing platform over the Internet. Cloud servers possess and
exhibit similar capabilities and functionality to a typical server but are
accessed remotely from a cloud service provider.
• Cloud servers have all the software they require to run and can function as
independent units.
• Servers are usually owned by the enterprise providing the service, but
there is an increasing trend for service providers to rely at least in part
upon servers that are owned by a “third party” that is neither the client nor
the service provider.
• One model for using third-party servers is to outsource the entire service
to another company that hosts the service on its own computers using its
own software. This allows the service provider to ignore most details of
technology and focus on the marketing of the service.
• Second model for using third-party servers is cloud computing, in which
the service provider runs its own software, but runs it on computers
provided by another company.
Under this model, the third party does not provide any of the application
software; it provides only a collection of machines.
These machines are not “real” machines, but rather simulated by software
that allows a single real computer to simulate several independent
computers. Such simulated machines are called virtual machines.
• A third model uses a cloud computing service as a data server. A number
of systems for data storage on the cloud have been developed and
deployed over the past few years to address data management
requirements.
• Cloud computing is a general term for anything that involves delivering
hosted services over the Internet. A cloud can be Private, Public or Hybrid.
Cloud Server Advantages :-
1] Flexibility and scalability : Extra resource can be accessed as and when
required.
2] Cost-effectiveness : It is available when needed, clients only pay for
what they are using at a particular time.
3] Ease of set up : Cloud servers do not require much initial setup.
4] Reliability : due to the number of available servers, if there are problems
with some, the resource will be shifted so that clients are unaffected.
What is DBMS ? Explain characteristics of DBMS ?
Ans:-
A DBMS is a software that allows creation, definition and manipulation of database,
allowing users to store, process and analyse data easily.
• DBMS provides us with an interface or a tool, to perform various operations like
creating database, storing data in it, updating data, creating tables in the database and
a lot more.
• DBMS also provides protection and security to the databases. • It also
maintains data consistency in case of multiple users.
Here are some examples of popular DBMS used these days:
a) MySql
b) Oracle
c) SQL Server
d) IBM DB2
e) PostgreSQL
f) Amazon SimpleDB (cloud based) etc.
DBMS also allows to have relationships between tables which makes the data
more meaningful and connected. You can easily understand what type of data
is stored where by looking at all the tables created in a database.
2. Reduced Redundancy:- In the modern world hard drives are very cheap, but
earlier when hard drives were too expensive, unnecessary repetition of data in
database was a big problem. But DBMS follows Normalisation which divides
the data in such a way that repetition is minimum.
6. Security:- The DBMS also takes care of the security of data, protecting the
data from un-authorised access. In a typical DBMS, we can create user
accounts with different access permissions, using which we can easily
secure our data by restricting user access.