SlideShare a Scribd company logo
1 of 17
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

Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Rabin BK
 
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMSkoolkampus
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database SystemMeghaj Mallick
 
Database abstraction
Database abstractionDatabase abstraction
Database abstractionRituBhargava7
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and HeterogeneousFaraz Qaisrani
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSUnited International University
 
Database architecture
Database architectureDatabase architecture
Database architectureVENNILAV6
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databasesJames Serra
 
1.2 steps and functionalities
1.2 steps and functionalities1.2 steps and functionalities
1.2 steps and functionalitiesKrish_ver2
 
Query evaluation and optimization
Query evaluation and optimizationQuery evaluation and optimization
Query evaluation and optimizationlavanya marichamy
 

What's hot (20)

Active and main memory database
Active and main memory databaseActive and main memory database
Active and main memory database
 
Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
 
Temporal databases
Temporal databasesTemporal databases
Temporal databases
 
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMS
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
 
Query processing in Distributed Database System
Query processing in Distributed Database SystemQuery processing in Distributed Database System
Query processing in Distributed Database System
 
Database abstraction
Database abstractionDatabase abstraction
Database abstraction
 
DDBMS
DDBMSDDBMS
DDBMS
 
Difference between Homogeneous and Heterogeneous
Difference between Homogeneous  and    HeterogeneousDifference between Homogeneous  and    Heterogeneous
Difference between Homogeneous and Heterogeneous
 
Distributed DBMS - Unit 1 - Introduction
Distributed DBMS - Unit 1 - IntroductionDistributed DBMS - Unit 1 - Introduction
Distributed DBMS - Unit 1 - Introduction
 
DDBMS Paper with Solution
DDBMS Paper with SolutionDDBMS Paper with Solution
DDBMS Paper with Solution
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
 
Denormalization
DenormalizationDenormalization
Denormalization
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFS
 
Database architecture
Database architectureDatabase architecture
Database architecture
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
1.2 steps and functionalities
1.2 steps and functionalities1.2 steps and functionalities
1.2 steps and functionalities
 
DBMS
DBMSDBMS
DBMS
 
Distributed storage system
Distributed storage systemDistributed storage system
Distributed storage system
 
Query evaluation and optimization
Query evaluation and optimizationQuery evaluation and optimization
Query evaluation and optimization
 

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 SYSTEMcscpconf
 
Process management seminar
Process management seminarProcess management seminar
Process management seminarapurva_naik
 
System and its types
System and its typesSystem and its types
System and its typesnidhipandey79
 
Self learning real time expert system
Self learning real time expert systemSelf learning real time expert system
Self learning real time expert systemijscai
 
Decision Making and Autonomic Computing
Decision Making and Autonomic ComputingDecision Making and Autonomic Computing
Decision Making and Autonomic ComputingIOSR Journals
 
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 ExamsMuhammadTalha436
 
Data Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptxData Flow Architecture_UNIT_2.pptx
Data Flow Architecture_UNIT_2.pptxKartiksoni81
 
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.docxRUKIAHASSAN4
 
Asset Management System Introduction
Asset Management System IntroductionAsset Management System Introduction
Asset Management System IntroductionSara 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 SYSTEMSijseajournal
 
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.pdfRayWill4
 
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 systemCochin University
 
Introduction To Database.ppt
Introduction To Database.pptIntroduction To Database.ppt
Introduction To Database.pptRithikRaj25
 
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...Reza Farrahi Moghaddam, PhD, BEng
 

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
 
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
 
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...
Cognitive Behavior Analysis framework for Fault Prediction in Cloud Computing...
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

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