Skip Headers
Oracle® TimesTen In-Memory Database Replication Guide
11g Release 2 (11.2.2)

E21635-07
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

A TimesTen Configuration Attributes for Oracle Clusterware

The attributes defined in this chapter are used to set up TimesTen active standby pairs that are managed by Oracle Clusterware. These attributes are specified in the cluster.oracle.ini file. The ttCWAdmin utility creates and administers active standby pairs based on the information in the cluster.oracle.ini file.

List of attributes

This section lists the TimesTen configuration attributes for Oracle Clusterware in these tables:

Table A-1 Required attributes

Name Description Default

MasterHosts

Lists host names that may contain master databases in an active standby pair scheme.

None


Table A-2 Conditionally required attributes

Name Description Default

AppCheckCmd

Command line for checking the status of a TimesTen application that is managed by Oracle Clusterware.

None

AppName

The name of a TimesTen application that is managed by Oracle Clusterware.

None

AppStartCmd

Command line for starting a TimesTen application that is managed by Oracle Clusterware.

None

AppStopCmd

Command line for stopping a TimesTen application that is managed by Oracle Clusterware.

None

AppType

The database to which the application should link.

None

CacheConnect

Specifies whether the active standby pair replicates cache groups.

N

GridPort

Lists the port numbers used by the cache grid agents for the active database and the standby database in an active standby pair that is a cache grid member.

None

MasterVIP

A list of two virtual IP addresses that can be associated with the master databases.

None

RemoteSubscriberHosts

A list of subscriber hosts that are not part of the cluster.

None

RepBackupDir

The directory to which the active database is backed up.

None

SubscriberHosts

List of host names that can contain subscriber databases.

None

SubscriberVIP

The list of virtual IP addresses that can be associated with subscriber databases.

None

VIPInterface

The name of the public network adapter that is to be used for virtual IP addresses on each host.

None

VIPNetMask

The netmask of the virtual IP addresses.

None


Table A-3 Optional attributes

Name Description Default

AppFailoverDelay

The number of seconds that the Oracle Clusterware resource that monitors the application waits after a failure is detected before performing a failover.

0

AppFailureInterval

The interval in seconds before which Oracle Clusterware stops a TimesTen application if the application has exceeded the number of failures specified by the Oracle Clusterware FAILURE_THRESHOLD resource attribute.

60

AppFailureThreshold

The number of consecutive Oracle Clusterware resource failures that Oracle Clusterware tolerates for the action script for an application within an interval equal to 10 * AppScriptTimeout. The default is 2.

2

AppRestartAttempts

The number of times that Oracle Clusterware attempts to restart the TimesTen application on the current host before moving the application.

100

AppScriptTimeout

The number of seconds the TimesTen application container waits for the action scripts to complete for a specific application.

60

AppUptimeThreshold

The number of seconds that a TimesTen application must be up before Oracle Clusterware considers the application to be stable.

If the application fails within this threshold, the failure is considered a failure to start properly, and the application is restarted on another host. If the application is active past this threshold, it is considered stable. If it fails after being stable, the application is restarted on the same host.

600

AutoRecover

Specifies whether an active database should be automatically recovered from a backup if both master databases fail.

No

DatabaseFailoverDelay

The number of seconds that Oracle Clusterware waits before migrating a database to a new host after a failure.

60

FailureThreshold

The number of consecutive failures of resources managed by Oracle Clusterware that are tolerated within 10 seconds before the active standby pair is considered failed and a new active standby pair is created on spare hosts using the automated backup.

2

MasterStoreAttribute

A list of all desired replication scheme STORE attributes on master databases.

None

RepBackupPeriod

The number of seconds between each backup of the active database.

0 (disabled)

RepDDL

A SQL construct of the active standby pair scheme.

None

RepFullBackupCycle

The number times an incremental backup occurs between full backups.

5

ReturnServiceAttribute

The return service attribute of the active standby pair scheme.

None

SubscriberStoreAttribute

The list of all desired replication scheme STORE attributes for the subscriber database.

None

TimesTenScriptTimeout

The number of seconds that Oracle Clusterware waits for the monitor process to start before assuming a failure.

1209600 seconds, or 14 days



Required attributes

These attributes must be present for each DSN in the cluster.oracle.ini file. They have no default values.

The required attributes are listed in Table A-1, "Required attributes" and described in detail in this section.


MasterHosts

