Professional Documents
Culture Documents
March 2008 7
High Availability Support for Failover Clustering (HA)
Design the switchover cluster together with your hardware partner. The switchover product
has to match your operating system.
We strongly recommend that all the hosts used for switchover have the same
operating system.
Assuming that central services instance is running under the operating system
Microsoft Windows and the DB on a UNIX platform, the central services
instance can only switch to another Windows host and the DB to another UNIX
host.
March 2008 8
High Availability Support for Failover Clustering (HA)
The figure above shows several switchover units spanning several hardware
clusters. This is not a required setup. There are many possible switchover
scenarios and it is possible to run a switchover environment for SAP systems
with the minimal configuration of two different hosts.
The saposcol process must run on the DB host to enable CCMS functions.
For more information, see SAP Note 20624
• File system
Several directories in a SAP system are shared among all instances. Protecting files
systems is handled by the cluster software solution provider.
Please note that the installation procedure for Windows™ does not support this.
March 2008 9
High Availability Support for Failover Clustering (HA)
March 2008 10
High Availability Support for Failover Clustering (HA)
Communication between the different application servers in the distributed system also fails
or is impeded.
SAP NetWeaver 7.0 ensures database consistency by disabling enqueue transactions when
the enqueue server is not available.
After the central services instance has been switched over to another host, it has to be
restarted. However, external SAP NetWeaver application servers on different hosts
might still be holding open, uncommitted transactions. These can hold enqueue locks
that have been lost but are not visible anywhere in the entire SAP system.
If no precautions are taken, any user in the SAP system can then lock the same object
and change it in the database, which can cause an inconsistent database. Therefore, all
open transactions in the entire SAP system must be aborted and rolled back before the
enqueue server is restarted.
System Impact
The switchover of the central services instance has the following impact on your system:
• Transaction locks that have not yet been committed are lost at a system-wide level.
• All user input for all transactions that have not been finished with the ABAP command
COMMIT WORK needs to be re-entered.
• RFC connections are maintained.
In the case of a planned central services switchover, you need to notify the users and
give them a deadline to commit all their transactions.
To eliminate the enqueue server as a critical component you have to set up the
enqueue server as standalone replicated enqueue server.
March 2008 11
High Availability Support for Failover Clustering (HA)
DB Reconnect – AS ABAP
In the event of a database host failure, the network connection of SAP work processes to the
DBMS is lost. If a work process encounters an error in the database connection, the built-in
“DB Reconnect” mechanism starts, and tries to re-establish the database connection.
The DB reconnect feature makes sure that all work processes of all SAP instances are
automatically reconnected to the DB as soon as the DB service is restarted and becomes
available again. The work processes can transparently recover after temporary DB failure.
To the end user, the temporary DBMS failure is almost fully transparent, apart from the time
taken for the DB service to be switched over and become operational again. The functionality
depends on the type of access service involved – that is, dialog, batch, or update.
For more information about the database reconnect feature for ABAP, see
help.sap.com/nw2004sÆ SAP NetWeaver 7.0 (2004s) Æ English Æ SAP Library Æ SAP
NetWeaver Library Æ SAP NetWeaver by Key CapabilitiesÆ Solution Lifecycle Management
by Key Capabilities Æ SAP High Availability Æ SAP NetWeaver AS ABAP: High AvailabilityÆ
DB Reconnect (AS-ABAP)
Technical Details
The DB reconnect features avoid all work processes being shut down and therefore the SAP
instances do not have to be restarted.
If pre-defined errors are returned from the database call to a work process, this process is set
to “reconnect” status. The transaction run by the process is terminated while the process
keeps running and informs all other work processes (regardless of the type) on the host
about the database restart. If the database is not available, all work processes switch to this
status within a short period of time.
Whenever a user request is received, a work process in this status tries to reconnect to the
database system before it starts the requested transaction. If the database is accessible
again, a work process in the reconnect state lets the transaction start without terminating.
This is transparent to the user. If the database connection cannot be re-established, the
transaction does not start and the user is informed by a popup message about the lost
database connection.
For more information, see SAP Note 98051.
DB Reconnect – AS Java
The DB reconnect has to be handled by the application. Depending on the programming
model used for database access in your applications, SAP Web AS Java provides the
following reconnect mechanisms:
• Connections using OpenSQL and NativeSQL with Java Database Connectivity
(JDBC)
• Connections using VendorSQL with direct JDBC connection
For more details on the database reconnect feature for Java, see
help.sap.com/nw2004sÆ SAP NetWeaver 7.0 (2004s) Æ English Æ SAP Library Æ SAP
NetWeaver Library Æ SAP NetWeaver by Key CapabilitiesÆ Solution Lifecycle Management
by Key Capabilities Æ SAP High Availability Æ SAP Web AS Java: High Availability Æ
System Failure (AS Java) Æ Persistence Layer and Databases.
March 2008 12
High Availability Support for Failover Clustering (HA)
March 2008 13