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

46
Building a R12.1.1 Sandbox Environment Using VMWare Session #4339 James J. Morrow Independent Consultant mailto:[email protected]

Upload: others

Post on 15-Aug-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Building a R12.1.1Sandbox EnvironmentUsing VMWare

Session #4339

James J. MorrowIndependent Consultant

mailto:[email protected]

Page 2: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 3: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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.”

Page 4: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Why?

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

Page 5: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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)

Page 6: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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)

Page 7: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Virtual Machine Software

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

32)

Page 8: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install Linux

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

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

Page 9: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Patch and Install VMWare

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

• ./vmware-install.pl

Accept license and defaults

Page 10: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Login to VMWare

http://localhost:8222

Page 11: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Create Virtual Machine

• Main screen

Page 12: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Create Virtual Machine

• Choose a datastore• Guest OS is Other

2.6 Linux (32-bit)

Page 13: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Create Virtual Machine

• 2 CPUs• 2048 MB RAM

Page 14: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Create Virtual Machine

• Main volume 8GB• Will hold 6GB OS

and 2GB Swap• OS Partition could

be as small as 3 to 4 GB

Page 15: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Create Virtual Machine

• Briged – Looks like any other machine on network

• NAT – Private network

• Host Only – Only accessible from the host

Page 16: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 17: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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)

Page 18: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Launch Console

• Select VM• Launch Console (it

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

Page 19: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

• Skip media test• Boot ISO image• Choose languages

Page 20: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

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

Page 21: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

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

• LogVol00 6016MB• LogVol01 2048MB

Page 22: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

• Accept defaults for boot loader

• Configure the network

• Use DHCP if available

• Define static IPs otherwise

Page 23: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

• Choose timezones and set root password on previous screen

• Select package groups

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

Page 24: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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)

Page 25: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

• Once the installation is complete it will reboot the VM

Page 26: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install CentOS

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

(use NTP if available)

Page 27: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 28: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 29: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Configure CentOS

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

staging area

Page 30: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 31: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 32: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Configure CentOS

• Note 784162.1

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

Page 33: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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)

Page 34: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Configure CentOS (761564.1)

/etc/security/limits.conf

* hard nofile 65535

* soft nofile 4096

* hard nproc 16384

* soft nproc 2047

Page 35: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 36: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 37: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Add Disk to VM

• Shutdown VM • Add a 275GB

Volume from VM Admin Page

• Use “Add Hardware” under “Commands”

Page 38: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Add Disk to VM

• Create new Virtual Disk

Page 39: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 40: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

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

Page 41: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install E-Business Suite

• Reboot VM• Login as oravis

Page 42: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install E-Business Suite

• Launch RapidWiz

Page 43: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install E-Business Suite

• Use Express Install• Update Base

Directory

Page 44: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install E-Business Suite

• Pre-installation Checks passed!

Page 45: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Install E-Business Suite

• Success!

Page 46: Building a R12.1.1 Sandbox Environment Using VMWare · 2020-06-18 · • VMWare Server 2.0 (x86-64) • VMWare Server License Key ... • Install Ubuntu Linux on physical hardware

Thank You!

Building a R12.1.1

Sandbox Environment

Using VMWareSession #4339

James J. Morrow

Independent Consultant

[email protected]