-
File Based System -
- Collection of application Programs
- Each Program Defines and manages its own data
-
Limitations
- Data Dependence - File structure defined in program
- Incompatible File Formats - Each program in a different language - Cannot easily access other files
- Fixed Queries/Proliferation of Application Program - New requirements may require new program
- Seperation and Isolation of Data - Each prg maintains its own data. Users may be unaware of data held by another prg
- Duplication of Data - Same data held by different prgms. Wasted space and potentially different values and/or different formats for same data
-
Database Approach
-
Arose due to limitations of File based approach
- Data embedded in application programs - NOT stored seperately and independently
- No control over access and manipulation of data beyond restrictions of application program
- Database - A shared collection of logically related data ( and a description of this data), designed to meet information needs of organisation
-
DBMS - Software system that allows users to :
- Define
- Create
- Maintain Database
- Provides controlled access to DB
-
Database Application Program
- Software program that interacts with DB by issuing appropriate requests ( usually a SQL statement) to DBMS
-
DBMS
-
DDL - Data Definition Library - Permits specification of:
- data types
- Structures
- Data constraints
-
DML - Data Manipulation Language
- General enquiry facility - Query Language - of data
-
Controlled Access
- Security System
- Integrity System
- Concurrency Control system
- Recovery Control System
- User-accessible catalog
- View Mechanism - Only data they need or want is made available
-
Views
- Each user has own view of Data
- View is subset of data
-
Benefits
- Reduced Complexity
- Increased security
- DB appearance is Customisable
- Consistent, unchanging picture of structure of DB.
-
Advantages
- Control of Data Redundancy
- Data consistency
- More detail from same level of Data
- Improved Data Integrity
- Improved security
- Enforced standards
- Economy of scale
- Balanced conflicting requirements
- Improved data accessibility and responsiveness
- Increased productivity
- Improved maintenance through data independence
- Increased concurrency
- Improved back up and recovery services
- Sharing of data
-
Disadvantages
- Complexity
- Size
- Performance
- Higher impact of failure
-
Related to changing to DB
- Cost of DBMS
- Additional hardware cost- initially
- Cost of conversion