Database Basic
Database Basic
Duplicate
Data
Problems with Data Dependency
Each application programmer must maintain
their own data
Each application program needs to include
code for the metadata of each file
Each application program must have its own
processing routines for reading, inserting,
updating and deleting data
Lack of coordination and central control
Non-standard file formats
Problems with Data
Redundancy
Application
#1
Application
DBMS
#2
Database
containing
centralized
shared data
Application
#3 DBMS manages data
resources like an operating
system manages hardware
resources
Advantages of Database Approach
• Program-Data Independence
– Metadata stored in DBMS, so applications don’t need to
worry about data formats
– Data queries/updates managed by DBMS so programs
don’t need to process data access routines
– Results in: increased application development and
maintenance productivity
• Minimal Data Redundancy
– Leads to increased data integrity/consistency
Advantages of Database Approach
• Up-front costs:
– Installation Management Cost and Complexity
– Conversion Costs
• Ongoing Costs
– Requires New, Specialized Personnel
– Need for Explicit Backup and Recovery
• Organizational Conflict
– Old habits die hard
Use a DBMS when Do not use a DBMS
this is important when
• persistent storage of data • the initial investment in
• centralized control of data hardware, software, and
• control of redundancy training is too high
• control of consistency and
• the generality a DBMS
integrity provides is not needed
• multiple user support
• the overhead for security,
concurrency control, and
• sharing of data recovery is too high
• data documentation • data and applications are
• data independence simple and stable
• control of access and • real-time requirements
security cannot be met by it
• backup and recovery • multiple user access is not
needed