Skip Headers
Oracle® Database High Availability Overview
11g Release 2 (11.2)

Part Number E10804-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

7 High Availability Architectures and Solutions

The Maximum Availability Architecture (MAA) is Oracle's best practices blueprint. It is based on proven Oracle high availability technologies and recommendations. The goal of the MAA is to remove the complexity in designing the optimal high availability architecture by providing configuration recommendations and tuning tips to optimize your architecture and Oracle features.

This chapter describes the various high availability architectures in an Oracle environment and helps you to choose the correct architecture for your organization.

It includes the following sections:

7.1 Oracle Database High Availability Architectures

The following sections provide an overview of Oracle Database high availability architectures and implement the MAA best practices:

See Section 7.2 for a comparison of the different architectures and highlights of the benefits and considerations.

After you have chosen an architecture, then implement it using the operational and configuration best practices described in the MAA white papers and in Oracle Database High Availability Best Practices. These best practices are required to maximize the benefits of each architecture. See Section 1.5, "Roadmap to Implementing the Maximum Availability Architecture (MAA)" for more information about the best practices documentation.

7.1.1 Oracle Database

Oracle Database is a single-instance, standalone (noncluster) database and it is the foundation for all high availability architectures. There are numerous high availability features that you can use in the Oracle Database single-instance database architecture.

Oracle recommends that you use the following Oracle features to make a standalone database on a single computer available for certain failures and planned maintenance activities:

Figure 7-1 shows a basic, single-node Oracle Database that includes an Oracle ASM instance.Foot 1  This architecture incorporates several high availability features, including Flashback Database, Online Redefinition, Recovery Manager, and Oracle Secure Backup.

Figure 7-1 Single-Node, Nonclustered Oracle Database with an Oracle ASM Instance

Description of Figure 7-1 follows
Description of "Figure 7-1 Single-Node, Nonclustered Oracle Database with an Oracle ASM Instance"

7.1.2 Oracle Database with Oracle Clusterware (Cold Cluster Failover)

Section 3.4.1 describes how Oracle Clusterware is software that, when installed on servers running the same operating system, enables the servers to be bound together to operate as if they are one server, and manages the availability of user applications and Oracle databases. The servers on which you want to run Oracle Clusterware must be running the same operating system.

Many high availability architectures today use clusters alone to provide some rudimentary node redundancy and automatic node failover. However, when you use Oracle Clusterware, there is no need or advantage to using third-party clusterware.

Oracle Clusterware provides a number of benefits over third-party clusterware. Oracle Clusterware:

  • Enables you to use an entire software solution from Oracle, avoiding the cost and complexity of maintaining additional cluster software.

    By reducing the combinations of software that you must coordinate and support, you can increase the manageability and availability of your system software.

  • Provides seamless integration with, and migration to, Oracle Real Application Clusters (Oracle RAC) and Oracle Data Guard.

    Section 7.1.7 describes how you can achieve the highest level of availability with Oracle RAC and Oracle Data Guard.

  • Includes all of the features required for cluster management, including node membership, group services, global resource management, and high availability functions such as managing third-party applications, event management, and Oracle notification services that enable Oracle clients to reconnect to the new primary database after a failure.

  • Uses a private network and a voting disk to detect and resolve split-brainFoot 2  scenarios.

With Oracle Clusterware, you can provide a cold cluster failover to protect an Oracle instance from a system or server failure. The basic function of a cold cluster failover is to monitor a database instance running on a server, and if a failure is detected, to restart the instance on a spare server in the cluster. Network addresses are failed over to the backup node. Clients on the network experience a period of lockout while the failover occurs and are then served by the other database instance after the instance has started. Also, you can use the Oracle Clusterware ability to relocate applications and application resources (using the CRS_RELOCATE command) as a way to move the workload to another node so that you can perform planned system maintenance on the production server.

The cold cluster failover solution with Oracle Clusterware provides these additional advantages over a basic database architecture:

  • Automatic recovery of node and instance failures in minutes

  • Automatic notification and reconnection of Oracle integrated clientsFoot 3 

  • Ability to customize the failure detection mechanism

    For example, you can use your favorite application query in the database check action. Providing application-specific failure detection means Oracle Clusterware can fail over not only during the obvious cases such as when the instance is down, but also in the cases when, for example, an application query is not meeting a particular service level.

  • High availability functionality to manage third-party applications

  • Rolling release upgrades of Oracle Clusterware

The operation of an Oracle Clusterware cold cluster failover is depicted in Figure 7-2 and Figure 7-3. These figures show how you can use the Oracle Clusterware framework to make both Oracle Database and your custom applications highly available.

Figure 7-2 shows a configuration that uses Oracle Clusterware to extend the basic Oracle Database architecture and provide cold cluster failover. In the figure, the configuration is operating in normal mode in which Node 1 is the active instance connected to Oracle Database that is servicing applications and users. Node 2 is connected to Node 1 and to Oracle Database, but it is currently standby mode.

Figure 7-2 Oracle Database with Oracle Clusterware (Before Cold Cluster Failover)

Description of Figure 7-2 follows
Description of "Figure 7-2 Oracle Database with Oracle Clusterware (Before Cold Cluster Failover)"

Figure 7-3 shows the Oracle Clusterware configuration after a cold cluster failover has occurred. In the figure, Node 2 is now the active instance connected to the Oracle database and servicing applications and users. Node 1 is connected to Node 2 and to the Oracle database, but Node 1 is currently idle, in standby mode.

To provide this transparent failover capability, Oracle Clusterware requires a virtual IP address for each node in the cluster. With Oracle Clusterware, you also define an application virtual IP address so that users can access the application independently of the node in the cluster where the application is running. You can define multiple application VIPs, with generally one application VIP defined for each application running. The application VIP is tied to the application by making it dependent on the application resource defined by Cluster Ready Services (CRS).

