SlideShare a Scribd company logo
By – Mridul K. Mishra(170303201015),
CSE, Parul University
ACTIVE Database
Contents
 Definition
 Active Rules
 Architecture
 Built-In Architecture
 Layered Architecture
 Features
 Advantages
 Disadvantages
 Applications
Definition:
 A database that has the ability to spontaneously react
to events occurring inside as well as outside the
system is called active database.
 The ability to respond to external events is called
active behaviour.
 The active behaviour is based on the rules that
integrate a event with the desired effect.
 This behaviour is commonly defined in terms of ECA
rules allowing system to react to specific events.
Active Rules(Production
Rules)
 The active behaviour is achieved through the
production rules/ active rules.
 The active rules are stored programs called
triggers that are fired when an event occurs.
 Triggers are written to respond to DML(select,
insert etc), DDL( create, alter etc) and Database
Operations( Log-On, Log-Off )
These triggers can be defined on table/view or
the database to which event is associated.
Architecture
 The architecture depends on the knowledge model
and execution model
 Knowledge model for triggers:
What kind of rules will be supported?
What these rules are?
Classification of rules at security levels
 Execution model:
Specify runtime strategy for rule execution
Ensure that no illegal information should flow due to
execution of a trigger
 There are two types of architecture for active databases:
Built-in Architecture
Layered Architecture
Built-In Architecture
 Active database components become part of
database.
 Can be achieved by two models:
Implementation from scratch: active components
are implemented as a part of database from
scratch.
Integrated Architecture: This involves modifying and
extending the existing passive database.
1. Event Detector: It detects any external event
occurring and informs the condition manager about it.
2. Condition Monitor: It evaluates the conditions of
rules associated with events that have been detected by
the event detector.
3. Scheduler: It compares recently triggered rules
with those that have previously been triggered,
updates the conflict set, and fires any rules that are
scheduled for immediate processing.
4. Query Evaluator: It executes database queries or
actions. Access may be required both to the current
state of database and to past states in order to
support monitoring of how the database is evolving.
Layered Architecture:
 Active database components are built on top of
existing passive database system.
 Layered approach is better for active object oriented
database when base system is object oriented
database, as it allows reusability of constructed rules
for other tables/databases.
 It is easier to modify the rules according to the
evolving needs.
As evident from the diagram the active rules are
implemented on the top of existing database.
Features
 All the features of a conventional database apply to
active database too.
 Support ECA rules
 Detect the occurrence of events.
 Evaluate conditions to execute actions.
 Support programming environment.
Advantages
 The triggering capabilities enhances the
functionalities of traditional database.
 Same event-driven rules can be applied to every
relevant operation of an organisation.
 Triggers can improve the working of a database by
removing repetitive error check and correction.
 The inference power of ECA rules makes active
database systems a suitable platform for building
large and efficient knowledge base and expert
systems.
 The ECA rules help in:
 Enforcing integrity constraints.
 Implement version control policies
 Implement triggers and alert systems.
 Enforce access constraints.
 Gather statistics for query optimization.
Disadvantages
 Lack of standardization
 Has been mostly implemented for centralized dbms.
Distributed, parallel dbms has not been considered.
 The layered approach is beneficial in terms of
construction cost, but the entire system cannot be
optimized comprehensively and this degrades
runtime performance.
 Optimizing large applications is rendered difficult by
the separation of transactions and triggers and the
misunderstanding of their fine-drawn interactions.
Applications
 Production control e.g. Power plants
 Maintenance tasks
 Share trading
 Air Traffic control
 Statistics gathering and authorization tools
Active database

More Related Content

What's hot

14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMSkoolkampus
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
Janki Shah
 
Architecture of data mining system
Architecture of data mining systemArchitecture of data mining system
Architecture of data mining system
ramya marichamy
 
Introduction to Object Oriented databases
Introduction to Object Oriented databasesIntroduction to Object Oriented databases
Introduction to Object Oriented databases
Dr. C.V. Suresh Babu
 
Ordbms
OrdbmsOrdbms
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
Database development life cycle
Database development life cycleDatabase development life cycle
Database development life cycle
Afrasiyab Haider
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database SystemSulemang
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
Ajay Jha
 
Triggers and active database
Triggers and active databaseTriggers and active database
Triggers and active database
BalaMuruganSamuthira
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Gyanmanjari Institute Of Technology
 
Parallel Database
Parallel DatabaseParallel Database
Parallel Database
VESIT/University of Mumbai
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMSkoolkampus
 
Data warehouse and Decision support system
Data warehouse  and Decision support system Data warehouse  and Decision support system
Data warehouse and Decision support system
Enaam Alotaibi
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
Temesgenthanks
 
DDBMS
DDBMSDDBMS
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
Hardik Patil
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
RituBhargava7
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
SHIKHA GAUTAM
 

What's hot (20)

