MANAGEMENT
SYSTEM
Session 2
Contoh Aplikasi Basis Data
• Hasil:
The Database Management System (DBMS).
Database
• Kumpulan bersama data yang terkait secara logis (dan
deskripsi data ini), dirancang untuk memenuhi kebutuhan
informasi organisasi.
• Data yang terkait secara logis terdiri dari entitas, atribut, dan
hubungan informasi organisasi.
Database Management System (DBMS)
• Sistem perangkat lunak yang memungkinkan pengguna untuk
mendefinisikan, membuat, memelihara, dan mengontrol akses ke
database.
• Hardware
– Can range from a PC to a network of computers.
• Software
– DBMS, operating system, network software (if necessary) and
also the application programs.
• Data
– Used by the organization and a description of this data called the
schema.
Components of DBMS Environment
• Procedures
– Instructions and rules that should be applied to the design
and use of the database and DBMS.
• People
Roles in the Database Environment
• Data Administrator (DA)
– is responsible for the management of the data resource including
database planning, development and maintenance of standards,
policies and procedures, and conceptual/logical database design.
• Database Administrator (DBA)
– is responsible for the physical realization of the database, including
physical database design and implementation, security and
integrity control, maintenance of the operational system, and
ensuring satisfactory performance of the applications for users
(technically oriented).
Roles in the Database Environment
• Database Designers (Logical and Physical)
– The logical database designer is concerned with identifying the data
(that is, the entities and attributes), the relationships between the
data, and the constraints on the data that is to be stored in the
database (must have a thorough and complete understanding of
the organization’s data and any constraints/business rules on this
data).
– The physical database designer decides how the logical database
design is to be physically realized. This involves: (a) mapping the
logical database design into a set of tables and integrity constraints;
(b) selecting specific storage structures and access methods for the
data to achieve good performance; (c) designing any security
measures required on the data.
Roles in the Database Environment
• Application Developers/Programmers
– Implement the application programs that provide the required
functionality for the end-users.
• End Users (naive and sophisticated)
– Naïve users are typically unaware of the DBMS. They access the
database through specially written application programs that
attempt to make the operations as simple as possible. For example,
the checkout assistant at the local supermarket.
– The sophisticated end-user is familiar with the structure of the
database and the facilities offered by the DBMS → may use a high-
level query language such as SQL to perform the required
operations or even write application programs for their own use.
History of Database Systems
• First-generation
– Hierarchical and Network
• Second generation
– Relational
• Third generation
– Object-Relational
– Object-Oriented
Advantages of DBMS
• Control of data redundancy
• Data consistency
• More information from the same amount of data
• Sharing of data
• Improved data integrity
• Improved security
• Enforcement of standards
• Economy of scale
Advantages of DBMS
• Balance conflicting requirements
• Improved data accessibility and responsiveness
• Increased productivity
• Improved maintenance through data independence
• Increased concurrency
• Improved backup and recovery services
Disadvantages of DBMS
• Complexity
• Size
• Cost of DBMS
• Additional hardware costs
• Cost of conversion
• Performance
• Higher impact of a failure
Objectives of Three-Level Database
Architecture
• All users should be able to access same data.
• A user’s view is immune to changes made in other views.
• Users should not need to know physical database storage
details.
• DBA should be able to change database storage structures
without affecting the users’ views.
• Internal structure of database should be unaffected by
changes to physical aspects of storage.
• DBA should be able to change conceptual structure of
database without affecting all users.
Three-Level Database Architecture
• Conceptual Level
– Community view of the database.
– Describes what data is stored in database and relationships among
the data.
• Internal Level
– Physical representation of the database on the computer.
– Describes how the data is stored in the database.
Differences between Three Levels of ANSI-SPARC
Architecture
Data Independence and the ANSI-SPARC Three-Level
Architecture
Data Independence
• Logical Data Independence
– Refers to immunity of external schemas to changes in conceptual
schema.
– Conceptual schema changes (e.g. addition/removal of entities).
– Should not require changes to external schema or rewrites of
application programs.
• Non-Procedural DML
– allows user to state what data is needed rather than how it is
to be retrieved.
– For example: Relational Calculus