Installing Oracle Linux Server 7.3 using VirtualBox

This article describes the steps to install Oracle Linux 7.3 x86_64 on an Oracle VirtualBox 5.1 virtual machine.

 

  1. Creating a Virtual Machine

 Memory: 4GB

 Hard Disk: 80GB
  1. Installing Oracle Linux 7.3

  • Configure Network and Host Name
  • Configure Installation Destination

Create partitions as:

Mount point Partition Size File System
/boot /dev/sda1 1 GB xfs
swap /dev/sda2 16 GB swap
/ /dev/sda3 63 GB xfs
  • Configure Software Selection
 Minimal Install (Default)
  • Begin Installation, set root password, complete installation and reboot.

3         Post-installation of Oracle Linux

3.1         Disable Firewall

# systemctl status firewalld

# systemctl stop firewalld

# systemctl disable firewalld

# systemctl status firewalld

3.2         Network Configuration

  • Network Configuration tool
# nmtui
  • Check hostname
# hostname

# hostnamectl status
  • Set hostname
# hostnamectl set-hostname new_host_name
  • Network configuration files
/etc/hosts

/etc/hostname

/etc/sysconfig/network-scripts/ifcfg-*

/etc/resolv.conf

3.3         NTP Configuration

chrony is the default package in Oracle Linux 7.

Review /etc/chrony.conf and enable NTP:

# systemctl status chronyd

# systemctl start chronyd

# systemctl enable chronyd
  1. Installing VirtualBox guest additions

To share a folder from host machine with the Oracle Linux guest, the VirtualBox Guest Additions is needed to be installed in the guest.

Navigate to VirtualBox menu:  Virtual box menu -> Devices -> Insert Guest Additions CD image

# mkdir /media/cdrom

# mount /dev/sr0 /media/cdrom

# yum install bzip2

# yum install kernel-uek-devel-`uname -r`

# export KERN_DIR=/usr/src/kernels/`uname -r`

# /media/cdrom/VBoxLinuxAdditions.run

# reboot

 

Add user to vboxsf user group, in order to use a shared folder:

# usermod -aG vboxsf oracle

 

Let’s play:

Installing Oracle E-Business Suite 12.2.5 on Oracle Linux 7.2

This article describes the steps to install Oracle E-business Suite 12.2.5 single node Vision instance on an Oracle Linux 7.2 server using VirtualBox 5.1.

1.Download EBS 12.2.5 installation media

All the files are available to download from https://edelivery.oracle.com

PRODUCT PLATFORM PACKAGE
 Oracle E-Business Suite 12.2.5 Linux x86-64 V100052-01_1of3.zip
    V100052-01_2of3.zip
    V100052-01_3of3.zip
    V100053-01_1of2.zip
    V100053-01_2of2.zip
    V100054-01.zip
    V100055-01.zip
    V100056-01.zip
    V100057-01.zip
    V100058-01.zip
    V100059-01_1of2.zip
    V100059-01_2of2.zip
    V100060-01_1of3.zip
    V100060-01_2of3.zip
    V100060-01_3of3.zip
    V100061-01.zip
    V100102-01.zip
 Oracle E-Business Suite 12.2.0 Linux x86-64 V35802-01.zip
    V35803-01_1of3.zip
    V35803-01_2of3.zip
    V35803-01_3of3.zip
    V35804-01_1of2.zip
    V35804-01_2of2.zip
Oracle Database 12.1.0.2.0 Linux x86-64 V46095-01_1of2.zip
    V46095-01_2of2.zip
 Oracle Web Tier 11.1.1.9.0 Linux x86-64 V75792-01.zip
Oracle WebLogic Server 10.3.6.0.0 Linux x86-64 V29856-01.zip
2.Virtual Machine configuration

Memory: 8GB

Hard Disk: 40GB + 300GB

Network: Bridged Adapter

3.Installing Oracle Linux 7.2

  • Configure Network and Host Name
  • Configure Installation Destination

      Create partition as:

