Database-Architecture
Database-Architecture
Database Architecture
a) DDL Interpreter
o It interprets DDL statements into low level.
o Records the definition in the data directory.
b) DML Compiler
o It translates DML query statement in query language into low-level
instruction.
o Query evaluation engine understands only low level instruction.
o Query can be translated into many number of evaluation plans which
produces same result.
o Query optimization is picking up the lowest cost evaluation plan among
many alternatives. It is performed by DML compiler.
c) Query evaluation engine
o Executes low level instruction generated by DML compiler.
Database architecture can be of two types,
In Three tier architecture, client machine acts as front end and does not contain
any direct database calls.
Instead client end communicate with an application server
Application server in turn communicates with a database system to access data.
Three-tier architecture typically comp comprises a presentation tier, a business or data
access tier, and a data tier. Three layers in the three tier architecture are as follows:
1) Client layer, 2) Business layer
layer, 3) Data layer
1) Client layer:
It is also called as Presentation layer which containss UI part of our application.
This layer is used for the design purpose where data is presented to the user or
input is taken from the user.
For example designing registration form which contains text box, label, button
etc.
2) Business layer:
In this layer
yer all business logic written like validation of data, calculations, data
insertion etc.
This acts as an interface between Client layer and Data Access Layer.
This layer is also called the intermediary layer helps to make communication
faster between client
ient and data layer.
3) Data layer:
In this layer actual database is comes in the picture.
Data Access Layer contains methods to connect with database and to perform
insert, update, delete, get data from database based on our input data.