WebLogic‎ > ‎

Installation WebLogic 12c on VirtualBox

Oracle acquired Sun hence, we have virtualization open source also under Oracle now.  Expecting new features introduced with Oracle integrated into the Virtualbox are given.

Oracle VirualBox installation

Oracle Technical network is open to huge set of downloads now our intention to work with VirtualBox download
Now in the year 2013 the trend is changing towards Cloud based applications all over the internet. The Oracle provided VirtualBox install at your PC with good speed. http://virtualboxes.org/images/ubuntu/#ubuntu1304

Virtualization makes learning more easy.
Run the Virtualbox

You can extend the Virtual Box settings as shown 
C:\Program Files\Oracle\VirtualBox>VBoxManage extpack install C:\Users\pavanbsd\
Successfully installed "Oracle VM VirtualBox Extension Pack".

How to make Ubutnu in full screen mode?

You have to install Guest Additions.

For that to work, in your guest OS install:

sudo apt-get install dkms build-essential kernel-devel kernel-headers gcc

Now mount the Guest Additions CD, cd to the mount path and run sudo ./VBoxLinuxAdditions.run(not exactly sure this is the file name)

If no errors appeared on the terminal window, all you have to do is restart your virtual machine and the resolution will be automatically set depending on the VirtuaBox window size.

To mount shared folders do:

sudo mkdir /media/<folder_name>
sudo mount -t vboxsf SHARENAME /media/<folder_name>
How to enable SSH connect from Windows Host to Ubuntu Guest?

Configure the Ubuntu with proper settings that could run the Ubuntu on your Windows machine.
apt-get install openssh-server
apt-get update

ifconfig -a
Now change your interfaces file by append with the following:
vi /etc/network/interfaces
auto eth3
iface eth3 inet static

ifup eth3
ifconfig add eth3

You many need following commands to restart the network service.
service network-manager restart
service networking restart
Download latest version of WebLogic 12c form the following link
Installing JDK on Ubuntu

You can use the below given commands to install JDK-7 for WebLogic 12c installation
   1: sudo add-apt-repository ppa:webupd8team/java
   2: sudo apt-get update
   3: sudo apt-get install oracle-java7-installer

should show you using Oracle Java 8. If not, or if you want to use a different version - run update-java-alternatives with something like,

sudo update-java-alternatives -s java-8-oracle

or for JDK 7

sudo update-java-alternatives -s java-7-oracle

From StackOverflow/AskUbuntu forums

Manual install

The tar.gz provided by Oracle don't have an actual installation process. You just extract those files to a location you want and add them to your path. So the process is the following:

  • Download a .tar.gz from Oracle (here I will be using jdk-8u20-linux-x64.tar.gz);
  • Extract it to somewhere;
  • Move the extracted folder to /usr/lib/jvm. This is not required but it is the place where Java runtime software is installed

    sudo mv /path/to/jdk1.8.0_20 /usr/lib/jvm/oracle_jdk8
  • Create a file /etc/profile.d/oraclejdk.sh with the following content (adapt the paths to reflect the path where you stored your JDK):

    export JAVA_HOME=/usr/lib/jvm/oracle_jdk8
    export J2REDIR=/usr/lib/jvm/oracle_jdk8/jre
    export PATH=$PATH:$JAVA_HOME/bin:$J2REDIR/jre/bin
  • Make it executable:
  • sudo chmod +x /etc/profile.d/oraclejdk.sh

Done! Those paths will only be recognized after you logout or restart, so if you want to use them right away run source /etc/profile.d/oraclejdk.sh

Best Oracle WebLogic Administration on 12c is provided : http://docs.oracle.com/middleware/1212/wls/wls-administer.htm

WebLogic is available in different distribution packages, If you understand the difference between each you can choose better. The following picture speaks more :)

Before you go for installation what you need to check on your machine?
If it is your personal installation or for project installation you need to check few important statistics of your machine.
1. RAM size
2. Processor speed
3. Operating  type (64 bit or 32 bit)
4. Operating System
Insufficient memory size will fail to install your Weblogic.
What need to download from the Oracle site?
Once you found all the above values then you can come to conclusion for what kind of download you need to choose from the dowload page from Oracle.

Why Generic?

Generic is compatible for any platform. There are Windows, Solaris, Linux, AIX, HP-UX, MAC OS wise separate installations files available. But if you download the Generic jar file that can run any platform, irrespetive of operating environment it will run the installer wizard. 
It is also support of any kind of operating type that is 64 bit or 32 bit.
Installing WebLogic 10g Generic jar on Solaris with SPARC machine.
On the Oracle site there is difficulty to find the previous versions of WebLogic. The download links might varies version to verson.
WebLogic 10g is ranges from 10.0.x to till 10.3.0. WebLogic 11g is from 10.3.x onwards till now 10.3.3 is the latest version for 11g.
To install WebLogic 10g  generic jar I had chosen WebLogic 10.3.0, there is the need of pre-installed JDK 1.6.  You need to take a stable version of JDK otherwise it will give you the exception as unsecure JDK.

$ java -jar server103_generic.jar -mode=console
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................100%

How do you know installed Sun JDK is 32 bit or 64 bit?

Checking is very simple. If you try to find whether it is compatible with 64 bit option and that failed indicates you have 32 bit installation. I tried this on Solaris SPARC machine, It is given the following  error:
$ java -d64 -versoin
execve(): No such file or directory
Error trying to exec /app/myuser/jdk1.6.0_21/bin/sparcv9/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32-bit JVM.
Verify all necessary J2SE components have been installed.
(Solaris SPARC 64-bit components must be installed after 32-bit components.)

Exam pointer
If developer request for Examples in the server which type of installation you choose? The Solution is surprisingly Custom type.
The sparc9 version
[inputs from Naishadam, Krishna]
To install in the 64 bit JDK in use for WebLogic

$ java -d64 -jar wls1034_generic.jar -mode=console

Weblogic Can be install in Three modes on Windows or Unix machines:
  1. Graphical Mode
  2. Console Mode
  3. Silent Mode
Graphical mode is not supported for Unix machines when they are accessed from remote machine. So we have two other options to install WebLogic on the system. Now let us see the Console mode option.
Source from ; Prasanna Yalam
Ref: http://www.oracle.com/technetwork/middleware/downloads/fmw-11gr1certmatrix.xls