Figure 7-3 Oracle Database with Oracle Clusterware (After Cold Cluster Failover)

Description of Figure 7-3 follows
Description of "Figure 7-3 Oracle Database with Oracle Clusterware (After Cold Cluster Failover)"

Note:

Neither Oracle Enterprise Manager or Oracle Universal Installer (OUI) provide configuration support for Oracle Clusterware. To configure an Oracle Clusterware environment, follow the step-by-step instructions in your platform-specific Oracle Clusterware installation guide.

7.1.3 Oracle Database with Oracle Real Application Clusters (Oracle RAC)

An architecture that combines Oracle Database with Oracle RAC is inherently a highly available system. Unlike a traditional monolithic database server that is expensive and is not flexible to changing capacity and resource demands, Oracle RAC combines the processing power of multiple interconnected computers to provide system redundancy, scalability, and high availability.

The clusters that are typical of Oracle RAC environments can provide continuous service for both planned and unplanned outages. Oracle RAC builds higher levels of availability on top of the standard Oracle features. All single instance high availability features, such as the Flashback technologies and online reorganization, also apply to Oracle RAC. Applications scale in an Oracle RAC environment to meet increasing data processing demands without changing the application code. In addition, allowing maintenance operations to occur on a subset of components in the cluster while the application continues to run on the rest of the cluster can reduce planned downtime.

Oracle RAC exploits the redundancy that is provided by clustering to deliver availability with n - 1 node failures in an n-node cluster. Unlike the cold cluster model where one node is completely idle, all instances and nodes can be active to scale your application.

Oracle Database with Oracle RAC architecture provides the following benefits over a traditional monolithic database server and the cold cluster failover model:

  • Scalability across database instances

  • Flexibility to increase processing capacity using commodity hardware without downtime or changes to the application

  • Ability to tolerate and quickly recover from computer and instance failures (measured in seconds)

  • Rolling upgrades for system and hardware changes

  • Rolling patch upgrades for some interim patches, security patches, CPUs, and cluster software

  • Fast, automatic, and intelligent connection and service relocation and failover

  • Load balancing advisory and runtime connection load balancing

  • Comprehensive manageability integrating database and cluster features with Grid Plug and Play and policy based cluster and capacity management

  • Workload management, load balancing advisory, and runtime connection load balancing help redirect and balance work across the appropriate resources

  • Quality of Service Management reduces the number of outages due to performance problems by identifying and advising on problems that can breach performance objectives

  • Oracle Enterprise Management support for Oracle ASM and Cluster File System, Grid Plug and Play, Cluster Resource Management, Oracle Clusterware and Oracle RAC Provisioning and patching

Figure 7-4 shows Oracle Database with Oracle RAC architecture.

Figure 7-4 Oracle Database with Oracle RAC Architecture

Description of Figure 7-4 follows
Description of "Figure 7-4 Oracle Database with Oracle RAC Architecture"

7.1.4 Oracle Database with Oracle RAC on Extended Clusters

Oracle Database with Oracle RAC architecture is designed primarily as a scalability and availability solution that resides in a single data center. It is possible, under certain circumstances, to build and deploy an Oracle RAC system where the nodes in the cluster are separated by greater distances. This architecture is referred to as an extended cluster.

An Oracle RAC extended cluster is an architecture that provides extremely fast recovery from a site failure and allows for all nodes, at all sites, to actively process transactions as part of single database cluster. For example, for a business that has a corporate campus, the extended Oracle RAC configuration could consist of individual Oracle RAC nodes being located in separate buildings. Oracle RAC on an extended cluster provides greater availability than a local Oracle RAC cluster, but an extended cluster may not completely fulfill the disaster recovery requirements of your organization.

When the two data centers are located relatively close to each other, extended clusters can provide great protection for some disasters, but not all. You should determine if both sites are likely to be affected by the same disaster. For example, if the extended cluster configuration is set up properly, it can protect against disasters such as a local power outage, an airplane crash, or server room flooding. However, an extended cluster cannot protect against all data corruptions or specific data failures that impact the database, or against comprehensive disasters such as earthquakes, hurricanes, and regional floods that affect a greater geographical area. (For complete disaster recovery and data protection, use the architecture described in Section 7.1.7, "Oracle Database with Oracle RAC and Oracle Data Guard".)

The advantages to using Oracle RAC on extended clusters include:

Note:

While an extended cluster architecture can be effective and has been successfully implemented, you should implement it only in the environments (involving the distance, latency, and degree of protection) recommended in this discussion.

Figure 7-5 shows an Oracle RAC extended cluster for a configuration that has multiple active instances on six nodes at two different locations: three nodes at Site A and three at Site B. The public and private interconnects, and the Storage Area Network (SAN) are all on separate dedicated channels, with each one configured redundantly. For availability reasons, the Oracle Database is a single database that is mirrored at both of the sites. Also, to prevent a full cluster outage if either site fails, the configuration includes a third voting disk on an inexpensive, low-end standard Network File System (NFS) mounted device.

Figure 7-5 Oracle RAC Extended Cluster

Description of Figure 7-5 follows
Description of "Figure 7-5 Oracle RAC Extended Cluster"

See Also:

7.1.5 Oracle Database with Oracle Data Guard

Oracle Data Guard is a high availability and disaster-recovery solution that provides very fast automatic failover (referred to as fast-start failover) in the case of database failures, node failures, corruption, and media failures. Furthermore, the standby databases can be used for read-only access and subsequently for reader farms, for reporting purposes, and for testing and development purposes.

While traditional solutions (such as backup and recovery from tape, storage based remote mirroring, and database log shipping) can deliver some level of high availability, Oracle Data Guard provides the most comprehensive high availability and disaster recovery solution for Oracle databases.

Oracle Data Guard Advantages Over Traditional Solutions

