Step-by-Step Guide to Installing WebLogic 12c on a Virtual Machine

Rohit SatelkarRohit Satelkar
2 min read

In this guide, we'll walk through the process of installing Oracle WebLogic Server on a local virtual machine (VM), covering both the GUI-based and silent installations. We will also tackle common issues, such as enabling X11 forwarding for GUI installations and configuring the system appropriately.

Step 1: Install Java

Before installing WebLogic, ensure that Java is installed on your system. You can use either Java 8 or Java 11 for this installation. Download the appropriate Java version and install it

Step 2: Command to Install WebLogic

Once Java is installed, you can run the following command to install WebLogic

/opt/java/jdk/bin/java -jar fmw_14.1.1.0.0_wls_lite_generic.jar

Step 3: Resolving X11 Forwarding Issues for GUI Installation

If you’re running the installation remotely and encounter issues with X11 forwarding (which is necessary for GUI-based installations), you may need to enable X11 forwarding and install the required packages.

Required OS Packages for X11 Forwarding Install the following packages to set up X11 forwarding:

sudo yum install xorg-x11-xauth xorg-x11-xauth-1:1.1-10.el9.x86_64
sudo yum install xhost xorg-x11-server-utils-7.7-44.el9.x86_64
sudo yum install xdpyinfo xorg-x11-utils-7.5-40.el9.x86_64
sudo yum install fontconfig fontconfig-2.14.0-2.el9.x86_64

SSH Configuration Changes for X11 Forwarding Edit the SSH daemon configuration to enable X11 forwarding:

sudo vi /etc/ssh/sshd_config

Port 22
AddressFamily any
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

sudo systemctl restart sshd

Step 4: Silent Installation of WebLogic

java -jar fmw_14.1.1.0.0_wls_lite_generic.jar -silent -responseFile ~/response-file -invPtrLoc ~/oraInst.loc
  1. -invPtrLoc: Specifies the location of the inventory pointer file, which contains details about the central inventory and the UNIX group name.

  2. -silent: Runs the installer in silent mode, using input from the response file.

  3. -responseFile: The location of the response file that contains input for the Oracle Universal Installer (OUI)

Example oraInst.loc file content:

inventory_loc=/u01/app/oraInventory
inst_group=oinstall

Additional Resources

For more detailed instructions, Oracle provides an official guide that you can follow here.

https://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html

0
Subscribe to my newsletter

Read articles from Rohit Satelkar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Rohit Satelkar
Rohit Satelkar

I am a dynamic and results-oriented IT professional with over 6.6 years of experience, specializing in middleware technologies. My career has been marked by a consistent track record of managing and optimizing complex environments, including Oracle WebLogic Server (11g, 12c, 14c), Apache Tomcat, Nginx, and JBoss. With a deep understanding of these technologies, I excel in providing technical leadership, overseeing team operations, and driving continuous improvement initiatives.