Knowledge Base

How to deploy Oracle 11gR2 on RHEL6/Oracle Linux 6


Dell PowerEdge Systems Oracle 11g R2 Database on Enterprise Linux 6 x86_64

Getting Started Guide

Downloadable Version:

For the downloadable version please visit: http://en.community.dell.com/techcenter/enterprise-solutions/m/oracle_db_gallery/20212999.aspx


Notes and Cautions

NOTE: A NOTE indicates important information that helps you make better use of your computer.
CAUTION: A CAUTION indicates potential damage to hardware or loss of data if instructions are not followed.
Contents

Overview

This document applies to Oracle Database 11g R2 running on Red Hat Enterprise Linux 6.x AS x86_64 or Oracle Enterprise Linux 6.x AS x86_64.

***The deployment tar's discussed in this deployment guide, will be made available by October 31st 2012***

[top]


Software and Hardware Requirements

Hardware Requirements

  • Oracle requires 1.5 gigabytes (GB) of physical memory.
  • Swap space is proportional to the amount of RAM allocated to the system.
    RAM Swap Space
    Up to 2GB 1.5 times the size of RAM
    Up to 16GB Equal the size of RAM
    16GB or more 16GB

Table 1: Harware Requirement

  • Oracle's temporary space (/tmp) must be at least 1 GB in size.
  • A monitor that supports resolution of 1024 x 768 to correctly display the Oracle Universal Installer (OUI)
  • For Dell supported hardware configurations, see the Software Deliverable List (SDL) for each Dell Validated Component at Dell's Current Release Page.
The following table describes the disk space required for an Oracle installation:
Table 1-1 Minimum Disk Space Requirements
Software Installation Location Size Required
Grid Infrastructure home
Oracle Database home
4.5 GB Space
4 GB of Space
Shared storage disk space Sizes of database and Flashback Recovery Area
Table 2: Minimum disk space RequrementMinimum Disk Space Requirements

[top]


Network Requirements

  • It is recommended that you ensure each node contains at least three network interface cards (NICs). One NIC for public network and two NICs for private network to ensure high availability of the Oracle RAC cluster.
  • Public and private interface names are must be the same on all nodes. For example, if em1 is used as the public interface on node one, all other nodes require em1 as the public interface.
  • All public interfaces for each node should be able to communicate with all nodes within the cluster.
  • All private interfaces for each node should be able to communicate with all nodes within the cluster.
  • The hostname of each node must follow the RFC 952 standard (www.ietf.org/rfc/rfc952.txt). Hostnames that include an underscore ("_") are not permitted.
  • Each node in the cluster requires the following IP address:
    • One public IP address
    • Two private IP address
    • One virtual IP address
    • Three single client access name (SCAN) addresses for the cluster
[top]


Operating System Requirements

  • Red Hat Enterprise Linux 6.x AS x86_64 (Kernel 2.6.32-71 or higher)
  • Oracle Linux 6.x AS x86_64 (Kernel 2.6.32-71 or higher)
[top]


Preparing Nodes for Oracle Installation

Attaching to RHN/ULN Repository

NOTE: The documentation provided below discusses how to setup a local yum repository using your operating system installation media. If you would like to connect to the RHN/ULN channels, see the appropriate documentation. For Red Hat see, redhat.com/red_hat_network. For information relating to ULN network see, linux.oracle.com.

The recommended configuration is to serve the files over http using an Apache server (package name: httpd). This section discusses hosting the repository files from a local filesystem storage. While other options to host repository files exist, they are outside of the scope of this document. It is highly recommended to use local filesystem storage for speed and simplicity of maintenance.

  1. One of the requirements is to have the DVD image mounted either by physical media or by ISO image.
    • To mount the DVD, insert the DVD into the server and it should auto-mount into the /media directory.
    • To mount an ISO image we will need to run the following command as root, substituting the path name of your ISO image for the field myISO.iso:
      mkdir /media/myISO
      mount -o loop myISO.iso /media/myISO
  2. To install and configure the http daemon, configure the machine that will host the repository for all other machines to use the DVD image locally. Create the file /etc/yum.repos.d/local.repo and enter the following:

    [local]
    name=Local Repository
    baseurl=file:///media/myISO/Server
    gpgcheck=0
    enabled=0
  3. Now we will install the Apache service daemon with the following command which will also temporarily enable the local repository for dependency resolution:
yum -y install httpd --enablerepo=local

After the Apache service daemon is installed, start the service and set it to start up for us next time we reboot. Run the following commands as root:
  • service httpd start
  • chkconfig httpd on
