Test

Sunday, June 3, 2018

Installing Weblogic Server 12.2 on Linux 6 Linux 7 and Windows

If you want to install full Fusion Middleware, this article will help you, otherwise keep reading this article if you wish to install weblogic server only. In this article I will explain how to install Weblogic and Coherence that is used to deploy Java applications. I did this installation on Linux, but same steps can be followed to install the weblogic server on Windows platform.

1)
Create OS group and user to own the software. You can use conventional user “oracle” and OS group “oinstall” that are used during Oracle database software installation.

[root@salman11 ~]# groupadd -g 54321 oinstall
[root@salman11 ~]# useradd -u 54321 -g 54321 oracle
[root@salman11 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

[root@salman11 ~]# su - oracle
[oracle@salman11 ~]$ id
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

For Windows, you can use Administrator user, or any other user with Administrator privileges.


2)
Download the Weblogic and Coherence Generic installer from http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html
Generic installer is needed for this installation. As Oracle software owner user, unzip the software after the download.








3)
Download JDK. I downloaded jdk-8u121-linux-x64.tar.gz from the following URL that is the latest available at this time.


Install JDK. If you download RPM version, install as root and then this JDK can be used by all OS users. If you download .gz file, install using oracle user, and it will be used by only oracle user (and during Weblogic Server installation). I am installing as “oracle” user, and installing JDK under oracle home
tar zxvf jdk-8u121-linux-x64.tar.gz

I have unzipped/installed the jdk under /home/oracle, and $JAVA_HOME is /home/oracle/jdk1.8.0_121
For Windows platform, download Windows based version and perform the installation.

4)
Decide about directory structure for installation. I have selected following directory structure for my installation.
-- Weblogic Server home. This will have Weblogic Server installed in it. Let’s call it $WLS_HOME
/home/oracle/product/12.2.1

-- Configuration directory. This will contain configuration/domains and application data.
/home/oracle/config


For Windows based systems, select the directory structure in the same way. 

5)
To start the installation, log into the system as “oracle” user, and set environment variables JAVA_HOME and PATH, and start the installation. Use same method to invoke installation on Windows.
$ cd /home/oracle
$ export JAVA_HOME=/home/oracle/jdk1.8.0_121
$ export PATH=$JAVA_HOME/bin:$PATH

-- Start the installation
$ java –jar fmw_12.2.1.2.0_wls.jar

On first screen, click Next.
Weblogic Server Installation wizard screen 1






























6)
Click next
Weblogic Server Installation wizard screen 2






























7)
Provide installation location that we have already decided above in step 4.
Weblogic Server Installation wizard screen 3






























8)
Oracle recommends installing weblogic server with examples, hence I am choosing “Complete with Examples” option on this screen. Click Next.

Weblogic Server Installation wizard screen 4






























9)
Solve if there is any prerequisite failure. Click Next
Weblogic Server Installation wizard screen 5






























10)
Uncheck the box, click Next.
Weblogic Server Installation wizard screen 6






























11)
Click Install
Weblogic Server Installation wizard screen 7






























12)
Monitor the installation process. Click Next when installation progress bar shows 100%.
Weblogic Server Installation wizard screen 8






























13)
Click Finish.

Weblogic Server Installation wizard screen 9






























14)
After clicking finish button, configuration wizard would start automatically. This configuration wizard would create initial domains because we also installed “Examples” with this installation. In case you did not install “Examples”, domain creation wizard would start that you can use to create your own domain.
Provide admin user and its password. Click Create
Weblogic Server Installation wizard screen 9




























15)
Click Next
Weblogic Server Installation wizard screen 10




























16)

Note URLs. If you also want to start domains, click the checkbox, otherwise domains/weblogic server can be started manually later. Click Finish





























17)
Access your domain using URLs you noted above. Provide administrator username and password provided in step 14 above.

Weblogic Admin page
















weblogic domain home page


18)
Click on Deployments and see currently deployed applications that were deployed automatically when we installed Weblogic Server with Examples.
Weblogic Domain Main Page

















Access the default created domain and deployed application using URL <my_host>:7001/medrec. Following is the welcome page.
Webclogic Server Example Applicaiton

















After the installation completes, you may be interested in creating new weblogic domains to deploy your own applications. Follow this document to understand domain creation process.

Related Articles


No comments:

Post a Comment

Popular Posts - All Times