This attribute lists the host names that can contain master databases in the active standby pair. The first host listed has the active master database and the second host has the standby master database when the cluster is initially started. The following are exceptions to this designated order:

  • If there are already active and standby master databases on specific nodes when the cluster is stopped, then the active and standby master databases remain on those hosts when the cluster is restarted.

  • If the cluster is started and the only existing database is on a host that is not listed first in MasterHosts, then that host is to be configured with the active master database. The first host listed for MasterHosts is to be the standby master database.

You can specify more than two hosts as master hosts for advanced availablity. See "Configuring advanced availability" for details.

If you have only two master hosts configured, you should not define any virtual IP addresses. If more than two master hosts are listed, you should configure virtual IP addresses for internal TimesTen processes to manage replication in the situation of an unrecoverable failure of one of the hosts on which an active or standby database resides. See "Configuring advanced availability" for details.

Setting

Set MasterHosts as follows:

How the attribute is represented Setting
MasterHosts A comma-separated list of host names. The first host listed becomes the initial active master in the active standby pair. The second host listed becomes the initial standby master in the active standby pair.

The hosts defined must be different than the hosts defined for the SubscriberHosts attribute.



Conditionally required attributes

These attributes may be required depending on the desired Oracle Clusterware configuration. They have no default values. The conditionally required attributes are listed in Table A-2, "Conditionally required attributes" and described in detail in this section.


AppCheckCmd

This attribute specifies the full command line for executing a user-supplied script or program that checks the status of the TimesTen application specified by AppName. It must include the full path name of the executable. If there are spaces in the path name, enclose the path name in double quotes.

The command should be written to return 0 when the application is running and a nonzero number when the application is not running. When Oracle Clusterware detects a nonzero value, it takes action to recover the failed application.

Setting

Set AppCheckCmd as follows:

How the attribute is represented Setting
AppCheckCmd A string representing the command line for executing an application that checks the status of the application specified by AppName.

Examples

AppCheckCmd=/mycluster/reader/app_check.sh check

AppFailureInterval

This attribute sets the interval in seconds before which Oracle Clusterware stops a TimesTen application if the application has exceeded the number of failures specified by the Oracle Clusterware FAILURE_THRESHOLD resource attribute. If the value is zero, then failure tracking is disabled.

For more information about the Oracle Clusterware FAILURE_THRESHOLD resource attribute, see Oracle Clusterware Administration and Deployment Guide.

Setting

Set AppFailureInterval as follows:

How the attribute is represented Setting
AppFailureInterval The number of seconds in the interval before Oracle Clusterware stops an application. The default is 60. For example:

AppFailureInterval=120



AppName

This attribute specifies the name of a TimesTen application managed by Oracle Clusterware. Oracle Clusterware uses the application name to name the corresponding resource. Any description of an application in the cluster.oracle.ini file must begin with this attribute.

Setting

Set AppName as follows:

How the attribute is represented Setting
AppName A string representing the name of the application. For example, testApp.


AppRestartAttempts

This attribute specifies the number of times that Oracle Clusterware attempts to restart the TimesTen application on the current host before moving the application to another host.

Setting

Set AppRestartAttempts as follows:

How the attribute is represented Setting
AppRestartAttempts The number of restart attempts. The default is 100. For example:
AppRestartAttempts=30


AppStartCmd

This attribute specifies the command line that starts the TimesTen application specified by AppName. It must include the full path name of the executable. If there are spaces in the path name, enclose the path name in double quotes.

Setting

Set AppStartCmd as follows:

How the attribute is represented Setting
AppStartCmd A string that represents the command line for starting the application specified by AppName.

Examples

AppCheckCmd=/mycluster/reader/app_start.sh start

AppStopCmd

This attribute specifies the command line that stops the TimesTen application specified by AppName. It must include the full path name of the executable. If there are spaces in the path name, enclose the path name in double quotes.

Setting

Set AppStopCmd as follows:

How the attribute is represented Setting
AppStopCmd A string that represents the command line for stopping the application specified by AppName.

Examples

AppCheckCmd=/mycluster/reader/app_stop.sh stop

AppType

This attribute determines the hosts on which the TimesTen application should start.

Setting

Set AppType as follows:

How the attribute is represented Setting
AppType Active - The application starts on the active database of an active standby pair.

Standby - The application starts on the standby database of an active standby pair. If the standby database fails, applications linked to it migrate to the active database until a new standby database is available.

DualMaster - The application starts on both the active host and the standby host. The failure of the application on the active host causes the active database and all other applications on the host to fail over to the standby host.

Subscriber - The application starts on all subscriber databases.

