This tutorial covers installing Oracle WebLogic Server 12c (12.1.2) on a Linux system by using WebLogic generic installer.


Step 1: Login as a root user and make sure the /etc/hosts file contains correct entries for both the “localhost” and real host names.
Following is the example of the my host file
Oracle_WebLogic_Server_12c_installation_1 would be picked for configuration. Further remember that only one host entry per line is allowed.

Step 2: Create a yum repository using DVD of Oracle Enterprise Linux 6.5 and install following packages. You need to install this packages using root user.

yum install --enablerepo=OEL -y binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++ libstdc++ libXext openmotif openmotif22 sysstat


Step 3: Create a new group and user using following commands to install Oracle WebLogic 12c

groupadd oinstall
useradd -g oinstall oracle
passwd oracle


Step 3: Create the directories in which the Oracle WebLogic software will be installed using following commands

mkdir -p /u01/app/oracle/product/ofm12.1.2
mkdir -p /u01/app/oracle/config/domains
mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Step 4: WebLogic 12.1.2 is certified on Oracle JDK 1.7.0_X, hence download the Oracle JDK 1.7.0_51 from Oracle JDK Download page
To download the software you need to Accept the License Agreement. Here we will be downloading jdk-7u51-linux-x64.tar.gz file as we will be going to install WebLogic on 64bit machine

Step 5: To download the Oracle WebLogic go to Oracle WebLogic Download page
Accept the OTN Licence Agreement. Here we will be downloading Generic downloder which includes Oracle WebLogic Server and Oracle Coherence.

Step 6: Make directories for binaries and transfer WebLogic and Oracle JDK binaries into it

mkdir -p /u01/app/binaries
mkdir -p /u01/app/binaries/{OHS,WEBLOGIC,JDK}


Step 7: Go to /u01/app/binaries/JDK. Hope you have already transferred the Oracle JDK to this folder

Step 8: Run following command to do the Oracle JDK setup in /u01/app/oracle folder

cd /u01/app/oracle
tar zxvf /u01/app/binaries/JDK/jdk-7u51-linux-x64.tar.gz


Step 9: Append the following entries into the /home/oracle/.bash_profile file. Adjust paths as required.

#Added lines for Oracle WebLogic 12c
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/ofm12.1.2
export WLS_HOME=$MW_HOME/wlserver
export DOMAIN_BASE=$ORACLE_BASE/config/domains
export DOMAIN_HOME=$DOMAIN_BASE/techienote
export JAVA_HOME=/u01/app/oracle/jdk1.7.0_51
export PATH=$JAVA_HOME/bin:$PATH

After doing above you need to log off and log in again with the oracle user.

Step 10: Now onwards we will start installation using oracle user.
Run following command to start the installation

$JAVA_HOME/bin/java -jar /u01/app/binaries/WEBLOGIC/wls_121200.jar


Step 11: If this is the first installation on the server, enter the inventory installation location and click OK button.

Step 12: Click the Next button on the welcome screen.

Step 13: Enter the middleware home (/u01/app/oracle/product/ofm12.1.2) and click the Next button.

Step 14: Accept the WebLogic Server Installation option by clicking the Next button.

Step 15: Wait for the prerequisite checks to complete. If there are failures, correct them and rerun the checks. If there are no failures, click the Next button.

Step 16: Either enter your support details, or uncheck the security updates checkbox. Click the Next button. If you chose not to receive security updates, click the Yes button on the warning dialogue.


Step 17: If you are OK with the summary information, click the Install button.

Step 18: Wait for the installation to complete, then click the Next button.

Step 18: On the installation complete screen, click the Finish button, remember to uncheck launch the Configuration Wizard as we will be covering this in next tutorial

Step by Step Installing Oracle WebLogic Server 12c on Oracle Enterprise Linux 6

Leave a Reply

Your email address will not be published. Required fields are marked *