Beruflich Dokumente
Kultur Dokumente
7
Dung Nguyen, dungnp@vn.ibm.com Information Management Systems Technical Consultant IBM Softwares Group
Agenda
DB2 Self Tuning Memory Management DB2 pureXML DB2 solidDB DB2 High Availability Disaster Recovery DB2 pureScale DB2 Partitioning DB2 Compression DB2 DB2 - PL/SQL Support
Avg = 6205
6000
Time in seconds
5000
Reduced 63%
Indexes Dropped
4000
Avg = 2285
3000
2000
Avg = 959
1000
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Order of execution 3
6000000
5000000
4000000
3000000
2000000
1000000 4
SQL/XML
DB2 Client / Client Application
XQuery
XML Interface
XML
XML Long Tag <gValue_Date> <mValueDate m=1> <ValueDate c=79.1>20040416</ValueDate> <DebitMovement c=81.1>5000</DebitMovement> <ValueDatedBal c=82.1>120000</ValueDatedBal> </mValueDate> <mValueDate m=2> <ValueDate c=79.2>20040418</ValueDate> <DebitMovement c=81.2>10000</DebitMovement> <ValueDatedBal c=82.2>130000</ValueDatedBal> XML Short Tag </mValueDate> <c79>20040416</c79> </gValue_Date> <c79 m=2>20040418</c79> <c81>-5000</c81> <c81 m=2>-10000</c81> <c82>-120000</c82> <c82 m=2>-130000</c82>
xpath
DB2 results:
Online transaction throughput: 2900 TPS Close-of-Business elapsed time: 1h:28min
Extreme availability
HA Solution available providing two copies of data at all times in separate solidDB instances In case of system failure, applications can recover access in less than a second
Low cost
Easy to deploy and administer Link-library Runs virtually unattended for lower total cost-of-ownership
log records
HADR
Keeps the two servers in sync
Primary Server
Monitors the primary and initiates the takeover. (HACMP, heartbeat, MSCS, etc)
11
HADR
Keeps the two servers in sync
Primary Server Includes TSA for server monitoring Shared Nothing ! Storage is NOT shared.
Monitors the primary and initiates the takeover. (HACMP, heartbeat, MSCS, etc)
12
log records
HADR
Keeps the two servers in sync
Standby Server
Monitors the primary and initiates the takeover. (HACMP, heartbeat, MSCS, etc)
13
Transactions/sec
1000 1500 2000 2500 3000 3500 4000 500 0
Time
Failover
14
9 Second 3500
Transactions/se c
0 20 0 40 0 60 0 80 0 10 00 12 00 14 00 16 00 18 00 20 00 22 00 24 00 26 00 28 00 30 00 32 00 34 00 36 00 38 00 40 00 42 00 44 00 46 00 48 00 50 00 52 00 54 00 56 00 58 00 60 00 62 00 64 00 66 00 68 00 70 00 72 00 74 00 76 00 78 00 80 00 82 00 84 00 86 00 88 00 90 00 92 00 94 00 96 00
Server 1
Server 2
Primary Database A
HADR TCP/IP
Standby
HADR
Database A
Standby Database B
HADR TCP/IP
Primary
HADR
Database B
15
DB2 HADR
tion nec Con ary Prim
Cli ent Re ro u te
DB2 Engine
PRIMARY SERVER
STANDBY SERVER
DB2 Engine
TCPIP
Log Buffers HADR Log Pages HADR
Log Records
Log Writer
Log Writer
Log Pages
Log Pages
Tables Indexes
Logs
Logs
Tables Indexes
16
STANDBY SERVER
TCP/IP
send() receive()
nc hr on ou s
HADR
c yn As
Ne ar -
Log writer
Log writer
n hro ou s
Logs
onous ynchr S
Sy
Logs
Commit Succeeded
17
Standby Setup db2 restore db hadr_db from backup_dir db2 update db cfg for hadr_db using HADR_LOCAL_HOST host_b HADR_REMOTE_HOST host_a HADR_LOCAL_SVC svc_b HADR_REMOTE_SVC HADR_TIMEOUT HADR_SYNCMODE svc_a 120 ASYNC HADR_REMOTE_INST inst_a
18
HADR Wizard
Sets up the Primary and Standby databases for HADR The wizard will guide the user to perform the following tasks:
Identify the HADR pair Perform database backup or select an existing backup Move image and restore on standby server Move any database objects not included in the backup image Update service files Update HADR configuration parameters on both databases Start HADR
19
Server 1
Primary
Server 2
HADR HADR
Primary
HADR
HADR
HADR
HADR HADR
Primary
HADR HADR
Primary
1. Optionally, TAKEOVER again The primary and standby play their original roles
HADR
Primary
20
21
Continuous Availability
Deliver uninterrupted access to your data with consistent performance
Application Transparency
Avoid the risk and cost of application changes
Leverages the architecture of z/OS: the Gold Standard of reliability and scalability Built and developed on Power servers and AIX
22
PowerHA pureScale technology drives the clustering Runs on an LPAR or a stand alone server
InfiniBand network
23
Predictable Scaling
Users network
DB2 Partition
DB2 Partition
DB2 Partition
DB2 Partition
SMP server
SMP server
24
25
Database Partition 3
26
Database Partition 3
January
February
March
27
Database Partition 2
Database Partition 3
January
February
March
28
Database Partition 3
January
February
March
29
Potopoulos Katsopoulos
510 500
10000 20000
Whitby Whitby
ONT ONT
L4N5R4 L4N5R4
Potopoulos
510
10000
Whitby
ONT
L4N5R4
Katsopoulos
500
20000
Whitby
ONT
L4N5R4
Dictionary
01
Pot 500 10000 (02) Kats 500 20000 (02)
opoulos WhitbyONTL4N5R4
02
30
79% Smaller
78% Smaller
42% Faster
32
33
Openbravo ERP
Currently supported RDBMS Oracle & PostgreSQL Database Size 520 tables
400+ PL/SQL routines / triggers
34
1 WEEK
1. Map schema, data and SQL
Native support 99% of SQL compatible 156 of 158 procedures natively supported
35