Subscriber[index]- The application starts on a subscriber database. The subscriber host used is the host occupying position index in either the SubscriberHosts attribute or the SubscriberVIP attribute, depending on whether virtual IP addresses are used. For a single subscriber, use Subscriber[1]. If no index is specified, TimesTen assumes that the application links to all subscribers.



AppUptimeThreshold

This attribute specifies the value for the Oracle Clusterware UPTIME_THRESHOLD resource attribute.The value represents the number of seconds that a TimesTen application must be up before Oracle Clusterware considers the application to be stable.

For more information about UPTIME_THRESHOLD, see Oracle Clusterware Administration and Deployment Guide.

How the attribute is represented Setting
AppUptimeThreshold Number of seconds. The default is 600. For example:
AppUptimeThreshold=60


CacheConnect

If the active standby pair replicates cache groups, set this attribute to Y. If you specify Y, Oracle Clusterware assumes that TimesTen is connected to an Oracle database and prompts for the Oracle database password.

Setting

Set CacheConnect as follows:

How the attribute is represented Setting
CacheConnect A value of Y (yes) or N (no). Default is N.


GridPort

This attribute lists the port numbers used by the cache grid agents for the active database and the standby database in an active standby pair that is a cache grid member. The port numbers are separated by a comma. This is a mandatory parameter when global cache groups are present.

Setting

Set GridPort as follows

How the attribute is represented Setting
GridPort Two port numbers separated by a comma. For example:

GridPort=16101,16102



MasterVIP

This attribute defines two virtual IP (VIP) addresses associated with the two master hosts that are used by the active standby pair. If you configure more than two master hosts for advanced availability, you must also define two VIP addresses. However, these VIP addresses are used solely by internal TimesTen processes for managing the active standby pair in the case of an unrecoverable error on one of the master hosts. Use of these VIP addresses by any user or application can result in an error. See "Configuring advanced availability" for details.

Setting

Set MasterVIP as follows:

How the attribute is represented Setting
MasterVIP A comma-separated list of two virtual IP addresses to the master hosts.


RemoteSubscriberHosts

This attribute contains a list of subscriber hosts that are part of the active standby pair replication scheme but are not managed by Oracle Clusterware.

Setting

Set RemoteSubscriberHosts as follows:

How the attribute is represented Setting
RemoteSubscriberHosts A comma-separated list of subscriber hosts that are not managed by Oracle Clusterware.


RepBackupDir

This attribute indicates the directory where the backup of the active database is stored. This must be a directory in a shared file system that every node in the cluster can access. This attribute is required only if RepBackupPeriod is set to a value other than 0.

The directory must be a shared partition that is shared by all hosts in the cluster. The partition must be NFS or OCFS (Oracle Cluster File System).

If you want to enable backup, install OCFS on the shared storage during the Oracle Clusterware installation process. You can use this shared storage for backup for an active standby pair.

See "Recovering from permanent failure of both master nodes" and "Failure and recovery for active standby pair grid members" for restrictions on backups.

Setting

Set RepBackupDir as follows:

How the attribute is represented Setting
RepbackupDir Full path name to the replication backup directory.


SubscriberHosts

Lists the host names that can contain subscriber databases. If the active standby pair is configured with subscribers, this attribute is required. It has no default value. You should have at least as many host names listed as there are subscribers defined.

If you are using advanced availability for your subscribers, define additional hosts that can be instantiated to take the place of any subscriber host that may encounter an unrecoverable error. Also, when using advanced availability, configure VIP addresses for every current subscriber in use. For example, if you have three subscribers and two additional hosts that can be used for advanced availability, you should have three VIP addresses defined. See SubscriberVIP for more information.

Setting

Set SubscriberHosts as follows:

How the attribute is represented Setting
SubscriberHosts A comma-separated list of host names.

The hosts defined must be different than the hosts defined for the MasterHosts attribute.

If not using advanced availability, the order of the hosts defined determines which application with an AppType of Subscriber[index] is attached to the subscriber database on a specific host. Also, the number of subscriber hosts specified is the number of subscribers that are part of the active standby pair. A subscriber is brought up on every subscriber host.

When using advanced availability, the first hosts listed are used for the subscriber hosts. The latter hosts defined are used for advanced availability.



SubscriberVIP

