How to install Oracle WebLogic Server

All from: http://robinbuitenhuis.blogspot.nl/2014/08/how-to-install-oracle-weblogic-server.html

 

How to install Oracle WebLogic Server

I am using Oracle VirtualBox with the Oracle Technology Network Developer Day — Hands-on Database Application Development lab. I am going to use Weblogic Server and Oracle REST Data Services (formerly known as: APEX listener). In this article I will describe the WebLogic installation. First I download WLS on my Windows 7 host from:

http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html

Choose: Generic (881 MB)

I place the downloaded file in the folder: D:\Oracle\WebLogicServer since the directory D:\Oracle is shared with the virtual machine.

Start the installation:

cd /media/sf_Oracle/WebLogicServer

java -jar fmw_12.1.3.0.0_wls.jar

Launcher log file is /tmp/OraInstall2014-08-19_10-29-24PM/launcher2014-08-19_10-29-24PM.log.

Extracting files…………………

The OpenJDK JVM is not supported on this platform.

Ok, I will try again but this time I will use the java of the Oracle database:

$ORACLE_HOME/jdk/bin/java -jar fmw_12.1.3.0.0_wls.jar

[oracle@VM002 WebLogicServer]$ $ORACLE_HOME/jdk/bin/java -jar fmw_12.1.3.0.0_wls.jar

Exception in thread «main» java.lang.UnsupportedClassVersionError: com/oracle/cie/nextgen/launcher/Launcher : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: com.oracle.cie.nextgen.launcher.Launcher. Program will exit.

[oracle@VM002 WebLogicServer]$ $ORACLE_HOME/jdk/bin/java -version

java version «1.6.0_37»

Java(TM) SE Runtime Environment (build 1.6.0_37-b06)

Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)

Ok, that won’t work either.

I am going to download on my Windows 7 server a JDK from Oracle

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

I placed the download in: D:\Oracle\Java

I continu in the virtual machine:

Choose Applications, System Tools, File Browser

Browse to /media/sf_Oracle/Java and double click: jdk-8u20-linux-x64.rpm

Choose: Install

Password for root: oracle

Choose: Authenticate

Java is being installed in: ./usr/java/jdk1.8.0_20/bin/java

Start the WLS installation:

cd /media/sf_Oracle/WebLogicServer

/usr/java/jdk1.8.0_20/bin/java -jar fmw_12.1.3.0.0_wls.jar

Choose Next

Accept: /u01/oracle/Oracle/Middleware/Oracle_Home

Choose Next

Accept default: WebLogic Server

Choose: Next

Choose: Next

Uncheck: I wish to receive security updates via My Oracle Support

Choose: Yes

Choose: Install

Choose Next

Choose: Finish

Choose: Next

Choose: Next

Password: weblogic1

Confirm Password: weblogic1

Choose: Next

Accept defaults

Choose: Next

Choose: Next

Choose: Create

Choose: Next

Domain Location: /u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain

Admin Server URL: http://VM002.localdomain:7001/console

Choose: Finish

Start WebLogic Server

cd /u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin

./startWebLogic.sh

Check if it works:

Start: http://VM002:7001/console

Login with username/password: weblogic/weblogic1

There it works!

Now let’s implement the automatic startup of WebLogic Server on the startup of the Virtual Machine.

Switch to root:

sudo su

cd /etc/init.d

vi oracle

Alter the start/stop section as follows:

# See how we were called.
case «$1» in
start)
su  oracle -c «$ORACLE_HOME/bin/lsnrctl start»
su  oracle -c «$ORACLE_HOME/bin/dbstart $ORACLE_HOME»
su  oracle -c «nohup
/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/startWebLogic.sh &»
;;
stop)
su  oracle -c «$ORACLE_HOME/bin/dbshut $ORACLE_HOME»
su  oracle -c «$ORACLE_HOME/bin/lsnrctl stop»
su  oracle -c
«/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/stopWebLogic.sh»
;;
restart|reload)
su  oracle -c «$ORACLE_HOME/bin/dbshut $ORACLE_HOME»
su  oracle -c «$ORACLE_HOME/bin/lsnrctl stop»
su  oracle -c
«/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/stopWebLogic.sh»
su  oracle -c «$ORACLE_HOME/bin/lsnrctl start»
su  oracle -c «$ORACLE_HOME/bin/dbstart $ORACLE_HOME»
su  oracle -c «nohup
/u01/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/startWebLogic.sh &»
;;
status)
$ORACLE_HOME/bin/lsnrctl status
;;
*)
echo $»Usage: $0 {start|stop|restart|reload}»
exit 1

trianglesis

Об авторе trianglesis

Александр Брюндтзвельт - гений, филантроп, 100 гривен в кармане. Этот блог - "сток" моих мыслей и заметок. Достаточно одного взгляда на него, чтобы понять, что такой же бардак творится у меня в голове. Если вам этот бардак интересен - милости прошу.
Закладка Постоянная ссылка.