Top
PRIMECLUSTER Wizard for Oracle 4.2 Configuration and Administration Guide
FUJITSU Software

2.4.5 userApplication with Oracle RAC Instances and Listeners

This section describes how to register Oracle RAC instance resources on each node using the userApplication Configuration Wizard.

These resources are registered in the same userApplication on each node.

Example

See the following example:

# su - <Grid user>
$ crsctl status resource -t
-------------------------------------------------------------------
NAME           TARGET  STATE        SERVER          STATE_DETAILS
-------------------------------------------------------------------
Local Resources
-------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
ora.LISTENER.lsnr
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
ora.asm
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
ora.eons
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
ora.gsd
               OFFLINE OFFLINE      node1
               OFFLINE OFFLINE      node2
ora.net1.network
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
ora.ons
               ONLINE  ONLINE       node1
               ONLINE  ONLINE       node2
-------------------------------------------------------------------
Cluster Resources
-------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       node1
ora.oc4j
      1        OFFLINE OFFLINE
ora.racdb.db
      1        ONLINE  ONLINE       node1         Open
      2        ONLINE  ONLINE       node2         Open
ora.scan1.vip
      1        ONLINE  ONLINE       node1
ora.node1.vip
      1        ONLINE  ONLINE       node1
ora.node2.vip
      1        ONLINE  ONLINE       node2
$

In the above configuration, listeners for “ora.LISTENER.lsnr” and OracleSIDs for Oracle RAC instances associated with “ora.racdb.db” are registered as a resource respectively.

Note

Before configuring userApplication, make sure that Oracle Clusterware has been activated on the node where userApplication Configuration Wizard is running, so the “crsctl status resource” command can be executed correctly with Grid user.

If Oracle Clusterware has not been activated, execute the following command as a root user.

# <ORACLE_HOME>/bin/crsctl start crs

<ORACLE_HOME> is the directory path where the Oracle Grid Infrastructure was installed.

When Oracle Clusterware startup is completed, be sure to confirm that the “crsctl status resource” command can be executed correctly.

# su - <Grid User>
$ crsctl status resource

