Sistem basis data adalah sebuah sistem yang terdiri dari kumpulan file
atau tabel dan saling berhubungan dan memungkinkan beberapa user untuk
mengakses dan memanipulasi file atau data.
Data yang terintegrasi dalam suatu sistem basis data akan memudahkan
pengelolaannya, pengolahan informasi dan pendistribusiannya.
Integrasi data dan kontrol data dapat diterapkan pada suatu sistem yang
terpusat, dan dapat juga diterapkan pada system yang tersebar atau
terdistribusi.
Integrasi dan kendali data dalam system basis data, antara lain mesti
memenuhi fungsi-fungsi berikut :
a) Mengklasifikasikan data agar mudah digunakan dan dipahami
oleh user b) Menghindari adanya duplikasi data
c) Memudahkan proses penyimpanan dan pengaksesan data
d) Mendukung kinerja aplikasi dalam proses
penyimpanan data e) Menjamin kualitas data dan
informasi
Basis data terpusat adalah basis data tempat data disimpan dan dipelihara dalam
satu lokasi. Ini adalah pendekatan tradisional untuk menyimpan data di
perusahaan besar.Jadi istem basis data terpusat merupakan kebalikan dari
sebuah sistem basis data terdistribusi, dimana dalam sebuah sistem basis data
terpusat, sebuah server yang menyediakan informasi di dalam basis data
hanya terdiri dari satu sever saja, sebagai pusat dan juga sebagai komputer
induk bagi seluruh sistem dan juga jaringna yang ada
Sedangkan Basis data terdistribusi adalah basis data di mana data
disimpan dalam perangkat penyimpanan yang tidak terletak di lokasi fisik yang
sama tetapi basis data dikendalikan menggunakan Sistem Manajemen
Database pusat (DBMS).
oleh entitas tunggal (sistem server basis data berjalan secara paralel,
jam)
• rencangan basis data lebih • rencangan basis data lebih
sederhana kompleks
suatu model tertentu menunjukkan struktur logis dari suatu basis data,
yang merupakan sekumpulan dari berbagai perangkat konseptual yang digunakan
untuk menggambarkan suatu data, semantik data, relasi data, batasan data yang
menentukan bagaimana data dapat disimpan dan diakses.Basis data
spasial mendeskripsikan sekumpulan entity baik yang memiliki lokasi atau posisi yang
tetap maupun yang tidak tetap (memiliki kecenderungan buntuk berubah, bergerak, atau
berkembang).ssssd
Tipe-tipe entity spasial ini memiliki properties topografi dasar yang meliputi
dd
lokasi, dimensi dan bentuk (shape).
Model Hierarki
BDT Terpartisi
Model Jaringan
(Mash Database) BDT Terreplikasi
Model Relasional
SISTEM JARINGAN KOMPUTER
1.Local Area Network (LAN)
Jaringan wilayah lokal atau Local Area Network (LAN) jaringan computer yang berbasis
pada teknologi IEEE 802.3 Ethernet menggunakan perangkat switch, yang mempunyai
kecepatan transfer data 10, 100, atau 1000 Mbit/s, hingga 2,5 Gbit/s ( ATM ) dan memiliki
keandalan data yang baik.
a) Client Server
b) Peer to Peer
Pada jaringan peer to peer tidak ada komputer server ataupun komputer
client, karena setiap komputer pada jaringan peer to peer bisa menyediakan
layanan (fungsi server) dan menjadi pengakses layanan (fungsi client).
Topologi
Liner
Jaringan komputer dengan topologi runtut (linear topology) biasa disebut
dengan topologi bus beruntut, tata letak ini termasuk tata letak umum. Satu kabel
utama menghubungkan tiap titik sambungan (komputer) yang dihubungkan
dengan penyambung yang disebut dengan Penyambung-T dan pada ujungnya
harus diakhiri dengan sebuah penamat (terminator )
Topologi Bus
Topologi bus merupakan topologi yang banyak digunakan pada masa
penggunaan kabel sepaksi menjamur. Dengan menggunakan T-Connector
(dengan terminator 50ohm pada ujung network), maka komputer atau
perangkat jaringan lainnya bisa dengan mudah dihubungkan satu sama lain.
Topologi Star
Topologi star atau topologi bintang merupakan bentuk topologi jaringan
yang berupa konvergensi dari node tengah ke setiap node atau pengguna.
Topologi jaringan bintang termasuk topologi jaringan dengan biaya menengah.
Topologi ini didesain di mana setiap node (file server, workstation dan perangkat
lainnya) terkoneksi ke jaringan melewati sebuah hub/switch
Topologi Ring
Topologi ring atau topologi cincin adalah topologi jaringan berbentuk
rangkaian titik yang masing-masing terhubung ke dua titik lainnya, sedemikian
sehingga membentuk jalur melingkar membentuk cincin. Pada topologi cincin,
masing-masing titik/node berfungsi sebagai repeater yang akan memperkuat
sinyal disepanjang sirkulasinya, artinya masing-masing perangkat saling
bekerjasama untuk menerima sinyal dari perangkat sebelumnya
Topologi Mesh
Topologi jala atau topologi mesh adalah suatu bentuk hubungan antar
perangkat dimana setiap perangkat terhubung secara langsung ke perangkat
lainnya yang ada di dalam jaringan.
Topologi Tree
Topologi tree atau topologi pohon adalah kombinasi karakteristik antara
topologi bintang dan topologi bus. Topologi ini terdiri atas kumpulan topologi
bintang yang dihubungkan dalam satu topologi bus sebagai jalur tulang
punggung atau backbone. Komputer-komputer dihubungkan ke hub, sedangkan
hub lain di hubungkan sebagai jalur tulang punggung.
Distributed Database Systems
4.1 Foundations of DDBS
Architecture & Data Distribution
DBMS−Inst
ance
Node
Node
Networ
k
Node
Node
Dimensions
Heteroge
neity
Centralized DBS
Client/ Autonomy
Server−DB Distributed DBS
S
Distribution
Global conzeptual schema (GCS)
– Logical structure of overall DB
– Supported by all nodes
– Ensures transparency
local
"normal DBMS"
Component
Syntak:
Vue.component('contact-us', { data: function() { return { email:
'info@mycompany.com' }; }, template: ` <div> <h1>Contact Us</h1> <p>Please
send an e-mail to: {{ email }}</p> </div> ` }); new Vue({ el: '#app', });
Catalog Management
Catalog Management
Global Catalog /1
• Mix- form: cluster-catalog with centralized catalog for certain clusters of nodes
Global Catalog /2
• Storage
– Local catalog: on each node
– Global catalog: centralized, replicated, or partitioned
Global Catalog /1
• Mix- form: cluster-catalog with centralized catalog for certain clusters of nodes
Global Catalog /2
Because of how the database resolves references, it is possible for an object to depend on the
nonexistence of other objects. This situation occurs when the dependent object uses a
reference that would be interpreted differently were another object present. For example,
assume the following:
GROUP BY deptno
ORDER BY deptno;
Now assume that jward decides to create a new view named emp in his schema using the
following statement:
FROM company.emp;
As it attempts to resolve references in object definitions, the database internally makes note of
dependencies that the new dependent object has on "nonexistent" objects--schema objects
that, if they existed, would change the interpretation of the object's definition. Such
dependencies must be noted in case a nonexistent object is later created. If a nonexistent
object is created, all dependent objects must be invalidated so that dependent objects can be
recompiled and verified and all dependent function-based indexes must be marked unusable.
• Impact:
– Communication efforts overall performance
– Load balancing
– Availability
• Bottom Up
– Subsumption of local conceptual schemata (LCS) into global conceptual
schema (GCS)
– Integration of existing DB schema integration (Federated DBS)
• Top Down
– GCS of local DB designed first
– Distribution of schema to different nodes
– Distribution Design
R2
R3
Node 2
R3
R4.1
R4
R2.2
Node 3
R4.2
Ri := σPi (R) (1 ≤ i ≤ n)
• Pi : fragmentation predicates
Hybrid Fragmentation
vertical
P ROJECT1= πPNr, PName, Loc (P ROJ
EC T) P ROJECT2= πPNr, Budget
(P ROJECT) P ROJECT1=,σ1Loc=’M’ PROJECT 1 PROJEC
(P ROJECT1 ) P ROJECT2=,σ1Loc=’B’
(P ROJECT1 )
horizontal
P ROJECT3=,σ1Loc=’MD’ (P ROJ ECT1
)
Fragmentation transparency
• Example
– Transparent: select * from Project where PNr=P1
select * from Project1 where PNr=P1
if not-found then
– Without transparency: select * from Project2 where PNr=P1
if not-found then
select * from Project3 where PNr=P1
Fragmentation transparency /2
• Example (continued)
– Transparent: update Project set Ort=’B’ where PNr=P3
select PNr, PName, Budget
into :PNr, :PName, :Budget
from Project3 where PNr=P3
– Without transparency:
insert into Project2
values (:PNr, :PName, :Budget, ’B’)
delete from Project3 where PNr=P3
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getSupportFragmentManager().findFragmentById(android.R.id.content) == null) {
Fragment f = LoginFragment.newInstance();
getSupportFragmentManager()
.beginTransaction()
.add(android.R.id.content, f, "loginfragment")
.attach(f)
.commit();
}
}
forall p ∈ P do
Q0 := Q ∪ {p}
compute M (Q0 ) and F (Q0 )
compare F (Q0 ) with F (Q)
if F (Q0 ) significant improvement over F (Q) then
Q := Q0
forall q ∈ Q \ {p} do /* unnecessary Fragmentation? */
Q0 := Q \ {q}
compute M (Q0 ) and F (Q0 )
compare F (Q0 ) with F (Q)
if F (Q) no significant improvement over F (Q0 ) then
Q := Q0 /* d.h., remove q from Q */
end
end
end
Here is my XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_marginBottom="48dp"
android:onClick="goToAttract"
android:text="Button" /></RelativeLayout>
Database Design
database is a carefully designed and constructed repository of
facts and is part of larger whole known as an information system.
An IS provides for data collection, storage, and retrieval.
IS also facilitates the transformation of data into information and
the management of both data and information.
Components of an information system:
People
Hardware
Software
Database(s)
Application programs
Procedures
The Systems Development Life Cycle
The Systems Development Life Cycle (SDLC) traces
the history (life cycle) of an IS.
Database design takes place within the confines of an
IS
Five phases of SDLC: (Figure 6.2)
Planning
Analysis
Implementation
Maintenanc
The Systems Development Life Cycle
Planning
The planning phase yields a general overview of the company and
its objectives.
A feasibility study must address the following
issues if a new system is necessary:
Technical aspects of hardware and software requirements.
The system cost.
Analysis
Implementation
The hardware, the DBMS software, and application programs
are installed; and the database design is implemented
The database is created, and the system is customized.
The database contents are loaded.
The system is subjected to exhaustive testing. The final
documentation is reviewed and printed.
End users are trained.
Maintenance
End users’ requests for changes generate system
maintenance activities
Three types of system maintenance:
Corrective maintenance in response to systems
errors.
Adaptive maintenance due to changes in the business
environment.
Perfective maintenance to enhance the system.
The Database Life Cycle
Analyze the Company Situation
What is the organization’s general operating
environment, & what is its mission within that
environment?