Oracle Data Guard provides a number of advantages over traditional solutions, including the following:

  • Fast, automatic or automated database failover for data corruptions, lost writes, and database and site failures

  • Automatic corruption repair automatically replaces a corrupted block on the primary or physical standby by copying a good block from a physical standby or primary database

  • Most comprehensive protection against data corruptions and lost writes on the primary database

  • Reduced downtime for storage, Oracle ASM, Oracle RAC, system migrations and some platform migrations, and changes using Data Guard switchover

  • Reduced downtime with Oracle Data Guard rolling upgrade capabilities

  • Ability to off-load primary database activities—such as backups, queries or reporting—without sacrificing the RTO and RPO ability to use the standby database as a read-only resource using the real-time query apply lag capability

  • Ability to integrate non-database files using Oracle Database File System (DBFS) as part of the full site failover operations

  • Site failures do not require instance restart, storage remastering, or application reconnections

  • Transparent to applications

  • Transparent and integrated support for application failover

  • Effective network utilization

In addition, for data resident in Oracle databases, Oracle Data Guard, with its built in zero data loss capability, is more efficient, less expensive and better optimized for data protection and disaster recovery than traditional remote mirroring solutions. Oracle Data Guard provides a compelling set of technical and business reasons that justify its adoption as the disaster recovery and data protection technology of choice, over traditional remote mirroring solutions.

Oracle Data Guard Advantages Compared to Remote Mirroring Solutions

The following list summarizes the advantages of using Oracle Data Guard compared to using remote mirroring solutions:

  • Better Network Efficiency—With Oracle Data Guard, only the redo data needs to be sent to the remote site and the redo data can be compressed to provide even greater network efficiency. However, if a remote mirroring solution is used for data protection, typically you must mirror the database files, the online redo log, the archived redo log and the control file. If the fast recovery area is on the source volume that is remotely mirrored, then you must also remotely mirror the flashback logs. Thus, compared to Oracle Data Guard, a remote mirroring solution must transmit each change many more times to the remote site.

  • Better Performance—Oracle Data Guard only transmits write I/Os to the redo log files of the primary database, whereas remote mirroring solutions must transmit these writes and every write I/O to data files, additional members of online log file groups, archived redo log files, and control files.

    Oracle Data Guard is designed so that it does not affect the Oracle database writer (DBWR) process that writes to data files, because anything that slows down the DBWR process affects database performance. However, remote mirroring solutions affect DBWR process performance because they subject all DBWR process write I/O's to network and disk I/O induced delays inherent to synchronous, zero-data-loss configurations.

    Compared to mirroring, Oracle Data Guard provides better performance and is more efficient, Oracle Data Guard always verifies the state of the standby database and validates the data before applying redo data, and Oracle Data Guard enables you to use the standby database for updates while it continues to protect the primary database.

  • Better suited for WANs—Remote mirroring solutions based on storage systems often have a distance limitation due to the underlying communication technology (Fibre Channel, ESCON) used by the storage systems. In a typical example, the maximum distance between these two boxes connected in a point-to-point fashion and running synchronously can be only 10 km. Using specialized devices this distance can be extended to 66 km. However, when the standby data center is more than 66 km apart, you must use a series of repeaters and converters from third-party vendors. These devices convert ESCON/Fibre Channel to the appropriate IP, ATM or SONET networks.

  • Better resilience and data protection—Oracle Data Guard ensures much better data protection and data resilience than remote mirroring solutions. This is because corruptions introduced on the production database probably can be mirrored by remote mirroring solutions to the standby site, but corruptions are eliminated by Oracle Data Guard.

    For example, if a stray write occurs to a disk, or there is a corruption in the file system, or the Host Bus Adaptor corrupts a block as it is written to disk, then a remote mirroring solution may propagate this corruption to the disaster-recovery site. Because Oracle Data Guard only propagates the redo data in the logs, and the log file consistency is checked before it is applied, all such external corruptions are eliminated by Oracle Data Guard. Automatic block repair may be possible, thus eliminating any downtime in a Data Guard configuration.

  • Higher Flexibility—Oracle Data Guard is implemented on top of pure commodity hardware. It only requires a standard TCP/IP-based network link between the two computers. There is no fancy or expensive hardware required. It also allows the storage to be laid out in a different fashion from the primary. For example, you can put the files on different disks, volumes, file systems, and so on.

  • Better Functionality—Oracle Data Guard provides full suite of data protection features that provide a much more comprehensive and effective solution optimized for data protection and disaster recovery than remote mirroring solutions. For example: Active Data Guard, Redo Apply for physical standby databases, and SQL Apply for logical standby databases, multiple protection modes, push-button automated switchover and failover capabilities, automatic gap detection and resolution, GUI-driven management and monitoring framework, cascaded redo log destinations.

  • Higher ROI—Businesses must ensure that they are getting as much value as possible from their IT investments, and no IT infrastructure is sitting idle. Oracle Data Guard is designed to allow businesses get something useful out of their expensive investment in a disaster-recovery site. Typically, this is not possible with remote mirroring solutions.

The recommended high availability and disaster-recovery architectures that use Oracle Data Guard are described in the following sections:

7.1.5.1 Overview of Single Standby Database Architectures

A single standby database architecture consists of the following key traits and recommendations:

  • Primary database resides in Site A.

  • Standby database resides in Site B. If zero data loss is required with minimum performance impact on the primary database, then the best practice is to locate the secondary site within 200 miles from the primary database. Note, however, that the synchronous redo transport does not impose any physical distance limitation.

  • Fast-start failover is recommended to provide automatic failover without user intervention and bounded recovery time. If the primary database uses the asynchronous redo transport, configure your maximum data loss tolerance or the Oracle Data Guard broker's FastStartFailoverLagLimit property to meet your business requirements. The observer (thin client watchdog) resides in the application tier and monitors the availability of the primary database. See Oracle Data Guard Broker for a detailed description of the observer.

  • Use a physical standby database if read-only access is sufficient.

  • Evaluate logical standby databases if additional indexes are required for reporting purposes and if your application only uses data types supported by logical standby database and SQL Apply.

