My Oracle Support Banner

How To Be Sure At Run Time What Is The Master Machine In A MASTER/BACKUP Configuration? (Doc ID 1386943.1)

Last updated on MAY 19, 2020

Applies to:

Oracle Tuxedo - Version 10.3.0 and later
Information in this document applies to any platform.

Goal

In case of a Tuxedo application span over several machines, one machine must be defined as MASTER machine and a second one can be (this is not mandatory) the BACKUP machine.
   
A master/backup configuration allows to bring down the MASTER machine without shutting down the application.  This is realized by migration of MASTER machine.  After migration the backup machine becomes the MASTER machine and the initial master machine becomes the BACKUP machine.

After several migrations master becoming backup, backup becoming master and so on, the following question can be raised :

    How can you be sure at run time which is the master machine in a MASTER/BACKUP configuration?

The Tuxedo configuration file defines the MASTER machine and the BACKUP machine in *RESOURCES configuration. The first machine listed by MASTER machine is the current MASTER machine, the second one listed (separated from the first one by a comma) is the current BACKUP machine.

Given the following master/backup configuration:

*RESOURCES
<...>
MASTER simple1,simple2
MODEL MP
OPTIONS LAN
<...>

*MACHINES
test1 LMID=simple1
<...>

test2 LMID=simple2
<...>

*NETWORK
<...>

 

NOTE:  The attribute values (example: simple1; simple2, etc) used in this article represent fictitious sample names that are made up as example. Any similarity to actual code, is purely coincidental and not intended in any other manner.



"simple1" is defined as the primary MASTER
and
"simple2" as the backup MASTER.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.