14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Architecture of data mining system
Architecture of data mining systemArchitecture of data mining system
Architecture of data mining system
 
Introduction to Object Oriented databases
Introduction to Object Oriented databasesIntroduction to Object Oriented databases
Introduction to Object Oriented databases
 
Ordbms
OrdbmsOrdbms
Ordbms
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
Database development life cycle
Database development life cycleDatabase development life cycle
Database development life cycle
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
 
Triggers and active database
Triggers and active databaseTriggers and active database
Triggers and active database
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS ArchitectureDistributed DBMS - Unit 3 - Distributed DBMS Architecture
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
 
Parallel Database
Parallel DatabaseParallel Database
Parallel Database
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
 
Data warehouse and Decision support system
Data warehouse  and Decision support system Data warehouse  and Decision support system
Data warehouse and Decision support system
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
DDBMS
DDBMSDDBMS
DDBMS
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 

Similar to Active database

SELF LEARNING REAL TIME EXPERT SYSTEM
SELF LEARNING REAL TIME EXPERT SYSTEMSELF LEARNING REAL TIME EXPERT SYSTEM
SELF LEARNING REAL TIME EXPERT SYSTEM
cscpconf
 
Process management seminar
Process management seminarProcess management seminar
Process management seminar
apurva_naik
 
System and its types
System and its typesSystem and its types
System and its types
nidhipandey79
 
Self learning real time expert system
Self learning real time expert systemSelf learning real time expert system
Self learning real time expert system
ijscai
 
Active and main memory database
Active and main memory databaseActive and main memory database
Active and main memory database
District Administration
 
Decision Making and Autonomic Computing
Decision Making and Autonomic ComputingDecision Making and Autonomic Computing
Decision Making and Autonomic Computing
IOSR Journals
 
Software architecture
Software architectureSoftware architecture
Software architecture
Sweta Kumari Barnwal
 
Document defect tracking for improving product quality and productivity
Document   defect tracking for improving product quality and productivityDocument   defect tracking for improving product quality and productivity
Document defect tracking for improving product quality and productivitych_tabitha7
 
Software Engineering Important Short Question for Exams
Software Engineering Important Short Question for ExamsSoftware Engineering Important Short Question for Exams
Software Engineering Important Short Question for Exams
MuhammadTalha436
 
Data Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptxData Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptx
Kartiksoni81
 
Performance testing methodologies
Performance testing methodologiesPerformance testing methodologies
Performance testing methodologiesDhanunjay Rasamala
 
CHAPTER FOUR buugii 2023.docx
CHAPTER FOUR buugii 2023.docxCHAPTER FOUR buugii 2023.docx
CHAPTER FOUR buugii 2023.docx
RUKIAHASSAN4
 
Bug Tracking Java Project
Bug Tracking Java ProjectBug Tracking Java Project
Bug Tracking Java Project
Tutorial Learners
 
Asset Management System Introduction
Asset Management System IntroductionAsset Management System Introduction
Asset Management System Introduction
Sara Parker
 
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMSAN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
ijseajournal
 
Query Evaluation Techniques for Large Databases.pdf
Query Evaluation Techniques for Large Databases.pdfQuery Evaluation Techniques for Large Databases.pdf
Query Evaluation Techniques for Large Databases.pdf
RayWill4
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering
arvind pandey
 
Management Information system
Management Information systemManagement Information system
Management Information system
Cochin University
 
Database Security - IK
Database Security - IKDatabase Security - IK
Database Security - IK
Ilgın Kavaklıoğulları
 
Introduction To Database.ppt
Introduction To Database.pptIntroduction To Database.ppt
Introduction To Database.ppt
RithikRaj25
 

Similar to Active database (20)

SELF LEARNING REAL TIME EXPERT SYSTEM
SELF LEARNING REAL TIME EXPERT SYSTEMSELF LEARNING REAL TIME EXPERT SYSTEM
SELF LEARNING REAL TIME EXPERT SYSTEM
 
Process management seminar
Process management seminarProcess management seminar
Process management seminar
 
System and its types
System and its typesSystem and its types
System and its types
 
Self learning real time expert system
Self learning real time expert systemSelf learning real time expert system
Self learning real time expert system
 
Active and main memory database
Active and main memory databaseActive and main memory database
Active and main memory database
 
Decision Making and Autonomic Computing
Decision Making and Autonomic ComputingDecision Making and Autonomic Computing
Decision Making and Autonomic Computing
 
Software architecture
Software architectureSoftware architecture
Software architecture
 
Document defect tracking for improving product quality and productivity
Document   defect tracking for improving product quality and productivityDocument   defect tracking for improving product quality and productivity
Document defect tracking for improving product quality and productivity
 
Software Engineering Important Short Question for Exams
Software Engineering Important Short Question for ExamsSoftware Engineering Important Short Question for Exams
Software Engineering Important Short Question for Exams
 
