Monday, December 28, 2015

Oracle HTTP Server 12.2.1.3 Silent mode Installation (Oracle Linux 7)

The objective of this post is to install the Oracle HTTP Server 12.2.1 on Oracle Linux platform. The prerequisites for this task JDK 1.8 and Oracle infrastructure 12.2.1 required if you wish to install Collocated OHS with WebLogic.

You could be selective while installing OHS there are two options:

  1. Collocated OHS [WebLogic required]
  2. Standalone OHS [independ of WebLogic]
Oracle HTTP Server silent mode installation

Preparation for OHS 12.2.1 installation

You can Download the zip V78157-01.zip from https://edelivery.oracle.com/
Now unzip the downloaded zip file which contains a bin file. Copy the bin file at the target installation machine (any location). Best practice is to use shared folder location which can be reusable for other machines as well.

Oracle Linux 7 vagrant box which had some of the libraries and some of them were missing. My first run was failed with the following:

OHS 12.2.1 installation errors: System libraries missing

Here the fix is simple you need to install the missing /Failed libraries. To install you must be in the super user that is root user. [sudo -i] from the sudoer user.

Install the below libraries on the Oracle Linux 7 OS will provide the native libraries support to install OHS

yum install -y compat-libcap1-1.10
yum install -y compat-libstdc++-33-3.2.3-x86_64;  
yum install -y compat-libstdc;
yum install -y compat-libstdc
yum install -y compat-libstdc*
yum install -y libstdc++-devel*
yum install -y sysstat-10*
yum install -y gcc*
yum install -y ksh*
yum install -y glibc-devel*
yum install -y libaio-devel*

Sample OHS response file for Collocated 

