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 Mid-tier Nodes
Create a compute instance on the Oracle Cloud Infrastructure (OCI) mid-tier subnet for each primary, on-premises Oracle WebLogic Server host. The compute instances must use the OS image and compute shape that are as similar as possible to the image and shape used by the on-premises hosts.
To take advantage of Oracle Customer Hub (UCM) licensing for Oracle WebLogic Server for Oracle Cloud Infrastructure, Oracle recommends using WebLogic for OCI images to provision the compute instances. You can provision Oracle WebLogic Server for OCI images using the Compute Instance Console or the Marketplace. These images are available for Oracle Linux 7.9 and 8.5 operating systems.
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 |
---|---|---|---|---|---|---|
hydrwls1 |
HyDRCompmt |
AD1 | Oracle WebLogic Suite UCM Image (Oracle Linux 7.9) | VM.Standard2.2 | hydrvcn |
midTierSubnet |
hydrwls2 |
HyDRCompmt |
AD1 | Oracle WebLogic Suite UCM Image (Oracle Linux 7.9) | VM.Standard2.2 | hydrvcn |
midTierSubnet |
To provision the compute instances using the Compute Instance section in the OCI Console:
Note:
You can find Terraform code to create these compute instances in Download Code.
Prepare the Operating System Users and Groups
The same user and group used by the primary on-premises Oracle software are needed in the secondary compute instances.
Oracle WebLogic Server for
Oracle Cloud Infrastructure images already have an oracle user and group. However, these values (user name,
group name, uid
, and gid
) might not match the
values that you have in your primary instance and you'll need to configure the
secondary hosts to match the values of the primary oracle user and group. The
following examples show how to configure the secondary hosts in this tier to match
the values of the primary oracle user and group.
Prepare the Operating System Requirements
The secondary mid-tier hosts must meet the operating system requirements to run the software.
The binaries of the Oracle WebLogic Server homes will be copied from the primary WebLogic Server hosts to the secondary WebLogic Server hosts. Therefore, it isn't necessary to run the runinstaller
in
the secondary WebLogic Server hosts. The Oracle WebLogic Server for
OCI images are prepared for the WebLogic Server software, hence, no additional packages are required to be manually added.
However, if you are using any Oracle Fusion Middleware product on top of WebLogic Server, make sure that the secondary WebLogic Server hosts meet the requirements:
Prepare Host Name Aliases
- Add the host names as aliases to the
/etc/hosts
files of the OCI WebLogic Server 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 apphost1
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 apphost1
compute instance, it can be moved to the
apphost2
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 apphost1
to apphost2
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 WebLogic Server compute instances.
Mount the OCI Block Volumes
Mount the Block Volumes that were previously created in the Oracle WebLogic Server compute instances.
For example,
Block Volume | Compute Instance | Mount Point |
---|---|---|
wlsdrBV1 | hydrwls1 | /u02 |
wlsdrBV2 | hydrwls2 | /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.