Figure 7-6 shows the relationships between the primary database, target standby database, and the observer before, during, and after a fast-start failover occurs.

Figure 7-6 Primary and Standby Databases and the Observer During Fast-Start Failover

Description of Figure 7-6 follows
Description of "Figure 7-6 Primary and Standby Databases and the Observer During Fast-Start Failover"

The following list describes examples of Oracle Data Guard configurations using single standby databases:

  • A national energy company uses a standby database located in a separate facility 10 miles away from its primary data center. Outages or data loss that could impact customer service and safety are avoided by using Oracle Data Guard synchronous transport and automatic failover (fast-start failover).

  • An infrastructure services provider to the telecommunication industry utilizes a single standby database located over 400 miles away from the primary configured for synchronous redo transport, enabling zero data loss failover for maximum data protection and high availability.

  • A telecommunications provider uses asynchronous redo transport to synchronize a primary database on the west cost of the United Sates, with a standby database on the east coast, over 2,200 miles away. This scenario enables the provider to use existing data centers that are geographically isolated, offering a unique level of high availability.

  • A global manufacturing company used Oracle Data Guard to replace storage-based remote mirroring and maintain a standby database at its recovery site 50 miles away from the primary site. Oracle Data Guard provides more comprehensive data protection and its more efficient network utilization means there is plenty of headroom to grow without incurring the additional expense of upgrading their network.

7.1.5.2 Overview of Multiple Standby Database Architectures

This architecture is identical to the single-standby database architecture that was described in Section 7.1.5.1, except that there are multiple standby databases in the same Oracle Data Guard configuration. The following list describes some implementations for a multiple standby database architecture:

  • Continuous and transparent disaster or high availability protection in case of an outage at the primary database or the targeted standby database

  • Reader farms or look up databases

  • Reporting databases

  • Regional reporting or reader databases for better response time

  • Synchronous transport transmits to a more local standby database, and asynchronous transport transmits to a more remote standby database to provide optimum levels of performance and data protection

  • Testing and development clones using snapshot standby databases

  • Rolling upgrades

Note that it is possible to convert a physical standby database to a logical standby database or to a snapshot standby database, or you can create additional logical standby databases or snapshot standby databases:

  • Transient logical standby databases can be used to minimize downtime for database upgrades. Using transient logical standby databases is helpful in Oracle Data Guard architectures where there are no logical standby databases.

    In a multiple standby database environment, you can create a transient logical standby database temporarily (for planned maintenance) and then convert it back to the physical standby database role. For example, you can use transient logical standby databases to minimize downtime for database upgrades, when required. There is no need to create a separate logical standby database to perform upgrades. The high-level steps for rolling upgrades with a transient logical standby database are as follows:

    1. Start performing a rolling database upgrade with the physical standby database.

    2. Temporarily convert the physical standby database to a logical standby database to perform the upgrade. (Note that data type restrictions are limited for the short window of time required to perform an upgrade.)

    3. Revert the logical standby database back to the physical standby database role.

    See Also:

    Oracle Data Guard Concepts and Administration or the Oracle Database High Availability Best Practices for step-by-step instructions about performing a rolling upgrade with a transient logical standby database
  • Snapshot standby databases can be used as a clone or a test database to test new functionality and new releases. The snapshot standby database continues to receive and queue redo data so data protection and RPO are not sacrificed.

    Snapshot standby databases diverge from the primary database over time because redo data from the primary database is not applied when it is received. Redo Apply does not apply the redo data until you convert the snapshot standby database back into a physical standby database, and all local updates that were made to the snapshot standby database are discarded. Although the local updates to the snapshot standby database cause additional divergence, the data in the primary database is fully protected by means of the redo log that is located at the standby site.

Figure 7-7 shows the production database at the primary site and multiple standby databases at secondary sites. Also, see Figure 5-2, "Standby Database Reader Farms" for another example of a multiple standby database environment.

Figure 7-7 Oracle Database with Oracle Data Guard on Primary and Multiple Standby Sites

Description of Figure 7-7 follows
Description of "Figure 7-7 Oracle Database with Oracle Data Guard on Primary and Multiple Standby Sites"

See Also:

The following list describes examples of Oracle Data Guard configurations using multiple standby databases:

  • A world-recognized financial institution uses two remote physical standby databases for continuous data protection after failover. If the primary system should fail, the first standby database becomes the new primary. The second standby database automatically receives data from the new primary, insuring that data is protected at all times.

  • A nationally recognized insurance provider in the U.S. maintains two standby databases in the same Oracle Data Guard configuration, one physical and one logical standby database. Their strategy further mitigates risk by maintaining multiple standby databases, each implemented using a different architectures - Redo Apply and SQL Apply.

  • A world-recognized e-commerce site utilizes multiple standby databases—a mix of both physical and logical databases - both for disaster recovery purposes and to scale-out read performance by provisioning multiple logical standby databases using SQL Apply.

  • A global provider of information services to legal and financial institutions uses multiple standby databases in the same Oracle Data Guard configuration to minimize downtime during major database upgrades and platform migrations.

Also, for large data centers where there is a need to support many applications with Oracle Data Guard requirements, you can build a Oracle Data Guard hub to reduce the total cost of ownership.

7.1.5.3 Oracle Data Guard Hub

With the Database Server and Storage Grid, you can build standby database and testing Hubs that use a pool of system resources. The system resources can be dynamically allocated and deallocated depending on various priorities. For example, if the primary database fails over to one of the standby databases in the standby hub, the new primary database acquires more system and storage resources while the testing resources may be temporarily starved. With the Oracle Grid technologies, you can enable a high level of utilization and low TCO, without sacrificing business requirements.

