Oracle 9i RAC: Capturing an Image and Creating a Tier
Intended for use with Cassatt Active Response V5.0.
This blueprint describes how to install, configure, and deploy Oracle 9i Real Application Clusters (Oracle 9i RAC) release 2 (9.2.0.6) software to run in the Cassatt Active Response environment. If you haven't read Understanding Blueprints for Deploying Applications, read that first for background and context.
Prerequisites
 |
Application node hardware requirements:
If you are installing a 64-bit version of the OS, follow these steps to set a custom attribute to identify x86_64 servers and ensure they are the only nodes allocated to run the image:
- Identify all of the x86_64 nodes.
- Add a custom attribute to each of those nodes that indicates the nodes can be allocated to run images that require a 64-bit-capable archictecture. Refer to the online help topic entitled "Using custom hardware attributes to specify hardware for your software" for information.
- When you capture the Apache image, assign the same custom attribute to the image as you assigned to the nodes.
- When you create the Apache tier, the custom attribute is assigned by default. Do not remove the custom attribute.
If you intend to run a 64-bit version of the OS in VMware ESX 3.0 VMs, you must have set up your VMware host tier with the same custom attribute so that only x86_64 nodes are allocated to your host tier. See also VMware KB 1901, Hardware and Firmware Requirements for 64-Bit Guest Operating Systems. |
 |
Image host requirements: If you are installing a 64-bit version of the OS, select a node with the x86_64 custom attribute. |
 |
Software requirements:
- Red Hat ELAS 3 or 4
- Oracle 9i Real Application Clusters (Oracle 9i RAC) release 2 (9.2.0.6)
|
 |
Tier Settings: Determine the policy settings for the Oracle 9i RAC image and the tier. To understand how to determine policy values, see Understanding Tier Configuration and Personalization. |