Data Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptxData Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptx
 
Performance testing methodologies
Performance testing methodologiesPerformance testing methodologies
Performance testing methodologies
 
CHAPTER FOUR buugii 2023.docx
CHAPTER FOUR buugii 2023.docxCHAPTER FOUR buugii 2023.docx
CHAPTER FOUR buugii 2023.docx
 
Bug Tracking Java Project
Bug Tracking Java ProjectBug Tracking Java Project
Bug Tracking Java Project
 
Asset Management System Introduction
Asset Management System IntroductionAsset Management System Introduction
Asset Management System Introduction
 
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMSAN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
AN INVESTIGATION OF THE MONITORING ACTIVITY IN SELF ADAPTIVE SYSTEMS
 
Query Evaluation Techniques for Large Databases.pdf
Query Evaluation Techniques for Large Databases.pdfQuery Evaluation Techniques for Large Databases.pdf
Query Evaluation Techniques for Large Databases.pdf
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering
 
Management Information system
Management Information systemManagement Information system
Management Information system
 
Database Security - IK
Database Security - IKDatabase Security - IK
Database Security - IK
 
Introduction To Database.ppt
Introduction To Database.pptIntroduction To Database.ppt
Introduction To Database.ppt
 

Recently uploaded

Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 

Recently uploaded (20)

Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 

Active database

  • 1. By – Mridul K. Mishra(170303201015), CSE, Parul University ACTIVE Database
  • 2. Contents  Definition  Active Rules  Architecture  Built-In Architecture  Layered Architecture  Features  Advantages  Disadvantages  Applications
  • 3. Definition:  A database that has the ability to spontaneously react to events occurring inside as well as outside the system is called active database.  The ability to respond to external events is called active behaviour.  The active behaviour is based on the rules that integrate a event with the desired effect.  This behaviour is commonly defined in terms of ECA rules allowing system to react to specific events.
  • 4. Active Rules(Production Rules)  The active behaviour is achieved through the production rules/ active rules.  The active rules are stored programs called triggers that are fired when an event occurs.  Triggers are written to respond to DML(select, insert etc), DDL( create, alter etc) and Database Operations( Log-On, Log-Off ) These triggers can be defined on table/view or the database to which event is associated.
  • 5. Architecture  The architecture depends on the knowledge model and execution model  Knowledge model for triggers: What kind of rules will be supported? What these rules are? Classification of rules at security levels  Execution model: Specify runtime strategy for rule execution Ensure that no illegal information should flow due to execution of a trigger
  • 6.  There are two types of architecture for active databases: Built-in Architecture Layered Architecture
  • 7. Built-In Architecture  Active database components become part of database.  Can be achieved by two models: Implementation from scratch: active components are implemented as a part of database from scratch. Integrated Architecture: This involves modifying and extending the existing passive database.
  • 8. 1. Event Detector: It detects any external event occurring and informs the condition manager about it. 2. Condition Monitor: It evaluates the conditions of rules associated with events that have been detected by the event detector. 3. Scheduler: It compares recently triggered rules
  • 9. with those that have previously been triggered, updates the conflict set, and fires any rules that are scheduled for immediate processing. 4. Query Evaluator: It executes database queries or actions. Access may be required both to the current state of database and to past states in order to support monitoring of how the database is evolving.
  • 10. Layered Architecture:  Active database components are built on top of existing passive database system.  Layered approach is better for active object oriented database when base system is object oriented database, as it allows reusability of constructed rules for other tables/databases.  It is easier to modify the rules according to the evolving needs.
  • 11. As evident from the diagram the active rules are implemented on the top of existing database.
  • 12. Features  All the features of a conventional database apply to active database too.  Support ECA rules  Detect the occurrence of events.  Evaluate conditions to execute actions.  Support programming environment.
  • 13. Advantages  The triggering capabilities enhances the functionalities of traditional database.  Same event-driven rules can be applied to every relevant operation of an organisation.  Triggers can improve the working of a database by removing repetitive error check and correction.  The inference power of ECA rules makes active database systems a suitable platform for building large and efficient knowledge base and expert systems.
  • 14.  The ECA rules help in:  Enforcing integrity constraints.  Implement version control policies  Implement triggers and alert systems.  Enforce access constraints.  Gather statistics for query optimization.
  • 15. Disadvantages  Lack of standardization  Has been mostly implemented for centralized dbms. Distributed, parallel dbms has not been considered.  The layered approach is beneficial in terms of construction cost, but the entire system cannot be optimized comprehensively and this degrades runtime performance.  Optimizing large applications is rendered difficult by the separation of transactions and triggers and the misunderstanding of their fine-drawn interactions.
  • 16. Applications  Production control e.g. Power plants  Maintenance tasks  Share trading  Air Traffic control  Statistics gathering and authorization tools