An Oracle Data Guard hub can consists of:

  • Several standby databases in an Oracle RAC environment residing in a cluster of servers, called a grid server

  • Leveraging the storage grid

The premise of the standby hub is that it provides higher utilization with lower cost. The probability of failing over all the databases at the same time is unlikely. Thus, when there is a failover, you can prioritize the system resources to production activity and allocate new system resources in a grid for the standby database functions. At the time of role transition, more storage and system resources can be allocated toward that application.

For example, an Oracle Data Guard hub could include multiple databases and applications that are supported in a Grid server and storage architecture. This configuration consists of a central resource supporting 10 applications and databases in the grid compared to managing 10 separate system or storage units in a nongrid infrastructure.

Another possible configuration might be a testing hub consisting of snapshot standby databases. With the snapshot standby database hub, you can use the combined storage and server resources of a Grid instead of building and managing individual servers for each application.

7.1.6 Oracle Database with Oracle Clusterware and Oracle Data Guard

If your business does not require the scalability and additional high availability benefits provided by Oracle RAC, but you still need all the benefits of Oracle Data Guard and cold cluster failover, then this architecture is a good compromise. Oracle Clusterware cold cluster failover combined with Oracle Data Guard makes a tightly integrated solution in which failover to the secondary node in the cold cluster failover is transparent and does not require you to reconfigure the Oracle Data Guard environment or perform additional steps.

Figure 7-8 shows an Oracle Clusterware and Oracle Data Guard architecture that consists of a primary and a secondary site. Both the primary and secondary sites contain Oracle application servers, two database instances, and an Oracle Database.

Figure 7-8 Oracle Clusterware (Cold Cluster Failover) and Oracle Data Guard

Description of Figure 7-8 follows
Description of "Figure 7-8 Oracle Clusterware (Cold Cluster Failover) and Oracle Data Guard"

In Figure 7-8:

  • The application servers on the secondary site are connected to the WAN traffic manager by a dotted line to indicate that they are not actively processing client requests at this time. The application server on the secondary site can be active and processing client requests such as queries if the standby database is a physical standby database with the Active Data Guard option enabled, or if it is a logical standby database.

  • Oracle Data Guard transmits redo data from the primary database to the secondary site to keep the databases synchronized.

  • Oracle Clusterware manages the availability of both the user applications and Oracle databases.

  • Oracle Clusterware provides tolerance of node failures, while Oracle Data Guard provides additional protection against data corruptions, lost writes, and database and site failures. (See Oracle Database with Oracle Data Guard for a complete description.)

  • Although cold cluster failover is not shown in Figure 7-8, you can configure it by adding a passive node on the secondary site.

7.1.7 Oracle Database with Oracle RAC and Oracle Data Guard

You can achieve the highest level of availability when using Oracle RAC and Oracle Data Guard without application changes. These Oracle features provide the most comprehensive architecture for reducing downtime for scheduled outages and preventing, detecting, and recovering from unscheduled outages. This architecture combines the benefits of both Oracle RAC and Oracle Data Guard and it is the recommended architecture for Maximum Availability Architecture (MAA).

To protect against site failures, the MAA recommends Oracle RAC and Oracle Data Guard reside on separate systems (clusters) and data centers. Figure 7-9 shows the recommended MAA configuration, with Oracle Database, Oracle RAC, and Oracle Data Guard. Configuring symmetric sites is recommended to ensure that each site can accommodate the performance and scalability requirements of the application after any role transition. Furthermore, operational practices across role transitions is simplified when the sites are symmetric.

Figure 7-9 Oracle Database with Oracle RAC and Oracle Data Guard - MAA

Description of Figure 7-9 follows
Description of "Figure 7-9 Oracle Database with Oracle RAC and Oracle Data Guard - MAA"

7.1.8 Oracle Database with Oracle Streams

Similar to using Oracle Data Guard in SQL Apply mode, Oracle Streams can capture database changes, propagate them to destinations, and apply the changes at these destinations. Oracle Streams is optimized for replicating data. Oracle Streams can capture changes at a source database, and the captured changes can be propagated asynchronously to replica databases. A logical copy configured and maintained using Oracle Streams is called a replica, not a logical standby database, because it provides many capabilities that are beyond the scope of the normal definition of a standby database.

You might choose to use Oracle Streams to configure and maintain a logical copy of your production database. Although using Oracle Streams might require additional work, it offers increased flexibility that might be required to meet specific business requirements.

Oracle Database with Oracle Streams provides granularity and control over what is replicated and how it is replicated. It supports bidirectional replication, data transformations, subsetting, custom apply functions, and heterogeneous platforms. It also gives users complete control over the routing of change records from the primary database to a replica database. Oracle Streams can capture data changes at the primary database or downstream at a replica database, thus enabling users to build hub and spoke network configurations that can support hundreds of replica databases.

Consider using Oracle Database with Oracle Streams if one or more of the following conditions are true:

  • Updates are required on both sites or databases, and the changes need to be propagated bidirectionally

  • Site configurations are on heterogeneous platforms

  • Different character sets are required between the primary database and its replicas

  • Fine control of information and data sharing are required

  • More investment and expertise to build and maintain an integrated high availability solution is available

Figure 7-10 shows a sample Oracle Database using Oracle Streams to replicate data for a schema among three Oracle databases. DML and DDL changes made to tables in the hr schema are captured at all databases in the environment and propagated to each of the other databases in the environment.

See Also:

Oracle Streams Replication Administrator's Guide for complete information about constructing multiple-source replication environments using Oracle Streams

Figure 7-10 Oracle Database with Oracle Streams Sharing Data From Multiple Databases

Description of Figure 7-10 follows
Description of "Figure 7-10 Oracle Database with Oracle Streams Sharing Data From Multiple Databases"

You can configure Oracle Streams with Oracle Data Guard to provide protection for the individual databases in the configuration. Figure 7-11 shows a hub and spoke network configuration in which Oracle Data Guard is providing additional data protection for the hub and one of the satellites.