|
Network Requirements: Determine the network to associate with the tier. Make sure it has adequate IP addresses free to accommodate maximum nodes for the tier. |
The blueprint steps
This blueprint follows the standard high-level blueprint steps.
top
Step 1: Reserve a node from the free pool to use as an image host
- From the Controller, click the Free Pool.
- Select a physical node to reserve.
You can differentiate between physical and virtual node by looking at the ID; virtual node IDs are appended with _vnodeN, for example, node003_vnode1.
Be sure to select a node with the architecture required for your operating system; that is, Sparc for Solaris or IA32 for Linux or Windows.
- Select Node Actions > Reserve for Image Capture.
- Note the node's IP address, which you will use when you install the OS and capture the image.
Step 2: Install and configure the operating system
Follow instructions to install and configure ELAS 3 (32-bit only) or 4 (32-bit or 64-bit): Red Hat ELAS.
Red Hat Enterprise Linux 5 is not supported for this blueprint.
If you are using Red Hat ELAS 4, install the following RPM:
libaio-0.3.103-3.i386.rpm
Step 3: Install and configure your software
Prerequisites
- The following OracleMetaLink step-by-step installation document (available to registered
MetaLink users):
Doc ID: Note:184821.1
Subject: Step-By-Step Installation of 9.2.0.5 RAC on Linux
- The following OracleMetaLink note:
Doc ID: Note:191587.1
Subject: Link Phase Fails for 'ins_ctx.mk' While Installing Oracle Server 9.2.0.1 on Linux
- The path to the Oracle database data files. You will use this path when setting the Oracle
environment variables.
- The path to the Oracle Quorum files. (You will use this path during Oracle installation.)
If this file system is NFS, it must be mounted with the noac option (no attribute
caching).
- The ora_preinstall.sh script, available for downloading at Cassatt info central:
http://www.cassatt.com/infocentral/collage/5.0/downloads/ora_preinstall.sh
- Optional: the customized version of the ocmstart.sh script. (As an alternative, you can
edit the default version, as described in step 4.) This script is available for downloading at
Cassatt info central:
http://www.cassatt.com/infocentral/collage/5.0/downloads/ocmstart.sh
- The dbora script, available in a zip file for downloading at Cassatt info central:
http://www.cassatt.com/infocentral/collage/5.0/downloads/dbora.zip
-
The script to monitor Oracle status, /home/oracle/oracle_status.sh. This script is
available for downloading at Cassatt info central:
http://www.cassatt.com/infocentral/collage/5.0/downloads/oracle_status.sh
Follow these steps to install Oracle 9i Real Application Clusters (Oracle 9i RAC) release 2
(9.2.0.6) on the image host:
- Enable rsh via xinetd, as follows:
- Edit the file /etc/xinet.d/rsh.
- Ensure that the disable line is set to “no”. This line should appear as follows:
disabled =no
- Restart the xinetd service:
service xinetd restart
- Set up the Oracle environment variables according to the OracleMetaLink step-by-step
installation document, including the following:
- $ORACLE_BASE=/opt/app/oracle/product
- $ORACLE_HOME=$ORACLE_BASE/920
(Note that $ORACLE_BASE must be on the shared root.)
- $SHARED_DATAFILES_PATH=datafile_path
- Log in as root and run the script ora_preinstall.sh.
- Follow the instructions in the OracleMetaLink step-by-step installation document to
install Oracle Cluster Manager and Oracle RAC on the image host. Note the following
during installation:
- Before running step 2.8 ("Start the ORACM"), either edit the ocmstart.sh script
to remove the watchdog timer steps, or use the customized version of ocmstart.sh listed in the prerequisites.
- During step 3.1 ("Install 9.2.0.4 RAC"), see the following OracleMetaLink note:
Doc ID: Note:191587.1
Subject: Link Phase Fails for 'ins_ctx.mk' While Installing Oracle Server 9.2.0.1 on
Linux
- Stop after step 3.2 ("Patch the RAC Installation"). The remaining steps are
completed during tier personalization—do not configure the Oracle network with
netca or create a database with dbca until tier personalization.
- Create a symbolic link to the echo command:
ln -s /bin/echo /usr/bin/echo
- Install the Oracle Client on the shared storage device by running the Oracle
runinstaller script and selecting the shared storage device for the installation
location.
- Configure Oracle to start automatically when the system is rebooted:
- Copy the service script dbora to the /etc/init.d directory:
cp /DownloadLocation/dbora /etc/init.d
- Set execute permissions for the script:
chmod +x /etc/init.d/dbora
- Add the dbora service:
chkconfig --add dbora
The OracleMetaLink note, "How to Automate Startup/Shutdown of Oracle Database on
Linux" (Doc ID Note: 222813.1) does not work correctly for Oracle 9i RAC. Using dbstart and dbshut to start up a RAC instance causes multiple problems:
- /etc/oratab is set incorrectly to the RAC SID instead of the database name, which
prevents dbshut from correctly finding the instance. The incorrect setting causes
problems with Enterprise Manager discovery.
- Using dbstart and dbshut leaves the database instances in an unknown state.
For RAC, the service script dbora uses srvctl instead of dbstart and dbshut to start and stop the databases.
top
Step 4: Capture the image
In this step, you will capture the base image from the image host using the cccapture command—an interactive script. Although you can change the values later, it is most efficient
to supply valid values now.
Follow these steps:
- Log into the active control node as root.
- Enter the following command to start the capture of the base image from the image host:
/opt/cassatt/bin/cccapture
- Answer each prompt.
The next table lists the recommended values for the Oracle 9i RAC blueprint; unless you have site-specific
reasons, accept the default values for other cccapture prompts.
For names, descriptions, and other discretionary fields, use values that are meaningful to
you. In the image name, do not use spaces or characters (for example, /) special to Unix-based file systems such as Linux and Solaris.
Specifying the applications and versions contained in this image is not required for this blueprint, but you may wish to do so for tracking purposes.
For file system selection: selecting unneeded file systems wastes space but is otherwise harmless.
At this prompt... |
Enter... |
Notes |
| Enter the image type (linux,vmhost,windows,solaris): |
linux |
|
Do any of the applications in the image require
personalization (additional configuration once the image
is booted)? [n] |
y |
|
If a tier using this image must always run on a specific set of nodes,
custom attributes can be specified for the tier. These same attributes
must then be specified on each node that will be reserved for the tier.
The Cassatt system will then match on these attributes to ensure that
those nodes are always allocated for a tier with this image.
Do you want to specify any custom attributes for tiers using this image? [n] |
y or n |
If you are installed a 64-bit version of the OS, specify the x86_64 server architecture custom attribute |
| Enter an attribute value for nodes to use: |
x86_64attribute |
|
Enter the hardware architecture for this image
(ia32): [ia32] |
ia32 |
Select "ia32" even when your image requires a 64-bit-capable server. A custom attribute is required to ensure allocation of 64-bit-capable servers. |
Do you want to specify the hardware requirements for a
tier using this image? [n] |
y |
|
Enter minimum amount of RAM (MBytes) per node for this
image (128,256,512,1024,2048,4096,8192): [no minimum] |
512 |
|
Does this image require a local disk? [n] |
y |
|
Enter the minimum size in Gbytes for the required local
disk: [0] |
disk size |
Cassatt Active Response uses
this value in
determining which
nodes to allocate to tiers
running this image. Use the smallest
size you believe will
provide adequate space
for swap and temp (no
smaller than 6 GB).
Nodes with smaller
disks will not be
allocated to run this
image. |
Does this image require local swap space? [n]: |
y |
|
Enter the required amount of swap space (in Gbytes): [8] |
2 |
The space remaining on
the local disk after swap
partitions are created is
assigned to local temp
space. |
Does this image require local temp space? [n]: |
y |
|
Should this image be installed on the local disk (allowing the node to boot locally)? [n] y |
y or n |
See Alternatives to NFS: Image on Local Disk for details. |
OS Monitoring Options
Specify the operating system monitoring that will be used
for this image (at least one monitoring option must be
configured):
Monitor via SNMP? [n] |
y |
|
Monitor via ping? [n] |
y |
|
Monitoring for the Oracle application cannot be specified during cccapture because the
tier must be personalized before monitoring is activated. You will specify monitoring settings
for the Oracle application in a later step.
- In the Controller, release the image host back to the free pool by selecting the node using the checkbox, then select Node Actions > Release from Image Capture.
top
Step 5: Create the tier
Return to the Controller to define the Oracle 9i RAC tier. Cassatt Active Response prepopulates tier values with the parameters you set during image capture. If necessary, you can change them during tier creation.
- On the left navigation pane, click Tiers to display the Tier List.
- On the Tier List page, click the New Tier button (on the right).
- On the Properties page, set the properties for the Oracle tier.
The next table lists the suggested values for the Oracle blueprint; unless you have site-specific reasons, accept the defaults in other fields.
Prompt or Parameter |
Example Value or Selection |
Notes |
Email Alerts |
On |
|
Email On:
Tier Critical
Tier Non-Critical |
 |
Select all choices |
Reboot on failure |
On |
|
Automatic move to maintenance pool |
On |
|
Harvest priority |
Low |
|
Allow harvest |
On |
|
- On the Requirements page, set the hardware requirements for the tier.
At this prompt... |
Enter... |
Notes |
Operational Target |
TargetNodes |
|
Minimum Nodes |
MinNodes |
|
Maximum Nodes |
MaxNodes |
|
- On the networks page, select a primary network.
- On the IPs and Hostnames page, assign IP addresses or host names, or accept the default settings.
- You can close the Creating Tier Progress page and continue with the next section.
top
Step 6: Personalize the Oracle 9i RAC image instances
On the tier page, select the Oracle 9i tier using the checkbox, then select Personalize from the actions dropdown menu.
Cassatt Active Response boots the maximum nodes for the tier.
Prerequisites
- The host names and IP addresses for each node in the tier.
- The path to the Oracle database data files. You will use this path as an argument to the
Oracle Database Configuration Assistant (DBCA) during tier personalization.
- If you use Oracle Enterprise Manager (EM), the following OracleMetaLink documents
(available to registered MetaLink users):
Doc ID: 158295.1
Subject: How to Configure EM with 9i Real Application Clusters (RAC)
Doc ID: 71913.1
Subject: How to “Clean Start” the Intelligent Agent When Irrecoverable Errors Occur
Doc ID: 114007.1
Subject: How to Check the Status of a Remote Agent from a Client Machine
Doc ID: Note: 165034.1
Subject: How to Configure Em 9i Using an OMS / Intelligent Agents
Personalization
This procedure summarizes the per-node configuration steps described in the following OracleMetaLink document:
Doc ID: Note:184821.1
Subject: Step-By-Step Installation of 9.2.0.5 RAC on Linux
Do the following:
- Ensure that the environment is configured correctly for Oracle:
- The oracle user must exist.
- The oracle user must be the owner of the directories $ORACLE_HOME and /var/
opt/oracle.
- The Oracle environment variables must be set correctly, as described in the Oracle installation documentation.
- Log into each node in the tier and edit the $ORACLE_HOME/oracm/admin/cmcfg.ora file to include all the host names associated with the tier in the Cluster Manager
configuration, as follows:
- Change HostName to the node’s host name.
- Add all the nodes in the tier to PrivateHostNames and PublicHostNames. List
the nodes in exactly the same order on each node.
You must complete this step on each node before continuing to step 3.
- Edit the file/etc/hosts.equiv and add the IP addresses for each node in the tier. Add
the maximum number of nodes for the tier.
- Ensure that the oracle user can use rsh to connect to all nodes in the tier without
entering a password.
- On each node, start the Oracle Cluster Manager (oracm) as root:
. /home/oracle/.bashrc
$ORACLE_HOME/oracm/bin/ocmstart.sh
- On each node, start the Global Service Daemon as oracle:
gsdctl start
- On the primary node, set up the listener as oracle using netca (the Oracle Net
Configuration Assistant). The netca utility copies the listener.ora file to each node.
- On the primary node, create the target datafile directory. Without this target directory,
Oracle has errors on file creation.
mkdir /datafile_path/DbName
- On the primary node, create the cluster database using dbca (the Oracle Database
Configuration Assistant) as oracle. This creates the database and the tnsnames.ora file. Specify the path to the Oracle database data files as the datafileDestination argument, as follows:
dbca –datafileDestination datafile_path
- On the primary node, start the database and all instances. Run the following command to
ensure that the database has started:
srvctl status database -d database_name
Use the following command to start an instance, as necessary:
srvctl start instance -d database_name –I instance_name
- Set up Oracle to automatically start the database and instances at reboot.
- If you use Oracle Enterprise Manager (EM) and the Intelligent Agent, use these steps on the primary node:
- Set up EM according to the OracleMetaLink document 158295.1, How to Configure
EM with 9i Real Application Clusters (RAC). Use the following tips during this
procedure:
- See OracleMetaLink document 71913.1 for information on resolving
problems with the Intelligent Agent.
- To make the clean-up before starting agentctl, also toggle lsnrctl and
gsdctl.
- See OracleMetaLink document 114007.1 for information on monitoring the
agent using tnsping.
- Install the RAC database for EM by creating the target database directory:
mkdir /DatafileDestination/DatabaseName
- Then create the cluster database:
dbca -datafileDestination /DatafileDestination/DatabaseName
- Install the EM database repository by setting up the agent, EM database repository,
and node discovery, as described in OracleMetaLink document 165034.1. During the
repository installation, install the repository as a new tablespace in the previously
created RAC database—do not create a new database, because it would not be a RAC
database.
- If you want to set up EM with the web server, set the $DISPLAY environment
variable as follows, using your web server name for servername:
export DISPLAY=servername:1
Then navigate to Oracle’s apachectl directory:
cd $ORACLE_HOME/Apache/Apache/apachectl start
Finally, use your local browser to connect to the web server with the following URL:
http://servername:3339
- When you are finished, return to the Controller, select the tier, and select "Personalization Complete" for the tier.
top
Set monitoring parameters
Follow these steps to set up monitoring for the Oracle application.
- Select Images from the left navigation pane.
- Select the Oracle image.
Cassatt Active Response displays the image properties page.
- Select the Applications tab.
Cassatt Active Response displays the applications table. In this case the table is empty; had you specified
applications during image capture, the table would have been prepopulated from the
image manifest.
- Click the Add Application button.
Cassatt Active Response displays the Properties page.
- Set up monitoring for the Oracle application using the following settings.
Prompt or Parameter |
|
Notes |
Application name |
oracle |
|
Description |
ApplicationDescription |
Optional |
JMX |
|
Leave Blank |
SNMP |
|
Leave Blank |
Script |
 |
|
Script path/name |
/home/oracle/oracle_status.sh |
|
Timeout |
60 |
Enter a value in seconds |
Collection Interval |
60 |
|
Retry Count |
3 |
|
HTTP |
|
Leave blank |
- Click Save Changes.
top
Step 7: Allocate nodes and activate the tier
Follow these steps to allocate nodes and activate the tier.
- From the Tiers table on the Domain page, select the checkbox for the Oracle tier.
- From the Tier Actions dropdown menu, select Allocate Nodes. Click Allocate Nodes on the confirmation page.
Cassatt Active Response allocates nodes and displays the Tiers table.
- Again, select the checkbox for the Oracle tier.
- From the Tier Actions dropdown menu, select Activate. Click Activate on the confirmation page.
Cassatt Active Response starts the operating system and the applications on each node in the tier.
This completes the procedure to create and deploy an Oracle 9i RAC image.
Was this article useful? Tell us what you think.
Email infocentral@cassatt.com.
|