Académique Documents
Professionnel Documents
Culture Documents
Struktur Kuliah
Kuliah Lab Projek
Penilaian
Projek Ujian Mid Ujian Akhir 30% 20% 50%
Presentasi projek
30 Juni 2008
Reference
Connolly & Begg : Database System : A Practical Approach to Design, Implementation and Management (4th edition) Elmasri & Navanthe : Fundamentals of Database System (4th edition)
Course Objectives
Setelah
Create database menggunakan Access atau MySQL Create table Desain database Menggunakan query Develop a GUI interface and Java applets Write interesting projects
Organization of Courses
Introduction Environment database Lifecycle of database Relational database Relasional model Design relasional model Query language (SQL) Database issue Presentasi projek
Organization of Courses
Introduction Penggunaan database Istilah dalam database Konsep file biasa Kelemahan file biasa Konsep database Definisi database Definisi pengguna (user) Jenis DBMS Fungsi-fungsi DBMS Kebaikan database Kelemahan dabase
DBMS
Komponen sistem database
7
Try to think why each of these need to use a database: Supermarkets Insurance Credit Cards/Banking Libraries Travel Agents Universities Engineering
collection of application programs that perform services to end users. Each program defines and manages its own data. Data dimuat didalam file yang berbeda
Sales Files
File handling Data Entry Routines & Reports File Definition
Lease Files
10
11
Database: an organized body of related information Database system, Database Management System (DBMS): a software system that facilitates the creation and maintenance and use of an electronic database
12
13
Organisasi dimana sistem database didesain dan dibangunkan seperti universiti, rumah sakit, bank dan lain-lain Suatu objek yang unik dan bisa tandai dalam lingkungan tertentu Ciri-ciri yang menghuraikan tenteng suatu entiti Merupakan fakta dasar atau entiti terkecil yang tidak bisa pisahkan Memuat semua data yang berkaitan dengan suatu objek atau aktifitas
Entiti
Data
Rekord
File
Database
Informasi
14
Database
Sekumpulan file-file yang diperlukan oleh organisasi Data yang telah diproses dan berada dalam struktur yang berguna untuk membuat keputusan
Informasi
15
Database Processing
Data Entry & reports
Sales
Application Programs
DBMS
Database
Leases
App. Programs
16
A software system that enables users to define, create and maintain the database and which provides controlled access to the database Beberapa DBMS yang popular:
DB2, Oracle, Informix, IMS, Ingress, PostgreSQL,MySQL ( database skala besar) DBASE IV, Foxpro, Access, R-Base dan Paradox (database skala kecil)
17
18
Manajer database
Bertanggung jawab dalam perancangan, desain, ciptaan, maintenance dan kontrol data demi memenuhi keperluan pengguna
19
Jenis DBMS
Jenis DBMS bergantung pada: jumlah pengguna(user), lokasi, dan kegunaan Jumlah User
Pengguna tunggal (standalone) seorang pengguna pada suatu saat, (PC/desktop) Pengguna banyak (multi user) lebih dari satu pengguna bisa menggunakan suatu database
Lokasi
Terpusat satu DBMS yang menudukung satu database di suatu tempat Terdistribusi satu DBMS yang mendukung database di beberapa bagian
Kegunaan
Transaksi atau produksi DBMS dapat mendukung transaksi harian dan bisa memberikan jawaban segera. Dukungan keputusan (DSS) informasi diperlukan terlebih dahulu untuk mendukung memberikan keputusan
20
Facilities of a DBMS
Allows users to define the database (DDL) Allows users to insert, update, delete & retrieve data (DML) Provides controlled access report and query export and import data system catalog a security system an integrity system a concurrency control system a recovery system a user accessible catalogue support data communications on network data independence
21
Components of a DBMS
Hardware Software Data Procedures People
22
Advantages
Minimal data redundancy Consistency of data Integration of data Improved integrity Consistent security Standards Increased productivity Password
23
Disadvantages
Complexity Additional
Hardware Costs
Size
Performance Experts
Types of DBMS
Early Types of DBMS Hierarchical
Network
Current Generation
Relational
25
Relational Database
Relational database system devised by Codd in 1970 An attempt to devise a standard model with a sound mathematical basis
Most successful database model Most use the query language SQL Examples include:
26
Branch relation
branchNo B005 B007 B003 street 22 Deer Rd 16 Argyll St 163 Main St city London Aberdeen Glasgow postcode SW1 4EH AB2 3SU G11 9Q
Staff relation
StaffNo SL21 SG37 SG14 Name John White Ann Beech David Ford Position Manager Assistant Supervisor Salary 30000 12000 18000 branchNo B005 B003 B003
27
SQL
What is it?
Structured Query Language - Used in ORACLE and other DB systems - Non-procedural - i.e. Specify what you want not how to get it - SQL - (also pronounced SEQUEL) directly related to the development of the RELATIONAL MODEL by E.F.Codd.
28
branchNo, city from branch; select * from branch where branchNo = B003; select branchNo, name from branch, staff where branch.branchNo = staff.branchNo;
29
Object Databases
Current generation systems have a need to
handle complex data for complex applications such as
computer aided design computer aided software engineering geographic information systems interactive web sites
Relational
systems
Why do you think this is?
30
31