Quickly deploy an Oracle RAC environment using an Oracle VM Template

Source: Internet
Author: User

Quickly deploy an Oracle RAC environment using an Oracle VM Template

Oracle VM templates are pre-packaged and pre-configured virtual machines. In the communication between enterprise-level customers, I often use "simple, fast, and error-free" to deploy applications using Oracle VM templates. The Oracle VM template saves customers several days to weeks of configuration time, which can truly help customers quickly deploy and launch applications. Oracle provides a tool named Deploycluster to quickly deploy the Oracle Database template in the Oracle VM environment. Deploycluster can be used to deploy a single-instance Oracle Database and a multi-node Oracle RAC environment.

Oracle 11g installation manual on RedHat Linux 5.8 _ x64 Platform

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

There are two deployment methods to quickly deploy the Oracle RAC environment using the Oracle VM template:

  • Production-Supported: where the shared disk is configured as physical devices passed through to the guest Oracle VMs.
  • Test-Unsupported (not officially supported): where the shared disk is configured as virtual devices

Next I will talk about how to quickly deploy the Oracle RAC environment. Due to the limited lab environment, my deployment method is between the two: no physical hard disk is directly used, however, two Oracle VM servers are used to run RAC instances. The specific process is as follows:

1. Check the necessary software conditions for the Deploycluster tool:

[root@ovm199 ~]# python -V
Python 2.6.6

[root@ovm199 ~]# java -version
java version “1.7.0_45″
OpenJDK Runtime Environment (rhel-2.4.3.3.0.1.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

[root@ovm199 ~]# rpm -qa | grep bc

bc-1.06.95-1.el6.x86_64

2. log on to the Oracle VM Manager and perform the following operations:

  • Import the downloaded DBRAC Template
  • Modify the basic configurations of the imported template (CPU, memory, and network)
  • Create five shared ASM Virtual Disks
  • Clone two VMS at a time using the imported Template
  • Add five shared ASM disks to two VMS respectively.

3. decompress the Deploycluster Tool

[root@ovm199 ~]# unzip DBRACOVM-Deploycluster-tool.zip

4. Create the netconfig. ini file.

[root@ovm199 deploycluster]# cat netconfig.ini
# Node specific information
NODE1=racnode1
NODE1IP=192.168.1.231
NODE1PRIV=racnode1-priv
NODE1PRIVIP=10.10.10.231
NODE1VIP=racnode1-vip
NODE1VIPIP=192.168.1.233
NODE2=racnode2
NODE2IP=192.168.1.232
NODE2PRIV=racnode2-priv
NODE2PRIVIP=10.10.10.232
NODE2VIP=racnode2-vip
NODE2VIPIP=192.168.1.234

# Common data
PUBADAP=eth0
PUBMASK=255.255.255.0
PUBGW=192.168.1.1
PRIVADAP=eth1
PRIVMASK=255.255.255.0
RACCLUSTERNAME=crs64bitR2
DOMAINNAME=localdomain # May be blank
DNSIP= # Starting from 2013 Templates allows multi value
# 11gR2 specific data
SCANNAME=racnode1-racnode2-scan
SCANIP=192.168.1.235

5. Run the Deploycluster Tool

[root@ovm199 deploycluster]# ./deploycluster.py -u admin -p OracleVM326 -M racnode.0,racnode.1 -N netconfig.ini
Oracle DB/RAC OneCommand (v2.0.3) for Oracle VM – deploy cluster – (c) 2011-2013 Oracle Corporation
(com: 28700:v2.0.2, lib: 180072:v2.0.3, var: 1500:v2.0.3) – v2.6.6 – ovm199.example.com (x86_64)
Invoked as root at Wed Apr 16 15:01:16 2014 (size: 45500, mtime: Wed Jul 31 07:55:37 2013)
Using: ./deploycluster.py -u admin -p **** -M racnode.0,racnode.1 -N netconfig.ini

INFO: Attempting to connect to Oracle VM Manager…

INFO: Oracle VM Client (3.2.4.524) protocol (1.9) CONNECTED (tcp) to
Oracle VM Manager (3.2.6.726) protocol (1.9) IP (192.168.1.199) UUID (0004fb00000100003dd9272e9d3d3ba2)

INFO: Inspecting /root/deploycluster/netconfig.ini for number of nodes defined…
INFO: Detected 2 nodes in: /root/deploycluster/netconfig.ini

INFO: Located a total of (2) VMs;
2 VMs with a simple name of: ['racnode.0', 'racnode.1']

INFO: Detected a RAC deployment…
INFO: Starting all (2) VMs…
INFO: VM with a simple name of “racnode.0″ is in a Stopped state, attempting to start it….OK.
INFO: VM with a simple name of “racnode.1″ is in a Stopped state, attempting to start it….OK.

INFO: Verifying that all (2) VMs are in Running state and pass prerequisite checks…..
INFO: Detected that all (2) VMs specified on command line have (5) common shared disks between them (ASM_MIN_DISKS=5)
INFO: The (2) VMs passed basic sanity checks and in Running state, sending cluster details as follows:
netconfig.ini (Network setup): /root/deploycluster/netconfig.ini
buildcluster: yes

INFO: Starting to send configuration details to all (2) VM(s)…..
INFO: Sending to VM with a simple name of “racnode.0″….
INFO: Sending to VM with a simple name of “racnode.1″……

INFO: Configuration details sent to (2) VMs…
Check log (default location /u01/racovm/buildcluster.log) on build VM (racnode.0)…

INFO: deploycluster.py completed successfully at 15:01:34 in 18.7 seconds (0h:00m:18s)
Logfile at: /root/deploycluster/deploycluster2.log

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.