The procedures to register both Oracle RAC instances and listeners and create an Oracle resource are as follows.

  1. Select “Create Resource” in the “userApplication Configuration” menu.

  2. Select “Oracle” from the “Resource type” list.

  3. For changing a resource name, select “ApplicationName”, and change the name. If not, skip this step.

    See

    Based on the value (SubApplicationName) entered in “ApplicationName” here, the Wizard for Oracle resource name is created on the RMS. For details, see “2.4.2 Oracle Software Installation and Configuration”.

  4. For creating and registering an Oracle RAC instance resource, select “AdditionalRAC11gR2Instance”.

  5. Enter Oracle user name.

  6. Enter or select a directory path where Oracle Database was installed.

    Note

    After OracleHome entered, it may take few seconds to transition to the next screen. This is because a list of Oracle RAC instance SID is acquired from Oracle RAC.
    If Oracle user and OracleHome entered ware incorrect, the list will not be displayed.

  7. A list of registerable Oracle RAC instance SID is displayed.
    Check “Advanced setup”, then specify a node with “ScopeFilter”.

    Input the name of a host where Oracle RAC instance SID that will be registered belongs to.

  8. Select Oracle RAC instance SID.

  9. Enter Grid user name.

    Note

    If your Oracle RAC environment has one user for the Oracle Grid Infrastructure and the Oracle Database installations, enter Oracle user here.

    Next, enter or select a directory path where Oracle Grid Infrastructure was installed.

  10. To change the settings, select setting item and click “Next” button.
    To change the advanced settings, check “Advanced setup”.

    Attributes

    Description

    OracleUser

    Owner user for Oracle Database

    OracleHome

    Directory path where Oracle Database was installed

    GridUser

    Owner user for Oracle Grid Infrastructure

    GridHome

    Directory path where Oracle Grid Infrastructure was installed

    ScriptTimeout

    Timeout of Oracle RAC instance resource startup and stop
    Default : 900 s (300s - 86400s)

    WFTime

    Waiting time for resource failure recovery through Oracle Clusterware
    - PersistentWarning :
    Notifies Warning until resource recovery
    - ImmediateFault :
    Notifies Faulted without waiting resource recovery
    - 60s - 86400s
    Default value: 900s

    PreOnlineScript

    Executed before online processing.
    Optional

    PostOnlineScript

    Executed after online processing.
    Optional

    PreOfflineScript

    Executed before offline processing.
    Optional

    PostOfflineScript

    Executed after offline processing.
    Optional

    FaultScript

    Executed when a fault occurs.
    Optional

    Flags

    NullDetector
    (D)

    Selects whether or not resource monitoring is enabled.
    If it is enabled, resource monitoring will not be performed.
    The flag is disabled by default.

    See

    • For details about Scripts, see “2.5.1 Oracle Online/Offline Script”.

    • For details about Flags, see “9 Appendix - Attributes” of the “PRIMECLUSTER RMS Configuration and Administration Guide”.

    Note

    • Startup of Oracle Clusterware userApplication through PreOnlineScript
      If Oracle Clusterware and Oracle RAC instance are registered in different userApplication (Configuration A), set up the following script in PreOnlineScript of the Oracle RAC instance resource;

      /opt/FJSVclora/sbin/clorastartwait <userApplication with Oracle Clusterware>

      Specify the following userApplication:

      • For app3 : app1

      • For app4 : app2

      This setting enables that a userApplication including Oracle Clusterware resource starts up before starting up of userApplication including Oracle RAC instance resources.

    • WFTime
      In Oracle RAC 11g R2, Oracle Clusterware will recover a failure of an Oracle RAC instance or a listener instance. In PRIMECLUSTER Wizard for Oracle, the wait time for the failure recovery can be set for WFTime.

      • If WFTime=PersistentWarning is set, completion of the failure recovery will be waited forever. In the meantime, an RMS resource will enter Warning, so userApplication will not be degenerated. As soon as recovery is detected, the RMS resource will get back to Online.

      • If WFTime=ImmediateFault is set, completion of the failure recovery will not be waited but an RMS resource will be considered as fault. As soon as the RMS resource fails, userApplication will be degenerated.

      • WFTime=<second> is set, completion of the failure recovery will be waited for a certain period of time. After the predetermined amount of wait time passes, an RMS resource will be considered as fault then userApplication will be degenerated. During the wait time, the RMS resource indicates Warning. If recovery is detected within the wait time, the RMS resource will get back to Online.

    • Flags
      Flags=<Abbreviation> indicates that the flag attribute is enabled.

  11. Check that the advanced settings are correctly set, and then save the settings by selecting “SAVE+RETURN”.

  12. For creating and registering an Oracle RAC listener resource, select “AdditionalRAC11gR2Listener”.

  13. Enter Grid user name.

  14. Enter or select a directory path where Oracle Grid Infrastructure was installed.

  15. Select Oracle RAC listener.

  16. To change the settings, select setting item and click “Next” button.
    To change the advanced settings, check “Advanced setup”.

    Attributes

    Description

    GridUser

    Owner user for Oracle Grid Infrastructure

    GridHome

    Directory path where Oracle Grid Infrastructure was installed

    ScriptTimeout

    Timeout of Oracle RAC listener resource startup and stop
    Default : 900 s (300s - 86400s)

    WFTime

    Waiting time for resource failure recovery through Oracle Clusterware
    - PersistentWarning :
    Notifies Warning until resource recovery
    - ImmediateFault :
    Notifies Faulted without waiting resource recovery
    - 60s - 86400s
    Default value: PersistentWarning

    PreOnlineScript

    Executed before online processing.
    Optional

    PostOnlineScript

    Executed after online processing.
    Optional

    PreOfflineScript

    Executed before offline processing.
    Optional

    PostOfflineScript

    Executed after offline processing.
    Optional

    FaultScript

    Executed when a fault occurs.
    Optional

    Flags

    NullDetector
    (D)

    Selects whether or not resource monitoring is enabled.
    If it is enabled, resource monitoring will not be performed.
    The flag is disabled by default.

    See

    • For details about Scripts, see “2.5.1 Oracle Online/Offline Script”.

    • For details about Flags, see “9 Appendix - Attributes” of the “PRIMECLUSTER RMS Configuration and Administration Guide”.

    Note

    • WFTime
      This is the same as Oracle RAC instance resource. For details, see the Note of step 10.

    • Flags
      Flags=<Abbreviation> indicates that the flag attribute is enabled.

  17. Check that the advanced settings are correctly set, and then save the settings by selecting “SAVE+RETURN”.

  18. Check that the Oracle RAC instance and listener are set, then save the settings by selecting “SAVE+EXIT”.

  19. Repeat steps 1 through 18 for each node.

  20. Select “Create userApplication” in the “userApplication Configuration” menu and include the created Oracle resource (Oracle RAC instance resource, listener resource) in userApplication.
    For further details of the attributes of userApplication, refer to “2.4.3 userApplication and Resource Configuration”.