Mount point Partition Size File System
/boot /dev/sda1 500 MB xfs
swap /dev/sda2 16 GB swap
/ /dev/sda3 23 GB xfs
/u01 /dev/sdb 300GB xfs
4.Installing VirtualBox guest additions

To share a folder from host machine with the Oracle Linux guest, the VirtualBox Guest Additions is needed to be installed in the guest.

Navigate to VirtualBox menu:  Virtual box menu -> Devices -> Insert Guest Additions CD image

# mkdir /media/cdrom

# mount /dev/sr0 /media/cdrom

# yum install bzip2

# yum install kernel-uek-devel-`uname -r`

# export KERN_DIR=/usr/src/kernels/`uname -r`

# /media/cdrom/VBoxLinuxAdditions.run

# usermod -aG vboxsf oracle

# reboot  

5.Post-installation of Oracle Linux

  • Disable Firewall

    # systemctl status firewalld

    # systemctl disable firewalld

    # systemctl stop firewalld

    # systemctl status firewalld

  • Install E-Business Suite Pre-Install RPM

    Edit /etc/yum.repos.d/public-yum-ol7.repo, Change the field ‘enabled=0’ to ‘enabled=1’ for the repositories[ol7_addons].

    # yum install oracle-ebs-server-R12-preinstall

    Set password for user oracle:

    # passwd oracle

  • Verifying network settings

    Verify that the /etc/hosts file is formatted as follows:

    127.0.0.1 localhost.localdomain localhost

    192.168.1.19 ebs.local ebs

    Verify that the /etc/sysconfig/network file is formatted as follows:

    #HOSTNAME=[node_name].[domain_name]

    HOSTNAME=ebs.local

  • Verifying oraInst.loc 

    # vi /etc/oraInst.loc

    inventory_loc=/u01/oracle/oraInventory

    inst_group=oinstall

  • Creating folders

    # mkdir /u01/oracle

    # chown oracle.oinstall /u01/oracle

    # su – oracle

    $ mkdir -p /u01/oracle/oraInventory

    $ mkdir -p /u01/oracle/VIS 

6.Build Stage Area

Make a shared folder between host and guest VM, assume the folder including the downloaded files on Oracle Linux is: /media/sf_ebs/ebs12.2.5

$ cd /media/sf_ebs/StageR122/

$ unzip ‘/media/sf_ebs/ebs12.2.5/V100052-01*.zip’

$ cd startCD/Disk1/rapidwiz/bin

$ buildStage.sh

The stage area folder is: /media/sf_ebs/StageR122

7.Install ebs 12.2.5

$ cd /media/sf_ebs/StageR122/startCD/Disk1/rapidwiz

$ ./rapidwiz

Cleanup and run rapidwiz again in case of failure:

rm -rf /tmp/OraInstall*

rm -rf /u01/oracle/oraInventory

rm -rf /u01/oracle/VIS/*

8.Start & stop scripts

  $ vi ~/start_ebs.sh

#!/bin/bash

##

## Database Tier

#

#Set env

. /u01/oracle/VIS/12.1.0/VIS_ebs.env

#

#Start database

sqlplus / as sysdba <<EOF

startup

exit

EOF

#

#Start Listener

lsnrctl start VIS

##

## Application Tier

cd /u01/oracle/VIS/fs1/inst/apps/VIS_ebs/admin/scripts/

./adstrtal.sh apps/apps <<EOF

oracle123

EOF

 $ vi ~/stop_ebs.sh

#!/bin/bash

##

## Application Tier

cd /u01/oracle/VIS/fs1/inst/apps/VIS_ebs/admin/scripts/

./adstpall.sh apps/apps <<EOF

oracle123

EOF

##

## Database Tier

#Set env

. /u01/oracle/VIS/12.1.0/VIS_ebs.env

#

#Stop database

sqlplus / as sysdba <<EOF

shutdown immediate

exit

EOF

#

#Stop Listener

lsnrctl stop VIS

$ chmod +x ~/st*_ebs.sh

9.Test

From a client, open URL: http://ebs.local:8000/OA_HTML/AppsLogin

Login as: SYSADMIN/SYSADMIN