Professional Documents
Culture Documents
Bindu Jose
Advanced Database Models
Objectives
Identify the common features of the advanced
applications and create data models to support the
applications
Active Databases
Temporal Databases
They exhibit the need for developing a set of unifying concepts for
application developers to use.
Duration Events
Associated with a specific time period
Employee working on a specific project
In the employee table the current version of the employee details will be recorded
One record per employee
Employee_VT will have a different versions (records) of the same employee
depending on the changes in their salary
With Valid time the behaviour of the relation (table) changes
Whenever the attribute changes rather than overwriting the value a new version is
created and system will close the current version by changing the VET to the end time
The spatial value NOW implicitly represent the current version
Design Considerations
EMPLOYEE_VT
Design Considerations
With Day as time granularity Transaction Time
Relation will be
EMPLOYEE_TT
SSN Name Salary DNo Supervisor_Ssn TST TET
DBMS_WM.EnableVersioning(
table_name IN VARCHAR2,
hist IN VARCHAR2 DEFAULT 'NONE',
isTopology IN BOOLEAN DEFAULT FALSE,
validTime IN BOOLEAN DEFAULT FALSE,
undo_space IN VARCHAR2 DEFAULT NULL);
Oracle Temporal Support
Table_name : Name of the table. The table name is not case sensitive.