Figure 7-11 Oracle Streams Hub-and-Spoke Network Configuration

Description of Figure 7-11 follows
Description of "Figure 7-11 Oracle Streams Hub-and-Spoke Network Configuration"

7.2 Choosing the Correct High Availability Architecture

This section summarizes the advantages of the different high availability architectures and provides guidelines for you to choose the correct high availability architecture for your business.

Chapter 2, "Determining Your High Availability Requirements" describes how the high availability requirements for the business plus its allotted budget determine the appropriate architecture. The key factors include:

For example, Table 7-1 provides some insight into the probability of different outages during unplanned and planned activities. The data is derived from actual user experiences and from Oracle service requests.

Table 7-1 Frequency of Outages

Activity Outage

Media or disk failures

High

Application patches

High

Application failures

High

Logical or user failures that manipulate logical data (DMLs and DDLs)

High

Data corruptions and lost writes

Medium

Computer failures

Medium

Database patches

Medium

Hardware patches and upgrades

Low

Operating system patches and upgrades

Low

Database or application upgrades

Low

Database failures

Low

Platform migrations

Very low

Site failures

Very low


Table 7-2 recommends architectures based on your business requirements for RTO, RPO, MO, scalability, and other factors.

Table 7-2 High Availability Architecture Recommendations

Consider Using ... Business or Application Impact ...

Oracle Database with Oracle Clusterware (Cold Cluster Failover)

  • Maximum RTO for instance or node failure is in minutes.

  • MO is low.

  • ROI is low.

  • Rolling upgrade and patch capabilities for Oracle Clusterware with zero database downtime

Oracle Database with Oracle Real Application Clusters (Oracle RAC)

  • Maximum RTO for instance or node failure is zero for the databaseFoot 1 .

  • MO is medium.

  • ROI is high.

  • Workload Management and Quality of Service Management

  • Zero downtime when using the provisioning capability in Oracle Enterprise Manager Grid Control

  • Rolling upgrade for system, clusterware, operating system, CPUs, and some Oracle interim patches

  • Database scalability beyond one instance or node

Oracle Database with Oracle RAC on Extended Clusters

  • All of the business benefits of Oracle RAC.

  • MO is highFoot 2 .

  • ROI is medium.

  • Additional protection from data center failure with special considerations that are documented in Section 7.1.4

  • Highest level of availability for server or computer room failure

  • High availability benefits and workload balancing outweigh performance concerns.

  • Willing to make additional provisions for remote data protection to protect against database, data, and cluster failures and corruptions

Oracle Database with Oracle Data Guard

  • Maximum RTO for instance or node failure is in seconds to minutes.

  • Maximum RTO for data corruptions, database, or site failures is in seconds to minutes.

  • MO is low.

  • ROI is high.

  • Rolling upgrade for system, clusterware, database, and operating system

  • Off-load read-only, reporting, testing and backup activities to the standby database.

For physical standby databases, this solution:

  • Supports very high primary database throughput.

  • Provides the simplicity of a physical replica.

  • Provides maximum protection from physical corruptions.

  • Provides read-only access to synchronized standby datbase and fast incremental backups to off-load production

For logical standby databases, this solution:

  • Provides the simplest form of one-way logical replication

  • Allows for structural changes to the standby database, such as changes to local tables, adding schemas, indexes, and materialized views

  • Off-loads production by providing read-only access to a synchronized standby database and allows read/write access to local tables that are not being modified by the primary database

Oracle Database with Oracle Clusterware and Oracle Data Guard

  • All of the business benefits of Oracle Clusterware (cold cluster failover) and Oracle Data Guard

  • MO is low.

  • ROI is medium.

Oracle Database with Oracle RAC and Oracle Data Guard

  • All of the business benefits of Oracle RAC and Oracle Data Guard

  • MO is medium.

  • ROI is high.

Oracle Database with Oracle Streams

  • Maximum RTO for instance or node failure is in seconds to minutes.

  • Maximum RTO for data corruption, cluster, database, or site failures is in seconds to minutes.

  • MO is highFootref 2.

  • ROI is high.

  • Rolling upgrade for system, clusterware, operating system, database, and application.

  • Support for bidirectional replication and updating anything and anywhere.

  • Support for heterogeneous platforms, versions, and character sets.

  • Support for fine-grained, n-way multimaster, hub-and-spoke, or many-to-one replication architectures.

  • Flexible propagation and management of data, transactions, and events.

  • With Oracle RAC integration, database scalability is possible.


Footnote 1 Database is still available, but a portion of the application connected to the failed system is temporarily affected.

Footnote 2 Architectures for which the MO is high might require additional time and expertise to build and maintain, but offer increased flexibility and capabilities required to meet specific business requirements.

Table 7-3 identifies the additional capabilities provided by the architectures that build on Oracle Database and attempts to label each architecture with its greatest strengths.

Table 7-3 Additional Capabilities of High Level Oracle High Availability Architectures

Oracle High Availability Architecture Key Characteristics and Additional Capabilities

Oracle Database (Base Architecture)

The foundation for all high availability architectures

Oracle Database with Oracle Clusterware (Cold Cluster Failover)

  • All of the benefits of Oracle Database

  • Automatic and fast failover for computer failure

  • Minimum rolling upgrade capabilities for system, clusterware, and operating systemFootref 3

Oracle Database with Oracle RAC on Extended Clusters

Database Grid with site failure protection

  • All of the benefits of Oracle Database

  • Protection from site failure

Oracle Database with Oracle Data Guard

Simplest high availability, data protection, and disaster-recovery solution

  • All of the benefits of Oracle Database

  • Automatic and fast failover for computer failure, storage failure, data corruption, for configured ORA- errors or conditions and database failures

  • Protection from site failure

  • Rolling upgrade for system, clusterware, database, and operating systemFoot 1 

  • Off-load backups to the standby database

  • Off-load read and reporting workload to the standby database

  • Only comprehensive lost write protection