This attribute configures a list of the virtual IP (VIP) addresses associated with subscriber hosts that are used for advanced availability. When you configure more hosts than there are subscribers (for advanced availability), you must also define VIP addresses (one for each subscriber). However, these VIP addresses are used solely by internal TimesTen processes for managing replication in the case of an unrecoverable error on one of the subscriber hosts. Use of these VIP addresses by any user or application can result in an error. See "Configuring advanced availability" for details.

Setting

Set SubscriberVIP as follows:

How the attribute is represented Setting
SubscriberVIP One or more virtual IP addresses. You should define the same number of VIP addresses as the number of subscribers.

The order of subscriber virtual IP addresses is used to determine which application with an AppType of Subscriber[index] is attached to the database for a specific subscriber.



VIPInterface

This attribute is the name of the public network adapter used for virtual IP addresses on each host. This attribute is required if you intend to use virtual IP addresses.

Setting

Set VIPInterface as follows:

How the attribute is represented Setting
VIPInterface A string representing a network adapter.


VIPNetMask

This attribute is the netmask of the virtual IP addresses. This attribute is required if you intend to use virtual IP addresses.

Setting

Set VIPNetMask as follows:

How the attribute is represented Setting
VIPNetMask An IP netmask.


Optional attributes

These attributes are optional and have no default values. The optional attributes are listed in Table A-3, "Optional attributes" and described in detail in this section.


AppFailoverDelay

This attribute specifies the number of seconds that the process that is monitoring the application waits after a failure is detected before performing a failover. The default is 0.

Setting

Set AppFailoverDelay as follows:

How the attribute is represented Setting
AppFailoverDelay An integer representing the number of seconds that the process that is monitoring the application waits after a failure is detected before performing a failover. The default is 0.


AppFailureThreshold

This attribute specifies the number of consecutive failures that Oracle Clusterware tolerates for the action script for an application within an interval equal to 10 * AppScriptTimeout. The default is 2.

Setting

Set AppFailureThreshold as follows:

How the attribute is represented Setting
AppFailureThreshold An integer indicating the number of consecutive failures that Oracle Clusterware tolerates for the action script for an application. The default is 2.


AppScriptTimeout

This attribute indicates the number of seconds that the TimesTen application monitor process waits for the start action script and the stop action script to complete for a specific application. The check action script has a nonconfigurable timeout of five seconds and is not affected by this attribute.

Setting

Set AppScriptTimeout as follows:

How the attribute is represented Setting
AppScriptTimeout An integer representing the number of seconds the TimesTen application container waits for start and stop action scripts to complete for a specific application. The default is 60.


AutoRecover

Specifies whether Oracle Clusterware automatically recovers the active database from the backup in the case of a failure of both masters.

If recovery is not automated (AutoRecover=N), the database can be recovered using the ttCWAdmin -restore command.

You cannot use AutoRecover if you are using cache groups in your configuration or if a cache grid is configured.

Setting

Set AutoRecover as follows:

How the attribute is represented Setting
AutoRecover Y - Oracle Clusterware automatically recovers the active database from the backup if both masters fail.

N - In the case of the failure of both masters, you must recover manually. This is the default.



DatabaseFailoverDelay

This attributes specifies the number of seconds that Oracle Clusterware waits before migrating a database to a new host after a failure. Oracle Clusterware does not relocate a database if the database comes up during the delay period. This is applicable when advanced availability is configured. The default is 60 seconds.

Setting

Set DatabaseFailoverDelay as follows:

How the attribute is represented Setting
DatabaseFailoverDelay An integer representing the number of seconds that Oracle Clusterware waits before migrating a database to a new host after a failure. The default is 60.


FailureThreshold

This attribute specifies the number of consecutive failures of resources managed by Oracle Clusterware that are tolerated within 10 seconds before the active standby pair is considered failed and a new active standby pair is created on spare hosts using the automated backup. A spare node is only an option when using virtual IP addresses.

Oracle Clusterware tries to perform a duplicate for the active standby pair when a single failure occurs; it tries to perform a restoration if more than a single failure occurs.

This value is ignored for basic availability, since a spare node is only configured when at least one virtual IP address is configured, or is ignored when RepBackupPeriod is set to 0 when using advanced availability, which does include the configuration of at least one virtual IP address.

Note:

TimesTen tolerates only one failure of a backup resource, regardless of the setting for this attribute.

Setting

Set FailureThreshold as follows:

How the attribute is represented Setting
FailureThreshold An integer representing the number of consecutive failures of resources managed by Oracle Clusterware that are tolerated within 10 seconds before the active standby pair is considered failed and a new active standby pair is created on spare hosts using the automated backup. The default is 2.


MasterStoreAttribute

