Title: hosseini@um.ac.ir E.mail:
1?????? ???? ?? (??????? ????????)
- ????? ?????
- ???? ??? ???? ?????
- hosseini_at_um.ac.ir E.mail
- Home page http//hosseini.staffcms.um.ac.ir
2????? ?????? ?????? ??????? ??? ?? ?????????
????? ? ??????? ??????? ???.
3?????? ????? ? ??????? ??????? ?? ????? ??? ??
?????? ?? ?? ????? ?????????? ?? ?? ??????????
????? ??? ?? ???? ??? ??? ?? ?????? ??????? ?
?????? ???.
4???? ????? ?? ????? ??????? ?? ?????? ????
????
1- ??? ???? ?? ??? ???????
2- ??? ???????
5(No Transcript)
6??? ???????
reservation
overdue
loan data
data
letters
reservation
loan
overdue loans
program
program
program
reservation
book
person
loan
file
file
file
file
7????? ??? ??? ?? ??? ???????
- ????? ? ????? ??????? ???????? ? ??????? ??
???? ?? ??? ???????
- ????? ?????? ?? ????? ? ????? ??
- ????? ??????
- ????? ????????? ?? ?????????? ?????? ????? ?
?????? ????
8????? ??? ??? ?? ??? ???????
- ??????? ?? ?? ???????? ?????????? ? ??????????
????
- ????? ?????? ???? ? ????? ????? ???????
- ????? ?? ????? ??????? ???? ?? ???? ? ??????
???? ?????? ????? ? ??????? ??????? ? ?????
??????????? ?? ?? ??? ???? ????.
9????? ??? ???????
1- ??? ???? ???? ????? ?????????? ??????? ? ???
???? ????? ???????
2- ??? ???? ????? ????? ?????? ??? ?? ???????
3- ???????
4- ??? ???? ????? ????? ???? ? ?????
5- ??? ???? ????? ????????? ???????
10????? ??? ???????
6- ??? ????? ??????? ??? ???????
7- ???? ??????? ??????? ?????????? ? ??????????
8- ??? ???? ???????????
11????? ?????? ?????? ??????? DBMS
????? ??? ?? ????? ???????????? ???? ??? ????
?????? ????? ? ??????? ??????? ? ???? ?????
??????????? ???.
12 DBMS ?? ????? ????? ?????? ??
1- ?????? ???????? ??? ?? ????? ???. 2- ?? ??????
???????? ??? ?????? ????? ???. 3- ??? ??????
???????? ??? ?? ??? ????? ????? ????.
13??? ???? ????????
reservation
overdue
loan data
data
letters
reservation
loan
overdue loans
program
program
program
DATABASE
MANAGEMENT
SYSTEM
reserv
loan
ation
14(No Transcript)
15????? ?????? ???????
????????? ??? ?? ???????? ????? ??? ?? ???? ?????
(?? ????? ??????? ???? ????? ?? ??? ?????)? ???
?????? ?? ?????? ???????? ??? ?????? ?? ?????
????? ??????? ???? ??????? ?? ?? ??? ????? ?? ??
?? ??? ?? ?? ????? ???????? ?? ??? ?????? ?
???????
16????? ??? ??? ?? ??? ???????
- ????? ? ????? ??????? ??????? ? ???????? ???
?????? ???? ?? ???? - ????? ?????? ???? (???????) ??????? ? ????? ??
- ?????? ?? ?? ??? ???????? ??????????-??????????
- ??????? ?? ?? ?? ??? DBMS
- ????? ?????? ??????? ?? ???? ????
17?????? ??????? ?? ???? ????????
- ???? ???????
- ?????? ?? ?????????
- ?????? ???? ??
- ????? ??????? ??? ?????? (?? ????? ???? ??????
???? ???? ? ?? ???? ????? ???????? ?????? ??
????? ???) - ?????? ? ?? ????? ?? ???? ?? (??????? ?? ???????
???? ?? ???? ????????? ???? ??? ????? ?? ??
?????? ???????? ???? ? ?????? ????? ?? ???)
18????? ???? ?????? ??????? 1- ????????? 2-
????????? 3- ????? 4- ????
???????
????? ????
????? ?????? ?????? ???????
?????? ???????
???????? ????????? ????????? ?? ??????
????????? ??????????
19????? ???? ????????
20????? ???????????? ???? ?????? ????
1- ????????? ?????????? ???????
2- ????????? ????????
3- ????????? ??????
21????? ???????????? ????? ?? ???? ?????? ???????
1- ????? ?????? ?????? ??????? (DBMS)
2- ?????????? ??????? ???? ???? ?? ???? DBMS
3- ???????? ?????????
4- ????????? ????
22?????? ?????? ??????? ?? ????? ????
23???????? ????????? DBMS
?? ??? ??? ?????? ???????
- ????? ????????
- ????? ????????????
- ????? ???????
24??? ????????
??? ???????? ?? ??? 1970 ???? ??? ????? ??.
??? ???? ?? ?????? ??? ???? ????? ????? ??????
???????? ????? ? ????? ?? ? ??? ????? ??????
????.
25????? ????? ??
Attributes
account- number
street
Customer-id
city
name
Culver Campus Culver Main Campus
Johnson Smith Johnson Jones Smith
192-83-7465 019-28-3746 192-83-7465 321-12-3123
019-28-3746
Irvine Riverside Irvine Santa Ana Riverside
A-101 A-215 A-201 A-217 A-201
26????? ??? ?????? ????? ?? ? ?????? ?????
???? ??? ????? ??? ?????? ????? ?? ? ?????? ?????
?? ???? ?? ??? ?????
?????? ????? ?????
????? ????
???? ???
???
????
????? ?????? ?????? ????
???? ????? ??????
???????????
??????????
27???????? ?????
???????? ????? ??????? ?? 1- ????? ???? ??????
????? 2- ?????? ??? ?????? 3- ???? ????? ???
????? ?????? 4- ???? ???? ????????? ?????.
28DDL,DML
Employee
Department
Name
Dept
Dept
Manager
SQL
SELECT ManagerFROM Employee, DepartmentWHERE
Employee.name "Clark Kent AND Employee.Dept
Department.Dept Query Language Data definition
language (DDL) like type defs in C or
Pascal Data Manipulation Language
(DML) Query (SELECT) UPDATE lt relation name
gt SET ltattributegt lt new-valuegt WHERE
ltconditiongt
29????? DBMS ?? ???? ??????
- ???? ???????? ??????? ? ?????????? ???????
- ???? ????? ? ?????? ??????? ?????????
30???? ?????? (????????) DBMS
?????
?????????? ???????/ ??????
????? ?????? ?????? ???????
???? ???????? ?????? ??????? ? ??????
???? ??????? ?? ???????? ?????????
???????? ?????????
DB
31????? DBMS ?? ???? ?????
- ???? ???? (????? ????? ?? ????? ?????? ???????)
- ???? ?????? ???? ?????? ???????
- ???? ??????? ?????????? (???????)
32???? ?????? ???????
????? ????????????
????? ?????
?????????? AP??
?????? ?? ????? ???????
UFI
CLI
???? AP??
???? DML
DDL
???????? ???? ???????
DBMS
???? ???????? ??????
. . . . . . .
???? ?????? ???????? ?????????
???? ??????? ????
???? ???????? ? ?????
???? ????
???? ?????
???????? DDL
???? ???? ????
. . . . . .
???? ??? ????????
??????
??????????
???????? ?????????
33?????? DBMS ?? ?? ????? ?????????
?????????? ???????
???????? ????? ?????????? ???????
DBMS
????? ????
?????????
34???? ?????? ???????
???? ??? ????? ?? ?????? ??????? ? ?? ???????
????? ??? ? ??? ????? ?? ?????? ?????? ??
???????? ???
??? ???? ????? ?? ?? ??? ????? ??? ?????? ?? ??
?? ??? ?????? ?????? ??????? ????????.
35???? ?????????? ?? ??? ?????? ?????? ???????
- ???? ?????? ???????
- ???? ???????
- ???? ???? ?????-?????
- ???? ???????? ???????
- ????? ?????? ???????????
- ????? ????? ?????? DBMS
- ????? ????? ?????? ??? ????? ?????? ???????
- ????? ????? ?? ?????? ??? ?????? ???????
- ????? ???? ?? ??????? ?????????? ??????
- ????? ????? ??????? ? ??? ??????????
36????? ??????? ?? ?????? ???????
1- ???? ?? ????? ?? ????? ??????? ???????? 2- ???
???? ???????? ?????? ? ??? ????? ?? 3- ???????
????? ?? ???????? ????????? 4- ???? ???? ?????
?????????? ??????? 5- ???? ?? ????? ????? ??????
? ???? ??? ?? ??????? 6- ???? ???????? ?????? ???
???????
37????? ??????? ?? ?????? ???????
7- ???? ???? ????? ???????? ????? ??? ??????????
??????? 8- ????? ???? ???? ??? ? ???????
??????? 9- ???? ???? ??????? 10- ???? ?? ?????
????????? ?????? ???? 11- ???? ?? ????? ?????????
? ??? ???? ?? ??????
38????????? ???? ?????? ???????
- ????? ??????? ?????
- ????? ????????? ???????????
- ????? ?????? ???????
- ???????? ????? ? ?????????
- ?????? ???????? ???? ? ?????
- ????? ?????? ??????? ?? ???? ????? ???????????
- ????? ??????? ??????
- ????? ??????? ?????
- ????? ??????? ???????? ??
- ...
39?? ??? ?????? ???? ????????
- ??? ????? (????? ?? ?????? ??????)
- ??? ????? (????? ?? ??????? ????? ?????? ?????
??????? ????? ???) - ??? ?????? ?? ?????? (?????? ??? ??? ??? ???????)
40??????? ???????
???? ?????? ????? ?????????? ??????? ?? ????????
?????????
???????? ?????????
?????????? ???????
DB
41????? ??????? ???????
- ??????? ??????? ??????
- ??????? ??????? ?????
42??????? ??????? ??????
??????? ?? ?????? ?????? ??????? ? ??????????
??????? ?? ???? ??????? ?? ??? ?????-??????
?????? ???????
43??? ??????? ??????? ?????? ?? ???????? ????????
???? ????? ????? ????
????
1- ??????? ??? ????? ?? ????? ????? ??????? ???
??????? ? ?????????? ??????? ?? ??? ??? ??
??????? ?????? ??????? ???? ??????. 2- ??? ???
????? ? ?????? ?? ??? ??????? ???? ???? ??? ?
???? ?????????? ?????????? ??? ????? ?? ???????
????????? ?????? ??????? ??????.
44??????? ??????? ?????
??????? ?? ?????? ?????? ??????? ? ??????????
??????? ?? ???? ??????? ?? ??? ?????? ??????
???????
45????? ?? ??? ?????? ???? ????? ?? ????? ?????
?????? ??????? ? ????? ?? ???? ??????
??? ????? ?????? ???? ?? ????? ????? ?? ???
??????? ?????? ??????.
46????? ?? ??? ?????? ?? ??? ????
1- ??? ?????? ?? ??? ?????? 2- ?????????? ????
?????? ?? ??? ??????
47?????? ????? ?????? ???????
?????? ???? ? ???? ????? ??????????? ????? ? ???
???????? ?? ??? ????? ????? ????? ? ?????? ?????
????? ?? ?????? ???. ?? ??? ?????? ????? ??
?????? ???????? ?? ????? ?????? ?????? ????????
?? ????? ????? ?? ???????? ?? ????????? ????? ?
?????? ?????? ??????? ? ????? ???? ?????.
48?????? ??????
????? ??????
?????? ????????
?? ???? ?????? ?????????
49?????? ??????
?? ??? ?????? ?? ?????? ???? ??? ?? ?????
????????? ? ???? ?????? ?? ????? ???? ????? ??
??? .
50????? ?????? ??????
??????? ????????? ?????
??????? ????????? ???
???????? ????
??????? ????
. . .
. . .
??????? ????
??????? ?????
?????? ???????? ??????
. . .
51?????? ????? - ????????
?? ?????? ?? ?? ?? ????? ?? ?????? ?? ?? ???????
????? ?? ????? ????? ??? ? ????? ???? ????? ??
?????? ?? ?? ?????? ? ????? ?? ????? ???? ??????
?????? ????? ???????? ?????? ?? ???
52?????? ????? - ????????
OS
D B M S
DBMS
AP . . . .
DB
OS
????? ????????
????? ?????
53?????? ?????? ????? ???????? ?? ?????? ??
?????? ??????
- ????? ??????
- ???? ?????? ????
- ??????? ?????????? ???
- ?????? ???????
54?????? ?????????
?????? ?? ?? ???? ??? ????? ??? ?? ????? ?? ??
????? ???? ????? ??? ?? ???? ??? ????? ?? ?? ???
?? ?? ???? ????? ??? ???.
55???? ?? ?????? ?? ?????? ?????????
OS
DB
D D B M S
LAN WAN MNET
NETWORK
56?????? ????????? ?? ?? ??????
??????? ???
??????? ???
??????? ?????
??????? ?????
OS1
OS2
DB1
DDBMS1
DB2
DDBMS2
APs
APs
NETWORK . LAN . WAN . MNET
APs
DB3
DDBMS3
OS3
DDB DB1DB2DB3
57???????? ?????? ?????????
- ????????? ??? ?? ???????? ????? ????? ? ???????
- ??????? ?? ??????? ????? ? ?? ????????? ?????
???????. - ???? ????? ???? ??? ?? ??? ?????? ?? ?????????
????? ??? ?????. - ????????? ?? ???? ???? ??? ?????????.
- ???????? ?? ?????? ??? ????? ?? DBMS ???.
- DMBS ?? ??????? ???????? ?????????? ??????? ????
?? - ?? ??? ?????? ???? ???.
- ?? DBMS ????? ??????? ?? ?????? ??????? ???????
- ?????? ????.
58?????? ?????? ????? ???
- ??????? ? ??????? ?? ????? ????????? ????.
- ?????? ????? ?? ?????? ???????.
- ??????? ???? ?? ???????.
- ?????? ???????.
- ?????? ?????? ?????.
- ???? ????? ????????.
- ????? ????? ?????.
- ??????? ?? ?????? ???????? ?? ??? ?????.
59????? ?????? ?????????
- ??????? ????? ?????.
- ??????? ??????????.
- ???? ?????? ?? ???? ?????.
- ????? ?????.
- ???? ????? ?????.
60?????