Top
PRIMECLUSTER Wizard for Oracle 4.3 Configuration and Administration Guide

2.3.4 userApplication with Oracle Clusterware

This section describes how to register the Oracle Clusterware in an RMS resource using the userApplication Configuration Wizard.

Note

If the Oracle Clusterware resource is not registered in an RMS resource (Configuration C), skip the procedure then go to “2.3.5 userApplication with Oracle RAC Instances and Listeners”.

  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 you register the resource without changing the name, select “AdditionalOracle11gR2Clusterware”.

  4. Set up the Oracle Clusterware resource as follows.
    Enter Grid user name.

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

  5. 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 (sec) duration of the following processing.
    Default : 600 (300 - 86400)

    - Oracle Clusterware resource startup
    - Oracle Clusterware resource stop
    - PreOnlineScript
    - PostOnlineScript
    - PreOfflineScript
    - PostOfflineScript
    - FaultScript

    PreOnlineScript

    Executed before online processing

    PostOnlineScript

    Executed after online processing

    PreOfflineScript

    Executed before offline processing

    PostOfflineScript

    Executed after offline processing

    FaultScript

    Executed in the event of a fault

    Flags

    KeepOnline
    (K)

    Selects whether or not Online should remain without stopping resources when userApplication is stopped.
    If it is enabled, Online will remain.
    The flag is enabled by default.

    Information

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

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

    Note

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

    • If the “KeepOnline” flag is enabled, and userApplication is stopped, an Oracle Clusterware resource will look Offline on the Cluster admin view but resource itself remains active.

    • Stop of userApplication with Oracle RAC instance resource by PreOfflineScript

      Set the following script to PreOfflineScript of the Oracle Clusterware resource, when the Oracle Clusterware and Oracle RAC instance are registered in different userApplication ("Configuration A" in "2.3.3 userApplication and Resource Configuration".) and the "KeepOnline" flag is disabled.

      /opt/FJSVclora/sbin/clorastopwait <userApplication with Oracle RAC instance>

      <userApplication with Oracle RAC instance> is as follows.

      • specify app3 when you create app1

      • specify app4 when you create app2

      If there are multiple userApplications on the same node, delimit in space and specify all of <userApplication with Oracle RAC instance>.

      The clorastopwait script stops the userApplications and waits for them until entering their states other than "Online" and "Wait". The userApplications with Oracle RAC instance stop earlier than the userApplications with Oracle Clusterware because PreOfflineScript is set.

    • In ScriptTimeout, set time to have added at least 30 or more (second) to the largest one among as follows.

      • The startup time of the Oracle Clusterware (confirm Oracle Clusterware log file)

      • The stop time of the Oracle Clusterware (confirm Oracle Clusterware log file)

      • The stop time of the <userApplication with Oracle RAC instance> specified for clorastopwait script in PreOfflineScript (confirm RMS log file)

        If you specify two or more <userApplication with Oracle RAC instance>, use the userApplication that the stop time is the longest.

  6. Save the settings by selecting “SAVE+ RETURN”.
    Check that the Oracle Clusterware is set then save the settings by selecting “SAVE+EXIT”.

    Information

    If you register an Oracle RAC instance resource and a listener resource in the userApplication including the Oracle Clusterware resource (Configuration B), select “AdditionalRAC11gR2Instance” and “AdditionalRAC11gR2Listener” then register Oracle RAC instances and listeners. For details, see steps 4 to 11, or 12 to 17 of “2.3.5 userApplication with Oracle RAC Instances and Listeners”.

  7. Repeat from steps 1 to 6 for each node.

  8. Select “Create userApplication” in the “userApplication Configuration” menu and include the created Oracle resource (Oracle Clusterware resource) in userApplication.
    For further details of the attributes of userApplication, refer to “2.3.3 userApplication and Resource Configuration”.