Saturday 1 October 2016

WebLogic 12c 12.1.3 Installation and Configuration in Linux

Pre-requisite
  • Java 8 installed 
  • VNC Server installed (to be able to run WebLogic installer GUI)

Installation & Configuration Steps
  • Create weblogic user and group
    • $groupadd -g 1000 weblogic
    • $useradd -u 1100 -g weblogic weblogic
    • $passwd weblogic (give password as weblogic)
  • Create weblogic installation directory
    • $mkdir /app
    • $chown -R weblogic:weblogic /opt/oracle
    • $chmod -R 775 /app
  • Download Weblogic 12c (12.1.3) installable
    • Download Weblogic Server 12.1.3 from Oracle Support Site: fmw_12.1.3.0.0_wls.jar
  • Install Weblogic 12.1.3
    • Verify Java 8 is installed
      • $which java
      • $java -version
  • Perform installation of Weblogic 12.1.3
    • Add the following entries into /home/weblogic/.bash_profile file:
      • export MW_HOME=/app/Oracle/Middleware/Oracle_Home/
      • export WLS_HOME="${MW_HOME}/wlserver"
      • export WL_HOME="${WLS_HOME}"
      • # Set to appropriate JAVA_HOME.
      • export JAVA_HOME=/usr/java/jdk1.8.0_91
      • export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
      • PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
      • export PATH
    • Connect o Machine via VNC Client (make sure VNCServer is running in the box)
    • From VNC Client go to Shell prompt
    • Switch to weblogic user
      • $su - weblogic
    • Run the Installer from the directory where weblogic installer jar is copied
      • $java -jar fmw_12.1.3.0.0_wls.jar
    • You will get pre-requisite check warnings, make sure all checks are passed (except for 256 color warning in which case you can proceed with 'y')
    • Let all defaults values (like inventory location, installation location, installation type) to be selected except installation path which you can specify as under /app
    • You may Uncheck the check box where it is asked to get information on security updates
    • After installation it would prompt for domain creation, say Yes 
    • Give the Domain path as /app/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/ 
    • and select all default options except selecting the "Production Mode" when asked for installation mode to have run Weblogic in production licensed mode
    • Provide Username password as "weblogic:Weblogic123"
    • Finish Domain Creation Wizard and come out of (exit) VNC Client
    • Start NodeManager and Admin Server
    • Login to Machine via SSH Client
    • Switch to weblogic user
      • $su - weblogic
    • Start NodeManager
      • $cd /app/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain
      • $nohup ./bin/startNodeManager.sh &
    • Verify at nohup.out log for successful start of NodeManager.
    • In case any issues you face with startup please check if hostname and ports and secureLister=false are correctly configured in nodemanager.properties file
    • /app/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/nodemanager/nodemanager.properties
    • ****Note that we have installed Weblogic with Production Mode which requires username and password to be entered while starting the servers to by pass username and password ask and start server in backrgound***
    • Manully create boot.properties for Admin Server
      • $cd /app/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer
      • $mkdir scecurity
      • $cd security
      • $vi boot.properties with following values
        • username=weblogic
        • password=Webloigc123
    • Start Weblogic Server
      • $cd /app/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin
      • $nohup ./startWebLogic.sh &
    • Open web browser and hit the URL "http://<HOST-NAME>:7001/console/login/LoginForm.jsp" and enter credentials as "weblogic/Weblogic123"
    • If you are able to see the login page and login, it confirms installation is successful
    • Configuration of Weblogic
    • Create Machines 
    • Select from left tree "base_domain -> Enviornment -> Machines" and click "New"
    • Provide name as "<HOST-NAME>" and Os as "Unix", and click "Next"
    • Select Type as "Plain", Address as "<HOST-NAME>", Port as "5556" and click "Finish"
    • Create Servers 
    • Select from left tree "base_domain -> Enviornment -> Servers" and click "New"
    • Provide Server name as "Server-1", Listen address as "<HOST-NAME>", Port as "8080", select "No, this is a stand-alone server.", and Click "Finish"
    • Navigate to the Server-1 management page by clicking the Server-1 name entry in the Summary of Servers table.
    • In the general tab, select "<HOST-NAME>" in the Machine drop-down box, disable "SSL Listen Port Enabled" and Click Save.
    • In the Server Start tab, ether the following information and click save
      • Java Home as "/usr/java/jdk1.8.0_91/"
      • Java Vendor as "Oracle"
      • Arguments as 
      • -Xms1024m -Xmx3076m -Djava.library.path=/app/Oracle/Middleware/Oracle_Home/wlserver/server/native/linux/x86_64/
    • Start Server-1
    • Select from left tree "base_domain -> Enviornment -> Servers" and then select Server-1 and start
Thank You!

1 comment: