Title: Jerry Held
1??????? ??????? ??????????? ?? ???? ???? Oracle
(Oracle9i) ???????? ?????? ??????????
????????????????? Oracle
2Oracle ??????? ???????????
??? ?????????????? ???????????????? ???????
- ??????????
- ??????????? ? ??????????????
- ??????? ?????????????? ??? ??????? ????????
- ?????????????????
- ??????????? ????????????? ??????? ??? ??????????
???????? ?????????????
3Oracle9i - ??????? ???????????
?????????????
Real Application Clusters Fast Restart
?????? ?????? ? ??????????
Recovery Manager Data Guard
?????????-???????? ????
??????????????????
Flashback Query Log Miner, Data Guard
????????????????????
Dynamic Reconfiguration Data Guard, RAC
????????????????
???????????????
Online Redefinition Partitioning, Parallel SQL
4Oracle ??????? ???????????
- ?????? ?? ????? ?????? ? ????????? ?????
- ?????? ?? ???????????? ?????? ? ?????????
- ??????????? ??????? ??????????? ??? ????????? ??
????????????? ????
5Oracle ??????? ???????????
- ?????? ?? ????? ?????? ? ????????? ?????
- Standart Fault Recovery
- Fast-start Checkpointing
- Fast-start parallel rollback
- Cold Failover
- Warm Failover - Real Application Cluster
- Hot Failover
- ?????????? ????? - Transparent Application
Failover
6???????? ?????????????? ??
- ??? ?????????????? ????? ???? ?? ??????
- ?????????, ??? ??? ?????????, ????????? ?? ????,
????????? (roll forward) - ????? ?????? ?????????????? ???????? ?????????
?????? ? ??????????? ????? ???????????? ???????
(checkpoints) - ???????? ??? ????????????? ?????????? (roll back)
- ????? ?????? ?????????????? ???????? ?????
??????? ??????????, ??????? ?????? ????? ?? ?????
???? ????????????????? ???????????????
?? ?? Recovery
Step 1 Roll Forward
Step 2 Roll Back
Uncommitted Transaction
Committed Transaction
Recovery Time Roll Forward Roll Back
7??????? Checkpointing
- ??????? Recovery ????????? ??? ?????????,
????????? ?? ??????? ?????????? Checkpoint - ??????? ???????? ???????????? ?????????????? ???
???????????????? ????? ? ?????? ? ????? ?? ??
???? - ??? ?????? ??? ?????? ?????????, ????? checkpoint
?????????? ?? ??????? ?????? ???????? ?????? - ?????? ???????????? ???????????? ????????
??????????? ? ??????? ???????????? ?????? ???????
????? ???????? ?????? ? ??????? ??????
8Oracle9i ????? ???????? ??????????????
Recovery Time Roll Forward Roll Back
- ??????????? ???????? ?????????????? ????? ????
- ???????????? ????? ?????? ? ?????? ???
????????????? - ????????? ????????? ??????? ??????? ??????
9Fast-Start Checkpoints
- ??? ????? ????? ?????????????? ????? ??????,
??????????? ????? ??????, ??????? ?????
??????????????? ? ?????? ???? - Oracle ????????????? ????????? ??????????? ?????
checkpoints - ????? ?????? ???????????????? ???? ???????????
?????? ??????, ??? ????? ????? ????????? ?????
roll forward
10???????? ??????????
Server 1
Server 3
Server 2
Server N
11?????????? ???? ??????
- Shared Cache/Disk
- Oracle ? IBM Mainframes
- ??? ?????? ?????, ??? ????????
- ?? ??????? ??????????????? ??????
- Shared Nothing
- Microsoft ? IBM Unix/NT
- ??? ?????? ?????, ??? ??????????
- Static Data Partitioning
12Microsoft Clustered Database - ??????????????
??
CLUSTER
NETWORK
database partition
database partition
database partition
database partition
database
13???????????????? - ??? ??????????? ?????????
?????? ? ????
?????????????? ?? ...
- ???????? ????...
- ????????? ??????
- ?????????????? ???????, ???????, ?????????????,
???????? - ??????????? ??????
14???????????????? - ??? ??????????? ?????????
?????? ? ????
- ?????????? ?? ...
- ???????? ????...
15??????? ?????? ???????????? ??????? ???????????
- ? ?????????????? ?? ??? ??????? ???? ...
- ????????? ?????? ????? ???? ??????????
???????????? - ????????????? ?????????? ????? ??????????? ??????
?????? ????? (2-phase commit) - ?????? ???????????????
database partition
16??????? ?????? ???????????? ??????? ???????????
- ? ?????????? ?? ??? ??????? ???? ...
- ??? ?????? ???????? ??????????
- ?????? ?????? ????? ?? ??????????? (?????????????
?????????? ???????????? ??????? ??????) - ?????????????? ??????????????
17?????????????? ? Cold Failover
- ??????? Oracle ?? ???????? ???? ????????
- ?????? ???? ??????? ????? ???? ?????? ? ?????
?????? ??????? - ??????? ???????????? ????????? ???????
- ????? ???????? ?????????? ???? ???????? ??
??????? ??????????????
18?????????????? ? Warm Failover
- ????????????????? ?? ???????? ???? ???????? ?
Oracle Parallel Server - ??? ?????????????? ??????????? ??????????? ??????
19?????????????? ? Hot Failover
- ??????????????? ?????????? ? ???????? ?????
???????? - ? ?????? ???? ???????????? ??? ??????????
- ? ?????? ????? ????????????? ??? ???????????
???????? ?????
backup
primary
Shared Database
20Failover - Oracle Fail Safe for MS NT
Oracle RDBMS Oracle Fail Safe
????????? ????
???????? ????
MS Clust. Mgr.
Windows NT
21Parallel Cache Management
????? ???????
- ??????? ????????
- Application Partitioning
- Tx Monitors
. . .
. . .
. . .
Block A
Shared Disk Database
22Cache Fusion
- Oracle9i Cache Fusion ???????? ??????????????????
? ???????????????? - ?????? ???????????? ???????? ????? ????????????
- ??????????? ????? ???????? ?????/??????
23Oracle9i Real Application Cluster
--???????????????? ? ??????? ???????????
- ??????????? Shared Cache ?????????? Cache Fusion
- ??????????????? ???? ?????????? ??? ?????????
- ???????? ?????????????????, ????????? ????
????????
24Transparent Application Failover (TAF)
?????? ???? - ??? ????, ??????? ?????? ?????????
!
- Transparent Application Failover ???????? ?? ????
??????? - ?????????? ? ???????????? ????????????? ?
????????? ?????????????????? ? ??????? ???? - ?????????? ? ??????? ?? ???????????
- ?????????????? ???????? Login?
??? ???? ???? ? ???????????? ????????? ?? ?
25TAF Select Failover
- ?????????? ??????? ??????? ?????????? ???????????
- ???????? ?????-??????????? ?????? ???????????
??????????? ???????????
Client
SELECT FROM emp
SELECT FROM emp
Instance 2
Instance 1
Rows Partially Returned When Failover Occurred
Continues Returning Remaining Rows
26?????????????? TAF
- TAF ???????? ??? ?????????
- Client/server ??????????
- ????????? ??????
- ???????? ??????? (SELECT statements) ???????
?????? ?????????? ?????????? - ?? ?????????
- ???????? ?????????? UPDATE
- ?????????? PL/SQL-??????? ?? ??????? ???????
- ??? ?????????? ??????????, ??????? ??????????
Oracle Call Interface version 8 (OCI8) ??? ????,
???? ??? ???, ???????? ? TAF - SQLPlus, ODBC, JDBC/OCI, Oracle precompilers
27Dyna?onnect - ????????? ???????? ?????
?????????????
28Real Application Cluster?????????????
DynaConnect
CPU Load
- ?? ??? ?????? ?????????????? ?? ????? listener??
- ???? ???????? ?? ????????????? ??? listener??
- Listener ???????? ???????? ???????????? ????
29Oracle Parallel Query
Query
Server 1
Server 3
Server 2
Server N
Application
ClusterWare
ClusterWare
ClusterWare
ClusterWare
OS
OS
OS
OS
30??????? Oracle ??? ?????????
????????????????
Oracle9i RAC OPQ
Oracle9i RAC
???????????
Oracle9i
Oracle9i Oracle Fail Safe
31??????? Oracle ??? ?????????
Real Application Cluster
Hardware Failover
- ?????
- ??????? ??????????? ? ????????????????
- ??? ????? ????
- ????? ????????, ????????????? ?????, ????????
- ???????????? ????? ???????? ? ????????
?????????????? - ????? ???? ?????? ????????? ? ???? ???????????
???? - ???????????? ????????
- ???? ???????????????? ? ?????? ?????
- ?????????? ?????????? ??? ????????? ????????
- ?????
- ??????? ???????????
- ??????? ????????????????? ? ??????????
- ????????
- ????????? ?????????????? ???????? ?? ???????
- ??????????? ???????? ?????? heartbeat
32??????? Oracle ??? ?????????
Real Application Cluster
Hardware Failover
- ??????
- ????? ??????? ????????? ? ?????????????????
- ????
- ???????????? ??????? ??????????? ?????? DLM
- ??????
- ???????????? ???? ????? ??????????????
- ???????? ???? ????? ???? ???????????? ? ???????
?????? - ??? ?????????? ????? ????????
- ????????? ?????????? ??? ?????? ????????
33Oracle ??????? ???????????
- ?????? ?? ????? ?????? ? ????????? ?????
- ?????? ?? ???????????? ?????? ? ?????????
- ??????????? ??????? ??????????? ??? ????????? ??
????????????? ????
34Oracle ??????? ???????????
- ?????? ?? ?????????
- Oracle Data Guard
- Advanced Replication
- Geo-mirroring
35Oracle Data Guard
????????? ?????????? ????? ???? ??????
36Failover ? Switchover
Primary Server
Standby Server
Log Write
Production Database
Log Apply
37Logical Standby
38?????????????? ????????? ???????? ?????????
- ????????? ?????????????? ????-?-???? ???????????
???????? ???????? - ????????????
- ?????????????? ????? ?????????
- ????????? ?????????????
- ???????? read-only ????? ??
- EMC Symmetrix SRDF(Symmetric Remote Data
Facility) TimeFinder ??????????????? Oracle
39Advanced Replication
- ?????????? - ??????? ??????????? ? ???????????
???????????? ???????? ?? ? ?????????? ????? ??????
40????????? ???????
41Oracle ??????? ???????????
- ?????? ?? ????? ?????? ? ????????? ?????
- ?????? ?? ???????????? ?????? ? ?????????
- ??????????? ??????? ??????????? ??? ????????? ??
????????????? ????
42Database Resource Manager
- ???????, ??????????????? ?????????????,
?????????? ?? ?????, ???????????? ??????????????? - ????????? ?????????? ??????????
OLTP User
Batch Processing
43Database Resource Manager????????? ????????
- ??????????? ???????
- ????????????? ???
- ??? ??????? ????????????
- ??????? ???????????? ?????????? ?????????????,
??????????? ?? ?????????? ???????? ? ???????
???????? ??????? - ???????? ?????? ????? ??? ?????? ???? ?????? ???
??????? ?????
44LogMiner
- ????? redo log ???????? ?????????? ?? ??????????
??? ????? ?????? - Oracle9i LogMiner ????????????? ???????????
?????????, ??????????? ????????????? ??????????
???? ?????? - LogMiner ????? ????????????
- ??????????? ????????????? ?????????, ??????????
?? ???????????, ????????????, ???????, ???????,
etc. - ??????????, ??? ????????? ?????
- ?????????????? ?????????? ?? ?????? ??????????,
? ?? ?? ?????? ?? - ????????? ??????
45?????? LogMiner
Joe Smith ?????? ???? ????????.
SQLgt select sql_redo, sql_undo from
vlogmnr_contents where 2 username joe
smith and seg_name EMPLOYEE
14 rows selected SQLgt exit
46??????????????? ?????? ? ????????????????
???????????, ?????????????
- ??????????????? ???????? ?????????? VLDB
- ??????????????? ??????????? ????????
?????????????????? - ??????? ????????? ??? ????????????? ? ??????????
- ?????? ??????????? ? ??????????? ?? ??????????
????????????????
01-APR to 30-JUN
01-JAN to 31-MAR
01-OCT to 31-DEC
01-JUL to 30-SEP
47??????????????? ?????? ? ???????????????????????
?? hash-????????
- ????????? ?????? ? ??????, ??????????? ??
??????????? ???????? - ??????? ??? ???????????? ????????????? ?????? ?
????????????? DML
?????? ??????????? ????????? hash-????????
48??????????????? ?????? ? ???????????????
???????????????
- ?????? ?? ????? ????? ???????????????
- ???????????? ??????
- ????????????? ? ???????????
ORDER table
??????? ?? ?????, ????? ??hash-????????
Q1
Q2
Q3
Q4
49List Partitioning
?????? ???????????? - ?????????? ???? ??????
??????????? ???????? ??????-???????????
??????? online
Europe Region
Americas Region
Asia Region
1200 GMT
?????????????
50??????????????? ????????
- ?????? GLOBAL ????????? ?? ?????? ? ????? ??????
- ?????? ????? ???? ????????????? ??? ???
- ????????? ?????? ?????? ?? ???? ??????
- ?????? ?????? ??? OLTP
- LOCAL - ????????????? ??? ? ???????
- ???? ????????? ????? ?????????? ?? ????? ???
??????? - ???? ????????? ????? ???????????? ????????
- ?????????? ??? DSS
- ?????????? ??? OPS
Global Non-Partitioned Index
Global Partitioned Index
Table Partition
Table Partition
Table Partition
Table Partition
Local Partitioned Index Prefixed or Not
51???????????? ?????????? ????????
user-defined function
select sum(revenue), store from line_items where
profit (price,units) gt 0.2 group by store order
by store cost
query servers
SQL
data
Coordinator
ship SQL functions, assemble results
dynamic data distribution
sorting grouping
scanning
scan line_items, executing profit function in
parallel
sort by store, sum revenues
52???????????? INSERT, UPDATE ? DELETE??????
????????????? ?????????????? ??????????
- ? ?????? ??, ?????????? ???????? ?????? ????
??????????? ??? ????????? ????????? ???????
??????? - ???????? ? ?????????? ??????, ???????????
???????????, ??????????? ????????
?????????????????? ??? ?????????? - ??????????
- ?????????? UPDATE
- ?????????? DELETE
- ?????????? INSERT
53????????????? ???????? ?????? ?? ????
- ????????? ?????? ????? ???????? ?? ???? ???
????????????? ????????? ????????????? - ???????? ?? ??????? ??????????
54?????????????? ??????
- ?????? ?? ???????????? ?????? ??????? (flashback)
- ????????? ????????? ?????? ?? ????? ?????????
????? ? ??????? - ????? SQL ?????? ????????
55Oracle Enterprise Manager
- ????????????, ?????????? ??????????? ? ?????????
- ?????????? ???????
- Web ?????????
- HTML ??????
- ????????????
- ??? ?????
56Oracle9i - ??????? ???????????
57??? ??? ?????...
- ??????? ? ?????? 258-41-80
- www.oracle.com/ru