Professional Documents
Culture Documents
Database System: Sekolah Tinggi Ilmu Statistik Jakarta
Database System: Sekolah Tinggi Ilmu Statistik Jakarta
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Some Definitions
Database
• A collection of related data.
Database Application
• A program that interacts with the database at some point in its
execution.
Database System
• A collection of application programs that interact with the database.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Examples of Database
Applications
Purchases from the supermarket
• Bar code reader app prog DB (update stock number)
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Examples of Database
Applications
Taking out insurance
• A broker accesses several insurance company databases
Studying at university
• Student database
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
File-Based Systems
Collection of application programs that perform services for
the end users (e.g. reports).
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
File-Based Systems
Duplication of data
• Same data is held by different programs.
• Wasted space and potentially different values and/or different
formats for the same item.
• It costs time & money to enter data more than once.
• Loss of data integrity.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Limitations of File-Based
Approach
Program – Data dependence
• File structure is defined in the program code.
• It is difficult to change the file structure.
• Need to change both the file and accessing programs.
e.g., change PropertyForRent address field from 40 to 41. Creating one-off program &
modify all accessing programs
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Database Approach
The file-based approach limitations arose:
Result:
• The database and Database Management System (DBMS).
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Database
Definition: shared collection of logically related data and a
description of this data, designed to meet the information needs of
an organization.
• Shared large repository of data with metadata (self-describing).
• This enables program–data independence.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Database Management System
(DBMS)
A software system that enables users to define, create,
maintain, and control access to the database.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Database Management System
(DBMS)
Figure 1.5
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
DBMS Functionalities
Data Definition Language (DDL).
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
DBMS Functionalities
Controlled access to database may include:
• A security system
• An integrity system
• A user-accessible catalog.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Views
Allows each user to have his or her own view of the database.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Views - Benefits
Reduce complexity.
• A view based on necessities.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Components of DBMS
Environment
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Components of DBMS
Environment
Hardware
Software
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Components of DBMS
Environment
Data
Procedures
People
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Roles in the Database
Environment
Data Administrator (DA)
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Roles in the Database
Environment
Database Designers (Logical and Physical)
• Conceptual/logical DB
Identifying the data (entities & attributes), and their relationships &
constraints
Understand the data and business rules (main characteristics of the
data as viewed by the organization)
• Physical DB design
Deciding how the logical DB design is to be physically realized
e.g., mapping logical DB design into a set of tables and integrity
constraints
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Roles in the Database
Environment
Application Programmers
End Users
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Advantages of DBMSs
Control of data redundancy
• Can be duplicated for performance reason
Data consistency
• Store data in one place
Sharing of data
• The database belongs to the entire organization; not to departments
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Advantages of DBMSs
Improved data integrity (constraints)
• Validity and consistency of stored data
Improved security
• Usernames and passwords for authorization
• Access by operation types: retrieval, insert, update & delete
Enforcement of standards
• Data formats, naming conventions, document standards, update
procedures and access rules
Economy of scale
• Combining operational data into one database and managing
them can result in cost savings
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Advantages of DBMSs
Balance conflicting requirements
• The database is under control of a DBA that can make best decisions
base on user needs
Increased productivity
• DBMS provides all the low level file-handling routines (typical in
application programs)
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Advantages of DBMSs
Improved maintenance through data independence
• DBMS separates data descriptions from the applications
Increased concurrency
• DBMS manages concurrent database access
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Disadvantages of DBMSs
Complexity
• Database design, access policy etc.
Size
• A large piece of software requiring substantial memory to run
Cost of DBMS
• Depends on the user number, maintenance cost etc.
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Disadvantages of DBMSs
Cost of conversion
Performance
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik
Kuis
Sebutkan dua contoh database system/applications
• Jelaskan fungsi database nya
• Jelaskan operasi yang digunakan pada database tersebut
DR. SAID MIRZA PAHLEVI, M.ENG. Sekolah Tinggi Ilmu Statistik (STIS) Sekolah Tinggi Ilmu Statistik