Upgrade a Domain
If you migrated your Oracle Java Cloud Service instance to WebLogic Server version 12.2.1.2 for Oracle WebLogic Server for OCI, you must perform an in-place upgrade to upgrade the WebLogic Server version.
Stop all WebLogic Server Processes
Stop all the WebLogic server processes on the Oracle WebLogic Server for OCI instance.
Perform Prerequisite Tasks
Before upgrading your service instance, back up the database and the domain directories.
Note:
You need to perform steps 1 to 3 in case the upgrade fails and you want to roll back the service instance to its original state.Set up VNC Server
To use the Reconfiguration Wizard and Upgrade Assistant (Fusion Middleware tools) during the upgrade process, you need a graphical user interface (GUI) environment. The instructions in this step explain how to set up a VNC server and use port forwarding through a bastion host. If you are familiar with using X11, then X11 forwarding can be used to forward the GUI to your local desktop and you can skip this step.
Note:
This step is not applicable for a non-JRF instance.- Install and launch PuTTY.
- For Host Name, type the bastion IP address.
- For Saved Sessions, type
bastion
. - Under Category, go to Connection > Data.
- For Auto-logion username, type
opc
. - Under Category, go to Connection > Data > SSH > Tunnels.
- Type the following values for the respective fields:
- Source port:
5901
- Destination:
localhost:5901
- Source port:
- Click Add.
- Under Category, go to Connection > Data > SSH > Auth.
- For Private key file for authentication, browse and select the xperiment private key that you have created.
- Under the Category, select Session.
- Select Save and then select Open to establish the connection
- Verify that you connected successfully to the putty session.
- Install a VNC Viewer and set up a new connection to use
localhost:5901
to verify that you can connect correctly.Note:
Ensure that you have set up thevncserver
as theoracle
user, as this creates a session with theoracle
user even though you have port forwarding via theopc
user ssh keys.
Perform Readiness Check
Perform a readiness check to determine if your service instance is ready for upgrade.
Note:
This step is not applicable for a non-JRF instance.Upgrade Infrastructure Schemas
This step helps to identify if you have an earlier version of infrastructure database schemas or have installed other Oracle products.
Note:
This step is not applicable for a non-JRF instance.Reconfigure the Domain
Note:
- This step is not applicable for a non-JRF instance.
- Running the reconfiguration wizard is not required for an upgrade from 12.2.1.3. However, if it is not run and you do not replace 12.2.1.3 with 12.2.1.4 in config.xml, then you will encounter the Incorrect Version Numbers After a Reduced Downtime Upgrade issue.
Restart Servers
opc
user, and on each VM run the following command:sudo su - oracle
/opt/scripts/restart_domain.sh
Post Upgrade
- If you use a Hosting Provider to manage DNS, then reset the
CNAME
records at your Hosting Provider to point to the new IP addresses of the load balancer and WebLogic VMs. - Destroy the source 12.2.1.2 instance. See Destroy Stack Resources in
Using Oracle WebLogic Server for OCI.
WARNING:
Do not Delete a JRF Database Schema or Delete the Identity Cloud Service Resources in Using Oracle WebLogic Server for OCI as these resources are required in the upgraded instance. - Run the following commands to remove the UI libraries. This
stops the VNC server, removes the VNC server package, and removes the
Server with GUI
group packages.# Remove VNC server sudo su - oracle vncserver -list # Locate the X Display value and kill this - typically this is :1 vncserver -kill :1 # Remove the Linux service exit sudo bash systemctl stop vncserver@\:1.service systemctl disable vncserver@\:1.service # Uninstall package yum remove tigervnc-server -y # Remove GUI yum group remove "Server with GUI"