Oracle Database with Oracle Clusterware and Oracle Data Guard

High availability solution with added data and disaster recovery protection.

  • The sum of benefits of Oracle Clusterware with Oracle Data Guard

Oracle Database with Oracle RAC and Oracle Data Guard

Best high availability, data protection and disaster-recovery solution with scalability built in

  • The sum of benefits of Oracle RAC with Oracle Data Guard

Oracle Database with Oracle StreamsFoot 2 

Bidirectional replication and information management

  • Replica database (or databases) are available for read/write use

  • Provides heterogeneous platform support

  • Fast failover for computer failure and storage failure

  • Protection from site failure

  • Minimizes downtime for computer or site maintenance and database and application upgrades

Oracle Database with Oracle Real Application Clusters (Oracle RAC)

High availability, scalability, and foundation of server database grids

  • All of the benefits of Oracle Database

  • Scalability beyond a single system

  • Automatic recovery of failed nodes and instances

  • Fast application notification (FAN) with integrated Oracle client failover

  • FAN with integrated Oracle client failover for pooled resources and third-party vendor middle tiers

  • FAN with integrated Oracle client failover, including Java applications using UCP with Oracle RAC and Oracle Data Guard. Applications can easily mask failures to the end user.

  • Workload Management and Quality of Service Management

  • Zero downtime with Grid Control provisioning

  • Rolling upgrade for system, clusterware, operating system, CPUs, and some Oracle interim patchesFoot 3 

Oracle Database with Oracle RAC on Extended Clusters

Database Grid with site failure protection

  • All of the benefits of Oracle Database

  • Protection from site failure

Oracle Database with Oracle Data Guard

Simplest high availability, data protection, and disaster-recovery solution

  • All of the benefits of Oracle Database

  • Automatic and fast failover for computer failure, storage failure, data corruption, for configured ORA- errors or conditions and database failures

  • Protection from site failure

  • Rolling upgrade for system, clusterware, database, and operating systemFoot 4 

  • Off-load backups to the standby database

  • Off-load read and reporting workload to the standby database

  • Only comprehensive lost write protection

Oracle Database with Oracle Clusterware and Oracle Data Guard

High availability solution with added data and disaster recovery protection.

  • The sum of benefits of Oracle Clusterware with Oracle Data Guard

Oracle Database with Oracle RAC and Oracle Data Guard

Best high availability, data protection and disaster-recovery solution with scalability built in

  • The sum of benefits of Oracle RAC with Oracle Data Guard

Oracle Database with Oracle StreamsFoot 5 

Bidirectional replication and information management

  • Replica database (or databases) are available for read/write use

  • Provides heterogeneous platform support

  • Fast failover for computer failure and storage failure

  • Protection from site failure

  • Minimizes downtime for computer or site maintenance and database and application upgrades


Footnote 1 Rolling upgrades with Oracle Data Guard incur minimal downtime.

Footnote 2 The initial investment to build a robust solution is well worth the long-term flexibility and capabilities that Oracle Streams delivers to meet specific business requirements.

Footnote 3 Rolling upgrades with Oracle Clusterware and Oracle RAC incur zero downtime.

Footnote 4 Rolling upgrades with Oracle Data Guard incur minimal downtime.

Footnote 5 The initial investment to build a robust solution is well worth the long-term flexibility and capabilities that Oracle Streams delivers to meet specific business requirements.

Table 7-4 shows the recovery time including detection and client failover time of an integrated Oracle client, whenever relevant. You should adopt the MAA best practices to achieve the optimal recovery time and configuration. Oracle High Availability Best Practice recommendations can be found in the Oracle Database High Availability Best Practices and in the white papers that can be downloaded from:

http://www.otn.oracle.com/goto/maa

Table 7-4 Attainable Recovery Times for Unplanned Outages

Outage Type Oracle Database
Cold Cluster Oracle RAC and RAC on Extended Clusters Oracle Data Guard Oracle RAC and Oracle Data Guard Oracle Streams

Site failure

Hours to days

Hours to days

No downtimeFootref 4 if the outage affects one building

Hours to days if the outage affects both building

Seconds to a minuteFoot 1 

Seconds to a minuteFootref 1

No downtimeFoot 2 

Computer failure

Minutes to hoursFoot 3 

Minutes

No downtimeFoot 4 

Seconds to a minute

No downtimeFootref 4

No downtimeFootref 4

Storage failure

No downtimeFoot 5 

No downtimeFootref 5

No downtime3

No downtime3

No downtime3

No downtime3

Human error

< 30 minutesFoot 6 

< 30 minutesFootref 6

< 30 minutes4

< 30 minutes4

< 30 minutes4

< 30 minutes4

Data corruption

Potentially hoursFoot 7 

Potentially hoursFootref 7

Potentially hoursFootref 7

Zero downtimeFoot 8 

Zero downtime

Seconds to a minute


Footnote 1 Recovery time indicated applies to database and existing connection failover. Network connection changes and other site-specific failover activities may lengthen overall recovery time.

Footnote 2 The portion of any application connected to the failed system is temporarily affected. You can configure the failed application connections to fail over to the replica.

Footnote 3 Recovery time consists largely of the time it takes to restore the failed system.

Footnote 4 Database is still available, but a portion of the application connected to the failed system is temporarily affected.

Footnote 5 Storage failures are prevented by using Oracle ASM with mirroring and its automatic rebalance capability.

Footnote 6 Recovery time for human errors depend primarily on detection time. If it takes seconds to detect a malicious DML or DLL transaction, it typically only requires seconds to flashback the appropriate transactions. Longer detection time usually leads to longer recovery time required to repair the appropriate transactions. An exception is undropping a table, which is literally instantaneous regardless of detection time.

