how to make databases on linux on system z highly available · oracle database • oracle...
TRANSCRIPT
![Page 1: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/1.jpg)
How To Make Databases on Linux on System z Highly Available
Mike Friesenegger ([email protected])SUSE
Wednesday, August 14, 2013Session Number 13437
![Page 2: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/2.jpg)
Agenda
• Clarify the term "Availability"• What is High Availability• Minimize a Database Startup Time after a Failure• Making an IBM DB2 Database Highly Available• Making an Oracle Database Highly Available• Demo
2
![Page 3: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/3.jpg)
Questions to ask about the importance of a database
• How much uptime does the business expect?– 24 x 7 x 365
– Occasional downtime acceptable
– Not important
• How quickly does the database need to recover from a failure?
– Recovery time is unacceptable
– Some recovery time is acceptable
– Not important
3
![Page 4: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/4.jpg)
Determine the level of “Availability”
• Maximum1 or Continuous2 Availability– 24 x 7 x 365– Recovery time is unacceptable
• High Availability– Occasional downtime acceptable
– Some recovery time is acceptable
• No Availability– Not important
4
1 “High Availability Overview”, http://www.oracle.com/pls/db112/portal.portal_db?selected=14&frame=2 “High Availability and Disaster Recovery Options for DB2 for Linux, UNIX, and Windows”, http://www.redbooks.ibm.com/abstracts/sg247363.html
![Page 5: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/5.jpg)
The cost of “Availability”
• Maximum or Continuous Availability– Additional hardware/software costs– Most complex configuration– Largest amount of time to plan and implement
• High Availability– Additional hardware/software costs– Complex configuration– Time required to plan and implement
• No Availability
– Normal cost of running a single instance database
5
![Page 6: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/6.jpg)
The products that assist with “Availability”
• Maximum or Continuous Availability– Oracle Real Application Cluster (RAC)– IBM DB2 pureScale®
• High Availability– An OS based HA Clustering solution
● IBM PowerHA for AIX● Microsoft Cluster Server for Windows● Veritas Cluster Server● SUSE Linux Enterprise High Availability Extension
– Optional components● Database replication● Fast Failover capability
6
![Page 7: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/7.jpg)
A note about the“Availability” products
• Maximum or Continuous Availability– Availability is only one aspect of these products– Flexibility to scale and increase processing capacity is the
biggest goal of these products– Automatically load balance application connections is a
benefit of the scalability– May address disaster recovery
• High Availability– Primary focus on increasing availability– May address disaster recovery
7
![Page 8: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/8.jpg)
Clarify the term “Availability”
• Depends on your business requirements– Maybe you do not need any availability
• If you do
– Maximum or Continuous Availability provides the most options and features with the most complexity and cost
– High Availability may be all you need!• The remainder of this session will focus on providing High
Availability
– Focused on Oracle and DB2 databases– Using the SUSE Linux Enterprise High Availability
Extension8
![Page 9: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/9.jpg)
SUSE® Linux Enterprise High Availability Extension1
9
• Service availability 24/7● Policy driven clustering
• Shared and Scaled data-access
● Cluster file system
• Stretch & Geo2 Clustering● Cluster across unlimited
distance
• Virtualization Agnostic● Platform independent setup
• Disaster tolerance● Data replication via IP● Node recovery
• Scale network services● IP load-balancing
• User friendly tools● Graphical user interface● Unified command line
interface
• Free Resource Agents● Oracle
1 The SLEHA Extension is free with a purchased SLES for System z subscription2 Geo Clustering is a purchasable feature
![Page 10: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/10.jpg)
What is High Availability
![Page 11: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/11.jpg)
A Simple HA Cluster
Heartbeat
Node 1 Node 3
SAN
MASTERNode 2
11
![Page 12: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/12.jpg)
An Active/Passive Database Cluster
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
12
![Page 13: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/13.jpg)
Migrating a Databaseto a New Node
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
13
![Page 14: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/14.jpg)
Migrated Databaseon a New Node
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
14
![Page 15: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/15.jpg)
Node Failure in the Cluster
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
15
![Page 16: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/16.jpg)
Kick the Failed NodeOut of the Cluster
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
16
![Page 17: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/17.jpg)
Database AutomaticallyRestarted on another Node
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
17
![Page 18: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/18.jpg)
Minimize a Database Startup Time
![Page 19: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/19.jpg)
Migration and Failover can beTime Consuming
19
Steps in migration● Clean database shutdown● Release shared storage
from current node● Attach shared storage to
new node● Start database and listener
Steps for failover● Detection of failed node● Kick the failed node out of
cluster● Issue node eviction● Wait for node eviction● Guarantee that node is
kicked out● Attach shared storage to
new node● Start database and listener
● Verify no database corruption
![Page 20: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/20.jpg)
Replication to Standby Databasevia Log Shipping
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
20
![Page 21: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/21.jpg)
Node Failure in the Cluster
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
21
![Page 22: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/22.jpg)
Kick the Failed NodeOut of the Cluster
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
22
![Page 23: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/23.jpg)
Standby Database Automatically Started on another Node
Node 1 Node 3
MASTERNode 2
Heartbeat
SAN
23
![Page 24: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/24.jpg)
Making an IBM DB2 DatabaseHighly Available
![Page 25: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/25.jpg)
Components in a Highly AvailableIBM DB2 Database
• IBM DB2 10.1 for Linux• IBM DB2 High Availability and Disaster Recovery (HADR)
– Provides log shipping feature– Recommended to use a third-party clustering solution
• SUSE SLE High Availability Extension 11 SP3– Manages start/stop/failover of resources
● Shared storage● Service IP Address● IBM DB2 Database and HADR
– Provides node monitoring– IP address failover
25
![Page 26: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/26.jpg)
Making an Oracle DatabaseHighly Available
![Page 27: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/27.jpg)
Components in a Highly AvailableOracle Database
• Oracle Enterprise 11gR2 for Linux• Oracle Data Guard
– Provides log shipping feature– Oracle recommends using Oracle Clusterware
● Other third-party HA clustering solutions will work
• SUSE SLE High Availability Extension 11 SP3– Manages start/stop/failover of resources
● Shared storage● Service IP Address● Oracle Database and Data Guard
– Provides node monitoring– IP address failover
27
![Page 28: How To Make Databases on Linux on System z Highly Available · Oracle Database • Oracle Enterprise 11gR2 for Linux • Oracle Data Guard – Provides log shipping feature – Oracle](https://reader034.vdocuments.site/reader034/viewer/2022050600/5fa7dabce35cf3364344f26b/html5/thumbnails/28.jpg)
Thank You!!
28