DB Unit-2
DB Unit-2
Distributed databases:
A distributed database is a type of database that has
contributions from the common database and information
from common database is captured by local computers.
In this type of database system, the data is not in one
place and is distributed at various organizations.
Types of Distributed Databases
Consistent Checkpointing :
It creates a consistent image of the database at
checkpoint.
During recovery, only those transactions which are on
the right side of the last checkpoint are undone or
redone.
The transactions to the left side of the last consistent
checkpoint are already committed and needn’t be
processed again.
Fuzzy Checkpointing :
In fuzzy checkpointing, at the time of checkpoint, all the
active transactions are written in the log.
5)Event-Condition-Action rule(ECA Rule):
ECA rules approach was developed to support the need
to react to different kinds of events occurring in active
databases.
There are three components in an ECA rule:
•Event: Specifies the event that triggers the invocation of the
rule.
•Condition: Consists of the conditions that need to be
satisfied in order to carry out the specified action.
•Action: Specifies the actions to be taken on the data.
Eg : ATM process
Event – ATM card insertion
Condition – ask the Password,whether the password match
or not
Action – If Password matches then do the transaction
Active Databases:
Active Database is a database consisting of set of
triggers. In such database, DBMS initially verifies whether the
particular trigger specified in the statement that modifies is
activated or not, prior to executing the statement.
If the trigger is active then DBMS executes the condition
part and then executes the action part only if the specified
condition is evaluated to true.
6)ODBC:
ODBC stands for Open Database Connectivity. It is an
open standard Application Programming Interface(API).
It is an important technology in the database to access
and manage databases.
ODBC allows programs to use SQL requests that access
databases without knowing the proprietary interfaces to the
databases.
ODBC consists of four components, working together to
enable functions:
• Application. The end-user program that calls the ODBC
functions and submits the SQL statements.
• Driver manager. Loads the correct driver for each
application and database.
• Driver. Handles ODBC function calls, and then submits
each SQL request to the data source.
• Data source. The database being accessed and
its database management system.
ODBC Architecture: