ASTCORPORATION RECOGNIZED. SPECIALIZED. PREFERRED. RAC Thinking Outside The Virtual Box Mohamed Sadek AST Corporation March 12, 2015
Aug 14, 2015
ASTCORPORATION
RECOGNIZED.SPECIALIZED. PREFERRED.
RACThinking Outside The Virtual BoxMohamed Sadek AST CorporationMarch 12, 2015
2
Specialized. Recognized. Preferred.
3 Time Oracle ExcellenceAward Winner
2014 Chicago TribuneTop 100 Workplaces
2012, 2013, 2014 Inc. 5000 Fastest Growing Companies
2012 Best & Brightest Companies to Work For
2011 Inc. Top Small Company Workplaces
OUR SERVICES ORACLE PARTNERSHIP ORACLE SPECIALIZED
Enterprise Resource Planning Business Intelligence EPM-Hyperion Middleware CRM Managed Services Education / Oracle University Project Advisory Services
Oracle Platinum Partner Pillar Partner
• SOA• Business Intelligence• Hyperion
Oracle University Approved Education Center Oracle University Reseller Oracle Accelerator Implementer Oracle Managed Cloud Services Implementer Oracle Cloud Marketplace Small Business Strategy Council
EBS Financial Management EBS Human Capital Management EBS Supply Chain Management BI Applications BI Foundation Service Oriented Architecture Public Sector Utilities
Education & Research Application Development
Framework 11g WebCenter Content 11g Access Management Suite Plus 11g Hyperion Planning 11 Database 11g Hyperion Financial Management 11
3
Introduction• Few Things to Consider
Download Software Virtual Box Installation & Setup Operating System Installation
• Preparing Environmento Oracle Prerequisites
Network Setup Create Shared Disks Cloning Process Second Node First Installing Grid Infrastructure on Both Nodes Testing Grid Infrastructure – CRSCRTL command Finally Installing Database on Both Nodes Testing Grid Infrastructure – SRVCTL command Patching & Upgrading Database Check the status of RAC system Question’s and Answer’s
Introduction / Agenda
4
One of the biggest obstacles preventing people from setting up RAC environments is the requirement for shared storage. In a production environment, shared storage is often provided by a SAN or high-end NAS device, but both of these options are very expensive.
Running today’s non-critical business applications in virtualized environments has shown to be efficient and cost saving. More sophisticated or highly available applications on the other hand were most likely incompatible with commonly used software based virtualization solutions.
Installing RAC system always was time consuming and hectic for a DBA, In a production environment average time for completion is 12 – 18 hours of continuous work and observation of the process.
Estimated time in out example in a Non-Production environment is 4 hours.
Introduction
5
The combination of Oracle VBox and Oracle RAC enables a better server consolidation (RAC databases with underutilized CPU resources or peaky CPU utilization can often benefit from consolidation with other workloads using server virtualization) sub-capacity licensing, and rapid provisioning.
RAC on Ovbox also supports the creation of non-production virtual clusters on a single physical server for product demos, educational settings and test environments. This deployment combination permits dynamic changes to pre-configured database resources for agile responses to changing service level requirements common in consolidated environments.
Introduction
6
The finished system includes the host operating system, two guest operating systems, two sets of Oracle Grid Infrastructure (Cluster ware + ASM) and two Database instances all on a single server. As you can imagine, this requires a significant amount of disk space, CPU and memory.
Following on from the last point, the VMs will each need at least 3G of RAM, preferably 4G if you don't want the VMs to swap like crazy. As you can see, 11gR2 RAC requires much more memory than 11gR1 RAC.
This procedure provides a bare bones installation to get the RAC working. There is no redundancy in the Grid Infrastructure installation or the ASM installation. To add this, simply create double the amount of shared disks and select the "Normal" redundancy option when it is offered. Of course, this will take more disk space.
Introduction – Few Things to Consider
7
The Single Client Access Name (SCAN) should be defined in the DNS or GNS and round-robin between one of 3 addresses, which are on the same subnet as the public and virtual IPs. Prior to 11.2.0.2 it could be defined as a single IP address in the "/etc/hosts" file, which is wrong and will cause the cluster verification to fail.
The virtual machines can be limited to of swap, which causes a prerequisite check failure, but doesn't prevent the installation working. If you want to avoid this add 4+ Giga.
This article uses the 64-bit versions of Oracle Linux, Oracle 11g Release 2, Grid Infrastructure 11gR2.
Introduction – Few Things to Consider
8
Introduction – Few Things to Consider
9
Database 11gR2 11.2.0.3 Software www.oracle.com/technetwork/database/enterprise-edition/downloads / Database
Grid Infrastructure 11gR2www.oracle.com/technetwork/database/database-
technologies/clusterware/downloads / Grid Infrastructure Virtual Box
www.oracle.com/technetwork/server-storage/virtualbox/downloads linux 64-bit Linux 6.3 86x-64x bitedelivery.oracle.com/EPD
Software Download
10
Now we must define the two virtual RAC nodes. We can save time by defining one VM, then cloning it when it is installed.
Virtual Box Installation & Setup
11
Virtual Box Installation & Setup
12
Virtual Box Installation & Setup
13
Operating System Installation
14
Preparing Environment• Oracle Prerequisites-Oracle recommend using oracle-rdbms-server-11gR2-preinstall RPM, it will install all the prerequisites required for oracle database and grid infrastructure.-Oracle recommend updating YUM for additional packages and security patches.-Patching & Upgrading DB 11.2.0.3 to 11.2.0.4, latest security patch also recommend after installation is complete.-We need to define Oracle user and Grid user in the same group.-We need create SAN storage , using Open filler(open source) but you can use Virtual Box media to create them depending on your need and requirement.
Operating System Installation
15
If you are not using DNS, the "/etc/hosts" file must contain all the information necessary for both nodes and the san storage plus the public and private addresses.
Even with the SCAN address defined in the hosts file, it still needs to be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPS.
Network Setup
16
Shutdown Node 1 for Preparing the shared disks. On the host server, create 4 sharable virtual disks and
associate them as virtual media using the following commands. You can pick a different location, but make sure they are outside the existing VM directory.
-VBoxManage createhd --filename asm1.vdi --size 5120 --format VDI --variant Fixed.
-VBoxManage storage attach rac1 --storagectl "SATA" --port 1 --device 0 --type hdd \
--medium asm1.vdi --mtype shareable. -VBoxManage modifyhd asm1.vdi --type shareable.
Creating Shared Disk
17
Cloning Node 1 -Shutdown Node 1 Using command line -VBoxManage clonehd /u01/VirtualBox/rac1/rac1.vdi
/u03/VirtualBox/rac2/rac2.vdi. Attach the shared disks -VBoxManage storage attach rac2 --storagectl "SATA" --port 1 --
device 0 --type hdd \ --medium asm1.vdi --mtype shareable Changing the IP address for Node 2 and Host Name Ping Node 1 and Node 2 to check connectivity. Configure SSH connectivity between nodes using SSH utility that
comes with oracle Grid Infrastructure software. Run runcluvfy.sh utility for RAC verification recommended by Oracle.
Cloning Process Second Node
18
Now ready for installing Grid:
First Installing Grid Infrastructure
19
First Installing Grid Infrastructure
20
Done
First Installing Grid Infrastructure
21
Invoking the command CRSCTL : ./crsctl check cluster –all**************************************************************ol6-112-rac1:CRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online**************************************************************ol6-112-rac2:CRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online
Testing Grid Environment
22
Now ready for installing RAC database
Finally Installing Database
23
Finally Installing Database
24
Done
Finally Installing Database
25
Testing Grid Environment Invoking Command SRVCTL : - srvctl config database -d databaseDatabase unique name: RACDatabase name: RACOracle home: /u01/app/oracle/product/11.2.0.3/db_1Oracle user: oracleSpfile: +DATA/RAC/spfileRAC.oraDomain: localdomainStart options: openStop options: immediateDatabase role: PRIMARYManagement policy: AUTOMATICServer pools: RACDatabase instances: RAC2,RAC1Disk Groups: DATAType: RACDatabase is administrator managed
26
Upgrading DB 11gR2 11.2.0.3 to 11.2.0.4 Patching 11.2.0.4 with the latest PSU
patches January 2015.
Patching & Upgrading Database
27
Question & Answer
28
CONTACTUS.WHERE WE ARE & HOW TO CONTACT US
WWW.ASTCORPORATION.COMOUR WEBSITE
E-MAIL ADDRESS
(888) 278-0002TELEPHONE #