Footnote 7 Recovery time depends on the age of the backup used for recovery and the number of log changes scanned to make the corrupt data consistent with the database.

Footnote 8 With automatic block repair, this should be the most common block corruption repair. There are some corruptions that cannot be addressed by automatic block repair, and for those we can rely on Data Guard failover that takes seconds to minutes.

Table 7-5 compares the attainable recovery times of each Oracle high availability architecture for all types of planned downtime.

Table 7-5 Attainable Recovery Times for Planned Outages

System Change or Data Change Outage Type Oracle Database
Oracle RAC Oracle Data Guard MAA Oracle Streams

System change - Dynamic Resource Provisioning

--

No downtime

No downtime

No downtime

No downtime

No downtime

System change - Rolling Upgrade

System level upgrade

Minutes to hours

No downtime

Seconds to five minutes

No downtime

No downtime

System change - Rolling Upgrade

Cluster or site wide upgrade

Minutes to hours

Minutes to hours

Seconds to five minutes

Seconds to five minutes

No downtimeFoot 1 

System change - Rolling Upgrade

Storage Migration

No downtimeFoot 2 

No downtime2

No downtime2

No downtime2

No downtime2

System change - Rolling Upgrade

Database one-off patch

Minutes to an hour

No downtimeFoot 3 

Seconds to five minutes

No downtime3

No downtime

System change - Rolling Upgrade

Database patch set and version upgrade

Minutes to hours

Minutes to hours

Seconds to five minutes

Seconds to five minutes

No downtime1

System change - Rolling Upgrade

Platform migration

Minutes to hours

Minutes to hours

Minutes to hours

Minutes to hours

No downtime1

Data change

Online Reorganization and Redefinition

No downtime

No downtime

No downtimeFoot 4 

No downtime4

No downtime4

Application changes

Outages that are fixed by Editions

No downtime

No downtime

No downtime

No downtime

No downtime


Footnote 1 Applications (or a portion of an application) connected to the system that is being maintained may be temporarily affected.

Footnote 2 Oracle ASM automatically rebalances stored data when disks are added or removed while the database remains online. For storage migration, you are required to use both storage arrays by Oracle ASM temporarily.

Footnote 3 For qualified one-off patches only.

Footnote 4 Tables can be reorganized online using the DBMS_REDEFINITION package. However, the online changes are not supported by SQL Apply or data capture, and therefore the effects of this subprogram are not visible on the logical standby database or replica database. For more information, see Oracle Data Guard Concepts and Administration or Oracle Streams Replication Administrator's Guide.

7.3 Integrating Application Server High Availability

The Oracle Application Server provides flexible and automated high availability solutions for Oracle Application Server to ensure that applications that you deploy on Oracle Application Server meet the required availability to achieve your business goals. The solutions introduced in this book are described in detail in the Oracle Application Server High Availability Guide.

This section contains the following topics:

7.3.1 Oracle Application Server High Availability Architectures

Oracle Application Server provides high availability and disaster recovery solutions for maximum protection against any kind of failure with flexible installation, deployment, and security options. The redundancy of Oracle Application Server local high availability and disaster recovery originates from its redundant high availability architectures.

At a high level, Oracle Application Server local high availability architectures include several active-active and active-passive architectures for the OracleAS middle-tier and the OracleAS Infrastructure. Although both types of solutions provide high availability, active-active solutions generally offer higher scalability and faster failover, although, they tend to be more expensive as well. With either the active-active or the active-passive category, multiple solutions exist that differ in ease of installation, cost, scalability, and security.

Building on top of the local high availability solutions is the Oracle Application Server disaster recovery solution, Oracle Application Server Guard. This unique solution combines the proven Oracle Data Guard technology in Oracle Database with advanced disaster recovery technologies in the application realm to create a comprehensive disaster recovery solution for the entire application system. This solution requires homogenous production and standby sites, but other Oracle Application Server instances can be installed in either site as long as they do not interfere with the instances in the disaster recovery setup. Configurations and data must be synchronized regularly between the two sites to maintain homogeneity.

7.3.2 Redundant Architectures

Oracle Application Server provides redundancy by offering support for multiple instances supporting the same workload. These redundant configurations provide increased availability either through a distributed workload, through a failover setup, or both.

From the entry point to an Oracle Application Server system (content cache) to the back end layer (data sources), all the tiers that are crossed by a request can be configured in a redundant manner with Oracle Application Server. The configuration can be an active-active configuration using OracleAS Cluster or an active-passive configuration using OracleAS Cold Failover Cluster.

7.3.3 High Availability Services in Oracle Application Server

Oracle Application Server provides different features and topologies to support high availability across the its stack. This includes solutions that extend across both the OracleAS middle-tier and the OracleAS Infrastructure tier.

The Oracle Application Server High Availability Guide describes the following high availability services in Oracle Application Server in detail:

  • Process death detection and automatic restart

  • Configuration management

  • State replication

  • Server load balancing and failover

  • Backup and recovery

  • Disaster recovery

7.4 Integrating High Availability for All Applications

A highly available and resilient application requires that every component of the application must be highly available or tolerate failures and changes. For example, a highly available application must analyze every component that affects the application including the network topology, application server, application flow and design, systems, and the database configuration and architecture. This book has focused primarily on the database high availability solutions.

See the high availability solutions and recommendations for Oracle Application Server, Enterprise Manager and Applications on the MAA Web site at:

http://www.otn.oracle.com/goto/maa


Footnote Legend

Footnote 1: Single-instance databases can use clustered Oracle ASM (Storage GRID) or nonclustered Oracle ASM.
Footnote 2: Network splits, commonly referred to as split brains, occur when nodes on one side of the cluster cannot see the nodes on the other side of the cluster.
Footnote 3: Oracle Clusterware sends the service events and FAN-integrated clients automatically react to those events.