Prepare the Mid-tier on OCI
Provision and prepare the mid-tier hosts for disaster recovery on Oracle Cloud Infrastructure (OCI).
Provision the Compute Instances for the SOA Mid-tier Nodes
Create a virtual machine (VM) compute instance on the Oracle Cloud Infrastructure (OCI) mid-tier subnet for each primary, on-premises Oracle SOA Suite host. The compute instances must use the OS image and compute shape that are similar to the image and shape used by the on-premises hosts.
This example uses two compute instances in a single availability domain within the compartment, as shown in the table.
Name | Compartment | Availability Domain | IMAGE | SHAPE | VCN | Subnet |
---|---|---|---|---|---|---|
hydrsoa1 |
HyDRCompmt |
AD1 | Oracle Linux 7.9 | VM.Standard2.2 | hydrvcn |
midTierSubnet |
hydrsoa2 |
HyDRCompmt |
AD1 | Oracle Linux 7.9 | VM.Standard2.2 | hydrvcn |
midTierSubnet |
Note:
You can find Terraform code to create these compute instances in Download Code.
Prepare the Operating System Users and Groups
Create the same user and group used by the primary on-premises Oracle software. The user and group identifiers (IDs) must be the same as those in the primary environment.
You can use SSH to access your recently created instances as the
opc
user. This user has sudo
privileges and
can be used to create additional users and groups. You need to create the same user
and group used by primary on-premises for the oracle software, making sure that the
user and group IDs are the same as in primary.
This example uses the typical users and groups in an EDG environment, as shown in the table.
User or Group | Name | Description |
---|---|---|
User | nobody |
An unprivileged user |
oracle |
The owner of Oracle software (you could be using a
different name). The primary group for this account must be
oinstall . The account must also be in the
dba group.
|
|
Groups | oinstall |
Principal group of the oracle
user
|
dba |
Secondary group of the oracle
user
|
Create users and groups in the secondary compute instances. Create the same user and group used by primary on-premises for the Oracle software, making sure that the user and group IDs are the same as in primary.
Each group and user in OCI compute instances must have the same ID on every node and the same as in the primary.
Prepare the Operating System Requirements
The secondary mid-tier hosts must meet the operating system requirements to run the software.
For the Oracle SOA Suite and Oracle WebLogic Server binaries to run properly, you must prepare the operating systems for the standby systems the same way that they were prepared in the primary when the software was installed.
The binaries of the SOA homes are
copied from the primary SOA hosts to the secondary SOA hosts. Therefore, it isn't
necessary to run the runinstaller
in the secondary SOA hosts.
However, the operating system requirements must be the same.
Prepare Host Name Aliases
- Add the host names as aliases to the
/etc/hosts
files of the OCI SOA compute instances. - Use a private DNS view in the secondary OCI VCN.
Use /etc/hosts
Files
/etc/hosts
files of the secondary Oracle WebLogic Server hosts, pointing to the IP addresses of the secondary Oracle WebLogic Server hosts. This mode is valid when the DNS server is the same in primary
on-premises and on the secondary Oracle Cloud
Infrastructure (OCI) sites, and also when separated DNS servers are used in the primary and secondary
sites. The entries in the /etc/hosts
file have precedence over the DNS
resolution, because this is the precedence defined out-of-the-box in the directive “hosts”
of the /etc/nsswitch.conf
file.
Use the Domain Name System (DNS)
/etc/hosts
of all the Oracle WebLogic Server hosts.
The following are the steps to create the private view in the secondary VCN and resolve the virtual host names used by primary with the secondary IPs:
Create and Configure the Virtual IP for the WebLogic Administration Server
For high availability, the WebLogic Administration Server must use a host name that is mapped to a virtual IP to allow failover across nodes.
Note:
Skip this task if you are not using a VIP address for the Administration Server in your primary system.Assign an additional IP to the VNIC of the soahost1
compute instance. The additional IP is used
by the Administration Server in the secondary Oracle Cloud
Infrastructure (OCI) system. Although this IP will be normally attached to the soahost1
compute instance, it can be moved to the
soahost2
compute instance to provide
local failover for the Administration Server, as described in the EDG.
Once the new IP is attached to the VNIC using the OCI
Console, it must be configured in the OS in a non-persistent mode (because this IP can be
moved from soahost1
to soahost2
for admin server failover).
Open the Required Ports in the OCI Host's Firewalls
Each compute instance has a local firewall service. For security
reasons, the default configuration is to reject the connections for all the ports except the
minimum required (ssh
, dhcp
). You must open the ports used by the Oracle WebLogic Server.
Mount the OCI File Systems
The file systems that were previously created on Oracle Cloud Infrastructure (OCI) must be mounted in the Oracle SOA Suite compute instances.
Mount the OCI Block Volumes
Mount the Block Volumes that were previously created in the Oracle SOA Suite compute instances.
For example,
Block Volume | Compute Instance | Mount Point |
---|---|---|
soadrBV1 | hydrsoa1 | /u02 |
soadrBV2 | hydrsoa2 | /u02 |
Create the TNS Alias
Create the TNS directory and tnsnames.ora
file that point
to the Oracle Cloud
Infrastructure (OCI) DB System. Because the WebLogic domain configuration in the secondary will be a
copy of the primary, you must create the same artifacts that are in the primary to use the
TNS alias approach in the WebLogic datasources.