Lifecycle Tasks
About Configuration Replication
You can use the same scripts that you created during the DR setup, Replicate the File System Artifacts to OCI, and schedule the file systems replica with the following considerations for each artifact:
- Replication of the Oracle Homes during the lifecycle
This is a static artifact. It does not change frequently, so there is no need to replicate it on a regular basis. Only when you perform a modification in the Oracle Home (such as patching activity) you need to replicate it.
- Replication of the WebLogic domain shared configuration during the
lifecycle
This is a dynamic artifact. Among other things, it contains the
ASERVER_HOME
, which is the source-of-the-truth of the SOA domain configuration, and theAPPLICATION_HOME
, which is updated every time an application is deployed, undeployed, updated, and so on.It is expected that this WebLogic domain shared configuration changes frequently. Schedule a regular replica of this artifact, which should be more or less frequent depending on how frequently configuration changes occur in your system. Another controlled approach is to perform a replica every time you perform a configuration change to the primary.
- Replication of the WebLogic domain private configuration during the
lifecycle
This is also a dynamic artifact, it contains the
MSERVER_HOME
and theNM_HOME
. It is not expected to have frequent updates on thenodemanager
home after the initial setup. The content of theMSERVER_HOME
will change as frequently as theASERVER_HOME
, because it contains the domain folder used by the managed servers. However, most of its content (theASERVER_HOME/config
) is refreshed and downloaded from theAdminServer
when the managed servers starts and when configuration changes are applied using the WebLogic Scripting Tool (WLST) or the Oracle WebLogic Server Administration Console. It's not as critical to replicate this artifact as frequently as the shared configuration. It is mandatory to replicate this only when modifications are performed to other folders in theMSERVER_HOME
(for example, a modification in theMSERVER_HOME/bin
folder). - Replication of the shared runtime folder
If you store any runtime artifact in this folder, schedule the replica to standby, per your business needs.
Instead of using Oracle Cloud Infrastructure File Storage file system and replicate with
rsync
, you can use an Oracle Database File System (DBFS) mount for the shared runtime contents. This way, the content resides in the database and is automatically replicated to the secondary with the underlying Oracle Data Guard replica. See About Oracle Database File System in Learn More for details about using DBFS.
The following table is a summary of the recommendations for file system artifacts replication during the lifecycle.
Artifact | Contains | Recommendation |
---|---|---|
Oracle Homes | FMW home, JDK, inventory | Replicate only under demand (For example, after patching) |
WebLogic Domain Shared Configuration | ASERVER_HOME , applications, deployment
plans, keystores
|
Schedule replication, high frequency maybe required. The frequency depends on how often the configuration changes are performed to the SOA system. |
WebLogic Domain Private Configuration | MSERVER_HOMES , nodemanager
config |
Schedule replication. High frequency is not normally required. |
Shared Runtime | Customer-specific runtime artifacts (not JMS, not TLOGS) | Determined by your requirements. If this is a DBFS mount, then the content is replicated automatically by Oracle Data Guard. |
Perform a Switchover
Perform a Failover
Open the Secondary for Validation
Note:
This operation must be done with caution: if there are pending messages or composites in the database when it is converted into snapshot, the standby site’s SOA servers will process them when they start. Check that there are no pending actions in the primary database when converting to snapshot standby. Otherwise, remove records from runtime SOA tables in the standby database after it is converted to snapshot standby database and before starting the secondary site’s SOA servers. See Removing Records from the Runtime Tables Without Dropping the Tables for the steps to validate the standby site without performing a switchover.Note:
ORA-01403: no data found ORA-06512 errorsWhile validating the secondary
site as described here (without performing a complete
switchover, that is, just opening standby in snapshot
standby mode) “ORA-01403: no data found ORA-06512” errors
may show up in the logs of the standby SOA servers. These
errors are related to the SOA auto purge job. These errors
arise because jobs in the database may have db role
dependencies (they are defined to be enabled only when the
database is in primary role). This is an expected and
desired behavior that prevents jobs from being executed
twice (once in primary and once in standby). The SOA auto
purge job is defined with primary role, so it is not shown
in DBA_SCHEDULER_JOBS view when the database is in snapshot
standby mode. The database_role
defined for
each job can be seen in the view DBA_SCHEDULER_JOB_ROLE. In
summary, these errors can be ignored as long as they appear
in the standby system. The scheduler job for SOA auto purge
will be executed on the database if, and only if, the
instance changes its role to PRIMARY.
Local Failover of the Administration Server on OCI
Note:
This lifecycle task is applicable only when WebLogic
Administration Servers uses a VIP for local high
availability purposes and the Administration Server
configuration folder (ASERVER_HOME
) is in a
shared location.
The procedure to do this is explained in Verifying Manual Failover of the Administration Server. This provides local failover protection for the Administration server. Note this is not needed for the managed servers, which have local high availability protection based on the Automatic Service Migration feature.
If you need to perform a failover of the Administration Server to another host when the primary is running in the OCI site, then you can follow that procedure. However, additional action is required related to the “Migrate the ADMINVHN virtual IP address to the second host” step.
Perform the following steps to detach the VIP from the SOA host where the Administration Server was running and to attach it to the SOA host where the Administration is being moved (detach the VIP from SOAHOST1 and attach it to SOAHOST2 on the OCI site):
- As the
root
user, run the following commands in SOAHOST1 to remove the Administration Server’s VIP from the network interface. - Detach the Administration Server’s VIP from SOAHOST1 .
- Connect to the OCI Console and select the appropriate region and compartment.
- Navigate to the compute instance. Click Compute, Instances, then click SOAHOST1.
- Click Attached VNICs, then select the VNIC in which the Administration Server VIP is attached.
- Click IPv4 Addresses and edit the VIP that the Administration Server uses.
- Save the VIP’s IP address and
fqdn
name in a note (for example: 100.70.8.120, hydrsoa-vip.midtiersubnet.hydrvcn.oraclevcn.com). - Click Delete Private IP.
- Attach the Administration Server’s VIP to SOAHOST2.
- Navigate to the compute instance. Click Compute, Instances, then click SOAHOST2.
- Click Attached VNICs, then select the VNIC in which the Administration Server VIP is attached.
- Click Assign secondary private IP address.
- Click IPv4 Addresses, then click Assign secondary private IP address.
- Enter the Private IP address and host name
values that were used before. For example:
100.70.8.120 for the IP and
hydrsoa-vip
as the host name.
- Log into SOAHOST2 as root user,
then run the following commands to attach the administration
server’s VIP to the network interface.
- Perform the rest of the steps as described in Verifying Manual Failover of the Administration Server.