Upgrade a Domain
For an existing Oracle WebLogic Server for OCI domain, you can upgrade the WebLogic Server release from 12c (12.2.1.3) to WebLogic Server release 12c (12.2.1.4).
- The stack has the latest scripts on disk volumes.
- There is an easier roll back process. Since the original stack with 12.2.1.3 is still available, only the database has to be rolled back for a JRF instance.
- The WebLogic binaries are the latest. You do not have to locate the WebLogic installers and apply the required patches.
- Backup the Database
- Create a 12.2.1.4 Instance
- Stop the WebLogic Server Processes on the Source 12.2.1.3 Instance
- Replace the Domain on the Target 12.2.1.4 Instance with Cloning
- Set up VNC Server
- Perform Readiness Check
- Upgrade Infrastructure Schemas
- Reconfigure the Domain
- Upgrade the Domain
- Restart Servers
- Post Upgrade
- Roll Back Upgrade
Backup the Database
- Complete the Create an on-demand full backup of a database procedure in Backing Up a Container Database to Oracle Cloud Infrastructure Object Storage in the Oracle Cloud Infrastructure documentation.
- Return here to continue with the next step.
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.3 instance. See Destroy Stack Resources.
WARNING:
Do not Delete a JRF Database Schema or Delete the Identity Cloud Service Resources as these resources are required in the upgraded cloned 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"