02-sistem basis data

Upload: nahel-al-fath-ichida

Post on 05-Jul-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/16/2019 02-Sistem Basis Data

    1/31

    SISTEM BASIS DATA 

    Minggu 2

  • 8/16/2019 02-Sistem Basis Data

    2/31

    SISTEM BASIS DATA

    • Merupakan sistem yang terdiri ataskumpulan tabel dalam sebuah basis

    data di sebuah sistem komputer yangsaling berhubungan dan sekumpulanprogram pengelola basis data (DBMS :Database Management System) yang

    memungkinkan beberapa pemakaidanatau program lain untuk mengaksesdan memanipulasi tabel!tabel tersebut"

  • 8/16/2019 02-Sistem Basis Data

    3/31

  • 8/16/2019 02-Sistem Basis Data

    4/31

    #omponen $tama Sistem Basis Data

    • %erangkat #eras (Hardware)

    • Sistem &perasi (Operating System)

    • Basis Data (Database)

    • Sistem %engelola Basis Data (DBMS)

    • %emakai (User )

    •  Aplikasi atau perangkat lunak lain yang bersi'at

    opsional

  • 8/16/2019 02-Sistem Basis Data

    5/31

  • 8/16/2019 02-Sistem Basis Data

    6/31

    #apan Database System digunakan

    • Eamples

    • Typi*al En+ironment

     , -orporate Enterprise (Business Data +s" Bibliographies)

     , Data .ith /arge 0omogenous %arts (e"g"1 2ormatted Data)

     , Data 3ele+ant &+er a /ong Time

     , Data $sed by Many Simultaneous $sers (Bat*h and &n!line$sers) 'or 3etrie+al 4 $pdate

  • 8/16/2019 02-Sistem Basis Data

    7/31

    •  An Integrated Telephone -ustomer In'ormationSystem (-ir*a early 5678s)

  • 8/16/2019 02-Sistem Basis Data

    8/31

     Apa DBMS

    • Database Management System (DBMS)adalah Generalized Tool yang digunakanuntuk mengelola dan mengakses Database

    • Fungsi Utama :– Mendefnisikan Database: Specifying Data

    Types, Structures, and Constraints

    – Constructing a Database: the Process of

    Storing the Data Itself on Some Storage Medium– Manipulating a Database: Function for

    Querying Specic Data in the Database andpdating the Database

  • 8/16/2019 02-Sistem Basis Data

    9/31

    •  Additional 2un*tions: , Intera*tion 9ith 2ile Manager 

    • So that Details 3elated to Data Storage and A**ess are3emo+ed 2rom Appli*ation %rograms

     , Integrity En'or*ement• uarantee -orre*tness1 ;alidity1 -onsisten*y

     , Se*urity En'or*ement• %re+ent Data 2rom Illegal $ses

     , -on*urren*y -ontrol• -ontrol the Inter'eren*e Bet9een -on*urrent %rograms

     , 3e*o+ery 'rom 2ailure

     ,

  • 8/16/2019 02-Sistem Basis Data

    10/31

  • 8/16/2019 02-Sistem Basis Data

    11/31

     ABST3A#SI DATA (5)

    •  Abstraksi data merupakan tingkatanle+el

    dalam melihat data dalam sebuah basis data"

    • Tiga le+el Abstraksi Data : 

    5" /e+el 2isik (Physical Level )

    >" /e+el #onseptual (Conceptual Level )

    ?" /e+el %enampakan (View Level )

  • 8/16/2019 02-Sistem Basis Data

    12/31

     A@SIS%A3- skema arsitektur 

  • 8/16/2019 02-Sistem Basis Data

    13/31

     ABST3A#SI DATA (>)

  • 8/16/2019 02-Sistem Basis Data

    14/31

    -on*eptual S*hema

    • Menelaskan arti data pada semesta pembi*araan

     , %enekanan pada in'ormasi general1 -on*eptually

    3ele+ant1 dan aspek struktural in'ormasi

    • Mengeluarkan organisasi 'isik dan *ara akses data

  • 8/16/2019 02-Sistem Basis Data

    15/31

    -ontoh lain

  • 8/16/2019 02-Sistem Basis Data

    16/31

    Eternal ;ie9

    • Des*ribes %arts o' the In'ormation in the -on*eptual

    S*hema in a 'orm -on+enient to a %arti*ular $ser

    roups ;ie9

    • Deri+ed 'rom the -on*eptual S*hema

  • 8/16/2019 02-Sistem Basis Data

    17/31

    Internal ;ie9

    • Des*ribes 0o9 the In'ormation Des*ribed in the

    -on*eptual S*hema is %hysi*ally 3epresented in a

    Database to %ro+ide the &+erall Best %er'orman*e

  • 8/16/2019 02-Sistem Basis Data

    18/31

    Internal ;ie9

  • 8/16/2019 02-Sistem Basis Data

    19/31

    -ontoh ? skema

  • 8/16/2019 02-Sistem Basis Data

    20/31

    Database a**ess pro*ess

  • 8/16/2019 02-Sistem Basis Data

    21/31

    Database a**ess pro*ess

    • 5 !! $ser %rogram A Sends to DBMS an In+oke -ommand to

    3etrie+e a (Set &') 3e*ord

    • > !! DBMS Analy=es the Eternal S*hema o' the $ser

    %rogram A and 2inds the Database Des*ription o' the 3e*ord

    • ? !! DBMS -he*ks .ith the S*hema to et the Data Typesand /o*ation In'ormation o' 3e*ord

    • C !! DBMS -he*ks .ith the %hysi*al S*hema to 2ind &ut

    .hi*h De+i*e the 3e*ord is in and .hat A**ess Methods

    -an Be $sed

    • !! A**ording to C1 DBMS Sends &S a 3ead -ommand toEe*ute the Sear*h

  • 8/16/2019 02-Sistem Basis Data

    22/31

    Database a**ess pro*ess

    • !! &S Issues the %age In+oke -ommand to the

    -orrespond De+i*e1 and Then %uts the %age

    2et*hed Into the System Bu''er 

    • F !! DBMS $ses the S*hema and the Eternal

    S*hema to In'er the /ogi*al Stru*ture o' the

    3etrie+ing 3e*ord

    • 7 !! DBMS %la*es the 3ele+ant Data to the $.A1

    and

    • 6 !! %ro+ides the Status In'ormation at the %rogram

    In+o*ation Eit

  • 8/16/2019 02-Sistem Basis Data

    23/31

     Arsitektur DBMS

    • DBMS /anguages , Data De'inition /anguage (DD/) , Data Manipulation /anguage (DM/)

    • 2rom Embedded

  • 8/16/2019 02-Sistem Basis Data

    24/31

    ST3$#T$3 SISTEM (5)

    • 2ile Manager 

    • Database Manager 

  • 8/16/2019 02-Sistem Basis Data

    25/31

    %rogram

     Aplikasi

    System

    -alls

  • 8/16/2019 02-Sistem Basis Data

    26/31

    MA@AE3 BASIS DATA

    • Berinteraksi dengan manaer ile 

    • %elaksanaan integrity  

    • %elaksanaan keamanan

    • !ac"up dan recovery  

    • #ontrol konkurensi

  • 8/16/2019 02-Sistem Basis Data

    27/31

     ADMI@IST3AT&3 BASIS DATA

    • Mende'inisikan skema

    • Mende'inisikan struktur penyimpan dan metode

    akses

    • Memodi'ikasi skema dan organisasi 'isik

    • Menamin otorisasi untuk mengakses data

    • Menspesi'ikasikan #ntegrity Constraint  

    (pembatas)

  • 8/16/2019 02-Sistem Basis Data

    28/31

    Searah Database System

    • First-generation Hierarchical and Network 

    • Second generation Relational

    • Third generation

    !tended Relational "b#ect-"riented

  • 8/16/2019 02-Sistem Basis Data

    29/31

    Model aringan

    • Basis data terdiri : kumpulan re*ord(stru*t) yg dihubungkan melalui link(pointer)

    • -o:typedef struct dosen { int kode_dsn;

    char[30] nama;

    char[50] alamat }

    typedef struct kuliah { char[6] kode_mk;char[30]nama_mk;

    int sks; int smst }

  • 8/16/2019 02-Sistem Basis Data

    30/31

    Model aringan

    Dr.Andy Babarsari..

    TF4371 Basis Data 43

    TF2371 Struktur Data 33

    Dr. Dewy Janti..

    TF5771 IMK 53

    TF371  Jark!" 2

    Ir. Tau#ik  An$sana

    K%4771 A$a"a 12

  • 8/16/2019 02-Sistem Basis Data

    31/31

    Model 0irarkis

    Dr.Andy Babarsari.. Dr. Dewy Janti.. Ir. Tau#ik  An$sana

    TF4371 Basis Data 43

    TF2371 Struktur Data 33

    TF5771 IMK 53

    TF371  Jark!" 2