Rac Cluster Installation 11GR2
Rac Cluster Installation 11GR2
Rac Cluster Installation 11GR2
No Title
[an error occurred while processing this directive]
by Michael New, MichaelNew@earthlink.net, Gradation LLC
Contents
Introduction
Oracle RAC 11g Overview
Shared-Storage Overview
iSCSI Technology
Hardware and Costs
Install the Linux Operating System
Install Required Linux Packages for Oracle RAC
Install Openfiler
Network Configuration
Cluster Time Synchronization Service
Configure iSCSI Volumes using Openfiler
Configure iSCSI Volumes on Oracle RAC Nodes
Create Job Role Separation Operating System Privileges Groups, Users, and Directories
Logging In to a Remote System Using X Terminal
Configure the Linux Servers for Oracle
Configure RAC Nodes for Remote Access using SSH - (Optional)
Install and Configure ASMLib 2.0
Download Oracle RAC 11g Release 2 Software
Pre-installation Tasks for Oracle Grid Infrastructure for a Cluster
Install Oracle Grid Infrastructure for a Cluster
Post-installation Tasks for Oracle Grid Infrastructure for a Cluster
Create ASM Disk Groups for Data and Fast Recovery Area
Install Oracle Database 11g with Oracle Real Application Clusters
Install Oracle Database 11g Examples (formerly Companion)
Create the Oracle Cluster Database
Post Database Creation Tasks - (Optional)
Create / Alter Tablespaces
Verify Oracle Grid Infrastructure and Database Configuration
Starting / Stopping the Cluster
Troubleshooting
Conclusion
Acknowledgements
About the Author
Introduction
Oracle RAC 11g Release 2 allows DBA's to configure a cluster database solution with superior fault tolerance, load balancing, and scalability. However, DBA's who want to
become more familiar with the features and benefits of database clustering, will find the costs of configuring even a small RAC cluster costing in the range of US$10,000 to
US$20,000. This cost would not even include the heart of a production RAC configuration, the shared storage. In most cases, this would be a Storage Area Network (SAN),
which generally start at US$10,000.
Unfortunately, for many shops, the price of the hardware required for a typical RAC configuration exceeds most training budgets. For those who want to become familiar with
Oracle RAC 11g without a major cash outlay, this guide provides a low-cost alternative to configuring an Oracle RAC 11g Release 2 system using commercial off-the-shelf
components and downloadable software at an estimated cost of US$2,800.
The system will consist of a two node cluster, both running Linux (CentOS 5.5 for x86_64), Oracle RAC 11g Release 2 for Linux x86_64, and ASMLib 2.0. All shared disk
storage for Oracle RAC will be based on iSCSI using Openfiler release 2.3 x86_64 running on a third node (known in this article as the Network Storage Server).
This guide is provided for educational purposes only, so the setup is kept simple to demonstrate ideas and concepts. For example, the shared Oracle Clusterware files
(OCR and voting files) and all physical database files in this article will be set up on only one physical disk, while in practice that should be stored on multiple physical drives
configured for increased performance and redundancy (i.e. RAID). In addition, each Linux node will only be configured with two network interfaces — one for the public
network (eth0) and one that will be used for both the Oracle RAC private interconnect "and" the network storage server for shared iSCSI access (eth1). For a production
RAC implementation, the private interconnect should be at least Gigabit (or more) with redundant paths and "only" be used by Oracle to transfer Cluster Manager and Cache
Fusion related data. A third dedicated network interface (eth2, for example) should be configured on another redundant Gigabit network for access to the network storage
server (Openfiler).
In addition to this guide, please see the following extensions to this article that describe how to add and remove nodes from the Oracle RAC.
Oracle Documentation
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 1/48
11/15/2018 DBA Tips Archive for Oracle
While this guide provides detailed instructions for successfully installing a complete Oracle RAC 11g system, it is by no means a substitute for the official Oracle
documentation (see list below). In addition to this guide, users should also consult the following Oracle documents to gain a full understanding of alternative configuration
options, installation, and administration with Oracle RAC 11g. Oracle's official documentation site is docs.oracle.com.
Powered by rPath Linux, Openfiler is a free browser-based network storage management utility that delivers file-based Network Attached Storage (NAS) and block-based
Storage Area Networking (SAN) in a single framework. The entire software stack interfaces with open source applications such as Apache, Samba, LVM2, ext3, Linux NFS
and iSCSI Enterprise Target. Openfiler combines these ubiquitous technologies into a small, easy to manage solution fronted by a powerful web-based management
interface.
Openfiler supports CIFS, NFS, HTTP/DAV, FTP, however, we will only be making use of its iSCSI capabilities to implement an inexpensive SAN for the shared storage
components required by Oracle RAC 11g. The operating system (rPath Linux) and the Openfiler application will be installed on one internal SATA disk. A second internal
73GB 15K SCSI hard disk will be configured as a single volume group that will be used for all shared disk storage requirements. The Openfiler server will be configured to
use this volume group for iSCSI based storage and will be used in our Oracle RAC 11g configuration to store the shared files required by Oracle Grid Infrastructure and the
Oracle RAC database.
With Oracle Grid Infrastructure 11g Release 2 (11.2), the Automatic Storage Management (ASM) and Oracle Clusterware software is packaged together in a single binary
distribution and installed into a single home directory, which is referred to as the Grid Infrastructure home. You must install the Grid Infrastructure in order to use Oracle RAC
11g Release 2. Configuration assistants start after the installer interview process that will be responsible for configuring ASM and Oracle Clusterware. While the installation
of the combined products is called Oracle Grid Infrastructure, Oracle Clusterware and Automatic Storage Manager remain separate products.
After Oracle Grid Infrastructure is installed and configured on both nodes in the cluster, the next step will be to install the Oracle Real Application Clusters (Oracle RAC)
software on both Oracle RAC nodes.
In this article, the Oracle Grid Infrastructure and Oracle RAC software will be installed on both nodes using the optional Job Role Separation configuration. One OS user will
be created to own each Oracle software product — "grid" for the Oracle Grid Infrastructure owner and "oracle" for the Oracle RAC software. Throughout this article, a user
created to own the Oracle Grid Infrastructure binaries is called the grid user. This user will own both the Oracle Clusterware and Oracle Automatic Storage Management
binaries. The user created to own the Oracle database binaries (Oracle RAC) will be called the oracle user. Both Oracle software owners must have the Oracle Inventory
group (oinstall) as their primary group, so that each Oracle software installation owner can write to the central inventory (oraInventory), and so that OCR and Oracle
Clusterware resource permissions are set correctly. The Oracle RAC software owner must also have the OSDBA group and the optional OSOPER group as secondary
groups.
Assigning IP Address
Prior to Oracle Clusterware 11g Release 2, the only method available for assigning IP addresses to each of the Oracle RAC nodes was to have the network administrator
manually assign static IP addresses in DNS — never to use DHCP. This would include the public IP address for the node, the RAC interconnect, virtual IP address (VIP), and
new to 11g Release 2, the Single Client Access Name (SCAN) virtual IP address(s).
Oracle Clusterware 11g Release 2 now provides two methods for assigning IP addresses to all Oracle RAC nodes:
1. Assigning IP addresses dynamically using Grid Naming Service (GNS) which makes use of DHCP
2. The traditional method of manually assigning static IP addresses in Domain Name Service (DNS)
A new method for assigning IP addresses was introduced in Oracle Clusterware 11g Release 2 named Grid Naming Service (GNS) which allows all private interconnect
addresses, as well as most of the VIP addresses to be dynamically assigned using DHCP. GNS and DHCP are key elements to Oracle's new Grid Plug and Play (GPnP)
feature that, as Oracle states, eliminates per-node configuration data and the need for explicit add and delete nodes steps. GNS enables a dynamic Grid Infrastructure
through the self-management of the network requirements for the cluster.
All name resolution requests for the cluster within a sub-domain delegated by the DNS are handed off to GNS using multicast Domain Name Service (mDNS) included within
the Oracle Clusterware. Using GNS eliminates the need for managing IP addresses and name resolution and is especially advantageous in a dynamic cluster environment
where nodes are often added or removed.
While assigning IP addresses using GNS certainly has its benefits and offers more flexibility over manually defining static IP addresses, it does come at the cost of
complexity and requires components not defined in this guide. For example, activating GNS in a cluster requires a DHCP server on the public network which falls outside the
scope of building an inexpensive Oracle RAC.
The example Oracle RAC configuration described in this guide will use the traditional method of manually assigning static IP addresses in DNS.
To learn more about the benefits and how to configure GNS, please see Oracle Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux.
If you choose not to use GNS, manually defining static IP addresses is still available with Oracle Clusterware 11g Release 2 and will be the method used in this article to
assign all required Oracle Clusterware networking components (public IP address for the node, RAC interconnect, virtual IP address, and SCAN virtual IP).
It should be pointed out that previous to Oracle 11g Release 2, the need for DNS in order to successfully configure Oracle RAC was not a strict requirement. It was
technically possible (although not recommended for a production system) to define all IP addresses only in the hosts file on all nodes in the cluster (i.e. /etc/hosts). This
actually worked to my advantage with any of my previous articles on building an inexpensive RAC because it was one less component to document and configure.
So, why is the use of DNS now a requirement when manually assigning static IP addresses? The answer is SCAN. Oracle Clusterware 11g Release 2 requires the use of
DNS in order to store the SCAN virtual IP address(s). In addition to the requirement of configuring the SCAN virtual IP address in DNS, we will also configure the public and
virtual IP address for all Oracle RAC nodes in DNS for name resolution. If you do not have access to a DNS, instructions will be included later in this guide on how to install a
minimal DNS server on the Openfiler network storage server.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 2/48
11/15/2018 DBA Tips Archive for Oracle
When using the DNS method for assigning IP addresses, Oracle recommends that all
static IP addresses be manually configured in DNS before starting the Oracle Grid
Infrastructure installation.
If you have ever been tasked with extending an Oracle RAC cluster by adding a new node (or shrinking a RAC cluster by removing a node), then you know the pain of going
through a list of all clients and updating their SQL*Net or JDBC configuration to reflect the new or deleted node. To address this problem, Oracle 11g Release 2 introduced a
new feature known as Single Client Access Name or SCAN for short. SCAN is a new feature that provides a single host name for clients to access an Oracle Database
running in a cluster. Clients using SCAN do not need to change their TNS configuration if you add or remove nodes in the cluster. The SCAN resource and its associated IP
address(s) provide a stable name for clients to use for connections, independent of the nodes that make up the cluster. You will be asked to provide the host name (also
called the SCAN name in this document) and up to three IP addresses to be used for the SCAN resource during the interview phase of the Oracle Grid Infrastructure
installation. For high availability and scalability, Oracle recommends that you configure the SCAN name for round-robin resolution to three IP addresses. At a minimum, the
SCAN must resolve to at least one address.
The SCAN virtual IP name is similar to the names used for a node's virtual IP address, such as racnode1-vip. However, unlike a virtual IP, the SCAN is associated with the
entire cluster, rather than an individual node, and can be associated with multiple IP addresses, not just one address.
During installation of the Oracle Grid Infrastructure, a listener is created for each of the SCAN addresses. Clients that access the Oracle RAC database should use the
SCAN or SCAN address, not the VIP name or address. If an application uses a SCAN to connect to the cluster database, the network configuration files on the client
computer do not need to be modified when nodes are added to or removed from the cluster. Note that SCAN addresses, virtual IP addresses, and public IP addresses must
all be on the same subnet.
The SCAN should be configured so that it is resolvable either by using Grid Naming Service (GNS) within the cluster or by using the traditional method of assigning static IP
addresses using Domain Name Service (DNS) resolution.
In this article, I will configure SCAN for round-robin resolution to three, manually configured static IP address using the DNS method.
racnode-cluster-scan IN A 192.168.1.187
racnode-cluster-scan IN A 192.168.1.188
racnode-cluster-scan IN A 192.168.1.189
Further details regarding the configuration of SCAN will be provided in the section "Verify SCAN Configuration" during the network configuration phase of this guide..
Automatic Storage Management (ASM) is now fully integrated with Oracle Clusterware in the Oracle Grid Infrastructure. Oracle ASM and Oracle Database 11g Release 2
provide a more enhanced storage solution from previous releases. Part of this solution is the ability to store the Oracle Clusterware files; namely the Oracle Cluster Registry
(OCR) and the Voting Files (VF, also known as the Voting Disks) on ASM. This feature enables ASM to provide a unified storage solution, storing all the data for the
clusterware and the database without the need for third-party volume managers or cluster file systems.
Just like database files, Oracle Clusterware files are stored in an ASM disk group and therefore utilize the ASM disk group configuration with respect to redundancy. For
example, a Normal Redundancy ASM disk group will hold a two-way-mirrored OCR. A failure of one disk in the disk group will not prevent access to the OCR. With a High
Redundancy ASM disk group (three-way-mirrored), two independent disks can fail without impacting access to the OCR. With External Redundancy, no protection is
provided by Oracle.
Oracle only allows one OCR per disk group in order to protect against physical disk failures. When configuring Oracle Clusterware files on a production system, Oracle
recommends using either normal or high redundancy ASM disk groups. If disk mirroring is already occurring at either the OS or hardware level, you can use external
redundancy.
The Voting Files are managed in a similar way to the OCR. They follow the ASM disk group configuration with respect to redundancy, but are not managed as normal ASM
files in the disk group. Instead, each voting disk is placed on a specific disk in the disk group. The disk and the location of the Voting Files on the disks are stored internally
within Oracle Clusterware.
The following example describes how the Oracle Clusterware files are stored in ASM after installing Oracle Grid Infrastructure using this guide. To view the OCR, use
ASMCMD.
From the example above, you can see that after listing all of the ASM files in the +CRS/racnode-cluster/OCRFILE directory, it only shows the OCR
(REGISTRY.255.703024853). The listing does not show the Voting File(s) because they are not managed as normal ASM files. To find the location of all Voting Files within
Oracle Clusterware, use the crsctl query css votedisk command as follows.
If you decide against using ASM for the OCR and voting disk files, Oracle Clusterware still allows these files to be stored on a cluster file system like Oracle Cluster File
System Release 2 (OCFS2) or a NFS system. Please note that installing Oracle Clusterware files on raw or block devices is no longer supported, unless an existing system
is being upgraded.
Previous versions of this guide used OCFS2 for storing the OCR and voting disk files. This guide will store the OCR and voting disk files on ASM in an ASM disk group
named +CRS using external redundancy which is one OCR location and one voting disk location. The ASM disk group should be be created on shared storage and be at
least 2GB in size.
The Oracle physical database files (data, online redo logs, control files, archived redo logs) will be installed on ASM in an ASM disk group named +RACDB_DATA while the
Fast Recovery Area will be created in a separate ASM disk group named +FRA.
The two Oracle RAC nodes and the network storage server will be configured as follows.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 3/48
11/15/2018 DBA Tips Archive for Oracle
Oracle RAC / Openfiler Nodes
Node Name Instance Name Database Name Processor RAM Operating System
racnode1 racdb1 1 x Dual Core Intel Xeon, 3.00 GHz 4GB CentOS 5.5 - (x86_64)
racdb.idevelopment.info
racnode2 racdb2 1 x Dual Core Intel Xeon, 3.00 GHz 4GB CentOS 5.5 - (x86_64)
Network Configuration
Software Component OS User Primary Group Supplementary Groups Home Directory Oracle Base / Oracle Home
/u01/app/grid
Grid Infrastructure grid oinstall asmadmin, asmdba, asmoper /home/grid
/u01/app/11.2.0/grid
/u01/app/oracle
Oracle RAC oracle oinstall dba, oper, asmdba /home/oracle
/u01/app/oracle/product/11.2.0/dbhome_1
Storage Components
Storage Component File System Volume Size ASM Volume Group Name ASM Redundancy Openfiler Volume Name
This article is only designed to work as documented with absolutely no substitutions. The only exception here is the choice of vendor hardware (i.e. machines, networking
equipment, and internal / external hard drives). Ensure that the hardware you purchase from the vendor is supported on Red Hat Enterprise Linux 5 and Openfiler 2.3 (Final
Release).
If you are looking for an example that takes advantage of Oracle RAC 10g Release 2 with RHEL 5.3 using iSCSI, click here.
If you are looking for an example that takes advantage of Oracle RAC 11g release 1 with RHEL 5.1 using iSCSI, click here.
The concept of clustering computers actually started several decades ago. The first successful cluster product was developed by DataPoint in 1977 named ARCnet. The
ARCnet product enjoyed much success by academia types in research labs, but didn't really take off in the commercial market. It wasn't until the 1980's when Digital
Equipment Corporation (DEC) released its VAX cluster product for the VAX/VMS operating system.
With the release of Oracle 6 for the Digital VAX cluster product, Oracle was the first commercial database to support clustering at the database level. It wasn't long, however,
before Oracle realized the need for a more efficient and scalable distributed lock manager (DLM) as the one included with the VAX/VMS cluster product was not well suited
for database applications. Oracle decided to design and write their own DLM for the VAX/VMS cluster product which provided the fine-grain block level locking required by
the database. Oracle's own DLM was included in Oracle 6.2 which gave birth to Oracle Parallel Server (OPS) - the first database to run the parallel server.
By Oracle 7, OPS was extended to included support for not only the VAX/VMS cluster product but also with most flavors of UNIX. This framework required vendor-supplied
clusterware which worked well, but made for a complex environment to setup and manage given the multiple layers involved. By Oracle8, Oracle introduced a generic lock
manager that was integrated into the Oracle kernel. In later releases of Oracle, this became known as the Integrated Distributed Lock Manager (IDLM) and relied on an
additional layer known as the Operating System Dependant (OSD) layer. This new model paved the way for Oracle to not only have their own DLM, but to also create their
own clusterware product in future releases.
Oracle Real Application Clusters (RAC), introduced with Oracle9i, is the successor to Oracle Parallel Server. Using the same IDLM, Oracle9i could still rely on external
clusterware but was the first release to include their own clusterware product named Cluster Ready Services (CRS). With Oracle9i, CRS was only available for Windows and
Linux. By Oracle 10g release 1, Oracle's clusterware product was available for all operating systems and was the required cluster technology for Oracle RAC. With the
release of Oracle Database 10g Release 2 (10.2), Cluster Ready Services was renamed to Oracle Clusterware. When using Oracle 10g or higher, Oracle Clusterware is the
only clusterware that you need for most platforms on which Oracle RAC operates (except for Tru cluster, in which case you need vendor clusterware). You can still use
clusterware from other vendors if the clusterware is certified, but keep in mind that Oracle RAC still requires Oracle Clusterware as it is fully integrated with the database
software. This guide uses Oracle Clusterware which as of 11g Release 2 (11.2), is now a component of Oracle Grid Infrastructure.
Like OPS, Oracle RAC allows multiple instances to access the same database (storage) simultaneously. RAC provides fault tolerance, load balancing, and performance
benefits by allowing the system to scale out, and at the same time since all instances access the same database, the failure of one node will not cause the loss of access to
the database.
At the heart of Oracle RAC is a shared disk subsystem. Each instance in the cluster must be able to access all of the data, redo log files, control files and parameter file for
all other instances in the cluster. The data disks must be globally available in order to allow all instances to access the database. Each instance has its own redo log files and
UNDO tablespace that are locally read/writable. The other instances in the cluster must be able to access them (read-only) in order to recover that instance in the event of a
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 4/48
11/15/2018 DBA Tips Archive for Oracle
system failure. The redo log files for an instance are only writable by that instance and will only be read from another instance during system failure. The UNDO, on the other
hand, is read all the time during normal database operation (e.g. for CR fabrication).
A big difference between Oracle RAC and OPS is the addition of Cache Fusion. With OPS a request for data from one instance to another required the data to be written to
disk first, then the requesting instance can read that data (after acquiring the required locks). This process was called disk pinging. With cache fusion, data is passed along a
high-speed interconnect using a sophisticated locking algorithm.
Not all database clustering solutions use shared storage. Some vendors use an approach known as a Federated Cluster, in which data is spread across several machines
rather than shared by all. With Oracle RAC, however, multiple instances use the same set of disks for storing data. Oracle's approach to clustering leverages the collective
processing power of all the nodes in the cluster and at the same time provides failover security.
Pre-configured Oracle RAC solutions are available from vendors such as Dell, IBM and HP for production environments. This article, however, focuses on putting together
your own Oracle RAC 11g environment for development and testing by using Linux servers and a low cost shared disk solution; iSCSI.
For more background about Oracle RAC, visit the Oracle RAC Product Center on OTN.
Shared-Storage Overview
Today, fibre channel is one of the most popular solutions for shared storage. As mentioned earlier, fibre channel is a high-speed serial-transfer interface that is used to
connect systems and storage devices in either point-to-point (FC-P2P), arbitrated loop (FC-AL), or switched topologies (FC-SW). Protocols supported by Fibre Channel
include SCSI and IP. Fibre channel configurations can support as many as 127 nodes and have a throughput of up to 2.12 Gigabits per second in each direction, and 4.25
Gbps is expected.
Fibre channel, however, is very expensive. Just the fibre channel switch alone can start at around US$1,000. This does not even include the fibre channel storage array and
high-end drives, which can reach prices of about US$300 for a single 36GB drive. A typical fibre channel setup which includes fibre channel cards for the servers is roughly
US$10,000, which does not include the cost of the servers that make up the Oracle database cluster.
A less expensive alternative to fibre channel is SCSI. SCSI technology provides acceptable performance for shared storage, but for administrators and developers who are
used to GPL-based Linux prices, even SCSI can come in over budget, at around US$2,000 to US$5,000 for a two-node cluster.
Another popular solution is the Sun NFS (Network File System) found on a NAS. It can be used for shared storage but only if you are using a network appliance or
something similar. Specifically, you need servers that guarantee direct I/O over NFS, TCP as the transport protocol, and read/write block sizes of 32K. See the Certify page
on Oracle Metalink for supported Network Attached Storage (NAS) devices that can be used with Oracle RAC. One of the key drawbacks that has limited the benefits of
using NFS and NAS for database storage has been performance degradation and complex configuration requirements. Standard NFS client software (client systems that
use the operating system provided NFS driver) is not optimized for Oracle database file I/O access patterns. With the introduction of Oracle 11g, a new feature known as
Direct NFS Client integrates the NFS client functionality directly in the Oracle software. Through this integration, Oracle is able to optimize the I/O path between the Oracle
software and the NFS server resulting in significant performance gains. Direct NFS Client can simplify, and in many cases automate, the performance optimization of the
NFS client configuration for database workloads. To learn more about Direct NFS Client, see the Oracle White Paper entitled "Oracle Database 11g Direct NFS Client".
The shared storage that will be used for this article is based on iSCSI technology using a network storage server installed with Openfiler. This solution offers a low-cost
alternative to fibre channel for testing and educational purposes, but given the low-end hardware being used, it is not often used in a production environment.
iSCSI Technology
For many years, the only technology that existed for building a network based storage solution was a Fibre Channel Storage Area Network (FC SAN). Based on an earlier
set of ANSI protocols called Fiber Distributed Data Interface (FDDI), Fibre Channel was developed to move SCSI commands over a storage network.
Several of the advantages to FC SAN include greater performance, increased disk utilization, improved availability, better scalability, and most important to us — support for
server clustering! Still today, however, FC SANs suffer from three major disadvantages. The first is price. While the costs involved in building a FC SAN have come down in
recent years, the cost of entry still remains prohibitive for small companies with limited IT budgets. The second is incompatible hardware components. Since its adoption,
many product manufacturers have interpreted the Fibre Channel specifications differently from each other which has resulted in scores of interconnect problems. When
purchasing Fibre Channel components from a common manufacturer, this is usually not a problem. The third disadvantage is the fact that a Fibre Channel network is not
Ethernet! It requires a separate network technology along with a second set of skill sets that need to exist with the data center staff.
With the popularity of Gigabit Ethernet and the demand for lower cost, Fibre Channel has recently been given a run for its money by iSCSI-based storage systems. Today,
iSCSI SANs remain the leading competitor to FC SANs.
Ratified on February 11, 2003 by the Internet Engineering Task Force (IETF), the Internet Small Computer System Interface, better known as iSCSI, is an Internet Protocol
(IP)-based storage networking standard for establishing and managing connections between IP-based storage devices, hosts, and clients. iSCSI is a data transport protocol
defined in the SCSI-3 specifications framework and is similar to Fibre Channel in that it is responsible for carrying block-level data over a storage network. Block-level
communication means that data is transferred between the host and the client in chunks called blocks. Database servers depend on this type of communication (as opposed
to the file level communication used by most NAS systems) in order to work properly. Like a FC SAN, an iSCSI SAN should be a separate physical network devoted entirely
to storage, however, its components can be much the same as in a typical IP network (LAN).
While iSCSI has a promising future, many of its early critics were quick to point out some of its inherent shortcomings with regards to performance. The beauty of iSCSI is its
ability to utilize an already familiar IP network as its transport mechanism. The TCP/IP protocol, however, is very complex and CPU intensive. With iSCSI, most of the
processing of the data (both TCP and iSCSI) is handled in software and is much slower than Fibre Channel which is handled completely in hardware. The overhead incurred
in mapping every SCSI command onto an equivalent iSCSI transaction is excessive. For many the solution is to do away with iSCSI software initiators and invest in
specialized cards that can offload TCP/IP and iSCSI processing from a server's CPU. These specialized cards are sometimes referred to as an iSCSI Host Bus Adaptor
(HBA) or a TCP Offload Engine (TOE) card. Also consider that 10-Gigabit Ethernet is a reality today!
So with all of this talk about iSCSI, does this mean the death of Fibre Channel anytime soon? Probably not. Fibre Channel has clearly demonstrated its capabilities over the
years with its capacity for extremely high speeds, flexibility, and robust reliability. Customers who have strict requirements for high performance storage, large complex
connectivity, and mission critical reliability will undoubtedly continue to choose Fibre Channel.
As with any new technology, iSCSI comes with its own set of acronyms and terminology. For the purpose of this article, it is only important to understand the difference
between an iSCSI initiator and an iSCSI target.
iSCSI Initiator
Basically, an iSCSI initiator is a client device that connects and initiates requests to some service offered by a server (in this case an iSCSI target). The iSCSI initiator
software will need to exist on each of the Oracle RAC nodes (racnode1 and racnode2).
An iSCSI initiator can be implemented using either software or hardware. Software iSCSI initiators are available for most major operating system platforms. For this article,
we will be using the free Linux Open-iSCSI software driver found in the iscsi-initiator-utils RPM. The iSCSI software initiator is generally used with a standard
network interface card (NIC) — a Gigabit Ethernet card in most cases. A hardware initiator is an iSCSI HBA (or a TCP Offload Engine (TOE) card), which is basically just a
specialized Ethernet card with a SCSI ASIC on-board to offload all the work (TCP and SCSI commands) from the system CPU. iSCSI HBAs are available from a number of
vendors, including Adaptec, Alacritech, Intel, and QLogic.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 5/48
11/15/2018 DBA Tips Archive for Oracle
iSCSI Target
An iSCSI target is the "server" component of an iSCSI network. This is typically the storage device that contains the information you want and answers requests from the
initiator(s). For the purpose of this article, the node openfiler1 will be the iSCSI target.
Dual Core Intel(R) Xeon(R) E3110, 3.0 GHz, 6MB Cache, 1333MHz
4GB, DDR2, 800MHz
160GB 7.2K RPM SATA 3Gbps Hard Drive
Integrated Graphics - (ATI ES1000)
Integrated Gigabit Ethernet - (Broadcom(R) NetXtreme IITM 5722)
16x DVD Drive
No Keyboard, Monitor, or Mouse - (Connected to KVM Switch)
US$500
Each Linux server for Oracle RAC should contain at least two NIC adapters. The Dell PowerEdge T100 includes an
embedded Broadcom(R) NetXtreme IITM 5722 Gigabit Ethernet NIC that will be used to connect to the public network.
A second NIC adapter will be used for the private network (RAC interconnect and Openfiler networked storage). Select
the appropriate NIC adapter that is compatible with the maximum data transmission speed of the network switch to be
used for the private network. For the purpose of this article, I used a Gigabit Ethernet switch (and a 1Gb Ethernet card)
for the private network.
Dual Core Intel(R) Xeon(R) E3110, 3.0 GHz, 6MB Cache, 1333MHz
4GB, DDR2, 800MHz
160GB 7.2K RPM SATA 3Gbps Hard Drive
Integrated Graphics - (ATI ES1000)
Integrated Gigabit Ethernet - (Broadcom(R) NetXtreme IITM 5722)
16x DVD Drive
No Keyboard, Monitor, or Mouse - (Connected to KVM Switch)
US$500
Each Linux server for Oracle RAC should contain at least two NIC adapters. The Dell PowerEdge T100 includes an
embedded Broadcom(R) NetXtreme IITM 5722 Gigabit Ethernet NIC that will be used to connect to the public network.
A second NIC adapter will be used for the private network (RAC interconnect and Openfiler networked storage). Select
the appropriate NIC adapter that is compatible with the maximum data transmission speed of the network switch to be
used for the private network. For the purpose of this article, I used a Gigabit Ethernet switch (and a 1Gb Ethernet card)
for the private network.
Note: The rPath Linux operating system and Openfiler application will be installed on the 500GB internal SATA disk. A
second internal 73GB 15K SCSI hard disk will be configured for the shared database storage. The Openfiler server will
be configured to use this second hard disk for iSCSI based storage and will be used in our Oracle RAC 11g configuration
to store the shared files required by Oracle Clusterware as well as the cluster database files.
Please be aware that any type of hard disk (internal or external) should work for the shared disk storage as long as it
can be recognized by the network storage server (Openfiler) and has adequate space. For example, I could have made
an extra partition on the 500GB internal SATA disk for the iSCSI target, but decided to make use of the faster SCSI disk
for this example.
Finally, although the Openfiler server used in this example configuration contains 6GB of memory, this is by no means a
requirement. The Openfiler server could be configured with as little as 2GB for a small test / evaluation network storage
server.
US$800
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 6/48
11/15/2018 DBA Tips Archive for Oracle
The Network Storage Server (Openfiler server) should contain two NIC adapters. The Dell PowerEdge 1800 machine
included an integrated 10/100/1000 Ethernet adapter that will be used to connect to the public network. The second
NIC adapter will be used for the private network (Openfiler networked storage). Select the appropriate NIC adapter that
is compatible with the maximum data transmission speed of the network switch to be used for the private network. For
the purpose of this article, I used a Gigabit Ethernet switch (and 1Gb Ethernet card) for the private network.
Miscellaneous Components
1 x Ethernet Switch
Used for the interconnect between racnode1-priv and racnode2-priv which will be on the 192.168.2.0 network. This
switch will also be used for network storage traffic for Openfiler. For the purpose of this article, I used a Gigabit Ethernet
switch (and 1Gb Ethernet cards) for the private network.
Note: This article assumes you already have a switch or VLAN in place what will be used for the public network.
6 x Network Cables
Optional Components
KVM Switch
This guide requires access to the console of all machines in order to install the operating system and perform several of
the configuration tasks. When managing a very small number of servers, it might make sense to connect each server
with its own monitor, keyboard, and mouse in order to access its console. However, as the number of servers to manage
increases, this solution becomes unfeasible. A more practical solution would be to configure a dedicated device which
would include a single monitor, keyboard, and mouse that would have direct access to the console of each server. This
solution is made possible using a Keyboard, Video, Mouse Switch —better known as a KVM Switch. A KVM switch is a
hardware device that allows a user to control multiple computers from a single keyboard, video monitor and mouse.
Avocent provides a high quality and economical 4-port switch which includes four 6' cables.
For a detailed explanation and guide on the use and KVM switches, please see the article "KVM Switches For the Home
and the Enterprise".
US$350
Total US$2,565
We are about to start the installation process. Now that we have talked about the hardware that will be used in this example, let's take a conceptual look at what the
environment would look like after connecting all of the hardware components (click on the graphic below to view larger image).
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 7/48
11/15/2018 DBA Tips Archive for Oracle
As we start to go into the details of the installation, note that most of the tasks within this document will need to be performed on both Oracle RAC nodes (racnode1 and
racnode2). I will indicate at the beginning of each section whether or not the task(s) should be performed on both Oracle RAC nodes or on the network storage server
(openfiler1).
This section provides a summary of the screens used to install the Linux operating system. This guide is designed to work with CentOS release 5.5 for x86_64 or Red Hat
Enterprise Linux 5.5 for x86_64 and follows Oracle's suggestion of performing a "default RPMs" installation type to ensure all expected Linux O/S packages are present for a
successful Oracle RDBMS installation.
Although I have used Red Hat Fedora in the past, I wanted to switch to a Linux environment that would guarantee all of the functionality contained with Oracle. This is where
CentOS comes in. The CentOS project takes the Red Hat Enterprise Linux 5 source RPMs and compiles them into a free clone of the Red Hat Enterprise Server 5 product.
This provides a free and stable version of the Red Hat Enterprise Linux 5 (AS/ES) operating environment that I can use for Oracle testing and development. I have moved
away from Fedora as I need a stable environment that is not only free, but as close to the actual Oracle supported operating system as possible. While CentOS is not the
only project performing the same functionality, I tend to stick with it as it is stable and reacts fast with regards to updates by Red Hat.
Download CentOS
Use the links below to download CentOS 5.5 for either x86 or x86_64 depending on your hardware architecture.
Note: If the Linux RAC nodes have a DVD installed, you may find it more convenient to make use of the single DVD image (requires BitTorrent).
Note: If the Linux RAC nodes have a DVD installed, you may find it more convenient to make use of the two DVD images (requires BitTorrent).
If you are downloading the above ISO files to a MS Windows machine, there are many options for burning these images (ISO files) to a CD. You may already be familiar with
and have the proper software to burn images to CD. If you are not familiar with this process and do not have the required software to burn images to CD, here are just three
of the many software packages that can be used.
InfraRecorder
UltraISO
Magic ISO Maker
Install CentOS
After downloading and burning the CentOS images (ISO files) to CD/DVD, insert CentOS Disk #1 into the first server (racnode1 in this example), power it on, and answer
the installation screen prompts as noted below. After completing the Linux installation on the first node, perform the same Linux installation on the second node while
substituting the node name racnode1 for racnode2 and the different IP addresses were appropriate.
Before installing the Linux operating system on both nodes, you should have the two NIC
interfaces (cards) installed.
Boot Screen
The first screen is the CentOS boot screen. At the boot: prompt, hit [Enter] to start the installation process.
Media Test
When asked to test the CD media, tab over to [Skip] and hit [Enter]. If there were any errors, the media burning software would have warned us. After several seconds, the
installer should then detect the video card, monitor, and mouse. The installer then goes into GUI mode.
Welcome to CentOS
The next two screens prompt you for the Language and Keyboard settings. Make the appropriate selection for your configuration and click [Next] to continue.
If the installer detects a previous version of RHEL / CentOS, it will ask if you would like to "Install CentOS" or "Upgrade an existing Installation". Always select to Install
CentOS.
Select "Remove all partitions on selected drives and create default layout" and check the option to "Review and modify partitioning layout". Click "[Next]" to continue.
You will then be prompted with a dialog window asking if you really want to remove all Linux partitions. Click [Yes] to acknowledge this warning.
Partitioning
The installer will then allow you to view (and modify if needed) the disk partitions it automatically selected. For most automatic layouts, the installer will choose 100MB for
/boot, double the amount of RAM (systems with <= 2,048MB RAM) or an amount equal to RAM (systems with > 2,048MB RAM) for swap, and the rest going to the root (/)
partition. Starting with RHEL 4, the installer will create the same disk configuration as just noted but will create them using the Logical Volume Manager (LVM). For example,
it will partition the first hard drive (/dev/sda for my configuration) into two partitions — one for the /boot partition (/dev/sda1) and the remainder of the disk dedicate to a
LVM named VolGroup00 (/dev/sda2). The LVM Volume Group (VolGroup00) is then partitioned into two LVM partitions - one for the root file system (/) and another for
swap.
The main concern during the partitioning phase is to ensure enough swap space is allocated as required by Oracle (which is a multiple of the available RAM). The following
is Oracle's minimum requirement for swap space.
For the purpose of this install, I will accept all automatically preferred sizes. (Including 5,952MB for swap since I have 4GB of RAM installed.)
If for any reason, the automatic layout does not configure an adequate amount of swap space, you can easily change that from this screen. To increase the size of the swap
partition, [Edit] the volume group VolGroup00. This will bring up the "Edit LVM Volume Group: VolGroup00" dialog. First, [Edit] and decrease the size of the root file system
(/) by the amount you want to add to the swap partition. For example, to add another 512MB to swap, you would decrease the size of the root file system by 512MB (i.e.
36,032MB - 512MB = 35,520MB). Now add the space you decreased from the root file system (512MB) to the swap partition. When completed, click [OK] on the "Edit LVM
Volume Group: VolGroup00" dialog.
Once you are satisfied with the disk layout, click [Next] to continue.
The installer will use the GRUB boot loader by default. To use the "GRUB boot loader", accept all default values and click [Next] to continue.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 9/48
11/15/2018 DBA Tips Archive for Oracle
Network Configuration
I made sure to install both NIC interfaces (cards) in each of the Linux machines before starting the operating system installation. The installer should have successfully
detected each of the network devices. Since this guide will use the traditional method of assigning static IP addresses for each of the Oracle RAC nodes, there will be
several changes that need to be made to the network configuration. The settings you make here will, of course, depend on your network configuration. The most important
modification that will be required for this guide is to not configure the Oracle RAC nodes with DHCP since we will be assigning static IP addresses. Additionally, you will need
to configure the server with a real host name.
First, make sure that each of the network devices are checked to "Active on boot". The installer may choose to not activate eth1 by default.
Second, [Edit] both eth0 and eth1 as follows. You may choose to use different IP addresses for both eth0 and eth1 that I have documented in this guide and that is OK.
Make certain to put eth1 (the interconnect) on a different subnet than eth0 (the public network).
(racnode1)
eth0
eth1
Continue by manually setting your hostname. I used racnode1 for the first node and racnode2 for the second. Finish this dialog off by supplying your gateway and DNS
servers.
Additional DNS configuration information for both of the Oracle RAC nodes will be
discussed later in this guide.
Select the appropriate time zone for your environment and click [Next] to continue.
By default, CentOS installs most of the software required for a typical server. There are several other packages (RPMs), however, that are required to successfully install the
Oracle software. The installer includes a "Customize software" selection that allows the addition of RPM groupings such as "Development Libraries" or "Legacy Library
Support". The addition of such RPM groupings is not an issue. De-selecting any "default RPM" groupings or individual RPMs, however, can result in failed Oracle Grid
Infrastructure and Oracle RAC installation attempts.
For the purpose of this article, select the radio button "Customize now" and click [Next] to continue.
This is where you pick the packages to install. Most of the packages required for the Oracle software are grouped into "Package Groups" (i.e. Application -> Editors). Since
these nodes will be hosting the Oracle Grid Infrastructure and Oracle RAC software, verify that at least the following package groups are selected for install. For many of the
Linux package groups, not all of the packages associated with that group get selected for installation. (Note the "Optional packages" button after selecting a package group.)
So although the package group gets selected for install, some of the packages required by Oracle do not get installed. In fact, there are some packages that are required by
Oracle that do not belong to any of the available package groups (i.e. libaio-devel). Not to worry. A complete list of required packages for Oracle Grid Infrastructure 11g
Release 2 and Oracle RAC 11g Release 2 for Linux will be provided in the next section. These packages will need to be manually installed from the CentOS CDs after the
operating system install. For now, install the following package groups.
Desktop Environments
Applications
Editors
Graphical Internet
Text-based Internet
Development
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 10/48
11/15/2018 DBA Tips Archive for Oracle
Development Libraries
Development Tools
Legacy Software Development
Servers
Base System
Administration Tools
Base
Java
Legacy Software Support
System Tools
X Window System
In addition to the above packages, select any additional packages you wish to install for this node keeping in mind to NOT de-select any of the "default" RPM packages.
After selecting the packages to install click [Next] to continue.
About to Install
This screen is basically a confirmation screen. Click [Next] to start the installation. If you are installing CentOS using CDs, you will be asked to switch CDs during the
installation process depending on which packages you selected.
Congratulations
And that's it. You have successfully installed Linux on the first node (racnode1). The installer will eject the CD/DVD from the CD-ROM drive. Take out the CD/DVD and click
[Reboot] to reboot the system.
When the system boots into CentOS Linux for the first time, it will prompt you with another welcome screen for the "Post Installation Wizard". The post installation wizard
allows you to make final O/S configuration settings. On the "Welcome screen", click [Forward] to continue.
Firewall
On this screen, make sure to select the "Disabled" option and click [Forward] to continue.
You will be prompted with a warning dialog about not setting the firewall. When this occurs, click [Yes] to continue.
SELinux
On the SELinux screen, choose the "Disabled" option and click [Forward] to continue.
You will be prompted with a warning dialog warning that changing the SELinux setting will require rebooting the system so the entire file system can be relabeled. When this
occurs, click [Yes] to acknowledge a reboot of the system will occur after firstboot (Post Installation Wizard) is completed.
Kdump
Accept the default setting on the Kdump screen (disabled) and click [Forward] to continue.
Adjust the date and time settings if necessary and click [Forward] to continue.
Create User
Create any additional (non-oracle) operating system user accounts if desired and click [Forward] to continue. For the purpose of this article, I will not be creating any
additional operating system accounts. I will be creating the "grid" and "oracle" user accounts later in this guide.
If you chose not to define any additional operating system user accounts, click [Continue] to acknowledge the warning dialog.
Sound Card
This screen will only appear if the wizard detects a sound card. On the sound card screen click [Forward] to continue.
Additional CDs
Reboot System
Given we changed the SELinux option to "Disabled", we are prompted to reboot the system. Click [OK] to reboot the system for normal use.
Login Screen
After rebooting the machine, you are presented with the login screen. Log in using the "root" user account and the password you provided during the installation.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 11/48
11/15/2018 DBA Tips Archive for Oracle
After completing the Linux installation on the first node, repeat the above steps for the second node (racnode2). When configuring the machine name and networking,
ensure to configure the proper values. For my installation, this is what I configured for racnode2.
First, make sure that each of the network devices are checked to "Active on boot". The installer may choose to not activate eth1 by default.
Second, [Edit] both eth0 and eth1 as follows. You may choose to use different IP addresses for both eth0 and eth1 that I have documented in this guide and that is OK.
Make certain to put eth1 (the interconnect) on a different subnet than eth0 (the public network).
(racnode2)
eth0
eth1
Continue by manually setting your hostname. I used racnode2 for the second node. Finish this dialog off by supplying your gateway and DNS servers.
After installing the Linux O/S, the next step is to verify and install all packages (RPMs) required by both Oracle Clusterware and Oracle RAC. The Oracle Universal Installer
(OUI) performs checks on your machine during installation to verify that it meets the appropriate operating system package requirements. To ensure that these checks
complete successfully, verify the software requirements documented in this section before starting the Oracle installs.
Although many of the required packages for Oracle were installed during the Linux installation, several will be missing either because they were considered optional within
the package group or simply didn't exist in any package group.
The packages listed in this section (or later versions) are required for Oracle Grid Infrastructure 11g Release 2 and Oracle RAC 11g Release 2 running on the Red Hat
Enterprise Linux 5 or CentOS 5 platform.
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.52
glibc-headers-2.5
kernel-headers-2.6.18
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
make-3.81
pdksh-5.2.14
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
Each of the packages listed above can be found on CD #1, CD #2, CD #3, and CD #4 on the CentOS 5.5 for x86 CDs. While it is possible to query each individual package
to determine which ones are missing and need to be installed, an easier method is to run the rpm -Uvh PackageName command from the four CDs as follows. For packages
that already exist and are up to date, the RPM command will simply ignore the install and print a warning message to the console that the package is already installed.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 12/48
11/15/2018 DBA Tips Archive for Oracle
# From CentOS 5.5 (x86)- [CD #1]
mkdir -p /media/cdrom
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/CentOS
rpm -Uvh binutils-2.*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh kernel-headers-2.*
rpm -Uvh ksh-2*
rpm -Uvh libaio-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
cd /
eject
--------------------------------------------------------------------------------------
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 13/48
11/15/2018 DBA Tips Archive for Oracle
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
pdksh-5.2.14
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)
Each of the packages listed above can be found on CD #1, CD #3, CD #4, and CD #5 on the CentOS 5.5 for x86_64 CDs. While it is possible to query each individual
package to determine which ones are missing and need to be installed, an easier method is to run the rpm -Uvh PackageName command from the four CDs as follows. For
packages that already exist and are up to date, the RPM command will simply ignore the install and print a warning message to the console that the package is already
installed.
--------------------------------------------------------------------------------------
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 14/48
11/15/2018 DBA Tips Archive for Oracle
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/CentOS
rpm -Uvh binutils-2.*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh ksh-2*
rpm -Uvh libaio-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
rpm -Uvh elfutils-libelf-devel-*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh unixODBC-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh libaio-devel-0.*
rpm -Uvh pdksh-5.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh sysstat-7.*
cd /
eject
Install Openfiler
Perform the following installation on the network storage server (openfiler1).
With Linux installed on both Oracle RAC nodes, the next step is to install the Openfiler software to the network storage server (openfiler1). Later in this guide, the network
storage server will be configured as an iSCSI storage device for all Oracle Clusterware and Oracle RAC shared storage requirements.
Powered by rPath Linux, Openfiler is a free browser-based network storage management utility that delivers file-based Network Attached Storage (NAS) and block-based
Storage Area Networking (SAN) in a single framework. The entire software stack interfaces with open source applications such as Apache, Samba, LVM2, ext3, Linux NFS
and iSCSI Enterprise Target. Openfiler combines these ubiquitous technologies into a small, easy to manage solution fronted by a powerful web-based management
interface.
Openfiler supports CIFS, NFS, HTTP/DAV, FTP, however, we will only be making use of its iSCSI capabilities to implement an inexpensive SAN for the shared storage
components required by Oracle RAC 11g. The rPath Linux operating system and Openfiler application will be installed on one internal SATA disk. A second internal 73GB
15K SCSI hard disk will be configured as a single volume group that will be used for all shared disk storage requirements. The Openfiler server will be configured to use this
volume group for iSCSI based storage and will be used in our Oracle RAC 11g configuration to store the shared files required by Oracle Clusterware and the Oracle RAC
database.
Please be aware that any type of hard disk (internal or external) should work for the shared database storage as long as it can be recognized by the network storage server
(Openfiler) and has adequate space. For example, I could have made an extra partition on the 500GB internal SATA disk for the iSCSI target, but decided to make use of the
faster SCSI disk for this example.
Download Openfiler
Use the links below to download Openfiler NAS/SAN Appliance, version 2.3 (Final Release) for either x86 or x86_64 depending on your hardware architecture. This guide
uses x86_64. After downloading Openfiler, you will then need to burn the ISO image to CD.
If you are downloading the above ISO file to a MS Windows machine, there are many options for burning these images (ISO files) to a CD. You may already be familiar with
and have the proper software to burn images to CD. If you are not familiar with this process and do not have the required software to burn images to CD, here are just three
of the many software packages that can be used.
InfraRecorder
UltraISO
Magic ISO Maker
Install Openfiler
This section provides a summary of the screens used to install the Openfiler software. For the purpose of this article, I opted to install Openfiler with all default options. The
only manual change required was for configuring the local network settings.
Once the install has completed, the server will reboot to make sure all required components, services and drivers are started and recognized. After the reboot, any external
hard drives (if connected) will be discovered by the Openfiler server.
For more detailed installation instructions, please visit http://www.openfiler.com/learn/. I would suggest, however, that the instructions I have provided below be used for this
Oracle RAC 11g configuration.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 15/48
11/15/2018 DBA Tips Archive for Oracle
Before installing the Openfiler software to the network storage server, you should have both NIC interfaces (cards) installed and any external hard drives connected and
turned on (if you will be using external hard drives).
After downloading and burning the Openfiler ISO image file to CD, insert the CD into the network storage server (openfiler1 in this example), power it on, and answer the
installation screen prompts as noted below.
Boot Screen
The first screen is the Openfiler boot screen. At the boot: prompt, hit [Enter] to start the installation process.
Media Test
When asked to test the CD media, tab over to [Skip] and hit [Enter]. If there were any errors, the media burning software would have warned us. After several seconds, the
installer should then detect the video card, monitor, and mouse. The installer then goes into GUI mode.
Keyboard Configuration
The next screen prompts you for the Keyboard settings. Make the appropriate selection for your configuration.
The next screen asks whether to perform disk partitioning using "Automatic Partitioning" or "Manual Partitioning with Disk Druid". Although the official Openfiler
documentation suggests to use Manual Partitioning, I opted to use "Automatic Partitioning" given the simplicity of my example configuration.
Automatic Partitioning
If there were a previous installation of Linux on this machine, the next screen will ask if you want to "remove" or "keep" old partitions. Select the option to [Remove all
partitions on this system]. For my example configuration, I selected ONLY the 500GB SATA internal hard drive [sda] for the operating system and Openfiler application
installation. I de-selected the 73GB SCSI internal hard drive since this disk will be used exclusively later in this guide to create a single "Volume Group" (racdbvg) that will be
used for all iSCSI based shared disk storage requirements for Oracle Clusterware and Oracle RAC.
I also keep the check-box [Review (and modify if needed) the partitions created] selected. Click [Next] to continue.
You will then be prompted with a dialog window asking if you really want to remove all partitions. Click [Yes] to acknowledge this warning.
Partitioning
The installer will then allow you to view (and modify if needed) the disk partitions it automatically chose for hard disks selected in the previous screen. In almost all cases, the
installer will choose 100MB for /boot, an adequate amount of swap, and the rest going to the root (/) partition for that disk (or disks). In this example, I am satisfied with the
installers recommended partitioning for /dev/sda.
The installer will also show any other internal hard disks it discovered. For my example configuration, the installer found the 73GB SCSI internal hard drive as /dev/sdb. For
now, I will "Delete" any and all partitions on this drive (there was only one, /dev/sdb1). Later in this guide, I will create the required partition for this particular hard disk.
Network Configuration
I made sure to install both NIC interfaces (cards) in the network storage server before starting the Openfiler installation. The installer should have successfully detected each
of the network devices.
First, make sure that each of the network devices are checked to [Active on boot]. The installer may choose to not activate eth1 by default.
Second, [Edit] both eth0 and eth1 as follows. You may choose to use different IP addresses for both eth0 and eth1 and that is OK. You must, however, configure eth1 (the
storage network) to be on the same subnet you configured for eth1 on racnode1 and racnode2.
eth0
Activate on boot ON
IP Address 192.168.1.195
Netmask 255.255.255.0
eth1
Activate on boot ON
IP Address 192.168.2.195
Netmask 255.255.255.0
Continue by setting your hostname manually. I used a hostname of "openfiler1". Finish this dialog off by supplying your gateway and DNS servers.
The next screen allows you to configure your time zone information. Make the appropriate selection for your location.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 16/48
11/15/2018 DBA Tips Archive for Oracle
About to Install
This screen is basically a confirmation screen. Click [Next] to start the installation.
Congratulations
And that's it. You have successfully installed Openfiler on the network storage server. The installer will eject the CD from the CD-ROM drive. Take out the CD and click
[Reboot] to reboot the system.
If everything was successful after the reboot, you should now be presented with a text login screen and the URL to use for administering the Openfiler server.
After installing Openfiler, verify you can log in to the machine using the root user account
and the password you supplied during installation. Do not attempt to log in to the console
or SSH using the built-in openfiler user account. Attempting to do so will result in the
following error message.
Only attempt to log in to the console or SSH using the root user account.
Network Configuration
Perform the following network configuration tasks on both Oracle RAC nodes in the cluster.
Although we configured several of the network settings during the Linux installation, it is important to not skip this section as it contains critical steps which include
configuring DNS and verifying you have the networking hardware and Internet Protocol (IP) addresses required for an Oracle Grid Infrastructure for a cluster installation.
Each Oracle RAC node must have at least two network adapters or network interface cards (NICs) — one for the public network interface and one for the private
network interface (the interconnect). To use multiple NICs for the public network or for the private network, Oracle recommends that you use NIC bonding. Use
separate bonding for the public and private networks (i.e. bond0 for the public network and bond1 for the private network), because during installation each interface is
defined as a public or private interface. NIC bonding is not covered in this article.
The public interface names associated with the network adapters for each network must be the same on all nodes, and the private interface names associated with
the network adaptors should be the same on all nodes.
For example, with our two-node cluster, you cannot configure network adapters on racnode1 with eth0 as the public interface, but on racnode2 have eth1 as the
public interface. Public interface names must be the same, so you must configure eth0 as public on both nodes. You should configure the private interfaces on the
same network adapters as well. If eth1 is the private interface for racnode1, then eth1 must be the private interface for racnode2.
For the public network, each network adapter must support TCP/IP.
For the private network, the interconnect must support the user datagram protocol (UDP) using high-speed network adapters and switches that support TCP/IP
(minimum requirement 1 Gigabit Ethernet).
UDP is the default interconnect protocol for Oracle RAC, and TCP is the interconnect protocol for Oracle Clusterware. You must use a switch for the interconnect.
Oracle recommends that you use a dedicated switch.
Oracle does not support token-rings or crossover cables for the interconnect.
For the private network, the endpoints of all designated interconnect interfaces must be completely reachable on the network. There should be no node that is not
connected to every private network interface. You can test if an interconnect interface is reachable using ping.
During installation of Oracle Grid Infrastructure, you are asked to identify the planned use for each network interface that OUI detects on your cluster node. You must
identify each interface as a public interface, a private interface, or not used and you must use the same private interfaces for both Oracle Clusterware and Oracle
RAC.
You can bond separate interfaces to a common interface to provide redundancy, in case of a NIC failure, but Oracle recommends that you do not create separate
interfaces for Oracle Clusterware and Oracle RAC. If you use more than one NIC for the private interconnect, then Oracle recommends that you use NIC bonding.
Note that multiple private interfaces provide load balancing but not failover, unless bonded.
Starting with Oracle Clusterware 11g Release 2, you no longer need to provide a private name or IP address for the interconnect. IP addresses on the subnet you
identify as private are assigned as private IP addresses for cluster member nodes. You do not need to configure these addresses manually in a hosts directory. If you
want name resolution for the interconnect, then you can configure private IP names in the hosts file or the DNS. However, Oracle Clusterware assigns interconnect
addresses on the interface defined during installation as the private interface (eth1, for example), and to the subnet used for the private subnet.
In practice, and for the purpose of this guide, I will continue to include a private name and IP address on each node for the RAC interconnect. It provides self-
documentation and a set of end-points on the private network I can use for troubleshooting purposes.
192.168.2.151 racnode1-priv
192.168.2.152 racnode2-priv
In a production environment that uses iSCSI for network storage, it is highly recommended to configure a redundant third network interface (eth2, for example) for
that storage traffic using a TCP/IP offload Engine (TOE) card. For the sake of brevity, this article will configure the iSCSI network storage traffic on the same network
as the RAC private interconnect (eth1). Combining the iSCSI storage traffic and cache fusion traffic for Oracle RAC on the same network interface works great for an
inexpensive test system (like the one described in this article) but should never be considered for production.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 17/48
11/15/2018 DBA Tips Archive for Oracle
The basic idea of a TOE is to offload the processing of TCP/IP protocols from the host processor to the hardware on the adapter or in the system. A TOE is often
embedded in a network interface card (NIC) or a host bus adapter (HBA) and used to reduce the amount of TCP/IP processing handled by the CPU and server I/O
subsystem and improve overall performance.
For this guide, I opted not to use Grid Naming Service (GNS) for assigning IP addresses to each Oracle RAC node but instead will manually assign them in DNS and hosts
files. I often refer to this traditional method of manually assigning IP addresses as the "DNS method" given the fact that all IP addresses should be resolved using DNS.
When using the DNS method for assigning IP addresses, Oracle recommends that all static IP addresses be manually configured in DNS before starting the Oracle Grid
Infrastructure installation. This would include the public IP address for the node, the RAC interconnect, virtual IP address (VIP), and new to 11g Release 2, the Single Client
Access Name (SCAN) virtual IP.
Note that Oracle requires you to define the SCAN domain address (racnode-cluster-
scan in this example) to resolve on your DNS to one of three possible IP addresses in
order to successfully install Oracle Grid Infrastructure! Defining the SCAN domain address
only in the hosts files for each Oracle RAC node, and not in DNS, will cause the "Oracle
Cluster Verification Utility" to fail with an [INS-20802] error during the Oracle Grid
Infrastructure install.
The following table displays the network configuration that will be used to build the example two-node Oracle RAC described in this guide. Note that every IP address will be
registered in DNS and the hosts file for each Oracle RAC node with the exception of the SCAN virtual IP. The SCAN virtual IP will only be registered in DNS.
DNS Configuration
The example Oracle RAC configuration described in this guide will use the traditional method of manually assigning static IP addresses and therefore requires a DNS server.
If you do not have access to a DNS server, this section includes detailed instructions for installing a minimal DNS server on the Openfiler network storage server.
If you already have access to a DNS server, simply add the appropriate A and PTR records for Oracle RAC to your DNS and skip ahead to the next section "Update
/etc/resolv.conf File". Note that in the example below, I am using the domain name idevelopment.info. Please feel free to substitute your own domain name if needed.
Installing DNS on the Openfiler network storage server is a trivial task. To install or update packages on Openfiler, use the command-line tool conary, developed by rPath.
To learn more about the different options and parameters that can be used with the conary utility, review the Conary QuickReference guide.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 18/48
11/15/2018 DBA Tips Archive for Oracle
To install DNS on the Openfiler server, run the following command as the root user account.
Configure DNS
Configuration of the DNS server involves creating and modifying the following files.
/etc/named.conf
The first step will be to create the DNS configuration file "/etc/named.conf". The /etc/named.conf configuration file used in this example will be kept fairly simple and only
contain the necessary customizations required to run a minimal DNS.
For the purpose of this guide, I will be using the domain name idevelopment.info and the IP range "192.168.1.*" for the public network. Please feel free to substitute
your own domain name if so desired. If you do decide to use a different domain name, make certain to modify it in all of the files that are part of the network configuration
described in this section.
The DNS configuration file described below is configured to resolve the names of the servers described in this guide. This includes the two Oracle RAC nodes, the Openfiler
network storage server (which is now also a DNS server!), and several other miscellaneous nodes. In order to make sure that servers on external networks, like those on the
Internet, are resolved properly, I needed to add DNS Forwarding by defining the forwarders directive. This directive tells the DNS, anything it can't resolve should be passed
to the DNS(s) listed. For the purpose of this example, I am using my D-Link router which is configured as my gateway to the Internet. I could just as well have used the DNS
entries provided by my ISP.
The next directive defined in the options section is directory. This directive specifies where named will look for zone definition files. For example, if you skip forward in the
DNS configuration file to the "idevelopment.info" forward lookup zone, you will notice it's zone definition file is "idevelopment.info.zone". The fully qualified name for
this file is derived by concatenating the directory directive and the "file" specified for that zone. For example, the fully qualified name for the forward lookup zone
definition file described below is "/srv/named/data/idevelopment.info.zone". The same rules apply for the reverse lookup zone which in this example would be
"/srv/named/data/1.168.192.in-addr.arpa.zone".
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 19/48
11/15/2018 DBA Tips Archive for Oracle
# +-------------------------------------------------------------------+
# | /etc/named.conf |
# | |
# | DNS configuration file for Oracle RAC 11g Release 2 example |
# +-------------------------------------------------------------------+
options {
};
# ----------------------------------
# Forward Zone
# ----------------------------------
zone "idevelopment.info" IN {
type master;
file "idevelopment.info.zone";
allow-update { none; };
};
# ----------------------------------
# Reverse Zone
# ----------------------------------
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.in-addr.arpa.zone";
allow-update { none; };
};
/srv/named/data/idevelopment.info.zone
In the DNS configuration file above, we defined the forward and reverse zone definition files. These files will be located in the "/srv/named/data" directory.
Create and edit the file associated with your forward lookup zone, (which in my case is "/srv/named/data/idevelopment.info.zone"), to look like the one described
below. Take note of the three entries used to configure the SCAN name for round-robin resolution to three IP addresses.
; +-------------------------------------------------------------------+
; | /srv/named/data/idevelopment.info.zone |
; | |
; | Forward zone definition file for idevelopment.info |
; +-------------------------------------------------------------------+
$ORIGIN idevelopment.info.
; Miscellaneous Nodes
router IN A 192.168.1.1
packmule IN A 192.168.1.105
domo IN A 192.168.1.121
switch1 IN A 192.168.1.122
oemprod IN A 192.168.1.125
accesspoint IN A 192.168.1.245
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 20/48
11/15/2018 DBA Tips Archive for Oracle
/srv/named/data/1.168.192.in-addr.arpa.zone
Next, we need to create the "/srv/named/data/1.168.192.in-addr.arpa.zone" zone definition file for public network reverse lookups.
; +-------------------------------------------------------------------+
; | /srv/named/data/1.168.192.in-addr.arpa.zone |
; | |
; | Reverse zone definition file for idevelopment.info |
; +-------------------------------------------------------------------+
$ORIGIN 1.168.192.in-addr.arpa.
; Miscellaneous Nodes
1 IN PTR router.idevelopment.info.
105 IN PTR packmule.idevelopment.info.
121 IN PTR domo.idevelopment.info.
122 IN PTR switch1.idevelopment.info.
125 IN PTR oemprod.idevelopment.info.
245 IN PTR accesspoint.idevelopment.info.
When the DNS configuration file and zone definition files are in place, start the DNS server by starting the "named" service.
If named finds any problems with the DNS configuration file or zone definition files, the service will fail to start and errors will be displayed on the screen. To troubleshoot
problems with starting the named service, check the /var/log/messages file.
If named starts successfully, the entries in the /var/log/messages file should resemble the following.
...
Nov 2 21:35:49 openfiler1 named[7995]: starting BIND 9.4.3-P5 -u named
Nov 2 21:35:49 openfiler1 named[7995]: adjusted limit on open files from 1024 to 1048576
Nov 2 21:35:49 openfiler1 named[7995]: found 1 CPU, using 1 worker thread
Nov 2 21:35:49 openfiler1 named[7995]: using up to 4096 sockets
Nov 2 21:35:49 openfiler1 named[7995]: loading configuration from '/etc/named.conf'
Nov 2 21:35:49 openfiler1 named[7995]: using default UDP/IPv4 port range: [1024, 65535]
Nov 2 21:35:49 openfiler1 named[7995]: using default UDP/IPv6 port range: [1024, 65535]
Nov 2 21:35:49 openfiler1 named[7995]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 2 21:35:49 openfiler1 named[7995]: listening on IPv4 interface eth0, 192.168.1.195#53
Nov 2 21:35:49 openfiler1 named[7995]: listening on IPv4 interface eth1, 192.168.2.195#53
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 0.IN-ADDR.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 127.IN-ADDR.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 254.169.IN-ADDR.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: D.F.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 8.E.F.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: 9.E.F.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: A.E.F.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: automatic empty zone: B.E.F.IP6.ARPA
Nov 2 21:35:49 openfiler1 named[7995]: command channel listening on 127.0.0.1#953
Nov 2 21:35:49 openfiler1 named[7995]: command channel listening on ::1#953
Nov 2 21:35:49 openfiler1 named[7995]: no source of entropy found
Nov 2 21:35:49 openfiler1 named[7995]: zone 1.168.192.in-addr.arpa/IN: loaded serial 201011021
Nov 2 21:35:49 openfiler1 named[7995]: zone idevelopment.info/IN: loaded serial 201011021
Nov 2 21:35:49 openfiler1 named: named startup succeeded
Nov 2 21:35:49 openfiler1 named[7995]: running
...
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 21/48
11/15/2018 DBA Tips Archive for Oracle
Now that the named service is running, issue the following commands to make sure this service starts automatically at boot time.
With DNS now setup and running, the next step is to configure each server to use it for name resolution. This is accomplished by editing the "/etc/resolv.conf" file on
each server including the two Oracle RAC nodes and the Openfiler network storage server.
Make certain the /etc/resolv.conf file contains the following entries where the IP address of the name server and domain match those of your DNS server and the
domain you have configured.
nameserver 192.168.1.195
search idevelopment.info
The second line allows you to resolve a name on this network without having to specify the fully qualified host name.
Verify that the /etc/resolv.conf file was successfully updated on all servers in our mini-network.
After modifying the /etc/resolv.conf file on every server in the cluster, verify that DNS is functioning correctly by testing forward and reverse lookups using the nslookup
command-line utility. Perform tests similar to the following from each node to all other nodes in your cluster.
Name: racnode2.idevelopment.info
Address: 192.168.1.152
Name: racnode2.idevelopment.info
Address: 192.168.1.152
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.187
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.188
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.189
In our two node example, we need to configure the network on both Oracle RAC nodes for access to the public network as well as their private interconnect.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 22/48
11/15/2018 DBA Tips Archive for Oracle
The easiest way to configure network settings in RHEL / CentOS is with the program "Network Configuration". Network Configuration is a GUI application that can be started
from the command-line as the root user account as follows.
Using the Network Configuration application, you need to configure both NIC devices as well as the /etc/hosts file and verifying the DNS configuration. All of these tasks
can be completed using the Network Configuration GUI.
It should be noted that the /etc/hosts entries are the same for both Oracle RAC nodes and that I removed any entry that has to do with IPv6. For example:
Our example Oracle RAC configuration will use the following network settings.
/etc/resolv.conf
nameserver 192.168.1.195
search idevelopment.info
/etc/hosts
/etc/resolv.conf
nameserver 192.168.1.195
search idevelopment.info
/etc/hosts
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 23/48
11/15/2018 DBA Tips Archive for Oracle
/etc/resolv.conf
nameserver 192.168.1.195
search idevelopment.info
/etc/hosts
In the screen shots below, only Oracle RAC Node 1 (racnode1) is shown. Be sure to make all the proper network settings to both Oracle RAC nodes.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 24/48
11/15/2018 DBA Tips Archive for Oracle
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 25/48
11/15/2018 DBA Tips Archive for Oracle
Once the network is configured, you can use the ifconfig command to verify everything is working. The following example is from racnode1.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 26/48
11/15/2018 DBA Tips Archive for Oracle
collisions:0 txqueuelen:1000
RX bytes:24544 (23.9 KiB) TX bytes:8634 (8.4 KiB)
Base address:0xddc0 Memory:fe9c0000-fe9e0000
As the root user account, verify the network configuration by using the ping command to test the connection from each node in the cluster to all the other nodes. For
example, as the root user account, run the following commands on each node.
# ping -c 3 racnode1.idevelopment.info
# ping -c 3 racnode2.idevelopment.info
# ping -c 3 racnode1-priv.idevelopment.info
# ping -c 3 racnode2-priv.idevelopment.info
# ping -c 3 openfiler1.idevelopment.info
# ping -c 3 openfiler1-priv.idevelopment.info
# ping -c 3 racnode1
# ping -c 3 racnode2
# ping -c 3 racnode1-priv
# ping -c 3 racnode2-priv
# ping -c 3 openfiler1
# ping -c 3 openfiler1-priv
You should not get a response from the nodes using the ping command for the virtual IPs (racnode1-vip, racnode2-vip) or the SCAN IP addresses (racnode-cluster-
scan) until after Oracle Clusterware is installed and running. If the ping commands for the public addresses fail, resolve the issue before you proceed.
In this article, I will configure SCAN for round-robin resolution to three, manually configured static IP addresses in DNS.
racnode-cluster-scan IN A 192.168.1.187
racnode-cluster-scan IN A 192.168.1.188
racnode-cluster-scan IN A 192.168.1.189
Oracle Corporation strongly recommends configuring three IP addresses considering load balancing and high availability requirements, regardless of the number of servers
in the cluster. These virtual IP addresses must all be on the same subnet as the public network in the cluster. The SCAN name must be 15 characters or less in length, not
including the domain, and must be resolvable without the domain suffix. For example, "racnode-cluster-scan" must be resolvable as opposed to only "racnode-cluster-
scan.idevelopment.info". The virtual IP addresses for SCAN (and the virtual IP address for the node) should not be manually assigned to a network interface on the
cluster since Oracle Clusterware is responsible for enabling them after the Oracle Grid Infrastructure installation. In other words, the SCAN addresses and virtual IP
addresses (VIPs) should not respond to ping commands before installation.
Verify the SCAN configuration in DNS using the nslookup command-line utility. Since our DNS is set up to provide round-robin access to the IP addresses resolved by the
SCAN entry, run the nslookup command several times to make certain that the round-robin algorithm is functioning properly. The result should be that each time the
nslookup is run, it will return the set of three IP addresses in a different order. For example:
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.187
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.188
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.189
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.189
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.187
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.188
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 27/48
11/15/2018 DBA Tips Archive for Oracle
[root@racnode1 ~]# nslookup racnode-cluster-scan
Server: 192.168.1.195
Address: 192.168.1.195#53
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.188
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.189
Name: racnode-cluster-scan.idevelopment.info
Address: 192.168.1.187
Ensure that the node name (racnode1 or racnode2) is not included for the loopback address in the /etc/hosts file. If the machine name is listed in the loopback address
entry:
If the RAC node name is listed for the loopback address, you will receive the following error during the RAC installation.
or
During the Linux installation process, I indicated to not configure the firewall option. By default the option to configure a firewall is selected by the installer. This has burned
me several times so I like to do a double-check that the firewall option is not configured and to ensure udp ICMP filtering is turned off.
If UDP ICMP is blocked or rejected by the firewall, the Oracle Clusterware software will crash after several minutes of running. When the Oracle Clusterware process fails,
you will have something similar to the following in the <machine_name>_evmocr.log file.
08/29/2005 22:17:19
oac_init:2: Could not connect to server, clsc retcode = 9
08/29/2005 22:17:19
a_init:12!: Client init unsuccessful : [32]
ibctx:1:ERROR: INVALID FORMAT
proprinit:problem reading the bootblock or superbloc 22
When experiencing this type of error, the solution is to remove the UDP ICMP (iptables) rejection rule - or to simply have the firewall option turned off. The Oracle
Clusterware software will then start to operate normally and not crash. The following commands should be executed as the root user account on both Oracle RAC nodes.
1. Check to ensure that the firewall option is turned off. If the firewall option is stopped (like it is in my example below) you do not have to proceed with the following
steps.
2. If the firewall option is operating, you will need to first manually disable UDP ICMP rejections.
3. Then, turn UDP ICMP rejections off for all subsequent server reboots (which should always be turned off).
Oracle Clusterware 11g Release 2 and later requires time synchronization across all nodes within a cluster where Oracle RAC is deployed. Oracle provides two options for
time synchronization: an operating system configured network time protocol (NTP) or the new Oracle Cluster Time Synchronization Service (CTSS). Oracle Cluster Time
Synchronization Service (ctssd) is designed for organizations whose Oracle RAC databases are unable to access NTP services.
Configuring NTP is outside the scope of this article and will therefore rely on the Oracle Cluster Time Synchronization Service as the network time protocol.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 28/48
11/15/2018 DBA Tips Archive for Oracle
If you want to use Cluster Time Synchronization Service to provide synchronization service in the cluster, then de-configure and de-install the Network Time Protocol (NTP)
service.
To deactivate the NTP service, you must stop the existing ntpd service, disable it from the initialization sequences and remove the ntp.conf file. To complete these steps
on Red Hat Enterprise Linux or CentOS, run the following commands as the root user account on both Oracle RAC nodes.
When the installer finds that the NTP protocol is not active, the Cluster Time Synchronization Service is automatically installed in active mode and synchronizes the time
across the nodes. If NTP is found configured, then the Cluster Time Synchronization Service is started in observer mode, and no active time synchronization is performed by
Oracle Clusterware within the cluster.
To confirm that ctssd is active after installation, enter the following command as the Grid installation owner (grid).
Configure Network Time Protocol - (only if not using CTSS as documented above)
Please note that this guide will use Cluster Time Synchronization Service for time
synchronization (described above) across both Oracle RAC nodes in the cluster. This
section is provided for documentation purposes only and can be used by organizations
already setup to use NTP within their domain.
If you are using NTP and you prefer to continue using it instead of Cluster Time Synchronization Service, then you need to modify the NTP initialization file to set the -x flag,
which prevents time from being adjusted backward. Restart the network time protocol daemon after you complete this task.
To do this on Oracle Linux, Red Hat Linux, and Asianux systems, edit the /etc/sysconfig/ntpd file to add the -x flag, as in the following example.
On SUSE systems, modify the configuration file /etc/sysconfig/ntp with the following settings.
NTPD_OPTIONS="-x -u ntp"
Openfiler administration is performed using the Openfiler Storage Control Center — a browser based tool over an https connection on port 446. For example:
https://openfiler1.idevelopment.info:446/
From the Openfiler Storage Control Center home page, log in as an administrator. The default administration login credentials for Openfiler are:
Username: openfiler
Password: password
The first page the administrator sees is the [Status] / [System Overview] screen.
To use Openfiler as an iSCSI storage server, we have to perform six major tasks — set up iSCSI services, configure network access, identify and partition the physical
storage, create a new volume group, create all logical volumes, and finally, create new iSCSI targets for each of the logical volumes.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 29/48
11/15/2018 DBA Tips Archive for Oracle
Services
To control services, we use the Openfiler Storage Control Center and navigate to [Services] / [Manage Services].
To enable the iSCSI service, click on the 'Enable' link under the 'iSCSI target server' service name. After that, the 'iSCSI target server' status should change to 'Enabled'.
The ietd program implements the user level part of iSCSI Enterprise Target software for building an iSCSI storage system on Linux. With the iSCSI target enabled, we
should be able to SSH into the Openfiler server and see the iscsi-target service running.
The next step is to configure network access in Openfiler to identify both Oracle RAC nodes (racnode1 and racnode2) that will need to access the iSCSI volumes through
the storage (private) network. Note that iSCSI logical volumes will be created later on in this section. Also note that this step does not actually grant the appropriate
permissions to the iSCSI volumes required by both Oracle RAC nodes. That will be accomplished later in this section by updating the ACL for each new logical volume.
As in the previous section, configuring network access is accomplished using the Openfiler Storage Control Center by navigating to [System] / [Network Setup]. The
"Network Access Configuration" section (at the bottom of the page) allows an administrator to setup networks and/or hosts that will be allowed to access resources exported
by the Openfiler appliance. For the purpose of this article, we will want to add both Oracle RAC nodes individually rather than allowing the entire 192.168.2.0 network have
access to Openfiler resources.
When entering each of the Oracle RAC nodes, note that the 'Name' field is just a logical name used for reference only. As a convention when entering nodes, I simply use
the node name defined for that IP address. Next, when entering the actual node in the 'Network/Host' field, always use its IP address even though its host name may already
be defined in your /etc/hosts file or DNS. Lastly, when entering actual hosts in our Class C network, use a subnet mask of 255.255.255.255.
It is important to remember that you will be entering the IP address of the private network (eth1) for each of the RAC nodes in the cluster.
The following image shows the results of adding both Oracle RAC nodes.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 30/48
11/15/2018 DBA Tips Archive for Oracle
Physical Storage
In this section, we will be creating the three iSCSI volumes to be used as shared storage by both of the Oracle RAC nodes in the cluster. This involves multiple steps that will
be performed on the internal 73GB 15K SCSI hard disk connected to the Openfiler server.
Storage devices like internal IDE/SATA/SCSI/SAS disks, storage arrays, external USB drives, external FireWire drives, or ANY other storage can be connected to the
Openfiler server and served to the clients. Once these devices are discovered at the OS level, Openfiler Storage Control Center can be used to set up and manage all of that
storage.
In our case, we have a 73GB internal SCSI hard drive for our shared storage needs. On the Openfiler server this drive is seen as /dev/sdb (MAXTOR ATLAS15K2_73SCA).
To see this and to start the process of creating our iSCSI volumes, navigate to [Volumes] / [Block Devices] from the Openfiler Storage Control Center.
The first step we will perform is to create a single primary partition on the /dev/sdb internal hard disk. By clicking on the /dev/sdb link, we are presented with the options to
'Edit' or 'Create' a partition. Since we will be creating a single primary partition that spans the entire disk, most of the options can be left to their default setting where the only
modification would be to change the 'Partition Type' from 'Extended partition' to 'Physical volume'. Here are the values I specified to create the primary partition on
/dev/sdb.
Mode Primary
Starting Cylinder 1
The size now shows 68.36 GB. To accept that we click on the [Create] button. This results in a new partition (/dev/sdb1) on our internal hard disk.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 31/48
11/15/2018 DBA Tips Archive for Oracle
The next step is to create a Volume Group. We will be creating a single volume group named racdbvg that contains the newly created primary partition.
From the Openfiler Storage Control Center, navigate to [Volumes] / [Volume Groups]. There we would see any existing volume groups, or none as in our case. Using the
Volume Group Management screen, enter the name of the new volume group (racdbvg), click on the check-box in front of /dev/sdb1 to select that partition, and finally click
on the [Add volume group] button. After that we are presented with the list that now shows our newly created volume group named "racdbvg".
Logical Volumes
We can now create the three logical volumes in the newly created volume group (racdbvg).
From the Openfiler Storage Control Center, navigate to [Volumes] / [Add Volume]. There we will see the newly created volume group (racdbvg) along with its block storage
statistics. Also available at the bottom of this screen is the option to create a new volume in the selected volume group - (Create a volume in "racdbvg"). Use this screen to
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 32/48
11/15/2018 DBA Tips Archive for Oracle
create the following three iSCSI logical volumes. After creating each logical volume, the application will point you to the "Manage Volumes" screen. You will then need to click
back to the "Add Volume" tab to create the next logical volume until all three iSCSI volumes are created.
In effect we have created three iSCSI disks that can now be presented to iSCSI clients (racnode1 and racnode2) on the network. The "Manage Volumes" screen should
look as follows:
iSCSI Targets
At this point, we have three iSCSI logical volumes. Before an iSCSI client can have access to them, however, an iSCSI target will need to be created for each of these three
volumes. Each iSCSI logical volume will be mapped to a specific iSCSI target and the appropriate network access permissions to that target will be granted to both Oracle
RAC nodes. For the purpose of this article, there will be a one-to-one mapping between an iSCSI logical volume and an iSCSI target.
There are three steps involved in creating and configuring an iSCSI target — create a unique Target IQN (basically, the universal name for the new iSCSI target), map one of
the iSCSI logical volumes created in the previous section to the newly created iSCSI target, and finally, grant both of the Oracle RAC nodes access to the new iSCSI target.
Please note that this process will need to be performed for each of the three iSCSI logical volumes created in the previous section.
For the purpose of this article, the following table lists the new iSCSI target names (the Target IQN) and which iSCSI logical volume it will be mapped to.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 33/48
11/15/2018 DBA Tips Archive for Oracle
We are now ready to create the three new iSCSI targets — one for each of the iSCSI logical volumes. The example below illustrates the three steps required to create a new
iSCSI target by creating the Oracle Clusterware / racdb-crs1 target (iqn.2006-01.com.openfiler:racdb.crs1). This three step process will need to be repeated for each
of the three new iSCSI targets listed in the table above.
From the Openfiler Storage Control Center, navigate to [Volumes] / [iSCSI Targets]. Verify the grey sub-tab "Target Configuration" is selected. This page allows you to
create a new iSCSI target. A default value is automatically generated for the name of the new iSCSI target (better known as the "Target IQN"). An example Target IQN is
"iqn.2006-01.com.openfiler:tsn.ae4683b67fd3":
I prefer to replace the last segment of the default Target IQN with something more meaningful. For the first iSCSI target (racdb-crs1), I will modify the default Target IQN by
replacing the string "tsn.ae4683b67fd3" with "racdb.crs1" as shown in Figure 14 below.
Figure 14: Create New iSCSI Target : Replace Default Target IQN
Once you are satisfied with the new Target IQN, click the [Add] button. This will create a new iSCSI target and then bring up a page that allows you to modify a number of
settings for the new iSCSI target. For the purpose of this article, none of settings for the new iSCSI target need to be changed.
LUN Mapping
After creating the new iSCSI target, the next step is to map the appropriate iSCSI logical volume to it. Under the "Target Configuration" sub-tab, verify the correct iSCSI
target is selected in the section "Select iSCSI Target". If not, use the pull-down menu to select the correct iSCSI target and click the [Change] button.
Next, click on the grey sub-tab named "LUN Mapping" (next to "Target Configuration" sub-tab). Locate the appropriate iSCSI logical volume (/dev/racdbvg/racdb-crs1 in
this first example) and click the [Map] button. You do not need to change any settings on this page. Your screen should look similar to Figure 15 after clicking the "Map"
button for volume /dev/racdbvg/racdb-crs1.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 34/48
11/15/2018 DBA Tips Archive for Oracle
Network ACL
Before an iSCSI client can have access to the newly created iSCSI target, it needs to be granted the appropriate permissions. Awhile back, we configured network access in
Openfiler for two hosts (the Oracle RAC nodes). These are the two nodes that will need to access the new iSCSI targets through the storage (private) network. We now need
to grant both of the Oracle RAC nodes access to the new iSCSI target.
Click on the grey sub-tab named "Network ACL" (next to "LUN Mapping" sub-tab). For the current iSCSI target, change the "Access" for both hosts from 'Deny' to 'Allow' and
click the [Update] button.
Go back to the Create New Target IQN section and perform these same three tasks for the remaining two iSCSI logical volumes while substituting the values found in the
"iSCSI Target / Logical Volume Mappings" table (namely, the value in the 'Target IQN' column).
An iSCSI client can be any system (Linux, Unix, MS Windows, Apple Mac, etc.) for which iSCSI support (a driver) is available. In our case, the clients are two Linux servers,
racnode1 and racnode2, running Red Hat Enterprise Linux 5.5 or CentOS 5.5.
In this section we will be configuring the iSCSI software initiator on both of the Oracle RAC nodes. RHEL / CentOS 5.5 includes the Open-iSCSI iSCSI software initiator
which can be found in the iscsi-initiator-utils RPM. This is a change from previous versions of RHEL / CentOS (4.x) which included the Linux iscsi-sfnet software
driver developed as part of the Linux-iSCSI Project. All iSCSI management tasks like discovery and logins will use the command-line interface iscsiadm which is included
with Open-iSCSI.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 35/48
11/15/2018 DBA Tips Archive for Oracle
The iSCSI software initiator will be configured to automatically log in to the network storage server (openfiler1) and discover the iSCSI volumes created in the previous
section. We will then go through the steps of creating persistent local SCSI device names (i.e. /dev/iscsi/crs1) for each of the iSCSI target names discovered using udev.
Having a consistent local SCSI device name and which iSCSI target it maps to, helps to differentiate between the three volumes when configuring ASM. Before we can do
any of this, however, we must first install the iSCSI initiator software.
This guide makes use of ASMLib 2.0 which is a support library for the Automatic Storage
Management (ASM) feature of the Oracle Database. ASMLib will be used to label all
iSCSI volumes used in this guide. By default, ASMLib already provides persistent paths
and permissions for storage devices used with ASM. This feature eliminates the need for
updating udev or devlabel files with storage device paths and permissions. For the
purpose of this article and in practice, I still opt to create persistent local SCSI device
names for each of the iSCSI target names discovered using udev. This provides a means
of self-documentation which helps to quickly identify the name and location of each
volume.
With Red Hat Enterprise Linux 5.5 or CentOS 5.5, the Open-iSCSI iSCSI software initiator does not get installed by default. The software is included in the iscsi-
initiator-utils package which can be found on CD/DVD #1. To determine if this package is installed (which in most cases, it will not be), perform the following on both
Oracle RAC nodes.
If the iscsi-initiator-utils package is not installed, load CD/DVD #1 into each of the Oracle RAC nodes and perform the following.
Verify the iscsi-initiator-utils package is now installed on both Oracle RAC nodes.
After verifying that the iscsi-initiator-utils package is installed, start the iscsid service on both Oracle RAC nodes and enable it to automatically start when the
system boots. We will also configure the iscsi service to automatically start which logs into iSCSI targets needed at system startup.
Now that the iSCSI service is started, use the iscsiadm command-line interface to discover all available targets on the network storage server. This should be performed on
both Oracle RAC nodes to verify the configuration is functioning properly.
At this point, the iSCSI initiator service has been started and each of the Oracle RAC nodes were able to discover the available targets from the Openfiler network storage
server. The next step is to manually log in to each of the available iSCSI targets which can be done using the iscsiadm command-line interface. This needs to be run on
both Oracle RAC nodes. Note that I had to specify the IP address and not the host name of the network storage server (openfiler1-priv) — I believe this is required given
the discovery (above) shows the targets using the IP address.
The next step is to ensure the client will automatically log in to each of the targets listed above when the machine is booted (or the iSCSI initiator service is started/restarted).
As with the manual log in process described above, perform the following on both Oracle RAC nodes.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 36/48
11/15/2018 DBA Tips Archive for Oracle
[root@racnode1 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:racdb.crs1 -p 192.168.2.195 --op update -n node.startup -v automatic
[root@racnode1 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:racdb.data1 -p 192.168.2.195 --op update -n node.startup -v automatic
[root@racnode1 ~]# iscsiadm -m node -T iqn.2006-01.com.openfiler:racdb.fra1 -p 192.168.2.195 --op update -n node.startup -v automatic
In this section, we will go through the steps to create persistent local SCSI device names for each of the iSCSI target names. This will be done using udev. Having a
consistent local SCSI device name and which iSCSI target it maps to, helps to differentiate between the three volumes when configuring ASM. Although this is not a strict
requirement since we will be using ASMLib 2.0 for all volumes, it provides a means of self-documentation to quickly identify the name and location of each iSCSI volume.
By default, when either of the Oracle RAC nodes boot and the iSCSI initiator service is started, it will automatically log in to each of the iSCSI targets configured in a random
fashion and map them to the next available local SCSI device name. For example, the target iqn.2006-01.com.openfiler:racdb.crs1 may get mapped to /dev/sdb. I
can actually determine the current mappings for all targets by looking at the /dev/disk/by-path directory.
[root@racnode1 ~]# (cd /dev/disk/by-path; ls -l *openfiler* | awk '{FS=" "; print $9 " " $10 " " $11}')
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.crs1-lun-0 -> ../../sdb
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.data1-lun-0 -> ../../sdd
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.fra1-lun-0 -> ../../sdc
Using the output from the above listing, we can establish the following current mappings.
iqn.2006-01.com.openfiler:racdb.crs1 /dev/sdb
iqn.2006-01.com.openfiler:racdb.data1 /dev/sdd
iqn.2006-01.com.openfiler:racdb.fra1 /dev/sdc
This mapping, however, may change every time the Oracle RAC node is rebooted. For example, after a reboot it may be determined that the iSCSI target iqn.2006-
01.com.openfiler:racdb.crs1 gets mapped to the local SCSI device /dev/sdc. It is therefore impractical to rely on using the local SCSI device name given there is no
way to predict the iSCSI target mappings after a reboot.
What we need is a consistent device name we can reference (i.e. /dev/iscsi/crs1) that will always point to the appropriate iSCSI target through reboots. This is where the
Dynamic Device Management tool named udev comes in. udev provides a dynamic device directory using symbolic links that point to the actual device using a configurable
set of rules. When udev receives a device event (for example, the client logging in to an iSCSI target), it matches its configured rules against the available device attributes
provided in sysfs to identify the device. Rules that match may provide additional device information or specify a device node name and multiple symlink names and instruct
udev to run additional programs (a SHELL script for example) as part of the device event handling process.
The first step is to create a new rules file. The file will be named /etc/udev/rules.d/55-openiscsi.rules and contain only a single line of name=value pairs used to
receive events we are interested in. It will also define a call-out SHELL script (/etc/udev/scripts/iscsidev.sh) to handle the event.
Create the following rules file /etc/udev/rules.d/55-openiscsi.rules on both Oracle RAC nodes.
# /etc/udev/rules.d/55-openiscsi.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM="/etc/udev/scripts/iscsidev.sh %b",SYMLINK+="iscsi/%c/part%n"
We now need to create the UNIX SHELL script that will be called when this event is received. Let's first create a separate directory on both Oracle RAC nodes where udev
scripts can be stored.
Next, create the UNIX shell script /etc/udev/scripts/iscsidev.sh on both Oracle RAC nodes.
#!/bin/sh
# FILE: /etc/udev/scripts/iscsidev.sh
BUS=${1}
HOST=${BUS%%:*}
[ -e /sys/class/iscsi_host ] || exit 1
file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/targetname"
target_name=$(cat ${file})
echo "${target_name##*.}"
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 37/48
11/15/2018 DBA Tips Archive for Oracle
After creating the UNIX SHELL script, change it to executable.
Now that udev is configured, restart the iSCSI service on both Oracle RAC nodes.
/dev/iscsi/data1:
total 0
lrwxrwxrwx 1 root root 9 Nov 6 17:32 part -> ../../sdd
/dev/iscsi/fra1:
total 0
lrwxrwxrwx 1 root root 9 Nov 6 17:32 part -> ../../sde
/dev/iscsi/data1:
total 0
lrwxrwxrwx 1 root root 9 Nov 6 17:36 part -> ../../sdc
/dev/iscsi/fra1:
total 0
lrwxrwxrwx 1 root root 9 Nov 6 17:36 part -> ../../sde
The listing above shows that udev did the job it was suppose to do! We now have a consistent set of local device names that can be used to reference the iSCSI targets. For
example, we can safely assume that the device name /dev/iscsi/crs1/part will always reference the iSCSI target iqn.2006-01.com.openfiler:racdb.crs1. We now
have a consistent iSCSI target name to local device name mapping which is described in the following table.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 38/48
11/15/2018 DBA Tips Archive for Oracle
iSCSI Target Name to Local Device Name Mappings
iqn.2006-01.com.openfiler:racdb.crs1 /dev/iscsi/crs1/part
iqn.2006-01.com.openfiler:racdb.data1 /dev/iscsi/data1/part
iqn.2006-01.com.openfiler:racdb.fra1 /dev/iscsi/fra1/part
We now need to create a single primary partition on each of the iSCSI volumes that spans the entire size of the volume. As mentioned earlier in this article, I will be using
Automatic Storage Management (ASM) to store the shared files required for Oracle Clusterware, the physical database files (data/index files, online redo log files, and
control files), and the Fast Recovery Area (FRA) for the cluster database.
The Oracle Clusterware shared files (OCR and voting disk) will be stored in an ASM disk group named +CRS which will be configured for external redundancy. The physical
database files for the cluster database will be stored in an ASM disk group named +RACDB_DATA which will also be configured for external redundancy. Finally, the Fast
Recovery Area (RMAN backups and archived redo log files) will be stored in a third ASM disk group named +FRA which too will be configured for external redundancy.
The following table lists the three ASM disk groups that will be created and which iSCSI volume they will contain.
File Types ASM Diskgroup Name iSCSI Target (short) Name ASM Redundancy Size ASMLib Volume Name
As shown in the table above, we will need to create a single Linux primary partition on each of the three iSCSI volumes. The fdisk command is used in Linux for creating
(and removing) partitions. For each of the three iSCSI volumes, you can use the default values when creating the primary partition as the default action is to use the entire
disk. You can safely ignore any warnings that may indicate the device does not contain a valid DOS partition (or Sun, SGI or OSF disklabel).
In this example, I will be running the fdisk command from racnode1 to create a single primary partition on each iSCSI target using the local device names created by udev
in the previous section.
/dev/iscsi/crs1/part
/dev/iscsi/data1/part
/dev/iscsi/fra1/part
Creating the single partition on each of the iSCSI volumes must only be run from one of
the nodes in the Oracle RAC cluster! (i.e. racnode1)
# ---------------------------------------
# ---------------------------------------
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 39/48
11/15/2018 DBA Tips Archive for Oracle
Command (m for help): p
# ---------------------------------------
After creating all required partitions from racnode1, you should now inform the kernel of the partition changes using the following command as the root user account from
all remaining nodes in the Oracle RAC cluster (racnode2). Note that the mapping of iSCSI target names discovered from Openfiler and the local SCSI device name will be
different on both Oracle RAC nodes. This is not a concern and will not cause any problems since we will not be using the local SCSI device names but rather the local device
names created by udev in the previous section.
As a final step you should run the following command on both Oracle RAC nodes to verify that udev created the new symbolic links for each new partition.
[root@racnode1 ~]# (cd /dev/disk/by-path; ls -l *openfiler* | awk '{FS=" "; print $9 " " $10 " " $11}')
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 40/48
11/15/2018 DBA Tips Archive for Oracle
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.crs1-lun-0 -> ../../sdc
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.crs1-lun-0-part1 -> ../../sdc1
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.data1-lun-0 -> ../../sdd
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.data1-lun-0-part1 -> ../../sdd1
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.fra1-lun-0 -> ../../sde
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.fra1-lun-0-part1 -> ../../sde1
[root@racnode2 ~]# (cd /dev/disk/by-path; ls -l *openfiler* | awk '{FS=" "; print $9 " " $10 " " $11}')
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.crs1-lun-0 -> ../../sdd
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.crs1-lun-0-part1 -> ../../sdd1
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.data1-lun-0 -> ../../sdc
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.data1-lun-0-part1 -> ../../sdc1
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.fra1-lun-0 -> ../../sde
ip-192.168.2.195:3260-iscsi-iqn.2006-01.com.openfiler:racdb.fra1-lun-0-part1 -> ../../sde1
The listing above shows that udev did indeed create new device names for each of the new partitions. We will be using these new device names when configuring the
volumes for ASMlib later in this guide.
/dev/iscsi/crs1/part1
/dev/iscsi/data1/part1
/dev/iscsi/fra1/part1
Create Job Role Separation Operating System Privileges Groups, Users, and Directories
Perform the following user, group, directory configuration, and setting shell limit tasks for the grid and oracle users on both Oracle RAC nodes in the cluster.
This section provides the instructions on how to create the operating system users and groups to install all Oracle software using a Job Role Separation configuration. The
commands in this section should be performed on both Oracle RAC nodes as root to create these groups, users, and directories. Note that the group and user IDs must be
identical on both Oracle RAC nodes in the cluster. Check to make sure that the group and user IDs you want to use are available on each cluster member node, and confirm
that the primary group for each Grid Infrastructure for a Cluster installation owner has the same name and group ID which for the purpose of this guide is oinstall (GID
1000).
A Job Role Separation privileges configuration of Oracle is a configuration with operating system groups and users that divide administrative access privileges to the Oracle
Grid Infrastructure installation from other administrative privileges users and groups associated with other Oracle installations (e.g. the Oracle database software).
Administrative privileges access is granted by membership in separate operating system groups, and installation privileges are granted by using different installation owners
for each Oracle installation.
One OS user will be created to own each Oracle software product — "grid" for the Oracle Grid Infrastructure owner and "oracle" for the Oracle RAC software. Throughout
this article, a user created to own the Oracle Grid Infrastructure binaries is called the grid user. This user will own both the Oracle Clusterware and Oracle Automatic
Storage Management binaries. The user created to own the Oracle database binaries (Oracle RAC) will be called the oracle user. Both Oracle software owners must have
the Oracle Inventory group (oinstall) as their primary group, so that each Oracle software installation owner can write to the central inventory (oraInventory), and so that
OCR and Oracle Clusterware resource permissions are set correctly. The Oracle RAC software owner must also have the OSDBA group and the optional OSOPER group as
secondary groups.
This type of configuration is optional but highly recommend by Oracle for organizations that need to restrict user access to Oracle software by responsibility areas for
different administrator users. For example, a small organization could simply allocate operating system user privileges so that you can use one administrative user and one
group for operating system authentication for all system privileges on the storage and database tiers. With this type of configuration, you can designate the oracle user to
be the sole installation owner for all Oracle software (Grid infrastructure and the Oracle database software), and designate oinstall to be the single group whose members
are granted all system privileges for Oracle Clusterware, Automatic Storage Management, and all Oracle Databases on the servers, and all privileges as installation owners.
Other organizations, however, have specialized system roles who will be responsible for installing the Oracle software such as system administrators, network
administrators, or storage administrators. These different administrative users can configure a system in preparation for an Oracle Grid Infrastructure for a cluster installation,
and complete all configuration tasks that require operating system root privileges. When Grid Infrastructure installation and configuration is completed successfully, a
system administrator should only need to provide configuration information and to grant access to the database administrator to run scripts as root during an Oracle RAC
installation.
The following O/S groups will be created to support job role separation.
Description OS Group Name OS Users Assigned to this Group Oracle Privilege Oracle Group Name
ASM Database Administrator Group asmdba grid, oracle SYSDBA for ASM OSDBA for ASM
ASM Operator Group asmoper grid SYSOPER for ASM OSOPER for ASM
Members of the OINSTALL group are considered the "owners" of the Oracle software and are granted privileges to write to the Oracle central inventory (oraInventory).
When you install Oracle software on a Linux system for the first time, OUI creates the /etc/oraInst.loc file. This file identifies the name of the Oracle Inventory
group (by default, oinstall), and the path of the Oracle Central Inventory directory.
By default, if an oraInventory group does not exist, then the installer lists the primary group of the installation owner for the Grid Infrastructure for a Cluster as the
oraInventory group. Ensure that this group is available as a primary group for all planned Oracle software installation owners. For the purpose of this guide, the
grid and oracle installation owners must be configured with oinstall as their primary group.
This is a required group. Create this group as a separate group if you want to have separate administration privilege groups for Oracle ASM and Oracle Database
administrators. In Oracle documentation, the operating system group whose members are granted privileges is called the OSASM group, and in code examples, where
there is a group specifically created to grant this privilege, it is referred to as asmadmin.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 41/48
11/15/2018 DBA Tips Archive for Oracle
Members of the OSASM group can use SQL to connect to an Oracle ASM instance as SYSASM using operating system authentication. The SYSASM privilege that was
introduced in Oracle ASM 11g release 1 (11.1) is now fully separated from the SYSDBA privilege in Oracle ASM 11g Release 2 (11.2). SYSASM privileges no longer
provide access privileges on an RDBMS instance. Providing system privileges for the storage tier using the SYSASM privilege instead of the SYSDBA privilege provides
a clearer division of responsibility between ASM administration and database administration, and helps to prevent different databases using the same storage from
accidentally overwriting each others files. The SYSASM privileges permit mounting and dismounting disk groups, and other storage administration tasks.
The ASM Database Administrator group (OSDBA for ASM, typically asmdba)
Members of the ASM Database Administrator group (OSDBA for ASM) is a subset of the SYSASM privileges and are granted read and write access to files managed by
Oracle ASM. The Grid Infrastructure installation owner (grid) and all Oracle Database software owners (oracle) must be a member of this group, and all users with
OSDBA membership on databases that have access to the files managed by Oracle ASM must be members of the OSDBA group for ASM.
Members of the ASM Operator Group (OSOPER for ASM, typically asmoper)
This is an optional group. Create this group if you want a separate group of operating system users to have a limited set of Oracle ASM instance administrative
privileges (the SYSOPER for ASM privilege), including starting up and stopping the Oracle ASM instance. By default, members of the OSASM group also have all
privileges granted by the SYSOPER for ASM privilege.
To use the ASM Operator group to create an ASM administrator group with fewer privileges than the default asmadmin group, then you must choose the Advanced
installation type to install the Grid infrastructure software. In this case, OUI prompts you to specify the name of this group. In this guide, this group is asmoper.
If you want to have an OSOPER for ASM group, then the grid infrastructure for a cluster software owner (grid) must be a member of this group.
Members of the OSDBA group can use SQL to connect to an Oracle instance as SYSDBA using operating system authentication. Members of this group can perform
critical database administration tasks, such as creating the database and instance startup and shutdown. The default name for this group is dba. The SYSDBA system
privilege allows access to a database instance even when the database is not open. Control of this privilege is totally outside of the database itself.
The SYSDBA system privilege should not be confused with the database role DBA. The DBA role does not include the SYSDBA or SYSOPER system privileges.
Members of the OSOPER group can use SQL to connect to an Oracle instance as SYSOPER using operating system authentication. Members of this optional group have
a limited set of database administrative privileges such as managing and running backups. The default name for this group is oper. The SYSOPER system privilege
allows access to a database instance even when the database is not open. Control of this privilege is totally outside of the database itself. To use this group, choose
the Advanced installation type to install the Oracle database software.
Lets start this section by creating the recommended OS groups and user for Grid Infrastructure on both Oracle RAC nodes.
-------------------------------------------------
Set the password for the grid account on both Oracle RAC nodes.
Log in to both Oracle RAC nodes as the grid user account and create the following login script (.bash_profile).
When setting the Oracle environment variables in the login script for each Oracle RAC
node, make certain to assign each RAC node with a unique Oracle SID for ASM.
racnode1: ORACLE_SID=+ASM1
racnode2: ORACLE_SID=+ASM2
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 42/48
11/15/2018 DBA Tips Archive for Oracle
# ---------------------------------------------------
# .bash_profile
# ---------------------------------------------------
# OS User: grid
# Application: Oracle Grid Infrastructure
# Version: Oracle 11g Release 2
# ---------------------------------------------------
# ---------------------------------------------------
# ORACLE_SID
# ---------------------------------------------------
# Specifies the Oracle system identifier (SID)
# for the Automatic Storage Management (ASM)instance
# running on this node.
# Each RAC node must have a unique ORACLE_SID.
# (i.e. +ASM1, +ASM2,...)
# ---------------------------------------------------
ORACLE_SID=+ASM1; export ORACLE_SID
# ---------------------------------------------------
# JAVA_HOME
# ---------------------------------------------------
# Specifies the directory of the Java SDK and Runtime
# Environment.
# ---------------------------------------------------
JAVA_HOME=/usr/local/java; export JAVA_HOME
# ---------------------------------------------------
# GRID_BASE
# ---------------------------------------------------
# Specifies the base of the Oracle directory structure
# for Optimal Flexible Architecture (OFA) compliant
# installations. The Oracle base directory for the
# grid installation owner is the location where
# diagnostic and administrative logs, and other logs
# associated with Oracle ASM and Oracle Clusterware
# are stored.
# ---------------------------------------------------
GRID_BASE=/u01/app/grid; export GRID_BASE
# ---------------------------------------------------
# GRID_HOME
# ---------------------------------------------------
# Specifies the directory containing the Oracle
# Grid Infrastructure software. For grid
# infrastructure for a cluster installations, the Grid
# home must not be placed under one of the Oracle base
# directories, or under Oracle home directories of
# Oracle Database installation owners, or in the home
# directory of an installation owner. During
# installation, ownership of the path to the Grid
# home is changed to root. This change causes
# permission errors for other installations.
# ---------------------------------------------------
GRID_HOME=/u01/app/11.2.0/grid; export GRID_HOME
# ---------------------------------------------------
# ORACLE_PATH
# ---------------------------------------------------
# Specifies the search path for files used by Oracle
# applications such as SQL*Plus. If the full path to
# the file is not specified, or if the file is not
# in the current directory, the Oracle application
# uses ORACLE_PATH to locate the file.
# This variable is used by SQL*Plus, Forms and Menu.
# ---------------------------------------------------
ORACLE_PATH=/u01/app/oracle/dba_scripts/sql; export ORACLE_PATH
# ---------------------------------------------------
# SQLPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# SQL*Plus searches for a login.sql file.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 43/48
11/15/2018 DBA Tips Archive for Oracle
# ---------------------------------------------------
# SQLPATH=/u01/app/oracle/dba_scripts/sql; export SQLPATH
# ---------------------------------------------------
# ORACLE_TERM
# ---------------------------------------------------
# Defines a terminal definition. If not set, it
# defaults to the value of your TERM environment
# variable. Used by all character mode products.
# ---------------------------------------------------
ORACLE_TERM=xterm; export ORACLE_TERM
# ---------------------------------------------------
# NLS_DATE_FORMAT
# ---------------------------------------------------
# Specifies the default date format to use with the
# TO_CHAR and TO_DATE functions. The default value of
# this parameter is determined by NLS_TERRITORY. The
# value of this parameter can be any valid date
# format mask, and the value must be surrounded by
# double quotation marks. For example:
#
# NLS_DATE_FORMAT = "MM/DD/YYYY"
#
# ---------------------------------------------------
NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT
# ---------------------------------------------------
# TNS_ADMIN
# ---------------------------------------------------
# Specifies the directory containing the Oracle Net
# Services configuration files like listener.ora,
# tnsnames.ora, and sqlnet.ora.
# ---------------------------------------------------
TNS_ADMIN=$GRID_HOME/network/admin; export TNS_ADMIN
# ---------------------------------------------------
# ORA_NLS11
# ---------------------------------------------------
# Specifies the directory where the language,
# territory, character set, and linguistic definition
# files are stored.
# ---------------------------------------------------
ORA_NLS11=$GRID_HOME/nls/data; export ORA_NLS11
# ---------------------------------------------------
# PATH
# ---------------------------------------------------
# Used by the shell to locate executable programs;
# must include the $GRID_HOME/bin directory.
# ---------------------------------------------------
PATH=.:${JAVA_HOME}/bin:$JAVA_HOME/db/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/oracle/dba_scripts/bin
export PATH
# ---------------------------------------------------
# LD_LIBRARY_PATH
# ---------------------------------------------------
# Specifies the list of directories that the shared
# library loader searches to locate shared object
# libraries at runtime.
# ---------------------------------------------------
LD_LIBRARY_PATH=$GRID_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$GRID_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
# ---------------------------------------------------
# CLASSPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# contain compiled Java classes.
# ---------------------------------------------------
CLASSPATH=$GRID_HOME/JRE
CLASSPATH=${CLASSPATH}:$GRID_HOME/jdbc/lib/ojdbc6.jar
CLASSPATH=${CLASSPATH}:$GRID_HOME/jlib
CLASSPATH=${CLASSPATH}:$GRID_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$GRID_HOME/network/jlib
export CLASSPATH
# ---------------------------------------------------
# THREADS_FLAG
# ---------------------------------------------------
# All the tools in the JDK use green threads as a
# default. To specify that native threads should be
# used, set the THREADS_FLAG environment variable to
# "native". You can revert to the use of green
# threads by setting THREADS_FLAG to the value
# "green".
# ---------------------------------------------------
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 44/48
11/15/2018 DBA Tips Archive for Oracle
THREADS_FLAG=native; export THREADS_FLAG
# ---------------------------------------------------
# TEMP, TMP, and TMPDIR
# ---------------------------------------------------
# Specify the default directories for temporary
# files; if set, tools that create temporary files
# create them in one of these directories.
# ---------------------------------------------------
export TEMP=/tmp
export TMPDIR=/tmp
# ---------------------------------------------------
# UMASK
# ---------------------------------------------------
# Set the default file mode creation mask
# (umask) to 022 to ensure that the user performing
# the Oracle software installation creates files
# with 644 permissions.
# ---------------------------------------------------
umask 022
Next, create the recommended OS groups and user for the Oracle database software on both Oracle RAC nodes.
-------------------------------------------------
Log in to both Oracle RAC nodes as the oracle user account and create the following login script (.bash_profile).
When setting the Oracle environment variables in the login script for each Oracle RAC
node, make certain to assign each RAC node with a unique Oracle SID.
racnode1: ORACLE_SID=racdb1
racnode2: ORACLE_SID=racdb2
# ---------------------------------------------------
# .bash_profile
# ---------------------------------------------------
# OS User: oracle
# Application: Oracle Database Software Owner
# Version: Oracle 11g Release 2
# ---------------------------------------------------
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 45/48
11/15/2018 DBA Tips Archive for Oracle
. ~/.bashrc
fi
# ---------------------------------------------------
# ORACLE_SID
# ---------------------------------------------------
# Specifies the Oracle system identifier (SID) for
# the Oracle instance running on this node.
# Each RAC node must have a unique ORACLE_SID.
# (i.e. racdb1, racdb2,...)
# ---------------------------------------------------
ORACLE_SID=racdb1; export ORACLE_SID
# ---------------------------------------------------
# ORACLE_UNQNAME
# ---------------------------------------------------
# In previous releases of Oracle Database, you were
# required to set environment variables for
# ORACLE_HOME and ORACLE_SID to start, stop, and
# check the status of Enterprise Manager. With
# Oracle Database 11g Release 2 (11.2) and later, you
# need to set the environment variables ORACLE_HOME
# and ORACLE_UNQNAME to use Enterprise Manager.
# Set ORACLE_UNQNAME equal to the database unique
# name.
# ---------------------------------------------------
ORACLE_UNQNAME=racdb; export ORACLE_UNQNAME
# ---------------------------------------------------
# JAVA_HOME
# ---------------------------------------------------
# Specifies the directory of the Java SDK and Runtime
# Environment.
# ---------------------------------------------------
JAVA_HOME=/usr/local/java; export JAVA_HOME
# ---------------------------------------------------
# ORACLE_BASE
# ---------------------------------------------------
# Specifies the base of the Oracle directory structure
# for Optimal Flexible Architecture (OFA) compliant
# database software installations.
# ---------------------------------------------------
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
# ---------------------------------------------------
# ORACLE_HOME
# ---------------------------------------------------
# Specifies the directory containing the Oracle
# Database software.
# ---------------------------------------------------
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
# ---------------------------------------------------
# ORACLE_PATH
# ---------------------------------------------------
# Specifies the search path for files used by Oracle
# applications such as SQL*Plus. If the full path to
# the file is not specified, or if the file is not
# in the current directory, the Oracle application
# uses ORACLE_PATH to locate the file.
# This variable is used by SQL*Plus, Forms and Menu.
# ---------------------------------------------------
ORACLE_PATH=/u01/app/oracle/dba_scripts/sql:$ORACLE_HOME/rdbms/admin; export ORACLE_PATH
# ---------------------------------------------------
# SQLPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# SQL*Plus searches for a login.sql file.
# ---------------------------------------------------
# SQLPATH=/u01/app/oracle/dba_scripts/sql; export SQLPATH
# ---------------------------------------------------
# ORACLE_TERM
# ---------------------------------------------------
# Defines a terminal definition. If not set, it
# defaults to the value of your TERM environment
# variable. Used by all character mode products.
# ---------------------------------------------------
ORACLE_TERM=xterm; export ORACLE_TERM
# ---------------------------------------------------
# NLS_DATE_FORMAT
# ---------------------------------------------------
# Specifies the default date format to use with the
# TO_CHAR and TO_DATE functions. The default value of
# this parameter is determined by NLS_TERRITORY. The
# value of this parameter can be any valid date
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 46/48
11/15/2018 DBA Tips Archive for Oracle
# format mask, and the value must be surrounded by
# double quotation marks. For example:
#
# NLS_DATE_FORMAT = "MM/DD/YYYY"
#
# ---------------------------------------------------
NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT
# ---------------------------------------------------
# TNS_ADMIN
# ---------------------------------------------------
# Specifies the directory containing the Oracle Net
# Services configuration files like listener.ora,
# tnsnames.ora, and sqlnet.ora.
# ---------------------------------------------------
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
# ---------------------------------------------------
# ORA_NLS11
# ---------------------------------------------------
# Specifies the directory where the language,
# territory, character set, and linguistic definition
# files are stored.
# ---------------------------------------------------
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
# ---------------------------------------------------
# PATH
# ---------------------------------------------------
# Used by the shell to locate executable programs;
# must include the $ORACLE_HOME/bin directory.
# ---------------------------------------------------
PATH=.:${JAVA_HOME}/bin:$JAVA_HOME/db/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/app/oracle/dba_scripts/bin
export PATH
# ---------------------------------------------------
# LD_LIBRARY_PATH
# ---------------------------------------------------
# Specifies the list of directories that the shared
# library loader searches to locate shared object
# libraries at runtime.
# ---------------------------------------------------
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
# ---------------------------------------------------
# CLASSPATH
# ---------------------------------------------------
# Specifies the directory or list of directories that
# contain compiled Java classes.
# ---------------------------------------------------
CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc6.jar
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH
# ---------------------------------------------------
# THREADS_FLAG
# ---------------------------------------------------
# All the tools in the JDK use green threads as a
# default. To specify that native threads should be
# used, set the THREADS_FLAG environment variable to
# "native". You can revert to the use of green
# threads by setting THREADS_FLAG to the value
# "green".
# ---------------------------------------------------
THREADS_FLAG=native; export THREADS_FLAG
# ---------------------------------------------------
# TEMP, TMP, and TMPDIR
# ---------------------------------------------------
# Specify the default directories for temporary
# files; if set, tools that create temporary files
# create them in one of these directories.
# ---------------------------------------------------
export TEMP=/tmp
export TMPDIR=/tmp
# ---------------------------------------------------
# UMASK
# ---------------------------------------------------
# Set the default file mode creation mask
# (umask) to 022 to ensure that the user performing
# the Oracle software installation creates files
# with 644 permissions.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 47/48
11/15/2018 DBA Tips Archive for Oracle
# ---------------------------------------------------
umask 022
Before installing the software, complete the following procedure to verify that the user nobody exists on both Oracle RAC nodes.
If this command displays information about the nobody user, then you do not have to create that user.
2.
http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml 48/48