Search This Blog

Saturday, 16 April 2016

01.Downloads for WebLogic Admin Learning

Downloads for WebLogic Administration Learning software

  1. Oracle VirtualBox
  2. PuTTY
  3. MobaXterm
  4. WinScp (FTP Tool)
  5. Oracle JDK
  6. Oracle WebLogic
  7. Notepad++
  8. Oracle XE Database
  9. Oracle SQL Developer
  10. Open LDAP
  11. LDAP Browser
  12. Apache HTTP Server
  13. Open SSL
  14. Thread Logic
  15. Thread dump analyser
  16. Ubuntu 14 [optional]
  17. GC Viewer

Vagrant setup for WebLogic

Install Virtual Box - For download and installation instructions visit Install Vagrant Install Vagrant - For download and installation instruction visit Create a directory name it as workspace_wls for the Vagrantfile. In a terminal/command window, navigate to that directory. Before we can kick start your VM, we need to make the follow changes.

All the boxes which are downloaded from the consist of default ssh user as vagrant and root both have password as vagrant. Now let’s tell the Vagrant that we want to use the OS username called "oracle". Add the following to the Vagrantfile before the "" line
vagrant box add {title} {url}
vagrant init {title}
Here you can select any Linux flavor box which are pre-built boxes. Less in size and low consumption of CPU, MEM resources.
  config.ssh.username = "oracle"  
  config.ssh.password = "Welcome1"

Tell Vagrant that we want the VM to boot in GUI mode and that we want it to be allocated 4Gb RAM. Add the following to the Vagrantfile after the "" line

 config.vm.provider :virtualbox do |vb|
    vb.gui = true
    vb.customize ["modifyvm", :id, "--memory", "4096"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]

The Vagrantfile should now look like the following

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.ssh.username = "oracle"  
  config.ssh.password = "Welcome1" = ""
  config.vm.synced_folder "C:/OFMW", "/u01/software",owner: "oracle", group: "oracle",  create: "true"
  config.vm.synced_folder "C:/OFMW/app","/u01/app/oracle", owner: "oracle", group: "oracle", create:true :private_network, ip: ""
  config.vm.provider :virtualbox do |vb|
    vb.gui = true
    vb.customize ["modifyvm", :id, "--memory", "4096"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]

in command window you could run the’ vagrant up’ if already running need to update few configurations that changed in the Vagrantfile then use ‘vagrant reload’, this will forceful shutdown the vm and then start the virtualbox.

Ubuntu Precise 32 contains the Vagrantfile as you have many box options select as per you Laptop or desktop capabilities:

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config| = "precise32"
  config.vm.synced_folder "C:/OFMW","/vagrant_data/", create:true :private_network, ip: ""
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.customize ["modifyvm", :id, "--memory", "4092"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]
  #config.vm.provision :shell, :path => ""

Vagrant Ubuntu precise 64 box configuration

Now latest laptops all working with 64 bit only, So for you...
Vagrant.configure(2) do |config| = "precise64"
  config.vm.host_name = "" "private_network", ip: ""

  config.vm.synced_folder "F:/Softwares", "/u01/app/software"
  config.vm.provider "virtualbox" do |vb|
   #vb.gui = true
   vb.memory = "4096"

Vagrant boxes are small in sizes and easy to use, flexible, disposable any time you can destroy them. Here some of the vagrant commands that are initially used when you began using it.

vagrant up

On Windows platform vagrant up runs precise64 box

Login to the vagrant box To work with static IP we need private_network must be working. On Mac OSX.
vagrant ssh
On Windows use PuTTY using and port 2222.
Vagrant ssh connecting precise64 box

Troubleshooting with Vagrant 5.1.2  for Ubuntu Precise64

Switch to root user
sudo -i

Now edit the following in the  /etc/os-release with the below given lines:
vi /etc/os-release

VERSION="14.04 LTS, Precise Pangolin"
PRETTY_NAME="Ubuntu precise (14.04 LTS)"

This would resolve your network adapter creation errors on both Mac OSX and also on Windows hosts having guest as precise64 boxes.

Connect Vagrant Ubutnu box with PuTTY

The private network that is configured in the vagrantfile will give the static IP configuration.

Save the IP for Vagrant Ubuntu box

If you wish to use the same box for the Oracle SOA then you need to increase RAM size and reload the box.

Preferable Load the saved session  PuTTY settings are:
  1. Window -> Line of Scrollback 2000 change to 200000
  2. Appearance -> Font Lucida Sans Typewriter 14/12 point
  3. Colour ->Check Use System colours
  4. Session -> Savie
Hope you enjoy this settings.

Create the new groups and users.

Lets create Oracle recommended groups oinstall, dba
groupadd -g 501 oinstall
groupadd -g 502 dba

Now we can go for creating the user name as : oracle. Change the passwd for the user using passwd:
useradd -u 502 -g oinstall -G dba oracle
passwd oracle
Create a home directory and give full access and ownership to the standard directory /u01/app/oracle.
mkdir -p /u01/app/oracle

chown -R oracle:oinstall /u01
chmod -R 775 /u01

Finally assign that directory as home director for oracle user.
 usermod -d /u01/app/oracle oracle
Lets make simple script "vi" that you can run as super user that is root user.
# Run this script with root user

echo "Create the new groups and users."

groupadd -g 501 oinstall
groupadd -g 502 dba

useradd -u 502 -g oinstall -G dba -s /bin/bash oracle
passwd oracle

mkdir -p /u01/app/oracle

chown -R oracle:oinstall /u01
chmod -R 775 /u01

usermod -d /u01/app/oracle oracle

echo "User oracle created successfully..."
Now change mode and execute the script:
chmod +x


WebLogic Books

  • Oracle WebLogic Server 12c: Administration Handbook
  • WebLogic Diagnostic Framework
  • Advanced WebLogic Server Automation
  • Oracle SOA Suite 11g Administrator's Handbook

Popular Posts