building a r12.1.1 sandbox environment using vmware · 2020-06-18 · • vmware server 2.0...

Post on 15-Aug-2020

6 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Building a R12.1.1Sandbox EnvironmentUsing VMWare

Session #4339

James J. MorrowIndependent Consultant

mailto:morrow.james@gmail.com

James Morrow

Oracle Applications DBA

Independent Consultant

15 years as an E-Business Suite DBA

E-Business Suite versions 9.4 through R12

Oracle RDBMS 7.0.16 through 11g

Support Statement (794016.1)“The use of hardware vendors' virtualization technologies to host Oracle E-Business

Suite 11i and R12 follows the same policy as Oracle's policy with regards to customizations - that is, they are 'not explicitly certified, but supported'.

What this means is that while these technologies are not certified with the E-Business Suite, Oracle will not turn away a customer reporting an issue solely due to the use of these technologies. When possible, Oracle will triage and attempt to diagnose the issue reported - Oracle Support may attempt to replicate the issue in a non-virtualized environment and work with the customer to verify if the problem exhibits in such an environment.

Any specific problem isolated to the hardware vendor virtualization technology (i.e. a problem that cannot be reproduced in a standard, non-virtualized environment) will need to be referred to the specific vendor for resolution.”

Why?

• Safe environment• No uptime restrictions• Experiment with new release• Test/Develop procedures• Learn new technologies

Hardware Components

• Motherboard: Asus P6T Deluxe V2• CPU: Intel Core i7 920• HDD: Seagate Barracuda 7200.11

(ST31500341AS) 1.5TB (qty 3)• Memory: 12 GB Total (6 2GB DIMMS)• Case, Power Supply, Video Card, DVD• Does not include keyboard or display• Total $1700.00 (August, 2009)

Host Software

• Ubuntu Linux 9.04 “Jaunty Jackelope” (x86-64)

