The Section 7.5.1.3, "About Using Redundant Binary (Middleware Home) Directories" recommends that you create duplicate Middleware homes to ensure that the middleware home is not a single point of failure. You can not achieve this when using the deployment wizard. You must do it as a separate task after deployment is complete. This appendix describes how to create a duplicate Middleware home.
This appendix contains the following topic:
To create a duplicate Middleware home:
Make a backup of the Middleware home at the SW_ROOT
level. For example:
tar cvfz mwhomebackup.tar.gz SW_ROOT
Create a new shared file system on shared storage the same way you created the original SW_ROOT
volume:
Shutdown the entire topology.
Dismount the SW_ROOT
from your even numbered hosts, where it is mounted.
For example, currently, SW_ROOT
is mounted on OAMHOST1
, OAMHOST2
, OIMHOST1
and OIMHOST2
.
Dismount it from OAMHOST2
and OIMHOST2
.
Mount the new SW_ROOT
volume onto the even numbered hosts, (OAMHOST2
/OIMHOST2
) in the same location as SW_ROOT
.
Restore your backup using one of the even numbered hosts. For example, using OAMHOST2
:
tar xvfz mwhomebackup.tar.gz
Restore your backup using one of the even numbered hosts. For example, using OAMHOST2
:
tar xvfz mwhomebackup.tar.gz
Once you have created a duplicate Middleware home, if, for some reason, SW_ROOT
on OAMHOST1
is corrupted, only OAMHOST1
/OIMHOST1
are affected. OAMHOST2
and OIMHOST2
are unaffected. However, now that you have two sets of Middleware homes, you need to use automated patching on each home.
To use automated patching for Oracle Identity Management:
Make a backup of the file topology.xml
.
Create a new MW_HOME using the command:
topotool.sh add -mwhome -mwhomename Identity:MW_HOME2 -path SW_ROOT/identity -shared true
Create a new Oracle Home for each component in the middleware home.
topotool.sh add -home -mwhomename Identity:MW_HOME2 -type ORACLE_COMMON -path SW_ROOT/identity/oracle_common topotool.sh add -home -mwhomename Identity:MW_HOME2 -type WLS -path SW_ROOT/identity/wlserver_10.3 topotool.sh add -home -mwhomename Identity:MW_HOME2 -type SOA -path SW_ROOT/identity/soa topotool.sh add -home -mwhomename Identity:MW_HOME2 -type IAM -path SW_ROOT/identity/iam
Move components to the new Middleware home.
topotool.sh modify -instance -name IAMGovernanceDomain:wls_soa2 -mwhomename Identity:MW_HOME2 -hometype SOA topotool.sh modify -instance -name IAMGovernanceDomain:wls_oim2 -mwhomename Identity:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_bi2 -mwhomename Identity:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_opam2 -mwhomename Identity:MW_HOME2 -hometype IAM
For Oracle Access Management:
Create a new MW_HOME using the following command:
topotool.sh add -mwhome -mwhomename Access:MW_HOME2 -path /SW_ROOT/access -shared true
Create a new Oracle Home for each component in the Middleware home.
topotool.sh add -home -mwhomename Access:MW_HOME2 -type ORACLE_COMMON -path SW_ROOT/access/oracle_common topotool.sh add -home -mwhomename Access:MW_HOME2 -type WLS -path SW_ROOT/access/wlserver_10.3 topotool.sh add -home -mwhomename Access:MW_HOME2 -type IAM -path SW_ROOT/access/iam
Move components to the new Middleware home.
topotool.sh modify -instance -name IAMAccessDomain:wls_oam2 -mwhomename Access:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_ampm2 -mwhomename Identity:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_msm2 -mwhomename Identity:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_oaam2 -mwhomename Identity:MW_HOME2 -hometype IAM topotool.sh modify -instance -name IAMGovernanceDomain:wls_oaam_admin2 -mwhomename Identity:MW_HOME2 -hometype IAM
Restart the topology.