To use Apache to serve out the repository, copy the contents of the DVD
into a published web directory. Run the following commands as root (make sure to switch myISO with the name of your ISO)command:
  • mkdir /var/www/html/myISO
  • cp -R /media/myISO/* /var/www/html/myISO
NOTE: The command createrepo is often used for creating custom repositories, but it is not required as the DVD already holds the repository information.
  • This step is only necessary if you are running SELinux on the server that hosts the repository. The following command should be run as root and will restore the appropriate SELinux context to the copied files: restorecon -Rvv /var/www/html/.
  • The final step is to gather the DNS name or IP of the server that is hosting the repository. The DNS name or IP of the hosting server will be used to configure your yum repository repo file on the client server.
The following is the listing of an example configuration using the RHEL 6.x Server media and is held in the configuration file
  • /etc/yum.repos.d/myRepo.repo
[myRepo]
name=RHEL6.2 DVD
baseurl= http://reposerver.mydomain.com/RHEL6_2/Server
enabled=1
gpgcheck=0
NOTE: Replace reposerver.mydomain.com with your server's DNS name or IP address.
NOTE: You can also place the configuration file on the server hosting the repository for all other servers such that it can also use the repository as a more permanent solution to what was done in step 2 .

[top]

Installing the Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM

Once your nodes have attached to the appropriate yum repository, we will need to install the Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM package. The Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM package automates certain pieces of the installation process required for the installation of Oracle RAC or Oracle single instance.

The process to install the Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM package is as follows:

  1. Download the latest Dell Oracle Deployment tar file from
    https://www.dell.com/support/article/SLN312571/1429.current-release.aspx
    NOTE: The filename will follow the convention: Dell-Oracle-Deployment-OS-version-year-month.tar, for example: Dell-Oracle-Deployment-Lin-EL6-2012-08.ta
  2. Copy the Dell Oracle Deployment tar file to a working directory of all your cluster nodes.
  3. To go to your working directory, enter the following command:
    # cd </working/directory/path>
  4. Untar the Dell-Oracle-Deployment release using the command:
    # tar zxvf Dell-Oracle-Deployment-o-v-y-m.tar.gz
    NOTE: Where, o is the operating system, v is the operating system version, y is the year, and m is the month of the tar release.
  5. Change directory to Dell-Oracle-Deployment-o-v-y-m
  6. Install the Dell-Oracle-RDBMS-Server-11gR2-Preinstall RPM package on all your cluster nodes using the following command:
    # yum localinstall dell-oracle-rdbms-server-11gR2-preinstall* --nogpgcheck


Installing the Dell Oracle Utilities RPM

The Dell Oracle utilities RPM is designed to do the following Dell and Oracle recommended settings:
  • Create Grid Infrastructure directories, set ownership, and permissions.
  • Create grid user.
  • Create Oracle Database (RDBMS) directories, set ownership, and permissions.
  • Create the Oracle base directories, set ownership, and permissions.
  • Set pam limits within (/etc/pam.d/login).
  • Setup /etc/profile.
  • Set SELinux to Disabled.
  • Install the Dell PowerEdge system component drivers if applicable.
  • Set kernel parameters.
  • Set nproc for grid user within (/etc/security/limits.conf)
The process to install the Dell Oracle utilities RPM is as follows:
  1. Download the latest Dell Oracle Deployment tar file from
    https://www.dell.com/support/article/SLN312571/1429.current-release.aspx
    NOTE: The filename will follow the convention: Dell-Oracle-Deployment-OS version-year-month.tar.gz, for example: Dell-Oracle-Deployment-Lin-2011-07.tar.gz
  2. Copy the Dell Oracle Deployment tar file to a working directory of all your cluster nodes.
  3. Go to your working directory via the command:
    # cd </working/directory/path>
  4. Untar the Dell-Oracle-Deployment release using the command:
    # tar zxvf Dell-Oracle-Deployment-o-y-m.tar.gz

    NOTE: Where, o is the operating system version, y is the year, and m is the month of the tar release.
  5. Change directory to Dell-Oracle-Deployment-o-y-m
  6. Install the Dell oracle utilities RPM package on all your cluster nodes the by typing:
    # yum localinstall dell-oracle-utilities* --nogpgcheck
  7. Once the rpm is installed, run the dodeploy script to setup the environment as follows: # dodeploy -g -r 11gR2
For more information about the Dell oracle utilities RPM and its options, check the man pages using the command: # man 8 dodeploy
NOTE: The Dell-Oracle-Deplyoment tar contains the latest supported drivers provided from our Software Deliverable List (SDL). Consult the README file found within the Dell-Oracle-Deployment tar for installation instructions of the latest drivers.


Oracle Software Binary Location

The Oracle software binaries should be located on node 1 of your cluster. It is important to note that starting with Oracle 11g R2 (11.2.0.3), Oracle Database patch sets are full installation of the Oracle software. For more information on how this impacts future Oracle deployments, see My Oracle Support note: 1189783.1 Important Changes to Oracle Database Patch Sets Starting with 11.2.0.2.

[top]


Setting up the Network

Public Network

NOTE: Ensure that the public IP address is a valid and routable IP address.
NOTE: Ensure to disable NetworkManager via commands:

service NetworkManager stop
chkconfig NetworkManager off

To configure the public network on each node:

  1. Log in as root.
  2. Edit the network device file /etc/sysconfig/network-scripts/ifcfg-em#
    where # is the number of the network device:
    NOTE: Ensure that the Gateway address is configured for the public network interface. If the Gateway address is not configured, the Oracle Grid installation may fail.

    DEVICE=em1
    ONBOOT=yes
    NM_CONTROLLED=no
    IPADDR=<Public IP Address>
    NETMASK=<Subnet mask>
    BOOTPROTO=static
    HWADDR=<MAC Address>
    SLAVE=no
    GATEWAY=<Gateway Addrress>

  3. Edit the /etc/sysconfig/network file, and, if necessary, replace localhost.localdomain with the qualified public node name. For example, the command for node 1:hostname=node1.domain.com
  4. Type service network restart to restart the network service.
  5. Type ifconfig to verify that the IP addresses are set correctly.
  6. To check your network configuration, ping each public IP address from a client on the LAN that is not a part of the cluster.
  7. Connect to each node to verify that the public network is functioning. Type ssh <public IP>to verify that the secure shell (ssh) command is working.


Private Network

NOTE: Each of the two NIC ports for the private network must be on separate PCI buses.

The grid infrastructure of Oracle 11gR2 (11.2.0.3) supports IP failover natively using a new feature introduced known as Redundant Interconnect. Oracle uses its ora.cluster_interconnect.haip resource to communicate with Oracle RAC, Oracle ASM, and other related services. The Highly Available Internet Protocol (HAIP) has the ability to activate a maximum of four private interconnect connections. These private network adapters can be configured during the initial install process of Oracle Grid or after the installation process using the oifcfg utility.

Oracle Grid currently creates an alias IP (as known as virtual private IP) on your private network adapters using the 169.254.*.* subnet for the HAIP. If subnet range is already in use, Oracle Grid will not attempt to use it. The purpose of HAIP is to load balance across all active interconnect interfaces, and failover to other available interfaces if one of the existing private adapters becomes unresponsive.

NOTE:
- Configure different subnet for each of the private network you want to configure as a part of HAIP
- When adding additional HAIP addresses (maximum of four) after the installation of Oracle Grid, restart of your Oracle Grid environment to make these new HAIP addresses active.

The example below provides step-by-step instructions on enabling redundant interconnect using HAIP on a fresh Oracle 11gR2 (11.2.0.3) Grid Infrastructure installation.

  1. Edit the file, /etc/sysconfig/network-scripts/ifcfg-emX, where X is the number of the em device, ifcfg-emX configuration files of the network adapters to be used for your private interconnect. The following example shows em2 using 192.168.1.* subnet and em3 using 192.168.2.* .

    DEVICE=em2
    BOOTPROTO=static
    HWADDR=<HW_ADDR>
    ONBOOT=yes
    NM_CONTROLLED=no
    IPADDR=192.168.1.140
    NETMASK=255.255.255.0

    DEVICE=em3
    HWADDR=<HW_ADDR>
    BOOTPROTO=static
    ONBOOT=yes
    NM_CONTROLLED=no
    IPADDR=192.168.2.140
    NETMASK=255.255.255.0
  2. Once you have saved both the configuration files, restart your network service using service network restart. The completion of the steps above have now prepared your system to enable HAIP using the Oracle Grid Infrastructure installer. When you have completed all the Oracle prerequisites and are ready to install Oracle, you will need to select em2 and em3 as 'private' interfaces at the 'Network Interface Usage' screen.
  3. This step enables redundant interconnectivity once your Oracle Grid Infrastructure has successfully completed and is running.
  4. To verify that your redundant interconnect using HAIP is running, you can test this feature using the ifconfig command. An example of the output is listed below.
ifconfig
em2 Link encap:Ethernet HWaddr 00:24:E8:6B:E9:5A
inet addr:192.168.11.52 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::224:e8ff:fe6b:e95a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14140 errors:0 dropped:0 overruns:0 frame:0
TX packets:839 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2251664 (2.1 MiB) TX bytes:56379 (55.0 KiB)
Interrupt:48 Memory:d8000000-d8012800

em2:1 Link encap:Ethernet HWaddr 00:24:E8:6B:E9:5A
inet addr:169.254.167.163 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
em3 Link encap:Ethernet HWaddr 00:24:E8:6B:E9:5C
inet addr:192.168.11.53 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::224:e8ff:fe6b:e95c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12768 errors:0 dropped:0 overruns:0 frame:0
TX packets:2211 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2163856 (2.0 MiB) TX bytes:144187 (140.8 KiB)
Interrupt:32 Memory:da000000-da012800

em3:1 Link encap:Ethernet HWaddr 00:24:E8:6B:E9:5C
inet addr:169.254.167.163 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28662 errors:0 dropped:0 overruns:0 frame:0
TX packets:28662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1604049 (1.5 MiB) TX bytes:1604049 (1.5 MiB)
For more information on Redundant Interconnect and ora.cluster_interconnect.haip, see metalink note: 1210883.1.

[top]


IP Address and Name Resolution Requirements

The steps below show how to setup your cluster nodes for using Domain Name System (DNS). For information on how to setup cluster nodes using GNS, see the wiki article http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/1416.aspx


For a Cluster Using DNS

To set up an Oracle 11g R2 RAC using Oracle DNS (without GNS):
  1. At least two interfaces must be configured on each node, one for the private IP address and one for the public IP address.
  2. A SCAN NAME configured on the DNS for Round Robin resolution to three addresses (recommended) or at least one address. The SCAN addresses must be on the same subnet as virtual IP addresses and public IP addresses.
NOTE: For high availability and scalability, it is recommended that you configure the SCAN to use Round Robin resolution to three IP addresses. The name for the SCAN cannot begin with a numeral. For installation to succeed, the SCAN must resolve to at least one address.

The table below describes the different interfaces, IP address settings and the resolutions in a cluster.

Table 2-1. Cluster Requirements for DNS
Interface Type Resolution
Public Static DNS
Private Static Not Required
Node virtual IP Static DNS
SCAN virtual IP Static DNS
Table 2-1.Table 3 : Cluster Requirement

[top]


Configuring a DNS Server

To configure changes on a DNS server for an Oracle 11g R2 cluster using a DNS (without GNS):
  1. Configure SCAN NAME resolution on DNS server. A SCAN NAME configured on the DNS server using the Round Robin policy should resolve to three public IP addresses (recommended), however the minimum requirement is one public IP address.
For example:

scancluster IN A 192.0.2.1
IN A 192.0.2.2
IN A 192.0.2.3

Where scancluster is the SCAN NAME provided during Oracle Grid
installation.

NOTE: The SCAN IP address must be routable and must be in public range.

[top]


Configuring a DNS Client

  1. Configure the resolv.conf on all the nodes in the cluster to contain name server entries that are resolvable to the appropriate DNS server. Provide an entry similar to the following: /etc/resolv.conf: search ns1.domainserver.com nameserver 192.0.2.100

    Where, 192.0.2.100 is a valid DNS server address in your network and ns1.domainserver.com is the domain server in your network.
  2. Verify the order configuration. /etc/nsswitch.conf controls the name service order. In some configurations, the NIS can cause issues with Oracle SCAN address resolution. It is recommended that you place the NIS entry at the end of the search list and place the dns entry first. For example, hosts: dns files nis Once you have modified the /etc/nsswitch.conf , restart the nscd service by issuing the command:
    # /sbin/service nscd restart

    [top]

Preparing Shared Storage for Oracle RAC Installation

NOTE: In this section, the terms disk(s), volume(s), virtual disk(s), LUN(s) mean the same and are used interchangeably, unless specified otherwise. Similarly, the terms Stripe Element Size and Segment Size both can be used interchangeably.

Oracle RAC requires shared LUNs for storing your Oracle Cluster Registry (OCR), voting disks, Oracle Home using ACFS, Oracle Database files, and Flash Recovery Area (FRA). To ensure high availability for Oracle RAC it is recommended that you have:

  • Three shared volumes/ LUNs each of 1 GB in size for normal redundancy or five volumes/LUNs for high redundancy for the Oracle clusterware.
  • At least two shared disks to store your database. Each shared disk should be the same disk speed and size.
  • At least two shared volumes/LUNs to store your Automatic Storage Management Cluster File System (ACFS). Each shared disk must be at least 10 GB, for a total size of 20 GB.
  • At least two shared volumes/LUNs or volumes to store your FRA. Ideally, the FRA space should be large enough to copy all of your Oracle datafiles and incremental backups. For more information on optimally sizing your FRA, see My Oracle Support ID 305648.1 section "What should be the size of Flash Recovery Area?"
NOTE: The use of device mapper multipath is recommended for optimal performance and persistent name binding across nodes within the cluster.
NOTE: For more information on attaching shared LUNs/volumes, see the Wiki documentation found at: http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/3-storage.aspx

[top]

Setting up Device Mapper Multipath

The purpose of Device Mapper Multipath is to enable multiple I/O paths to improve performance and provide consistent naming. Multipathing accomplishes this by combining your I/O paths into one device mapper path and properly load balancing the I/O. This section will provide the best practices on how to setup your device mapper multipathing within your Dell PowerEdge server.Verify that your device-mapper and multipath driver are at least the version shown below or higher:
1. rpm -qa | grep device-mapper-multipath

device-mapper-multipath-0.4.9-46.el6

2. Identify your local disks i.e. /dev/sda. Once your local disk is determined run the following command to obtain its scsi_id:
scsi_id --page=0x83 --whitelisted --device=/dev/sda
360026b900061855e000007a54ea53534

3. Open the /etc/multipath.conf file and locate and comment out the section below:
#blacklist {
# devnode "*"
#}

4. Once the scsi_id of your local disk has been retrieved, you must blacklist this scsi_id from being used as a multipath device within /etc/multipath.conf file and locate,uncomment,and modify the section below:
blacklist {

wwid <enter your local disk scsi_id here>
devnode "^(ram|raw|loop|fd|md|dm-|sr||scd|st)[0-9]*"
devnode "^hd[a-z]"
}

5. Uncomment your defaults section within your /etc/multipath.conf:

defaults {
udev_dir /dev
polling_interval 10
selector "round-robin 0"
path_grouping_policy multibus
getuid_callout "/sbin/scsi_id -g -u -s/block/%n"
prio_callout /bin/true
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}

6. Locate the multipaths section within your /etc/multipath.conf file. In this section you will provide the scsi_id of each LUN/volume and provide an alias in order to keep a consistent naming convention across all of your nodes. An example is shown below:
multipaths {
multipath {
wwid <scsi_id of volume1>
alias alias_of_volume1
}
multipath {
wwid <scsi_id of volume2>
alias alias_of_volume2
}
}

7. Restart your multipath daemon service using: service multipathd restart

8. Verify that your multipath volumes alias are displayed properly: multipath -ll

9. Make sure iSCSI service starts upon boot using the command: chkconfig multipathd on

10. Repeat steps 1-9 for all nodes.

[top]


Partitioning the Shared Disk

This section describes how to use Linux’s native partition utility fdisk to create a single partition on a volume/virtual disk that spans the entire disk.

To use the fdisk utility to create a partition:
  1. At the command prompt, type one of the following:
    • #> fdisk –cu /dev/<block_device>
    • #> fdisk –cu /dev/mapper/<multipath_disk>
  2. Where, <block_device> is the name of the block device that you are creating a partition on. For example, if the block device is /dev/sdb, type: fdisk –cu /dev/sdb

    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x89058e03. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted.
    • Command (m for help): n # To create a new partition
    • Command actione extendedp primary partition (1-4):
    • P # To create a primary partition
    • Partition number (1-4): 1
    • First sector (4096-xxxxxx, default 4096):
  3. Repeat step 1 for all the disks.
  4. Type the following to re-read the partition table and to be able to see the newly created partition(s)

    #> partprobe
    Or
    #> service multipathd restart
    Or
    #> kpartx –a /dev/mapper/<multipath_disk>
  5. Reboot the system if your newly created partition is not displayed properly.

    [top]

Identifying ASM Disks to Setup Udev Rules **Applies to RHEL 6 and Oracle Linux 6 (if not using ASMlib)**

Red Hat Enterprise Linux 6/Oracle Linux 6 have the ability to use udev rules to ensure that the system properly manages permissions of device nodes. In this case, we are referring to properly setting permissions for our LUNs/volumes discovered by the OS. It is important to note that udev rules are executed in enumerated order. When creating udev rules for setting permissions, please include the prefix 20- and append .rules to the end of the filename. An example file name is 20-dell_oracle.rules

In order to set udev rules, one must capture the WWIDs of each disk to be used within your ASM device using the scsi_id command.

The command is as follows:

scsi_id --page=0x83 --whitelisted --device=/dev/sdX

where sdX is the name of your block device.

If one must run this command to capture multiple WWIDs, one could use the following for loop to do just that via the shell:

[root@rhel6 ~]# for i in sdb sdc sdd sde; do \ printf "%s %s\n" "$i" \ "$(scsi_id --page=0x83 --whitelisted --device=/dev/$i)"; done

Output:

sdb 360026b900061855e000008a54ea5356a
sdc 360026b9000618571000008b54ea5360b
sdd 360026b900061855e000008a54ea5356a
sde 360026b9000618571000008b54ea5360b

Once the WWIDs have been captured, create a file within the /etc/udev/rules.d/ directory and name it 20-dell_oracle.rules. A separate KERNEL entry must exist for each storage device and will require adding the WWID to the "RESULT==" field.

An example of what needs to be placed in the /etc/udev/rules.d/20-dell_oracle.rules file

#------------------------ start udev rule contents ------------------#

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b9000618571000008b54ea5360b", OWNER:="grid", GROUP:="asmadmin"

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b900061855e000008a54ea5356a", OWNER:="grid", GROUP:="asmadmin"

#-------------------------- end udev rule contents ------------------#

As you can see from the above, the KERNEL command looks at all dm devices, executes the PROGRAM which captures the WWID, if the RESULT of the WWID is matched, appropriately assign the grid user as the OWNER and the asmadmin group as the GROUP.

[top]


Installing and Configuring ASMLib **Applies ONLY to Oracle Linux 6 and if not setting udev rules**

  1. Use http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html to download the following files:
    • oracleasm-support
    • oracleasmlib
    • oracleasm
      NOTE: If your current OS distribution is Oracle Linux, you can obtain the software from the Unbreakable Linux Network using ULN.
      NOTE: Download the latest versions of oracleasm-support and oracleasmlib but the version of oracleasm must match the current kernel used in your system. Check this information issuing the command uname -r.
  2. Enter the following command as root:
    rpm -Uvh oracleasm-support-* \
    oracleasmlib-* \
    oracleasm-$(uname -r)-*
NOTE: Replace * by the correct version numbers of the packages or you can leave them in place of the command ensuring that there are no multiple versions of the packages in the shell's current working directory.


[top]

Using ASMLib to Mark the Shared Disks as Candidate Disks **Applies ONLY to Oracle Linux 6 and if not setting udev rules**

  1. To configure ASM use the init script that comes with the oracleasmsupport package. The recommended method is to run the following
    command as root:
    # /usr/sbin/oracleasm configure -i
    NOTE: Oracle recommends using the oracleasm command found under /usr/sbin. The /etc/init.d path has not been deprecated, but the oracleasm binary provided by Oracle in this path is used for internal purposes.

    Default user to own the driver interface []: grid
    Default group to own the driver interface []: asmadmin
    Start Oracle ASM library driver on boot (y/n) [ n ]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [ y ]: y

    NOTE: In this setup the default user is set to grid and the default group is set to asmadmin. Ensure that the oracle user is part of the asmadmin group. You can do so by using the dell-validated and dell-oracle-utilities rpms.

    The boot time parameters of the Oracle ASM library are configured and a sequential text interface configuration method is displayed.

  2. Set the ORACLEASM_SCANORDER parameter in
    /etc/sysconfig/oracleasm

    NOTE: When setting the ORACELASM_SCANORDER to a value, specify a common string associated with your device mapper pseudo device name. For example, if all the device mapper device had a prefix string of the word "asm", (/dev/mapper/asm-ocr1, /dev/mapper/asm-ocr2), populate the ORACLEASM_SCANORDER parameter as: ORACLEASM_SCANORDER="dm". This would ensure that oracleasm will scan these disks first.

  3. Set the ORACLEASM_SCANEXCLUDE parameter in /etc/sysconfig/oracleasm to exclude non-multipath devices.

    For example: ORACLEASM_SCANEXCLUDE=<disks to exclude>

    NOTE: If we wanted to ensure to exclude our single path disks within /dev/ such as sda and sdb, our ORACLEASM_SCANEXCLUDE string would look like: ORACLEASM_SCANEXCLUDE="sda sdb"

  4. To create ASM disks that can be managed and used for Oracle database installation, run the following command as root:

    /usr/sbin/oracleasm createdisk DISKNAME /dev/mapper/diskpartition
    NOTE: The fields DISKNAME and /dev/mapper/diskpartition should be substituted with the appropriate names for your environment respectively.
    NOTE: It is highly recommended to have all of your Oracle related disks to be within Oracle ASM. This includes your OCR disks, voting disks, database disks, and flashback recovery disks.
  5. Verify the presence of the disks in the ASM library by running the following command as root:
    /usr/sbin/oracleasm listdisks
    All the instances of DISKNAME from the previous command(s) are displayed.

    To delete an ASM disk,run the following command:

    /usr/sbin/oracleasm deletedisk DISKNAME
  6. To discover the Oracle ASM disks on other nodes in the cluster, run the following command on the remaining cluster nodes:
    /usr/sbin/oracleasm scandisks.

    [top]

Installing Oracle 11g R2 Grid Infrastructure

This section gives you the installation information of Oracle 11g R2 grid infrastructure for a cluster.


Before You Begin

Before you install the Oracle 11g R2 RAC software on your system:
  • Ensure that you have already configured your operating system, network, and storage based on the steps from the previous sections within this document.
  • Locate your Oracle 11g R2 media kit.


Configure the System Clock Settings for All Nodes

To prevent failures during the installation procedure, configure all the nodes with identical system clock settings. Synchronize your node system clock with the Cluster Time Synchronization Service (CTSS) which is built in Oracle 11g R2. To enable CTSS, disable the operating system network time protocol daemon (ntpd) service using the following commands in this order:
  1. service ntpd stop
  2. chkconfig ntpd off
  3. mv /etc/ntp.conf /etc/ntp.conf.orig
  4. rm /var/run/ntpd.pid


Configuring Node One

The following steps are for node oneof your cluster environment, unless otherwise specified.
  • Log in as root.
  • If you are not in a graphical environment, start the X Window System by typing: startx
  • Open a terminal window and type: xhost +
  • Mount the Oracle Grid Infrastructure media.
  • Log in as grid user, for example: su - grid.
  • Type the following command to start the Oracle Universal Installer:<CD_mountpoint>/runInstaller
  • In the Download Software Updates window, enter your My Oracle Support credentials to download the latest patch updates. If you choose not to download the latest patches, select Skip software updates.
In the Select Installation Option window, select Install and Configure Grid Infrastructure for a Cluster and click Next.

oracle configuration
Figure 1: Oracle Grid Infra
  • In the Select Installation Type window, select Advanced Installation option, and click Next.
oracle configuration
Figure 2: Advance Instruction
  • In the Select Product Languages window, select English, and click Next.
  • In the Grid Plug and Play Information window, enter the following information:
    • Cluster Name—Enter a name for your cluster.
    • SCAN Name—Enter the named registered in the DNS server which is unique for the entire cluster. For more details on setting up your SCAN name see, "IP Address and Name Resolution Requirements". For details on enabling GNS, see the wiki article:
      http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/1416.aspx.
    • SCAN Port—Retain the default port of 1521.
    • Configure GNS—Uncheck this option.
    • Click Next.
oracle configurations
Figure 3: Configure CNS
  • In the Cluster Node Information window, click Add to add additional nodes that must be managed by the Oracle Grid Infrastructure.
    • Enter the public Hostname information
    • Enter the Virtual IP name
    • Repeat step 12 for each node within your cluster
oracle configurations
Figure 4: Add

Click SSH Connectivity and configure your passwordless SSH connectivity by entering the OS Password for the grid user and click Setup.

NOTE: The default password set by the dell-validated and dell-oracle-utilities rpms is 'oracle' for both the grid user and oracleuser.

oracle configurations
Figure 5: Setup

  • Click Ok and then click Next to go to the next window.
  • In the Network Interface Usage window, make sure that the correct interface types are selected for the interface names. From the Interface Type drop-down list, select the required interface type. The available options are Private, Public, and Do Not Use. Click Next.
oracle configurations
Figure 6: Specify Network Interface usage
  • In the Storage Option Information window, select Automatic Storage Management (ASM) and click Next.
oracle configurations
Figure 7: Oracle ASM
  • In the Create ASM Disk Group window, enter the following information:
    • ASM diskgroup— Enter a name, for example: OCR_VOTE
  • Redundancy— For your OCR and voting disks, select High if five ASM disks are available, select Normal if three ASM disks are available, or select External if one ASM disk is available (not recommended).
NOTE: If no candidate disks are displayed, click Change Discovery Path and enter ORCL:*or /dev/oracleasm/disks/*. Ensure that you have marked your Oracle ASM disks, for more informations see,"Using ASMLib to Mark the Shared Disks as Candidate Disks".

oracle configuration

Figure 8: Change discover path
  • In the Specify ASM Password window, choose the relevant option under Specify the passwords for these accounts and enter the relevant values for the password. Click Next.
oracle configuration
Figure 9: ASM password
  • In the Failure Isolation Support window, select Do Not use Intelligent Platform Management Interface (IPMI). For information on enabling IPMI, see wiki article,
http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/1414.aspx

oracle configuration
Figure 10: intellegent platform management
  • In the Privileged Operating Systems Groups window, select:
    • asmdba for Oracle ASM DBA (OSDBA for ASM) Group
    • asmoper for Oracle ASM Operator (OAOPER for ASM) Group
    • asmadmin for Oracle ASM Administrator (OSASM) Group
oracle configuration
Figure 11: Privileged Operating System Group
  • In the Installation Location window, specify the values of your Oracle
    Base and Software Location as configured within the Dell Oracle utilities RPM.
NOTE: The default locations used within the Dell Oracle utilites RPM are:
◦Oracle Base -/u01/app/grid
◦Software Location - /u01/app/11.2.0/grid

oracle configuration
Figure 12: Specify Installation Location

  • In the Create Inventory window, specify the location for your Inventory Directory. Click Next.
oracle configuration
Figure 13: Create Inventery

NOTE:The default location based on the Dell Oracle utilites RPM for Inventory Directory is /u01/app/oraInventory
  • In the Perform Prerequisite Checks window, check the overall status of all the prerequisites. If any of the prerequisites fail and have the status as Fixable, click Fix & Check Again button and execute the runfixup.sh script provided by the Oracle Universal Installer (OUI).
oracle configuration
Figure 14: Prequisite Checks

NOTE: If there are other prerequisites that contain the status Error, repeat step 23 else select Ignore All, if proper requirements have been met and Error status still persists after all changes have been fixed.
  • In the Summary window, select Install.
oracle configuration
Figure 15: Summary
  • After the installation is complete, the Execute Configuration Scripts wizard is displayed. Complete the instructions in the wizard and click Ok.
oracle configuration
Figure 15: execute configuration scripts
  • In the Finish window, click Close.

    [top]

Configuring Shared Oracle Home for Database Binary Using ACFS

NOTE: Please review the following My Oracle Support document ACFS Supported On OS Platforms. [ID 1369107.1] as depending on your kernel version, a patch might be required for ACFS support.

The following steps are applicable for node 1 of your cluster environment, unless otherwise specified:

  • Login as root and type: xhost +
  • Login as grid user and run the asmca utility by typing:
  • $<GRID_HOME>/bin/asmca
oracle configuration
Figure 16: Disk Group
  • In the ASM Configuration Assistant window, select the Disk Groups tab, click Create, and perform the following steps:
    • Enter a name of the disk group. For example, ORAHOME.
    • Select the External Redundancy, and then select the ASM stamped disk that you want to use for the shared database home

NOTE: If no candidate disks are displayed, click Change Discovery Path and enter ORCL:* or /dev/oracleasm/disks/*
NOTE: Ensure that you have marked your Oracle ASM disks. For more information, see "Using ASMLib to Mark the Shared Disks as Candidate Disks".

oracle configurations

Figure 17: select External None
  • Right-click the disk group you have created for the shared Oracle home, and select Create ACFS for Database Home.
  • The Create ACFS Hosted Database Home Volume option is displayed.
    • Enter name for the volume (for example, ORAHOME.)
    • Enter name for the mount point for Database Home (for example /u01/app/oracle/acfsorahome).
    • Enter the Database Home Size (must equal at least 20 GB).
    • Enter the name of the Database Home Owner. (for example: oracle).
    • Enter the name of the Database Home Owner Group (for example: oinstall).
    • Click Ok.
oracle configuration
Figure 18: ASm configuration
  • As root, run the acfs_script.sh mentioned in the RUN ACFS Script window.
  • This automounts the new ACFS Home on all nodes.
oracle configuration
Figure 19: Database Home
  • Click Close to exit ACFS script window.

    [top]

Installing Oracle 11g R2 Database (RDBMS) Software

The following steps are for node 1 of your cluster environment, unless otherwise specified.
  • Log in as root and type: xhost +.
  • Mount the Oracle Database 11gR2 media.
  • Log out as root user and log in as Oracle user by typing:
    su - oracle
  • Run the installer script from your Oracle database media:
    <CD_mount>/runInstaller
  • In the Configure Security Updates window, enter your My Oracle
  • Support credentials to receive security updates, else click Next.
oracle configuration
Figure 19: Database configure
  • window, enter your My Oracle Support credentials to download patch updates available after the initial release. If you choose not to update at this time, select Skip software updates and click Next.
oracle configuration
Figure 20: Download software
  • In the Select Installation Option window, select Install database software only.
oracle configuration
Figure 21: Install option
  • In the Grid Installation Options window:
    • Select Oracle Real Application Clusters database installation and select all the nodes by clicking the Select All button.
    • Click SSH Connectivity and configure your passwordless SSH connectivity by entering the OS Password for the oracle user and selecting Setup. Click Ok and click Next to go the next window.

NOTE: The default password set by the dell-validated and dell-oracle-utilities rpms is oracle for both the grid user and oracle user.

oracle configuration
oracle configuration
Figure 22: Grid Installation

  • In the Select Product Lanaguages window, select English as the Language Option and click Next.
  • In the Select Database Edition window, select Enterprise Edition and click Next.
oracle configuration
Figure 23: DB edition
  • In the Installation Location window,
    • Specify the location of your Oracle Base configured within the Dell oracle utilities RPM.]
    • Enter the ACFS shared Oracle home address for Software Location.

      NOTE: The default locations used within the Dell Oracle utilites RPM are as follows:
      • Oracle Base—/u01/app/oracle
      • Software Location—/u01/app/oracle/product/11.2.0/db_1
oracle configuration
Figure 24: Install location
  • In the Privileged Operating System Groups window, select dba for Database Administrator (OSDBA) Group and asmoper for Database Operator (OSOPER) Group and click Next.
oracle configuration
Figure 25: OS group
  1. In the Perform Prerequisite Checks window, check the overall status of all the prerequisites.
    • If any prerequisites fail and have the status as Fixable, click the Fix & Check Again button.
  • Execute the runfixup.sh script provided by the Oracle OUI.

NOTE: If there are other prerequisites that display status Error, repeat step 13, If the Error status still persists after all changes have been fixed, select Ignore All.

oracle configuration

Figure 26: checks
  • In the Summary window, select Install.
oracle configuration
Figure 27: Summary
  • On completion of the installation process, the Execute Configuration scripts wizard is displayed. Follow the instructions in the wizard and click Ok.
oracle configuration
Figure 27: Config scripts
NOTE: Root.sh should be run on one node at a time.
  • In the Finish window, click Close.

    [top]


Creating Diskgroup Using ASM Configuration Assistant (ASMCA)

This section contains procedures to create the ASM disk group for the database files and Flashback Recovery Area (FRA).
  • Log in as grid user.
  • Start the ASMCA utility by typing:
    $<GRID_HOME>/bin/asmca
  • In the ASM Configuration Assistant window, select the Disk Groups tab.
  • Click Create.
oracle configuration
Figure 28: Create disk corners
  • Enter the appropriate Disk Group Name, for example: DBDG.
  • Select External for Redundancy.
  • Select the appropriate member disks to be used to store your database
  • files, for example: ORCL:DB1, ORCL:DB2
oracle configuration
Figure 29: Create disk corners

NOTE: If no candidate disks are displayed, click Change Discovery Path and type: ORCL:* or /dev/oracleasm/disks/*
NOTE: Please ensure you have marked your Oracle ASM disks. For more information, see "Using ASMLib to Mark the Shared Disks as Candidate Disks".
  • Click Ok to create and mount the disks.
  • Repeat step 4 to step 8 to create another disk group for your Flashback Recovery Area (FRA). NOTE: Make sure that you label your FRA disk group differently than your database disk group name. For labeling your Oracle ASM disks, see "Using ASMLib to Mark the Shared Disks as Candidate Disks" .
  • Click Exit to exit the ASM Configuration Assistant.

    [top]


Creating Database Using DBCA

The following steps are applicable for node 1 of your cluster environment, unless otherwise specified:
  • Login as oracle user.
  • From $<ORACLE_HOME>, run the DBCA utility by typing:
    $<ORACLE_HOME>/bin/dbca &
  • In the Welcome window, select Oracle Real Application Cluster Database and click Next.
oracle configurations
Figure 30: Creating Database
  • In the Operations window, select Create Database, and click Next.
oracle configuration
Figure 31: Operations Window
  • In the Database Templates window, select Custom Database, and click Next.
oracle configuration
Figure 32: Database Templates
  • In the Database Identification window:
    • Select Admin-Managed for Configuration Type.
    • Enter appropriate values for Global Database Name and SID Prefix.
    • In the Node Selection list box, select All Nodes.
    • Click Next.
oracle configuration

Figure 33: Database Configuration

NOTE: For more information on Policy-Managed configuration, see the wiki article http://en.community.dell.com/dell-groups/enterprise_solutions/w/oracle_solutions/1418.aspx.
  • In the Management Options window, select the default values and click Next.
oracle configuration
Figure 34: Managemnet Option
  • In the Database Credentials window, enter the appropriate credentials for your database.
oracle configuration
Figure 35: Database Credentials
  • In the Database File Location window, select:
    • Automatic Storage Management (ASM) for Storage Type.
    • Use Oracle-Managed Files for Storage Location.
    • Browse to select the ASM disk group that you created to store the database files (DBDG)for Database Area.
oracle configuration
Figure 36: Automatic Storage Management
  • In the Recovery Configuration window:
    • Select Specify Flash Recovery Area.Browse a
    • nd select the ASM disk group that you created for Flash Recovery Area.
    • Enter a value for Flash Recovery Area Size.
    • Select Enable Archiving.
    • Click Next.
oracle configuration
Figure 37: Flash recovery Area
  • In the Database Content window, click Next.
  • In the Initialization Parameters window:
    • Select Custom.
    • For the Memory Management section, select Automatic Shared Memory Management.
    • Specify appropriate values for the SGA Size and PGA Size.
    • Click Next.
oracle configuration
Figure 38: Memory Manangemnt Section
  • In the Database Storage window, click Next.
oracle configuration
Figure 39: Database Storage
  • In the Creation Options window, click Finish.
oracle configuration
Figure 40: Create Database
  • In the Summary window, click Ok to create database.
oracle configuration

Figure 41: Database Configuration Details

NOTE: Database creation can take some time to complete.
  • Click Exit on the Database Configuration Assistant window after the database creation is complete.

    [top]



Article ID: SLN310511

Last Date Modified: 08/14/2018 01:08 PM


Rate this article

Accurate
Useful
Easy to understand
Was this article helpful?
Yes No
Send us feedback
Comments cannot contain these special characters: <>()\
Sorry, our feedback system is currently down. Please try again later.

Thank you for your feedback.