Configuration parameters for Oracle must be specified in the configuration file /var/ha/ha.conf. The sections in this chapter describe each Oracle-specific block that must be added and the configuration parameters within each of those blocks. The sections are as follows:
The examples in this chapter show the Oracle configuration file blocks for the example discussed in the sections “Example Oracle Configuration” and “Configuration Parameters for Oracle” in Chapter 2.
Example 3-1 shows the application-class block in an Oracle configuration.
application-class oracle
{
server-node = xfs-ha2
agent = /usr/etc/ha_orcl
}
|
The application-class oracle block contains these configuration parameters:
| server-node | Lists a node that is a primary server for Oracle. In this example, just one node is listed because just one node is a primary node for Oracle. If both nodes are primary nodes for Oracle, server-node is listed twice. | |
| agent | The full pathname of the database agent for Oracle. You should not change this parameter. |
IRIS FailSafe configuration files contain one oracle block for each Oracle database instance that is a highly available service. Example 3-2 shows an example oracle block.
oracle Oracle1
{
master-db-fs = xfs-ha2fs
unix-user = oracle
release-dir = /usr/people/oracle
instance-id = fs
db-probe-time = 30
db-timeout = 20
db-avail = high
start-monitor-time = 100
db-retry-count = 1
startup-script = /xfs-ha2fs/oracle/scripts/dbstart
shutdown-script = /xfs-ha2fs/oracle/scripts/dbshut
db-shutdown-timeout = 30
}
|
The configuration parameters used in oracle blocks are as follows:
| master-db-vol |
| |
| master-db-fs | The value must match the label of a filesystem block. See the discussion below about master-db-vol and master-db-fs for information about which filesystem block label to use. This parameter or master-db-vol must be specified. | |
| unix-user | The IRIX login name that is the owner of the Oracle release directory. | |
| release-dir | The Oracle release directory specified in the Oracle configuration. This value is also the value of the environment variable ORACLE_HOME. This parameter is required. | |
| instance-id | The value of $ORACLE_SID for the Oracle instance that IRIS FailSafe is monitoring. This parameter is required. | |
| db-probe-time |
| |
| db-timeout | Defines the time the Oracle database agent waits for a response to its probe from the Oracle database instance in seconds. This parameter is required. | |
| db-avail | The possible values are high and low. If the value is high, a database server failure forces a failover. If the value is low, a failure of the database server doesn't force a failover, but the failover is reported. The default value is high. | |
| start-monitor-time |
| |
| db-retry-count | The number of monitoring retries by the database agent before a failure is declared. If db-retry-count isn't specified, its value defaults to 1. | |
| startup-script |
| |
| shutdown-script |
| |
| db-shutdown-timeout |
|
The Oracle system tablespace files could reside in multiple filesystems and on multiple logical volumes. You must choose one of these filesystems or volumes to be the “master” and specify it as the value of master-db-fs or master-db-vol. The oracle blocks do not list all filesystems and volumes that are part of the database, just the filesystem or volume containing system tablespace files and designated as the master. However, the configuration file must list all volumes and filesystems used by each database in volume and filesystem blocks (see the sections “Volume Blocks” and “Filesystem Blocks” in Chapter 2 of the IRIS FailSafe Administrator's Guide for information on these blocks). The IRIS FailSafe system uses the volume and filesystem blocks as a specification of the shared storage that must be online prior to bringing up the database.
Figure 3-2 shows the monitoring frequency parameters in each oracle block. They control the monitoring of a database instance by the Oracle database agent.
Table 3-1 lists each of these monitoring frequency parameters and their suggested, minimum, and maximum values. It also describes relationships between different parameters and the rounding that occurs for some parameter values.
Table 3-1. Values for Monitoring Frequency Configuration Parameter in Oracle Blocks
Parameter | Suggested Value | Minimum Value | Maximum Value | Comments |
|---|---|---|---|---|
start-monitor-time (oracle block) | 100 |
|
| Rounded to the nearest ten seconds. |
db-probe-time | 30 |
|
| Rounded to the nearest ten seconds. |
db-timeout | 20 |
|
| Rounded to the nearest ten seconds. |
db-retry-count | 1 |
|
|
|
db-shutdown-timeout | 30 |
| One half of the long-timeout value | Rounded to the nearest ten seconds. |
Example 3-3 shows the action and action-timer blocks for Oracle. The action block specifies the pathnames of the local monitoring script and the action-timer block specifies monitoring timing and timeout values for the monitoring of the Oracle database agent by the application monitor.
action oracle
{
local-monitor = /var/ha/actions/ha_orcl_lmon
}
action-timer oracle
{
start-monitor-time = 300
lmon-probe-time = 60
lmon-timeout = 30
retry-count = 2
}
|
The parameters used in action and action-timer blocks for Oracle are as follows:
| local-monitor | The pathname of the local monitoring script for Oracle. Do not change this value. | |
| start-monitor-time |
| |
| lmon-probe-time |
| |
| lmon-timeout |
| |
| retry-count | Specifies the number of times the local monitoring script retries its probes of the Oracle database agent. This values doesn't affect the lmon-timeout value. |
Figure 3-2 shows the monitoring parameters in the “action-timer oracle” block. They control the monitoring of the Oracle database agent by the local monitoring script.
Table 3-2 lists each of these monitoring parameters and their suggested, minimum, and maximum values. It also describes relationships between different parameters and the rounding that occurs for some parameter values.
Table 3-2. Values for Monitoring Frequency Configuration Parameter in Oracle Action-Timer Blocks
Parameter | Suggested Value | Minimum Value | Maximum Value | Comments |
|---|---|---|---|---|
start-monitor-time (action-timer block) | 300 |
|
| Should be greater than or equal to the value of long-timeout and greater than or equal to the largest of the values specified for start-monitor-time in any of the oracle blocks. |
lmon-probe-time | 60 |
|
|
|
lmon-timeout | 30 |
|
|
|
retry-count | 2 |
|
| This value doesn't affect the lmon-timeout value. |