Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01
Tried to install Oracle 12c 2-node RAC for testing purpose but due to low Hardware configuration, ended up with Single Node RAC. I got lot of issues during Installation and tried to resolve them with my best knowledge. Please find below installation steps and troubleshooting.
Main issues started from Step90. you can go through quickly.
Requirements
Most of the
times, bridge option in VMWARE will not connect with host machine.
I tried below option to use internet connection from host machine.
We need to cross verify vmnet8 is NAT or not.
Installation Steps
Step1 launch VMware and click on New Virtual Machine
Step2 select OEL iso Image
Step3 Provide New Virtual Machine Name
Step4 Provide HDD size and select single virtual disk.
Step5 Select host setting for monitor and Network as NAT
Step6 New Virtual Machine is ready for launch.
Step7 OEL Installation starts automatically. Press Enter
Step8 Skip Disk Checking
Step9 Click Next
Step10 Select language and Click Next
Setp11 Select keyboard
Setp12 Select Basic Storage
Step13 Select Discard any Data
Step14 Provide host-name with domain and Click Next
Step15 select Time based on Location and Click Next
Step16 Provide Password for Root and click Next
Step 17 Select Create Custom Layout and Click Next
Step18 Select SDA and click on Create button
Step19 create / ( root ), /boot, SWAP, and /opt for Oracle binaries. Click Next
Step20 Click Format
Step21 Click on write changes to disk
Step22 Click Next ( it will default select / ( root )
Step23 Select Database Server, Customize Now and Click Next
Step24 Select necessary options in Base System
Step25 Uncheck MYSQL and PostgreSQL because we will be installing Oracle 12c.
Step26 select all options in Desktop except KDE Desktop. gnome desktop is enough. Click next
Step27 Packages Installations start automatically
Step28 Click Reboot
Step29 Click Forward
Step30 check on accepting License agreement and click Forward
Step31 Check on register later time
Step32 click on Connect later and Click Forward
Step33 Click on Forward
Step34 Select Date and Time . Click Forward
Step35 click ok
Step36 Click Finish
Step37 Install VMware Tools
Step38 Open vmware tool in Archive Manager
Step39 Extract file to Folder.
Step40 Install vmware tool
Step41 Enable Shared Folder between Host and vmware
Step42 After restart OEL, install kmod-oracleasm package. By default yum is configured.
Note Make Sure internet is access inside virtual machine.
Step43 Sometimes yum will be running in back-end. Before installing any package just crosscheck yum process is running or not. If needed you can kill yum running process
Step44 Install oracleasm-support using yum
Step45 Install oracleasmlib rpm manually
Step46 create groups and user and change pasword for user
Step47 Configure Oracelasm
Step48 After shutdown virtual machine, Add extra HDD for DB.
Step49 Select new virtual disk
Step50 Format and Partition newly added HDD. fdisk -l to list disks.
Step51 Install packages related to bind* for DNS configuration
Step52 Configure DNS
Step53 create forward.localdomain file with below entries
Step54 create reverse.localdomain file with below entries
Step55 Change group from root to named for reverse and forward files
Step56 make sure named.conf file should have named_conf_t
Step57 checking forward and reverse
Step58 Start named service
Step59 update nameserver in /etc/resolv.conf
Step60 test named configuration using dig tool
Step61 Test DNS using nslookup tool
Step62 update rotate timeout and attempts in /etc/resolv.conf
Step63 Change permission for /etc/resolv.conf
Step64 Update /etc/hosts file.
Step65 Install oracle-rdbms-server-12cR1-preinstall using yum tool
Step66 Change owner,group and read/write permissions
Step67 Disable selinux
Step68 Update Kernel Parameters and cross validate.
Step69 Update User limits
Step70 stop and disable iptables
Step71 Change NTP configurations
Step72 After restart virtual machine, Add network card for private address
Step72 After starting virtual machine, validate oracleasm configuration
Step73 Start oracleasm
Step74 createdisk in ASM
Step75 Add disk for DB data in different folder
Step76 Copy RAC1 virtual machine to RAC2 folder.
Step77 start RAC2 virtual machine
Step78 Click on "I copied it"
Step79 Change Hostname
Step80 Update ipaddress manually
Step81 remove ASM disk and once again add same disk with below option "Use an existing virtual disk"
Step82 By default VMware player will not support disk sharing, so we need to add below parameters in virtual configuration for RAC1 and RAC2
Step83 Unzip oracle grid software
Step84 make ssh password less between RAC1 and RAC2
Step85 testing ssh password less or not
Step86 Run runcluvfy script for pre installation
Step87 Install cvudisk in RAC1 and RAC2
Step88 set GUI enable in root and oracle user and don't close terminal until installation finish
Step89 Start installing Grid
Below not able to see next button because of small screen resolution
Step90 Faced problem in extending screen resolution, so below options tried.
1. right click on vmware player properties and enable scaling override for system (enchanced )
2. change screen resolution inside virtual machine
Step91 re-started grid installation
1. vip ipaddress is not identified because last number is more than 400, so changed and added vip ipaddress in /etc/hosts and dns configurations
continue grid installation
2. changed private ipaddress and subnet ( less than 300 ), as installation is not accepting same public subnet and ipaddrress more than 300
Continue grid installation
ASM disks are not visible then created once again
got insufficient space error. it requires minimum 38,844 MB space.
Step92 Added additional 60GB to vmware
mount points were changed
formatted new added disk
Mount points still not changed
Set same order for RAC2 machine also
created asmdisks
cross validated asmdisks in RAC2 machine
Step93 re-started grid installation
select asmdisks ( now both disks are more than 40GB )
provide passwords for SYS and ASMSNMP users
we are not enabling IPMI
we are not configuring Enterprise Manager
select groups
select oracle base path
click yes
provide orainventory path
provide root password so that root scripts automatically executed and click next
check per-requistics errors
increased /dev/shm size. update /etc/fstab file
re-mount /dev/shm
ignored ASM errors , they are related with group names
NTP is disabled
ignored remaining errors
click YES
Click Install
Click yes
root.sh script failed
Executed root.sh script manually
Failed root.sh script execution manually also
Increased /dev/shm and physical memory
Restarted Grid installation
Executed root.sh script successfully
Container database creation failed for grid
Copy dbca silent installation command from log file for grid container DB
Got pop-up that host machine is running out of space
Cleared some space
Installation is continuing
Creating Container DB for grid ignored and GIMR configuration failed
Checked logs and it showing Grid Infrastructure Management Repository not running in the cluster
because MGMTDB is not created, So ignored error
Oracle Cluster verification post failed
After checking logs, noticed olcvfy is not able to get vip ipaddress information
Ignored Oracle Cluster Verification Utility
Grid Installation completed only on RAC1 ( RAC2 ignored )
Stopped Cluster and restarted RAC1 virtual Machine.
Started RAC1 Virtual Machine. Checked Cluster up and running
Grid Container DB installation successfully completed in silent mode using dbca
Checked MGMTDB configuration
Step94 checking Cluster Status
Step95 Checking Host Memory Consumption
Step96 Increased RAC1 memory to 3GB
Step97 Added two more disks for database data purpose
Formatted new added disks
Added formatted disks to OracleASM
Step98 Started Database Installation
Click Next
Click YES and click next
Select " Create and configure a database " and click next
select server class and click next
select RAC database installation and click next
select Admin Managed and click next
Click Next
Select Advanced install and Click Next
Select Enterprise Edition and Click Next
Provide Oracle base, Home path and Click Next
Select General/transaction Processing and Click Next
Provide Container, pluggable DB names and Click Next
Click Next
Select ASM and Click Next
Click Next
Select Recovery, ASM and Click Next
create diskgroups in ASM
Click on diskgroups
select 1 disk for Data and Click OK
select 1 disk for FRA and Click OK
Click Exit
Click Refresh and New diskgroups will appear in screen.
Select diskgroup and click next
Select diskgroup and click next
Comments
Post a Comment