This attribute indicates the desired replication scheme STORE attributes for the master databases. The STORE attributes apply to both the active and standby databases. For more information on STORE attributes, see "Setting STORE attributes".

This attribute is not required when RepDDL is configured.

If this attribute is not set, the STORE attributes take their default values.

Setting

Set MasterStoreAttribute as follows:

How the attribute is represented Setting
MasterStoreAttribute The desired replication scheme STORE attributes for the master databases. For example: PORT 20000 TIMEOUT 60.


RepBackupPeriod

This attribute indicates the number of seconds between each backup of the active database. If this attribute is set to a value greater than 0, you must also specify a backup directory by setting RepBackupDir.

See "Recovering from permanent failure of both master nodes" and "Failure and recovery for active standby pair grid members" for restrictions on backups.

Setting

Set RepBackupPeriod as follows:

How the attribute is represented Setting
RepBackupPeriod An integer indicating the number of seconds between each backup of the active database. A value of 0 disables the backup process. The default is 0.


RepDDL

This attribute represents the SQL statement that creates the active standby pair. Use this attribute only in special circumstances. For example, you must specify RepDDL if you need to exclude tables and sequences from the active standby pair.

If RepDDL is set, do not set these attributes:

Replace the database file name prefix in the SQL statement with the <DSN> macro. Use the <MASTERHOST[1]>, <MASTERHOST[2]> and <SUBSCRIBERHOST[n]> macros instead of the host names.

There is no default value for RepDDL.

This example sets RepDDL for two master databases:

RepDDL=CREATE ACTIVE STANDBY PAIR <DSN> ON <MASTERHOST[1]>, <DSN> ON <MASTERHOST[2]>

See "Using the RepDDL attribute" for additional examples.

You do not usually need to set the ROUTE clause in RepDDL because the transmitter of the replication agent automatically obtains the private and public network interfaces that Oracle Clusterware uses. However, if hosts have network connectivity for replication schemes that are not managed by Oracle Clusterware, then RepDDL needs to include the ROUTE clause.

If this attribute is used, each STORE clause must be followed by the pseudo host names such as:

  • ActiveHost

  • ActiveVIP

  • StandbyHost

  • StandbyVIP

  • SubscriberHost

  • SubscriberVIP

Setting

Set RepDDL as follows:

How the attribute is represented Setting
RepDDL Creates an active standby pair by issuing a CREATE ACTIVE STANDBY PAIR statement. There is no default value.


RepFullBackupCycle

This attribute specifies the number of incremental backups between full backups. The number of incremental backups depends on the capacity of the shared storage.

Setting this attribute can impact performance. There is a trade-off between the storage capacity and the time consumption for backup. An incremental backup can be performed much faster than a full backup. However, storage consumption increases until a full backup is performed.

See "Recovering from permanent failure of both master nodes" and "Failure and recovery for active standby pair grid members" for restrictions on backups.

Setting

Set RepFullBackupCycle as follows:

How the attribute is represented Setting
RepFullBackupCycle An integer value representing the number of incremental backups to perform between full backups. The default is 5.


ReturnServiceAttribute

This attribute specifies the return service for the active standby replication scheme. See "Using a return service".

If no value is specified for this attribute, the active standby pair is configured with no return service.

Setting

Set ReturnServiceAttribute as follows:

How the attribute is represented Setting
ReturnServiceAttribute The type of return service. For example: RETURN RECEIPT. There is no default value.


SubscriberStoreAttribute

This attribute indicates the replication scheme STORE attributes of subscriber databases. The STORE attributes apply to all subscribers. For more information on STORE attributes, see "Setting STORE attributes".

This attribute is not required when RepDDL is present.

If this attribute is not set, the STORE attributes take their default values.

Setting

Set SubscriberStoreAttribute as follows:

How the attribute is represented Setting
SubscriberStoreAttribute The list of STORE attributes and their values for the subscriber databases.

For example: PORT 20000 TIMEOUT 60.



TimesTenScriptTimeout

This attribute specifies the number of seconds that Oracle Clusterware waits for the monitor process to start before assuming a failure.

Oracle TimesTen recommends setting a value of several hours because the action script may take a long time to duplicate the active database. The default is 1209600 seconds (14 days).

Setting

Set TimesTenScriptTimeout as follows:

How the attribute is represented Setting
TimesTenScriptTimeout An integer representing the number of seconds that Oracle Clusterware waits for the monitor process to start before assuming a failure. The default is 1209600 seconds (14 days).