Professional Documents
Culture Documents
Entity
• A person, place, thing, or event on which we maintain information.
Accessing Records from Computer Files
Computer stores files on secondary storage devices.
• Records can be arranged in several ways on storage media.
• How individual record scan be accessed or retrieved depends on how they are
arranged on storage media.
There are mainly two ways to organize records: sequentially or randomly.
• In sequential file organization, data records must be retrieved in the same physical
sequence in which they are stored.
• In direct or random file organization, data records can be accessed in any sequence as
users desire, without regard to actual physical order on the storage media.
• Sequential file organization is the only file organization that can be used on magnetic
tape. Example: Payroll
• Direct or random file organization is utilized with magnetic disk.
*Most computer applications utilize this method*
TRADITIONAL FILE ENVIRONMENT
(FLAT FILE SYSTEM)
• Poor Data Control: No centralized control at the data element level, hence a traditional file
system is decentralized in nature.
• Problem of Security: Difficult to enforce security checks and access rights in a traditional file
system, since application programs are added in an adhoc manner.
• Needs Excessive Programming: Change to an existing file structure forces modifications in all
of the programs that use the data in that file which takes time. Change means developing the
program from scratch.
Example of a Flat file
Traditional File Processing
Database Management System (DBMS)
• Database – A shared collection of logically related data, and a description of the data, designed to
meet the information needs of an organization.
• Database Management System (DBMS) – A software system that enables users to define, create,
maintain and control access to the database. Also permits centralization of data and data
management
• Application of DBMS: Insurance, Hospitals, Airlines, Universities, schools, Banking, Human
Resources, Manufacturing, and selling etc.
• Roles in the Database: Data and Database Administrators, Database Designers, Application
Developers, Users
• Queries: Users can request data from specified fields.
• Security: Addresses Security issues by giving users different views depending on the role.
• DBMS examples: SQL Server, FileMaker, Oracle, RDBMS, dBASE, Clipper, MySQL, PostgreSQL,
Microsoft Access and FoxPro, SQLite, MySQL, LibreOffice Base, IBM DB2, MariaDB
Different User views in one Database
Database Management System (DBMS)
The Contemporary Database Environment
Data Concepts and Characteristics
Data Hierarchy
– Fields/columns
• Hold single pieces of data
– Records/rows
• Groups of related fields
– Tables
• Collection of related records
– Database
• Contains a group of related tables
Database Architecture
Distributed Databases
– Replication
• Full copy of the entire database is stored at all sites.
– Fragmentation
• Parts of database are stored where they are most often accessed. Reducing access traffic
Centralized Database (Client/Server Systems)-
– Four basic client/server models
• Applications run at a server
• Applications run on local PCs
• Applications run on both the local PCs and the server
• Applications and key elements of the database are split between the PCs and the server
Types of Database Management systems
• Operational Databases
• Distributed Databases
Operational Databases
Information(data) is stored at a centralized location and the users
from different locations can access this data. It contains procedures
to access information from Remote location by verifying and
validating end users(E.g. using student number) which also keeps
track and record of usage.
Distributed Databases
• Data is located in different sites of the organization. These sites are
connected to each other with the help of communication links
which helps them to access the distributed data easily.
• There are two kinds of distributed database: homogenous and
heterogeneous
• Homogenous Database: Runs on same hardware, same software
and same application procedure in all sites of Database
• Heterogeneous Database: Operating system, underlying hardware
and application procedures are different at various sites of
Database
Distributed Databases
Advantages of Database Systems
▪ Controlled redundancy: Duplication can be carefully controlled, that means the database
system is aware of the redundancy and it assumes the responsibility for propagating updates.
▪ Data consistency: Controlled redundancy solves the problem of Data consistency.
▪ Program data independence: database systems provide an independence between the file
system and application program, that allows for changes at one level of the data without
affecting others.
▪ Sharing of data: Data is centrally controlled and can be shared by all authorized users
▪ Enforcement of standards: Sstandardized data formats can be enforced to facilitate data
transfer between systems.
• Improved data integrity centralized control property ensure that data is both accurate and
consistent.
• Improved security: DBA ensures that proper access procedures are followed, including proper
authentical schemes for access to the DBMS and additional checks before permitting access to
sensitive data.
▪ Data access is efficient: Sophisticated techniques are used in accessing stored data.
Advantages of Database Systems
Cont..
• Conflicting requirements can be balanced: DBA resolves the conflicting requirements of
various users and applications
• Improved backup and recovery facility: has backup and recovery subsystem incase of
hardware or software failure.
• Minimal program maintenance: Due to independence of data and application programs
compared to tradition file system
• Data quality is high: Has many tools and processes available.
• Good data accessibility and responsiveness: users to ask ad hoc queries to obtain the
needed information immediately
• Concurrency control: They can manage simultaneous (concurrent) access of the database
by many users.
• Economical to scale: Data is stored in a central Database reduces overall costs of
operation and management of the database
• Increased programmer productivity: Database systems has many functions that’s allow
programmer to choose what users require, thus reducing development time and cost.
Disadvantages of Database Systems
• Complexity increases: Since its supporting many application. Need a specialized person to
manage.
• Requirement of more disk space: Need more space to store and run than the traditional file
system
• Additional cost of hardware: Depending on the environment cost of hardware and
maintenance is more
• Cost of conversion: From old file-system to new database system is very high, may need
hardware, training, or hiring specialized person.
• Need of additional and specialized manpower: Need to hire and train its manpower on regular
basis to design and
implement databases and to provide database administration services.
• Need for backup and recovery: Need a procedure to backup
• Organizational conflict: Need a consensus on data definitions and ownership as well as
responsibilities for accurate data maintenance.
• More installation and management cost: big and complete database systems are more costly.
Need more manpower and maintenance cost.
Databases on the Web