Create a response for installing OHS (Collocated HTTP Server) in silent mode. You can modify the ORACLE_HOME as per your environment setup.
[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/oracle/products/12.2.1/Oracle_Home

#Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure With Examples.
INSTALL_TYPE=Collocated HTTP Server (Managed through WebLogic server)

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false


Standalone OHS response file

Thanks to friend Francesco Rizzo asked me to update and include a response file for standalone installation: ohs_standalone_install.rsp
[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#Set this to true if you wish to skip software updates
DECLINE_AUTO_UPDATES=true

#My Oracle Support User Name
MOS_USERNAME=

#My Oracle Support Password
MOS_PASSWORD=

#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
AUTO_UPDATES_LOCATION=

#Proxy Server Name to connect to My Oracle Support
SOFTWARE_UPDATES_PROXY_SERVER=

#Proxy Server Port
SOFTWARE_UPDATES_PROXY_PORT=

#Proxy Server Username
SOFTWARE_UPDATES_PROXY_USER=

#Proxy Server Password
SOFTWARE_UPDATES_PROXY_PASSWORD=

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/u02/oracle/products/fmw

#Set this variable value to the Installation Type selected as either Standalone HTTP Server (Managed independently of WebLogic server) OR Collocated HTTP Server (Managed through WebLogic server)
INSTALL_TYPE=Standalone HTTP Server (Managed independently of WebLogic server)

#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=

#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#Provide the Proxy Host
PROXY_HOST=

#Provide the Proxy Port
PROXY_PORT=

#Provide the Proxy Username
PROXY_USER=

#Provide the Proxy Password
PROXY_PWD=

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

Note: Please ignore last line that contains closing secure line

OHS Silent mode installation command

Finally run the below command with arguments as -silent and responseFile which is created in the above step also provide the inventory location which used for FMW products used earlier to install OHS
./fmw_12.2.1.0.0_ohs_linux64.bin  -silent \
-responseFile /home/oracle/silent/ohsinstall.rsp \
-invPtrLoc /home/oracle/silent/oraInst.loc

[oracle@localhost ~]$ ./fmw_12.2.1.0.0_ohs_linux64.bin  -silent \
-responseFile /home/oracle/silent/ohsinstall.rsp \
-invPtrLoc /home/oracle/silent/oraInst.loc

0%...................................................................................................100%
Launcher log file is /tmp/OraInstall2015-12-28_04-25-11PM/launcher2015-12-28_04-25-11PM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2298.123 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 43547 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-12-28_04-25-11PM
Log: /tmp/OraInstall2015-12-28_04-25-11PM/install2015-12-28_04-25-11PM.log
Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of redhat-7,redhat-6,oracle-6,oracle-7,SuSE-11
Actual Result: oracle-7
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.


Starting check : Packages
Checking for binutils-2.23.52.0.1; found binutils-2.23.52.0.1-55.el7-x86_64.    Passed
Checking for compat-libcap1-1.10; found compat-libcap1-1.10-7.el7-x86_64.       Passed
Checking for compat-libstdc++-33-3.2.3-x86_64; found compat-libstdc++-33-3.2.3-72.el7-x86_64.   Passed
Checking for libgcc-4.8.2-x86_64; found libgcc-4.8.5-4.el7-x86_64.      Passed
Checking for libstdc++-4.8.2-x86_64; found libstdc++-4.8.5-4.el7-x86_64.        Passed
Checking for libstdc++-devel-4.8.2-x86_64; found libstdc++-devel-4.8.5-4.el7-x86_64.    Passed
Checking for sysstat-10.1.5; found sysstat-10.1.5-7.el7-x86_64. Passed
Checking for gcc-4.8.2; found gcc-4.8.5-4.el7-x86_64.   Passed
Checking for gcc-c++-4.8.2; found gcc-c++-4.8.5-4.el7-x86_64.   Passed
Checking for ksh-...; found ksh-20120801-22.el7_1.3-x86_64.     Passed
Checking for make-3.82; found make-1:3.82-21.el7-x86_64.        Passed
Checking for glibc-2.17-x86_64; found glibc-2.17-106.0.1.el7_2.1-x86_64.        Passed
Checking for glibc-devel-2.17-x86_64; found glibc-devel-2.17-106.0.1.el7_2.1-x86_64.    Passed
Checking for libaio-0.3.109-x86_64; found libaio-0.3.109-13.el7-x86_64. Passed
Checking for libaio-devel-0.3.109-x86_64; found libaio-devel-0.3.109-13.el7-x86_64.     Passed
Check complete. The overall result of this check is: Passed
Packages Check: Success.


Starting check : Kernel
Checking for VERSION=3.8.0; found VERSION=3.10.0-327.el7.x86_64.        Passed
Checking for hardnofiles=4096; found hardnofiles=4096.  Passed
Checking for softnofiles=4096; found softnofiles=4096.  Passed
Check complete. The overall result of this check is: Passed
Kernel Check: Success.


Starting check : TotalMemory
Expected result: 1024MB
Actual Result: 3788MB
Check complete. The overall result of this check is: Passed
TotalMemory Check: Success.


Starting check : CheckJDKVersion
Expected result: 1.8.0_51
Actual Result: 1.8.0_51
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.


Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100


The installation of Oracle HTTP Server 12.2.1.0.0 completed successfully.
Logs successfully copied to /home/oracle/oraInventory/logs.

Happy to see 100 and 'completed successfully'!!


We are the first who published silent mode installation of Oracle HTTP Server in 12.2.1 version.

Oracle HTTP Server 12.2.1.3.0 Installation Issues

Here I'm updating the blog post with the latest version OHS 12.2.1.3.0 installation time issues/common errors and their corresponding Fixes are sharing with you to save your time.

#OHS-ISSUE-1: Issue with Response file

$ ./fmw_12.2.1.3.0_ohs_linux64.bin  -silent \
> -responseFile /u01/wladmin/silent/ohs_12.2.1.3.rsp -ignoreSysPrereqs  -waitforcompletion
Specified path is either invalid or does not exist: /u01/wladmin/silent/ohs_12.2.1.3.rsp

ERROR: Installer execution failed (1).
Fix: Create the file in the specified path and add the silent responses
 vi /u01/wladmin/silent/ohs_12.2.1.3.rsp
 added the content to resolve this.

#OHS-ISSUE-2: Issue cannot execute binary file


 
$ .  /tmp/fmw_12.2.1.3.0_ohs_linux64.bin  -silent \
 -responseFile /u01/wladmin/silent/ohs_12.2.1.3.rsp -ignoreSysPrereqs  -waitforcompletion

bash: .: /tmp/fmw_12.2.1.3.0_ohs_linux64.bin: cannot execute binary file
Fix:
Copy the binary file to home directory and run from there this issue resolved.

#OHS-ISSUE-3: Issue Invalid Central Inventory location


 
$ ./fmw_12.2.1.3.0_ohs_linux64.bin  -silent -responseFile /u01/wladmin/silent/ohs_12.2.1.3.rsp -ignoreSysPrereqs  -waitforcompletion
Launcher log file is /tmp/OraInstall2019-06-10_10-40-08PM/launcher2019-06-10_10-40-08PM.log.
Option "-waitforcompletion" is deprecated (it is now the default).
Invalid Central Inventory location "/scratch/gbuora/app/oracle/product/12.1.0.2/client/inventory" (cannot read/execute).
The log is located here: /tmp/OraInstall2019-06-10_10-40-08PM/launcher2019-06-10_10-40-08PM.log.
ERROR: Installer execution failed (1).
Fix is simple, Provide the other inventory location then this issue got resolved.
$ ./fmw_12.2.1.3.0_ohs_linux64.bin  -silent \
 -responseFile /u01/wladmin/silent/ohs_12.2.1.3.rsp -ignoreSysPrereqs  -waitforcompletion \
  -invPtrLoc  /u01/wladmin/silent/oraInst.loc
You can post your experiences in installation of OHS, we may help you!!!

Oracle HTTP Server 12.2.1 Silent mode Installation (Oracle Linux 7)

The objective of this post is to install the Oracle HTTP Server 12.2.1 on Oracle Linux platform. The prerequisites for this task JDK 1.8 and Oracle infrastructure 12.2.1 required if you wish to install Collocated OHS with WebLogic.

You could be selective while installing OHS there are two options:

  1. Collocated OHS [WebLogic required]
  2. Standalone OHS [independ of WebLogic]
Oracle HTTP Server 12.2.x  installation in silent mode

Preparation for OHS 12.2.1 installation

You can Download the zip V78157-01.zip from https://edelivery.oracle.com/
Now unzip the downloaded zip file which contains a bin file. Copy the bin file at the target installation machine (any location). Best practice is to use shared folder location which can be reusable for other machines as well.

Oracle Linux 7 vagrant box which had some of the libraries and some of them were missing. My first run was failed with the following:

OHS 12.2.1 installation errors: System libraries missing

Here the fix is simple you need to install the missing /Failed libraries. To install you must be in the super user that is root user. [sudo -i] from the sudoer user.

Install the below libraries on the Oracle Linux 7 OS

yum install -y compat-libcap1-1.10
yum install -y compat-libstdc++-33-3.2.3-x86_64;  
yum install -y compat-libstdc;
yum install -y compat-libstdc
yum install -y compat-libstdc*
yum install -y libstdc++-devel*
yum install -y sysstat-10*
yum install -y gcc*
yum install -y ksh*
yum install -y glibc-devel*
yum install -y libaio-devel*

Sample OHS response file

Create a response for installing OHS (Collocated HTTP Server) in silent mode. You can modify the ORACLE_HOME as per your environment setup.
[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/oracle/products/12.2.1/Oracle_Home

#Set this variable value to the Installation Type selected. e.g. Fusion Middleware Infrastructure, Fusion Middleware Infrastructure With Examples.
INSTALL_TYPE=Collocated HTTP Server (Managed through WebLogic server)

#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=

#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#Provide the Proxy Host
PROXY_HOST=

#Provide the Proxy Port
PROXY_PORT=

#Provide the Proxy Username
PROXY_USER=

#Provide the Proxy Password
PROXY_PWD=

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

Note: Please ignore last line that contains closing secure line

Standalone OHS Response file for silent mode installation


Thanks to Friend Francesco Rizzo, who reviewed the blog and provided his valuable feedback to add the standalone OHS installation can be included in as follows:
[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#Set this to true if you wish to skip software updates
DECLINE_AUTO_UPDATES=true

#My Oracle Support User Name
MOS_USERNAME=

#My Oracle Support Password
MOS_PASSWORD=

#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
AUTO_UPDATES_LOCATION=

#Proxy Server Name to connect to My Oracle Support
SOFTWARE_UPDATES_PROXY_SERVER=

#Proxy Server Port
SOFTWARE_UPDATES_PROXY_PORT=

#Proxy Server Username
SOFTWARE_UPDATES_PROXY_USER=

#Proxy Server Password
SOFTWARE_UPDATES_PROXY_PASSWORD=

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/u02/oracle/products/fmw

#Set this variable value to the Installation Type selected as either Standalone HTTP Server (Managed independently of WebLogic server) OR Collocated HTTP Server (Managed through WebLogic server)
INSTALL_TYPE=Standalone HTTP Server (Managed independently of WebLogic server)

#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=

#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#Provide the Proxy Host
PROXY_HOST=

#Provide the Proxy Port
PROXY_PORT=

#Provide the Proxy Username
PROXY_USER=

#Provide the Proxy Password
PROXY_PWD=

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

Now lets run this...

OHS 12c Silent mode installation command

Finally run the below command with arguments as -silent and responseFile which is created in the above step also provide the inventory location which used for FMW products used earlier to install OHS
./fmw_12.2.1.0.0_ohs_linux64.bin  -silent \
-responseFile /home/oracle/silent/ohsinstall.rsp \
-invPtrLoc /home/oracle/silent/oraInst.loc

[oracle@localhost ~]$ ./fmw_12.2.1.0.0_ohs_linux64.bin  -silent \
-responseFile /home/oracle/silent/ohsinstall.rsp \
-invPtrLoc /home/oracle/silent/oraInst.loc

0%...................................................................................................100%
Launcher log file is /tmp/OraInstall2015-12-28_04-25-11PM/launcher2015-12-28_04-25-11PM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2298.123 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 43547 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2015-12-28_04-25-11PM
Log: /tmp/OraInstall2015-12-28_04-25-11PM/install2015-12-28_04-25-11PM.log
Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of redhat-7,redhat-6,oracle-6,oracle-7,SuSE-11
Actual Result: oracle-7
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.


Starting check : Packages
Checking for binutils-2.23.52.0.1; found binutils-2.23.52.0.1-55.el7-x86_64.    Passed
Checking for compat-libcap1-1.10; found compat-libcap1-1.10-7.el7-x86_64.       Passed
Checking for compat-libstdc++-33-3.2.3-x86_64; found compat-libstdc++-33-3.2.3-72.el7-x86_64.   Passed
Checking for libgcc-4.8.2-x86_64; found libgcc-4.8.5-4.el7-x86_64.      Passed
Checking for libstdc++-4.8.2-x86_64; found libstdc++-4.8.5-4.el7-x86_64.        Passed
Checking for libstdc++-devel-4.8.2-x86_64; found libstdc++-devel-4.8.5-4.el7-x86_64.    Passed
Checking for sysstat-10.1.5; found sysstat-10.1.5-7.el7-x86_64. Passed
Checking for gcc-4.8.2; found gcc-4.8.5-4.el7-x86_64.   Passed
Checking for gcc-c++-4.8.2; found gcc-c++-4.8.5-4.el7-x86_64.   Passed
Checking for ksh-...; found ksh-20120801-22.el7_1.3-x86_64.     Passed
Checking for make-3.82; found make-1:3.82-21.el7-x86_64.        Passed
Checking for glibc-2.17-x86_64; found glibc-2.17-106.0.1.el7_2.1-x86_64.        Passed
Checking for glibc-devel-2.17-x86_64; found glibc-devel-2.17-106.0.1.el7_2.1-x86_64.    Passed
Checking for libaio-0.3.109-x86_64; found libaio-0.3.109-13.el7-x86_64. Passed
Checking for libaio-devel-0.3.109-x86_64; found libaio-devel-0.3.109-13.el7-x86_64.     Passed
Check complete. The overall result of this check is: Passed
Packages Check: Success.


Starting check : Kernel
Checking for VERSION=3.8.0; found VERSION=3.10.0-327.el7.x86_64.        Passed
Checking for hardnofiles=4096; found hardnofiles=4096.  Passed
Checking for softnofiles=4096; found softnofiles=4096.  Passed
Check complete. The overall result of this check is: Passed
Kernel Check: Success.


Starting check : TotalMemory
Expected result: 1024MB
Actual Result: 3788MB
Check complete. The overall result of this check is: Passed
TotalMemory Check: Success.


Starting check : CheckJDKVersion
Expected result: 1.8.0_51
Actual Result: 1.8.0_51
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.


Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100


The installation of Oracle HTTP Server 12.2.1.0.0 completed successfully.
Logs successfully copied to /home/oracle/oraInventory/logs.

Happy to see 100 and 'completed successfully'!!
We are the first who published silent mode installation of Oracle HTTP Server in 12.2.1 version.

Wednesday, October 28, 2015

Oracle 12c database installation on CentOS 6.5 Vagrant

Project Oracle12c database


As a non-Oracle DBA having minimum knowledge, started working on this project for installation of Oracle 12c Database on my personal laptop which have Windows 8.1 platform. Using this automation with Vagrant and Puppet provisioning on CentOS box it would be fantastic guest and on top of it running the Oracle 12c database will be hosted that's simple learning goal for today.

Virtual box requirements for Oracle 12c Database

Assume that latest version of Vagrant installed on your machine. I'm running on Vagrant 1.7.1. And also expecting Oracle VirtualBox installed on your machine.

First get the Oracle database binaries from OTN Select Enterprise Edition or Standard Edition
Database download link [This may change for next version]

Selecting Oracle 12c Database download from OTN

Get the Vagrant setup from ora12base with clone command :


 
 git clone https://github.com/dgapitts/ora12base

git clone command for ora12base

Change the Vagrantfile


This vagrantfile is very small but few changes which makes you happy.
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
config.vm.define "db12012" , primary: true do |config|
  config.vm.box = "centos-6.5-x86_64"
  config.vm.box_url = "https://dl.dropboxusercontent.com/s/np39xdpw05wfmv4/centos-6.5-x86_64.box"
  config.vm.network "private_network", ip: "192.168.33.17"
  config.vm.host_name = "ora12c66.vybhavatechnologies.com"
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "4028"
  end
  config.vm.provision :shell, :path => "provision.sh"
end
end


Some of the values changed as per my needs.

  • box definition
  • box url changed because I have centos-6.5-x86_64.box already in my machine
  • host_name included vybhava :)
  • public didnot work on my windows so changed to private_network



Now bring up the centOS box for Oracle DB installation.

 F:\workspace-wls\ora12base>vagrant up
Bringing machine 'db12012' up with 'virtualbox' provider...
==> db12012: Importing base box 'centos-6.5-x86_64'...
==> db12012: Matching MAC address for NAT networking...
==> db12012: Setting the name of the VM: ora12base_db12012_1445954494958_81978
==> db12012: Clearing any previously set network interfaces...
==> db12012: Preparing network interfaces based on configuration...
    db12012: Adapter 1: nat
    db12012: Adapter 2: bridged
==> db12012: Forwarding ports...
    db12012: 22 => 2222 (adapter 1)
==> db12012: Running 'pre-boot' VM customizations...
==> db12012: Booting VM...
==> db12012: Waiting for machine to boot. This may take a few minutes...
    db12012: SSH address: 127.0.0.1:2222
    db12012: SSH username: vagrant
    db12012: SSH auth method: private key
    db12012: Warning: Connection timeout. Retrying...
    db12012: Warning: Connection timeout. Retrying...
    db12012:
    db12012: Vagrant insecure key detected. Vagrant will automatically replace
    db12012: this with a newly generated keypair for better security.
    db12012:
    db12012: Inserting generated public key within guest...
    db12012: Removing insecure key from the guest if its present...
    db12012: Key inserted! Disconnecting and reconnecting using new SSH key...
==> db12012: Machine booted and ready!
GuestAdditions versions on your host (4.3.30) and guest (4.3.20) do not match.
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Setting up Install Process
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-4.el6 will be updated
--> Processing Dependency: gcc = 4.4.7-4.el6 for package: gcc-gfortran-4.4.7-4.el6.x86_64
--> Processing Dependency: gcc = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package gcc.x86_64 0:4.4.7-16.el6 will be an update
--> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.x86_64
---> Package perl.x86_64 4:5.10.1-136.el6 will be updated
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: perl-IO-Compress-Zlib-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 3:perl-version-0.77-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Module-Pluggable-3.90-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: perl-Compress-Zlib-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: perl-IO-Compress-Base-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Compress-Raw-Zlib-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Escapes-1.04-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 4:perl-libs-5.10.1-136.el6.x86_64
---> Package perl.x86_64 4:5.10.1-141.el6 will be an update
--> Running transaction check
---> Package cpp.x86_64 0:4.4.7-4.el6 will be updated
---> Package cpp.x86_64 0:4.4.7-16.el6 will be an update
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be updated
---> Package gcc-c++.x86_64 0:4.4.7-16.el6 will be an update
--> Processing Dependency: libstdc++-devel = 4.4.7-16.el6 for package: gcc-c++-4.4.7-16.el6.x86_64
--> Processing Dependency: libstdc++ = 4.4.7-16.el6 for package: gcc-c++-4.4.7-16.el6.x86_64
---> Package gcc-gfortran.x86_64 0:4.4.7-4.el6 will be updated
---> Package gcc-gfortran.x86_64 0:4.4.7-16.el6 will be an update
--> Processing Dependency: libgfortran = 4.4.7-16.el6 for package: gcc-gfortran-4.4.7-16.el6.x86_64
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-16.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-16.el6 will be an update
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-136.el6 will be updated
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6 will be an update
---> Package perl-Compress-Zlib.x86_64 0:2.021-136.el6 will be updated
---> Package perl-Compress-Zlib.x86_64 0:2.021-141.el6 will be an update
---> Package perl-IO-Compress-Base.x86_64 0:2.021-136.el6 will be updated
---> Package perl-IO-Compress-Base.x86_64 0:2.021-141.el6 will be an update
---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-136.el6 will be updated
---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6 will be an update
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be updated
---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6 will be an update
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be updated
---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6 will be an update
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be updated
---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6 will be an update
---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be updated
---> Package perl-libs.x86_64 4:5.10.1-141.el6 will be an update
---> Package perl-version.x86_64 3:0.77-136.el6 will be updated
---> Package perl-version.x86_64 3:0.77-141.el6 will be an update
--> Running transaction check
---> Package libgfortran.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgfortran.x86_64 0:4.4.7-16.el6 will be an update
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be updated
---> Package libstdc++.x86_64 0:4.4.7-16.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be updated
---> Package libstdc++-devel.x86_64 0:4.4.7-16.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch        Version                Repository
                                                                           Size
================================================================================
Updating:
 gcc                         x86_64      4.4.7-16.el6           base       10 M
 perl                        x86_64      4:5.10.1-141.el6       base       10 M
Updating for dependencies:
 cpp                         x86_64      4.4.7-16.el6           base      3.7 M
 gcc-c++                     x86_64      4.4.7-16.el6           base      4.7 M
 gcc-gfortran                x86_64      4.4.7-16.el6           base      4.7 M
 libgcc                      x86_64      4.4.7-16.el6           base      103 k
 libgfortran                 x86_64      4.4.7-16.el6           base      267 k
 libgomp                     x86_64      4.4.7-16.el6           base      134 k
 libstdc++                   x86_64      4.4.7-16.el6           base      295 k
 libstdc++-devel             x86_64      4.4.7-16.el6           base      1.6 M
 perl-Compress-Raw-Zlib      x86_64      1:2.021-141.el6        base       70 k
 perl-Compress-Zlib          x86_64      2.021-141.el6          base       46 k
 perl-IO-Compress-Base       x86_64      2.021-141.el6          base       70 k
 perl-IO-Compress-Zlib       x86_64      2.021-141.el6          base      136 k
 perl-Module-Pluggable       x86_64      1:3.90-141.el6         base       40 k
 perl-Pod-Escapes            x86_64      1:1.04-141.el6         base       33 k
 perl-Pod-Simple             x86_64      1:3.13-141.el6         base      213 k
 perl-libs                   x86_64      4:5.10.1-141.el6       base      578 k
 perl-version                x86_64      3:0.77-141.el6         base       52 k

Transaction Summary
================================================================================
Upgrade      19 Package(s)

Total download size: 37 M
Downloading Packages:
http://centos.excellmedia.net/6.7/os/x86_64/Packages/gcc-c%2B%2B-4.4.7-16.el6.x86_64.rpm: [Errno 12] Timeout on http://centos.excellmedia.net/6.7
/os/x86_64/Packages/gcc-c%2B%2B-4.4.7-16.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
--------------------------------------------------------------------------------
Total                                           554 kB/s |  37 MB     01:08
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-4.4.7-16.el6.x86_64                                  1/38
  Updating   : libstdc++-4.4.7-16.el6.x86_64                               2/38
  Updating   : libstdc++-devel-4.4.7-16.el6.x86_64                         3/38
  Updating   : 1:perl-Pod-Escapes-1.04-141.el6.x86_64                      4/38
  Updating   : 4:perl-libs-5.10.1-141.el6.x86_64                           5/38
  Updating   : 1:perl-Pod-Simple-3.13-141.el6.x86_64                       6/38
  Updating   : 1:perl-Module-Pluggable-3.90-141.el6.x86_64                 7/38
  Updating   : 3:perl-version-0.77-141.el6.x86_64                          8/38
  Updating   : 4:perl-5.10.1-141.el6.x86_64                                9/38
  Updating   : 1:perl-Compress-Raw-Zlib-2.021-141.el6.x86_64              10/38
  Updating   : perl-IO-Compress-Base-2.021-141.el6.x86_64                 11/38
  Updating   : perl-IO-Compress-Zlib-2.021-141.el6.x86_64                 12/38
  Updating   : cpp-4.4.7-16.el6.x86_64                                    13/38
  Updating   : libgfortran-4.4.7-16.el6.x86_64                            14/38
  Updating   : libgomp-4.4.7-16.el6.x86_64                                15/38
  Updating   : gcc-4.4.7-16.el6.x86_64                                    16/38
  Updating   : gcc-c++-4.4.7-16.el6.x86_64                                17/38
  Updating   : gcc-gfortran-4.4.7-16.el6.x86_64                           18/38
  Updating   : perl-Compress-Zlib-2.021-141.el6.x86_64                    19/38
  Cleanup    : perl-Compress-Zlib-2.021-136.el6.x86_64                    20/38
  Cleanup    : perl-IO-Compress-Zlib-2.021-136.el6.x86_64                 21/38
  Cleanup    : gcc-c++-4.4.7-4.el6.x86_64                                 22/38
  Cleanup    : gcc-gfortran-4.4.7-4.el6.x86_64                            23/38
  Cleanup    : libstdc++-devel-4.4.7-4.el6.x86_64                         24/38
  Cleanup    : perl-IO-Compress-Base-2.021-136.el6.x86_64                 25/38
  Cleanup    : gcc-4.4.7-4.el6.x86_64                                     26/38
  Cleanup    : libstdc++-4.4.7-4.el6.x86_64                               27/38
  Cleanup    : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x86_64              28/38
  Cleanup    : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                29/38
  Cleanup    : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                     30/38
  Cleanup    : 1:perl-Pod-Simple-3.13-136.el6.x86_64                      31/38
  Cleanup    : 4:perl-libs-5.10.1-136.el6.x86_64                          32/38
  Cleanup    : 4:perl-5.10.1-136.el6.x86_64                               33/38
  Cleanup    : 3:perl-version-0.77-136.el6.x86_64                         34/38
  Cleanup    : libgcc-4.4.7-4.el6.x86_64                                  35/38
  Cleanup    : cpp-4.4.7-4.el6.x86_64                                     36/38
  Cleanup    : libgomp-4.4.7-4.el6.x86_64                                 37/38
  Cleanup    : libgfortran-4.4.7-4.el6.x86_64                             38/38
  Verifying  : libgomp-4.4.7-16.el6.x86_64                                 1/38
  Verifying  : libgfortran-4.4.7-16.el6.x86_64                             2/38
  Verifying  : gcc-c++-4.4.7-16.el6.x86_64                                 3/38
  Verifying  : 3:perl-version-0.77-141.el6.x86_64                          4/38
  Verifying  : 1:perl-Pod-Escapes-1.04-141.el6.x86_64                      5/38
  Verifying  : gcc-gfortran-4.4.7-16.el6.x86_64                            6/38
  Verifying  : 4:perl-libs-5.10.1-141.el6.x86_64                           7/38
  Verifying  : libstdc++-4.4.7-16.el6.x86_64                               8/38
  Verifying  : 1:perl-Pod-Simple-3.13-141.el6.x86_64                       9/38
  Verifying  : cpp-4.4.7-16.el6.x86_64                                    10/38
  Verifying  : libgcc-4.4.7-16.el6.x86_64                                 11/38
  Verifying  : gcc-4.4.7-16.el6.x86_64                                    12/38
  Verifying  : 1:perl-Module-Pluggable-3.90-141.el6.x86_64                13/38
  Verifying  : 4:perl-5.10.1-141.el6.x86_64                               14/38
  Verifying  : 1:perl-Compress-Raw-Zlib-2.021-141.el6.x86_64              15/38
  Verifying  : perl-IO-Compress-Zlib-2.021-141.el6.x86_64                 16/38
  Verifying  : perl-IO-Compress-Base-2.021-141.el6.x86_64                 17/38
  Verifying  : perl-Compress-Zlib-2.021-141.el6.x86_64                    18/38
  Verifying  : libstdc++-devel-4.4.7-16.el6.x86_64                        19/38
  Verifying  : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                20/38
  Verifying  : gcc-gfortran-4.4.7-4.el6.x86_64                            21/38
  Verifying  : 4:perl-5.10.1-136.el6.x86_64                               22/38
  Verifying  : perl-Compress-Zlib-2.021-136.el6.x86_64                    23/38
  Verifying  : 1:perl-Compress-Raw-Zlib-2.021-136.el6.x86_64              24/38
  Verifying  : 4:perl-libs-5.10.1-136.el6.x86_64                          25/38
  Verifying  : libstdc++-4.4.7-4.el6.x86_64                               26/38
  Verifying  : libstdc++-devel-4.4.7-4.el6.x86_64                         27/38
  Verifying  : cpp-4.4.7-4.el6.x86_64                                     28/38
  Verifying  : 1:perl-Pod-Simple-3.13-136.el6.x86_64                      29/38
  Verifying  : perl-IO-Compress-Zlib-2.021-136.el6.x86_64                 30/38
  Verifying  : libgfortran-4.4.7-4.el6.x86_64                             31/38
  Verifying  : gcc-c++-4.4.7-4.el6.x86_64                                 32/38
  Verifying  : perl-IO-Compress-Base-2.021-136.el6.x86_64                 33/38
  Verifying  : libgomp-4.4.7-4.el6.x86_64                                 34/38
  Verifying  : gcc-4.4.7-4.el6.x86_64                                     35/38
  Verifying  : 3:perl-version-0.77-136.el6.x86_64                         36/38
  Verifying  : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                     37/38
  Verifying  : libgcc-4.4.7-4.el6.x86_64                                  38/38

Updated:
  gcc.x86_64 0:4.4.7-16.el6             perl.x86_64 4:5.10.1-141.el6

Dependency Updated:
  cpp.x86_64 0:4.4.7-16.el6
  gcc-c++.x86_64 0:4.4.7-16.el6
  gcc-gfortran.x86_64 0:4.4.7-16.el6
  libgcc.x86_64 0:4.4.7-16.el6
  libgfortran.x86_64 0:4.4.7-16.el6
  libgomp.x86_64 0:4.4.7-16.el6
  libstdc++.x86_64 0:4.4.7-16.el6
  libstdc++-devel.x86_64 0:4.4.7-16.el6
  perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6
  perl-Compress-Zlib.x86_64 0:2.021-141.el6
  perl-IO-Compress-Base.x86_64 0:2.021-141.el6
  perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6
  perl-Module-Pluggable.x86_64 1:3.90-141.el6
  perl-Pod-Escapes.x86_64 1:1.04-141.el6
  perl-Pod-Simple.x86_64 1:3.13-141.el6
  perl-libs.x86_64 4:5.10.1-141.el6
  perl-version.x86_64 3:0.77-141.el6

Complete!
Copy iso file F:\Oracle\VBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 4.3.30 - guest version is 4.3.20
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.30 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[  OK  ]
Building the shared folder support module[  OK  ]
Building the OpenGL support module[  OK  ]
Doing non-kernel setup of the Guest Additions[  OK  ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.30. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
==> db12012: Checking for guest additions in VM...
==> db12012: Setting hostname...
==> db12012: Configuring and enabling network interfaces...
==> db12012: Mounting shared folders...
    db12012: /vagrant => F:/workspace-wls/ora12base
==> db12012: Running provisioner: shell...
    db12012: Running: C:/Users/Raghav/AppData/Local/Temp/vagrant-shell20151027-1124-8muref.sh
==> db12012: ADD EXTRA ALIAS VIA .bashrc
==> db12012: INSTALL VIM
==> db12012: Loaded plugins: fastestmirror, security
==> db12012: Loading mirror speeds from cached hostfile
==> db12012:  * base: centos.excellmedia.net
==> db12012:  * extras: centos.excellmedia.net
==> db12012:  * updates: centos.excellmedia.net
==> db12012: Setting up Install Process
==> db12012: Resolving Dependencies
==> db12012: --> Running transaction check
==> db12012: ---> Package vim-enhanced.x86_64 2:7.2.411-1.8.el6 will be updated
==> db12012: ---> Package vim-enhanced.x86_64 2:7.4.629-5.el6 will be an update
==> db12012: --> Processing Dependency: vim-common = 2:7.4.629-5.el6 for package: 2:vim-enhanced-7.4.629-5.el6.x86_64
==> db12012: --> Running transaction check
==> db12012: ---> Package vim-common.x86_64 2:7.2.411-1.8.el6 will be updated
==> db12012: ---> Package vim-common.x86_64 2:7.4.629-5.el6 will be an update
==> db12012: --> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.629-5.el6.x86_64
==> db12012: --> Running transaction check
==> db12012: ---> Package vim-filesystem.x86_64 2:7.4.629-5.el6 will be installed
==> db12012: --> Finished Dependency Resolution
==> db12012:
==> db12012: Dependencies Resolved
==> db12012:
==> db12012: ================================================================================
==> db12012:  Package               Arch          Version                  Repository   Size
==> db12012: ================================================================================
==> db12012: Updating:
==> db12012:  vim-enhanced          x86_64        2:7.4.629-5.el6          base        1.0 M
==> db12012: Installing for dependencies:
==> db12012:  vim-filesystem        x86_64        2:7.4.629-5.el6          base         15 k
==> db12012: Updating for dependencies:
==> db12012:  vim-common            x86_64        2:7.4.629-5.el6          base        6.7 M
==> db12012:
==> db12012: Transaction Summary
==> db12012: ================================================================================
==> db12012: Install       1 Package(s)
==> db12012: Upgrade       2 Package(s)
==> db12012: Total download size: 7.8 M
==> db12012: Downloading Packages:
==> db12012: http://centos.excellmedia.net/6.7/os/x86_64/Packages/vim-filesystem-7.4.629-5.el6.x86_64.rpm: [Errno 12] Timeout on http://centos.ex
cellmedia.net/6.7/os/x86_64/Packages/vim-filesystem-7.4.629-5.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last
 30 seconds')
==> db12012: Trying other mirror.
==> db12012: --------------------------------------------------------------------------------
==> db12012: Total                                           143 kB/s | 7.8 MB     00:55
==> db12012: Running rpm_check_debug
==> db12012: Running Transaction Test
==> db12012: Transaction Test Succeeded
==> db12012: Running Transaction
  Installing : 2:vim-filesystem-7.4.629-5.el6.x86_64                        1/5
==> db12012:
  Updating   : 2:vim-common-7.4.629-5.el6.x86_64                            2/5
==> db12012:
  Updating   : 2:vim-enhanced-7.4.629-5.el6.x86_64                          3/5
==> db12012:
  Cleanup    : 2:vim-enhanced-7.2.411-1.8.el6.x86_64                        4/5
==> db12012:
  Cleanup    : 2:vim-common-7.2.411-1.8.el6.x86_64                          5/5
==> db12012:
  Verifying  : 2:vim-common-7.4.629-5.el6.x86_64                            1/5
==> db12012:
  Verifying  : 2:vim-enhanced-7.4.629-5.el6.x86_64                          2/5
==> db12012:
  Verifying  : 2:vim-filesystem-7.4.629-5.el6.x86_64                        3/5
==> db12012:
  Verifying  : 2:vim-enhanced-7.2.411-1.8.el6.x86_64                        4/5
==> db12012:
  Verifying  : 2:vim-common-7.2.411-1.8.el6.x86_64                          5/5
==> db12012:
==> db12012:
==> db12012: Dependency Installed:
==> db12012:   vim-filesystem.x86_64 2:7.4.629-5.el6
==> db12012:
==> db12012: Updated:
==> db12012:   vim-enhanced.x86_64 2:7.4.629-5.el6
==> db12012:
==> db12012: Dependency Updated:
==> db12012:   vim-common.x86_64 2:7.4.629-5.el6
==> db12012: Complete!
==> db12012: INSTALL TREE
==> db12012: Loaded plugins: fastestmirror, security
==> db12012: Loading mirror speeds from cached hostfile
==> db12012:  * base: centos.excellmedia.net
==> db12012:  * extras: centos.excellmedia.net
==> db12012:  * updates: centos.excellmedia.net
==> db12012: Setting up Install Process
==> db12012: Resolving Dependencies
==> db12012: --> Running transaction check
==> db12012: ---> Package tree.x86_64 0:1.5.3-3.el6 will be installed
==> db12012: --> Finished Dependency Resolution
==> db12012:
==> db12012: Dependencies Resolved
==> db12012:
==> db12012: ================================================================================
==> db12012:  Package         Arch              Version                Repository       Size
==> db12012: ================================================================================
==> db12012: Installing:
==> db12012:  tree            x86_64            1.5.3-3.el6            base             36 k
==> db12012:
==> db12012: Transaction Summary
==> db12012: ================================================================================
==> db12012: Install       1 Package(s)
==> db12012: Total download size: 36 k
==> db12012: Installed size: 65 k
==> db12012: Downloading Packages:
==> db12012: Running rpm_check_debug
==> db12012: Running Transaction Test
==> db12012: Transaction Test Succeeded
==> db12012: Running Transaction
  Installing : tree-1.5.3-3.el6.x86_64                                      1/1
==> db12012:
  Verifying  : tree-1.5.3-3.el6.x86_64                                      1/1
==> db12012:
==> db12012:
==> db12012: Installed:
==> db12012:   tree.x86_64 0:1.5.3-3.el6
==> db12012: Complete!
==> db12012: INSTALL UNZIP
==> db12012: Loaded plugins: fastestmirror, security
==> db12012: Loading mirror speeds from cached hostfile
==> db12012:  * base: centos.excellmedia.net
==> db12012:  * extras: centos.excellmedia.net
==> db12012:  * updates: centos.excellmedia.net
==> db12012: Setting up Install Process
==> db12012: Resolving Dependencies
==> db12012: --> Running transaction check
==> db12012: ---> Package curl.x86_64 0:7.19.7-37.el6_4 will be updated
==> db12012: ---> Package curl.x86_64 0:7.19.7-46.el6 will be an update
==> db12012: --> Processing Dependency: libcurl = 7.19.7-46.el6 for package: curl-7.19.7-46.el6.x86_64
==> db12012: ---> Package unzip.x86_64 0:6.0-1.el6 will be updated
==> db12012: ---> Package unzip.x86_64 0:6.0-2.el6_6 will be an update
==> db12012: ---> Package wget.x86_64 0:1.12-1.8.el6 will be updated
==> db12012: ---> Package wget.x86_64 0:1.12-5.el6_6.1 will be an update
==> db12012: --> Running transaction check
==> db12012: ---> Package libcurl.x86_64 0:7.19.7-37.el6_4 will be updated
==> db12012: ---> Package libcurl.x86_64 0:7.19.7-46.el6 will be an update
==> db12012: --> Finished Dependency Resolution
==> db12012:
==> db12012: Dependencies Resolved
==> db12012:
==> db12012: ================================================================================
==> db12012:  Package          Arch            Version                   Repository     Size
==> db12012: ================================================================================
==> db12012: Updating:
==> db12012:  curl             x86_64          7.19.7-46.el6             base          196 k
==> db12012:  unzip            x86_64          6.0-2.el6_6               base          149 k
==> db12012:  wget             x86_64          1.12-5.el6_6.1            base          483 k
==> db12012: Updating for dependencies:
==> db12012:  libcurl          x86_64          7.19.7-46.el6             base          168 k
==> db12012:
==> db12012: Transaction Summary
==> db12012: ================================================================================
==> db12012: Upgrade       4 Package(s)
==> db12012: Total download size: 997 k
==> db12012: Downloading Packages:
==> db12012: http://centos.excellmedia.net/6.7/os/x86_64/Packages/libcurl-7.19.7-46.el6.x86_64.rpm: [Errno 12] Timeout on http://centos.excellmed
ia.net/6.7/os/x86_64/Packages/libcurl-7.19.7-46.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
==> db12012: Trying other mirror.
==> db12012: --------------------------------------------------------------------------------
==> db12012: Total                                            30 kB/s | 997 kB     00:32
==> db12012: Running rpm_check_debug
==> db12012: Running Transaction Test
==> db12012: Transaction Test Succeeded
==> db12012: Running Transaction
  Updating   : libcurl-7.19.7-46.el6.x86_64                                 1/8
==> db12012:
  Updating   : curl-7.19.7-46.el6.x86_64                                    2/8
==> db12012:
  Updating   : unzip-6.0-2.el6_6.x86_64                                     3/8
==> db12012:
  Updating   : wget-1.12-5.el6_6.1.x86_64                                   4/8
==> db12012:
  Cleanup    : curl-7.19.7-37.el6_4.x86_64                                  5/8
==> db12012:
  Cleanup    : libcurl-7.19.7-37.el6_4.x86_64                               6/8
==> db12012:
  Cleanup    : unzip-6.0-1.el6.x86_64                                       7/8
==> db12012:
  Cleanup    : wget-1.12-1.8.el6.x86_64                                     8/8
==> db12012:
  Verifying  : wget-1.12-5.el6_6.1.x86_64                                   1/8
==> db12012:
  Verifying  : unzip-6.0-2.el6_6.x86_64                                     2/8
==> db12012:
  Verifying  : curl-7.19.7-46.el6.x86_64                                    3/8
==> db12012:
  Verifying  : libcurl-7.19.7-46.el6.x86_64                                 4/8
==> db12012:
  Verifying  : unzip-6.0-1.el6.x86_64                                       5/8
==> db12012:
  Verifying  : curl-7.19.7-37.el6_4.x86_64                                  6/8
==> db12012:
  Verifying  : libcurl-7.19.7-37.el6_4.x86_64                               7/8
==> db12012:
  Verifying  : wget-1.12-1.8.el6.x86_64                                     8/8
==> db12012:
==> db12012:
==> db12012: Updated:
==> db12012:   curl.x86_64 0:7.19.7-46.el6             unzip.x86_64 0:6.0-2.el6_6
==> db12012:   wget.x86_64 0:1.12-5.el6_6.1
==> db12012:
==> db12012: Dependency Updated:
==> db12012:   libcurl.x86_64 0:7.19.7-46.el6
==> db12012: Complete!
==> db12012: Loaded plugins: fastestmirror, security
==> db12012: Loading mirror speeds from cached hostfile
==> db12012:  * base: centos.excellmedia.net
==> db12012:  * extras: centos.excellmedia.net
==> db12012:  * updates: centos.excellmedia.net
==> db12012: Setting up Install Process
==> db12012: Package 4:perl-5.10.1-141.el6.x86_64 already installed and latest version
==> db12012: Nothing to do
==> db12012: INSTALL SYSSTAT
==> db12012: Loaded plugins: fastestmirror, security
==> db12012: Loading mirror speeds from cached hostfile
==> db12012:  * base: centos.excellmedia.net
==> db12012:  * extras: centos.excellmedia.net
==> db12012:  * updates: centos.excellmedia.net
==> db12012: Setting up Install Process
==> db12012: Resolving Dependencies
==> db12012: --> Running transaction check
==> db12012: ---> Package sysstat.x86_64 0:9.0.4-22.el6 will be updated
==> db12012: ---> Package sysstat.x86_64 0:9.0.4-27.el6 will be an update
==> db12012: --> Finished Dependency Resolution
==> db12012:
==> db12012: Dependencies Resolved
==> db12012:
==> db12012: ================================================================================
==> db12012:  Package           Arch             Version                Repository      Size
==> db12012: ================================================================================
==> db12012: Updating:
==> db12012:  sysstat           x86_64           9.0.4-27.el6           base           233 k
==> db12012:
==> db12012: Transaction Summary
==> db12012: ================================================================================
==> db12012: Upgrade       1 Package(s)
==> db12012: Total download size: 233 k
==> db12012: Downloading Packages:
==> db12012: Running rpm_check_debug
==> db12012: Running Transaction Test
==> db12012: Transaction Test Succeeded
==> db12012: Running Transaction
  Updating   : sysstat-9.0.4-27.el6.x86_64                                  1/2
==> db12012:
  Cleanup    : sysstat-9.0.4-22.el6.x86_64                                  2/2
==> db12012:
  Verifying  : sysstat-9.0.4-27.el6.x86_64                                  1/2
==> db12012:
  Verifying  : sysstat-9.0.4-22.el6.x86_64                                  2/2
==> db12012:
==> db12012:
==> db12012: Updated:
==> db12012:   sysstat.x86_64 0:9.0.4-27.el6
==> db12012: Complete!

F:\workspace-wls\ora12base>

Login as root user run root_post_vagrant_build.sh

sudo -i

/vagrant/root_post_vagrant_build.sh

Modify the script for 12.0.2 binaries

The following is db_install.rsp sample file:

 
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME="`hostname`"
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/home/oracle/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_BASE=/u01/app/oracle/
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES

The bash profiles are incompatible if they are opened in the host system (Windows). To work with them we need to use the dos2unix command for all text files. The Oracle database installation files are different name what we had from the github. So change those file name to work.

Edit the /vagrant/oracle_post_vagrant_build.sh script

cat /vagrant/oracle_bash_profile.txt >> ~/.bash_profile
dos2unix ~/.bash_profile
. ~/.bash_profile
cp /vagrant/*database_* /tmp
cd /tmp/
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip
echo " unzip completed..."
cd /tmp/database/
dos2unix /vagrant/db_install.rsp
./runInstaller -noconfig -silent -responseFile /vagrant/db_install.rsp


Create Database using response file

Now we have Oracle database installed ready to create the database. You can specify how you wish to create the database and give access to whom etc in the dbca.rsp response file.
 
 dbca -silent -createDatabase -responseFile  /vagrant/dbca.rsp


Bash profile issues - [SOLVED]


When I've login to vagrant user got the following command not found. After searching many forums, I got an idea check what this file content having there I found that ^M symbols.
 

[vagrant@ora12c66 ~]$ . .bash_profile
: command not found
: command not found
: command not found

The .bash_profile calls .bashrc that is resides in the same home directory only. To resolve this simple command dos2unix converts the ASCII File to Unix format file.
 

[vagrant@ora12c66 ~]$ vim .bashrc
[vagrant@ora12c66 ~]$ dos2unix .bashrc
dos2unix: converting file .bashrc to UNIX format ...
[vagrant@ora12c66 ~]$ . .bashrc
[vagrant@ora12c66 ~]$ . .bash_profile
[vagrant@ora12c66 ~]$


Validating the Oracle Database process running

Regular ps command with grep the 'pmon' that is process monitoring gives positive signs of installation of Oracle 12c.

ps -ef|grep pmon

The next thing you need to know the Oracle Listener working or not. Using netstat command check 1521 port is in the listener list or not. Sad that it is not there. What to do? simple start the listener.
netstat -na|grep 1521
Need to resolve this...

Configuring a Listener

We have Oracle command for configuring a new Listener with netca command. Now lets explore the options for the netca comand with --help command.
[oracle@ora12c66 ~]$ netca --help
Usage: netca [-silent] { }

Perform network configuration by specifying the following arguments:
    [-silent]
        -responsefile ]
        [-local {Perform configuration on only local node}]
    -instype 
        [-listener ]
        [-lisport ]
        [-lps ]
        [-lpe ]
        [-netnum ]
        [-nostartlsnr {Do not start listener}]
    [-crsupgrade {Upgrade default listener from lower version database home to G          rid Infrastructure home (only for RAC)}]
    [-inscomp ]
    [-insprtcl ]
    [-orahome ]
    [-orahnam ]
    [-log ]
    [-h|-help {Print usage}]

Lets build the responsefile as netca.rsp follows:
[GENERAL]
RESPONSEFILE_VERSION="12.1"
CREATE_TYPE="CUSTOM"
SHOW_GUI=false
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}


So using netca command with silent mode option with the responsefile for configuring the network listener:

netca -silent -responsefile /vagrant/netca.rsp
Configure Oracle Listener silent mode

References
  1. Oracle database Silent mode creation sample response file

Write your comments/ valuable suggestions.

waiting.....


Tuesday, September 15, 2015

Integrating Oracle HTTP server with WebLogic 11g/12c


Integrating Oracle HTTP server with WebLogic 11g

This post continues a series of learning OHS 11g installation and configurations. You can visit our previous blog posts for the following steps:

Step 1: Install WebLogic 10.3.6.0 on Vagrant Ubuntu [Done!]

Step 2: Install Oracle HTTP server

Step 3: Edit mod_wl_ohs.conf which is located at /home/pavanbsd/ohs/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1


Here I want to access the WebLogic admin console through OHS server proxy plugin. So I had given Adminserver details in mod_wl_ohs.conf file as shown the below.

LoadModule weblogic_module "${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so"


WebLogicHost myweb1.vybhavatechnologies.com
WebLogicPort 7001


# Admin Server and EM

SetHandler weblogic-handler
WebLogicHost myweb1.vybhavatechnologies.com
WeblogicPort 7001



SetHandler weblogic-handler
WebLogicHost myweb1.vybhavatechnologies.com
WeblogicPort 7001



SetHandler weblogic-handler
WebLogicHost myweb1.vybhavatechnologies.com
WeblogicPort 7001


# Web Application 

SetHandler weblogic-handler
WebLogicCluster myweb1.vybhavatechnologies.com:7011,myweb2.vybhavatechnologies.com:7011




Step 4: Now uncomment the line 
include "/home/pavanbsd/ohs/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/mod_wl_ohs.conf
Modify in httpd.conf file which  is located in same location as mod_wl_ohs.conf file.



Step 5:  At this step we have to start/restart the ohs server.

Go to  /home/pavanbsd/ohs/Middleware/Oracle_WT1/instances/instance1/bin location and execute the below script.  .


./opmnctl startall



 
Step 6: Now We can check the access of WebLogic console through ohs server in firebox.





  I am successfully accessed my WebLogic Console through Ohs server.  In the URL We must give Ohs server host and port .

 http://ohs server ip:ohsport/console

Note: WebLogic server must be in Running state before accessing through Ohs server.

Please share your experiences in below comment box.
 
 


 


Saturday, September 12, 2015

Installing Oracle HTTP server on Ubuntu


Installing Oracle HTTP server on Ubuntu

Step 1: We need to download the Oracle webtier from the following location


Step 2:   The Downloaded zip file need to be extracted.

Step 3:  libaio packages should be installed on ubuntu

Step 4. kernel parameters needs to be updated as below

 Open  vi /etc/sysct.conf  and append the following data at the end of the file


 fs.aio-max-nr=1048576
 fs.file-max=6815744
 kernel.shmall=2097152
 kernel.shmmni=4096
 kernel.sem=250 32000 100 128
 net.ipv4.ip_local_port_range=9000 65500
 net.core.rmem_default=262144
 net.core.rmem_max=4194304
 net.core.wmem_default=262144
 net.core.wmem_max=1048586 
 kernel.shmmax=2147483648 (this is system RAM in bytes)


Step 5: Because Ubuntu is not in the Oracle certification matrix so we can use ignore option as show below:

Run /runInstaller -jreLoc /path/to/jdk -ignoreSysPrereqs from Disk1 folder. And click  on  next.




  

Step 6: Run 
./createCentralInventory.sh  
from orainventory directory as suggested 

in below window after that we  have to  click on ok on below window.


Step 7. Skip software update  and  click  on next

















Step 9:  It  will ask you for new middleware home.



Step 10. We have to select Oracle HTTP server and oracle  webcache
Step 11. Selcet next
Step 12: We have to give webcahce admin  password

Step 13: Select the option with  Auto port configuration


Step 14:  Verify the system requirement and  click  on next.

Step15: Click on next


 Step16. Click on Finish

You can read the
'Successfully' in the message box that concludes over installation of OHS done !!!

Step 17: We can access the OHS server after executing the  ./opmnctl startall script which is located in below location.

 /ohs/Middleware/Oracle_WT1/instances/instance1/bin$ ./opmnctl startall





Please share your experiences in the comment box given below.