• VMWare Server 2.0 (x86-64)• VMWare Server License Key (obtain for free

from http://www.vmware.com)

Virtual Machine Software

• Centos 5.3 (x86-32)• Oracle E-Business Suite R12.1.1 (Linux x86-

32)

Install Linux

• Install Ubuntu Linux on physical hardware• Additional packages to support 32-bit

software:• ia32-sun-java6-bin• ia-32libs

Patch and Install VMWare

• https://help.ubuntu.com/community/VMWare/Server

• ./vmware-install.pl

Accept license and defaults

Login to VMWare

http://localhost:8222

Create Virtual Machine

• Main screen

Create Virtual Machine

• Choose a datastore• Guest OS is Other

2.6 Linux (32-bit)

Create Virtual Machine

• 2 CPUs• 2048 MB RAM

Create Virtual Machine

• Main volume 8GB• Will hold 6GB OS

and 2GB Swap• OS Partition could

be as small as 3 to 4 GB

Create Virtual Machine

• Briged – Looks like any other machine on network

• NAT – Private network

• Host Only – Only accessible from the host

Create Virtual Machine

• Add CD/DVD Drive• Use an ISO Image

(point to CentOS installation media)

• Use a Physical Drive (will use the drive in the host)

• Connect at power on = Yes

Create Virtual Machine

• Did not create USB Controller or Floppy Drive

• Created second CD/DVD Drive using physical drive in host (through “More Hardware” link)

Launch Console

• Select VM• Launch Console (it

will want to install a plug-in into your browser)

Install CentOS

• Skip media test• Boot ISO image• Choose languages

Install CentOS

• This will only impact the 8GB virtual disk you created for the VM.

Install CentOS

• Choose “Review and Modify Partitioning Layout” on previous screen

• LogVol00 6016MB• LogVol01 2048MB

Install CentOS

• Accept defaults for boot loader

• Configure the network

• Use DHCP if available

• Define static IPs otherwise

Install CentOS

• Choose timezones and set root password on previous screen

• Select package groups

• Desktop - Gnome• Server• Server - GUI• Customize Now

Install CentOSDesktop Environments GNOMEApplications Editors Graphical Internet Text-based InternetDevelopment Development ToolsServers FTP Server (optional) Legacy Network Server (optional) Network Servers Printing Support Server Configuration Tools Windows File Server (optional)Base System Administration Tools Base Java System Tools X Window SystemClustering (None)Cluster Storage (None)Languages (None)

Install CentOS

• Once the installation is complete it will reboot the VM

Install CentOS

• Turn off Firewall• Turn off SELinux• Turn off Kdump• Set date and time

(use NTP if available)

Install CentOS

• Create a Linux user that is not root

• We will not need a sound card

• We will not need to load software from any additional CDs

• Reboot VM

Configure CentOS (761564.1)

• /etc/sysconfig/network

BEFORE:

HOSTNAME=localhost.localdomain

AFTER:

HOSTNAME=ebiz.morrowclan.local

• /etc/hosts

192.168.77.175 ebiz.morrowclan.local ebiz

192.168.77.63 quattro.morrowclan.local quattro

192.168.77.1 rocky.morrowclan.local rocky

Configure CentOS

• Stage EBS on physical host• Export staging area via NFS• Configure Virtual Machine to NFS Mount

staging area

Configure CentOS (761564.1)compat-glibc-2.3.4-2.26.i386.rpm

compat-glibc-headers-2.3.4-2.26.i386.rpm

compat-libstdc++-296-2.96-138.i386.rpm

compat-libstdc++-33-3.2.3-61.i386.rpm

elfutils-libelf-devel-0.137-3.el5.i386.rpm

elfutils-libelf-devel-static-0.137-3.el5.i386.rpm

gcc-4.1.2-44.el5.i386.rpm

gcc-c++-4.1.2-44.el5.i386.rpm

gdbm-1.8.0-26.2.1.i386.rpm

glibc-2.5-34.i386.rpm

glibc-common-2.5-34.i386.rpm

glibc-devel-2.5-34.i386.rpm

kernel-headers-2.6.18-128.el5.i386.rpm

libaio-0.3.106-3.2.i386.rpm

libaio-devel-0.3.106-3.2.i386.rpm

libgcc-4.1.2-44.el5.i386.rpm

libgomp-4.3.2-7.el5.i386.rpm

libstdc++-4.1.2-44.el5.i386.rpm

libstdc++-devel-4.1.2-44.el5.i386.rpm

libXp-1.0.0-8.1.el5.i386.rpm

make-3.81-3.el5.i386.rpm

openmotif21-2.1.30-11.EL5.i386.rpm

sysstat-7.0.2-3.el5.i386.rpm

unixODBC-2.2.11-7.1.i386.rpm

unixODBC-devel-2.2.11-7.1.i386.rpm

xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm

Configure CentOS (761564.1)

• Kernel Settings /etc/sysctl.conf

#

# Oracle Specific Entries

#

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

kernel.msgmnb = 65536

kernel.sem = 256 32000 100 142

kernel.shmall = 2097152 # minimum values

kernel.shmmax = 2147483648 # minimum values

kernel.shmmni = 4096

kernel.msgmni = 2878

kernel.msgmax = 8192

fs.file-max = 131072

net.ipv4.ip_local_port_range = 10000 65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

Configure CentOS

• Note 784162.1

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

Configure CentOS (761564.1)

/etc/resolv.conf

options attempts:5

options:timeout:15

/etc/hosts

<IP> <hostname>.<domainname> <hostname>

rm /etc/sysconfig/networking/profile/default/network (if exists)

Configure CentOS (761564.1)

/etc/security/limits.conf

* hard nofile 65535

* soft nofile 4096

* hard nproc 16384

* soft nproc 2047

Configure CentOS (761564.1)

• Link Motif Library (differs from doc!)

unlink /usr/lib/libXtst.so.6

ln -s /usr/lib/libXtst.so.6.1 /usr/lib/libXtst.so.6

Configure CentOS (761564.1)

• Create users and groups

groupadd -g 200 dba

useradd -u 3000 -g 200 -c “Oracle Staging Owner” -m -k /etc/skel orastage

useradd -u 3010 -g 200 -c “VIS – Oracle Owner” -m -k /etc/skel oravis

Add Disk to VM

• Shutdown VM • Add a 275GB

Volume from VM Admin Page

• Use “Add Hardware” under “Commands”

Add Disk to VM

• Create new Virtual Disk

Add Disk to VM

• Start the VM• Create Physical Volumepvcreate /dev/sdb

• Add Physical Volume to Volume Groupvgextend VolGroup00 /dev/sdb

• Create Logical Volumelvcreate --extents 100%FREE --name OraVIS \

VolGroup00

Add Disk to VM

• Create Filesystemmkfs -t ext3 /dev/VolGroup00/OraVIS

• Add entry to /etc/fstab/dev/VolGroup00/OraVIS /oravis ext3 defaults 1 2

• Mountmkdir /oravis

mount /oravis

chown -R oravis:dba /oravis

Install E-Business Suite

• Reboot VM• Login as oravis

Install E-Business Suite

• Launch RapidWiz

Install E-Business Suite

• Use Express Install• Update Base

Directory

Install E-Business Suite

• Pre-installation Checks passed!

Install E-Business Suite

• Success!

Thank You!

Building a R12.1.1

Sandbox Environment

Using VMWareSession #4339

James J. Morrow

Independent Consultant

morrow.james@gmail.com

top related