Top
PRIMECLUSTER Wizard for Oracle 4.3 Configuration and Administration Guide

2.4.1 Oracle Online/Offline Script

PRIMECLUSTER Wizard for Oracle allows users to execute their own unique processing before, while or after startup or stop of Oracle instances and listeners (Online/ Offline processing). For example, application startup/stop and batch processing can be executed along with startup or stop of Oracle instances and listeners.

Script Type

Script

Description

startup

PreOnlineScript

Executed before OnlineScript.
Set up in userApplication Configuration Wizard.

OnlineScript

Starts resource up during userApplication Online processing.
It is impossible to setup by user.

prestartup*

It is usable only for the Oracle instance resource in standby operation.
Executed before Oracle instance startup. If the Oracle state (STATUS of the V$INSTANCE view) has to be checked
Put the executable file that begins with "prestartup" in the "/opt/FJSVclora/usr" directory.

nomount*

It is usable only for the Oracle instance resource in standby operation.
Executed when the Oracle status (STATUS column in V$INSTANCE view) is "STARTED" during Oracle startup. Put the executable file that begins with "nomount" in the "/opt/FJSVclora/usr" directory.

mount*

It is usable only for the Oracle instance resource in standby operation.
Executed when the Oracle status (STATUS column in V$INSTANCE view) is "MOUNTED" during Oracle startup. Put the executable file that begins with "mount" in the "/opt/FJSVclora/usr" directory.

PostOnlineScript

Executed after OnlineScript.
Set up in userApplication Configuration Wizard.

stop

PreOfflineScript

Executed before OfflineScript.
Set up in userApplication Configuration Wizard.

OfflineScript

Stops resource down during userApplication Offline processing.
It is impossible to setup by user.

PostOfflineScript

Executed after OfflineScript.
Set up in userApplication Configuration Wizard.

other

FaultScript

Executed when failures occur.
Set up in userApplication Configuration Wizard.

See

For information on how to set up the scripts below, see the step 5 or 7 of “2.2.7.2 Oracle Resource Creation”, the step 5 of “2.3.4 userApplication with Oracle Clusterware”, or the step 7 or 10 of “2.3.5 userApplication with Oracle RAC Instances and Listeners”.

  • PreOnlineScript

  • PostOnlineScript

  • PreOfflineScript

  • PostOfflineScript

  • FaultScript

For detail of these scripts below, refer to "3.1 Oracle Control through PRIMECLUSTER Wizard for Oracle".

  • OnlineScript

  • OfflineScript

Execution Sequence

Script

userApplication startup

resource AutoRecover

userApplication stop
(normal)

userApplication stop
(resource failure)

startup

PreOnlineScript

1

-

-

-

OnlineScript

2

1

-

-

prestartup*

3

2

-

-

nomount*

4

3

-

-

mount*

5

4

-

-

PostOnlineScript

6

5

-

-

stop

PreOfflineScript

-

-

1

2

OfflineScript

-

-

2

3

PostOfflineScript

-

-

3

4

other

FaultScript

-

-

-

1

Example

A sample of execution sequence where an Oracle instance resource and a listener resource are registered in the standby operation and StartPriority is set as "Listener" is described below.

  • userApplication startup

    Note that all PreOnlineScript are executed firstly.

  1. PreOnlineScript of Listener resource

  2. PreOnlineScript of Oracle instance resource

  3. OnlineScript of Listener resource

  4. PostOnlineScript of Listener resource

  5. OnlineScript (including startup*, nomount*, mount*) of Oracle instance resource

  6. PostOnlineScript of Oracle instance resource

  • Listener resource AutoRecover

    Note that PreOnlineScript of Listener resource is not executed.

  1. OnlineScript of Listener resource

  2. PostOnlineScript of Listener resource

  • normal userApplication stop (user operation)

    Note that all PreOfflineScript are executed firstly.

  1. PreOfflineScript of Oracle instance resource

  2. PreOfflineScript of Listener resource

  3. OfflineScript of Oracle instance resource

  4. PostOfflineScript of Oracle instance resource

  5. OfflineScript of Listener resource

  6. PostOfflineScript of Listener resource

  • userApplication stop caused by Listener resource failure

    Note that not only FaultScript of Listener resource but also FaultScript of Oracle instance resource are executed.

  1. FaultScript of Listener resource

  2. FaultScript of Oracle instance resource

  3. PreOfflineScript of Oracle instance resource

  4. PreOfflineScript of Listener resource

  5. OfflineScript of Oracle instance resource

  6. PostOfflineScript of Oracle instance resource

  7. OfflineScript of Listener resource

  8. PostOfflineScript of Listener resource

Notice (PreOnlineScript, PostOnlineScript, PreOfflineScript, PostOfflineScript, FaultScript)

Information

For details of each script, see “2.6.3 Script” of the “PRIMECLUSTER RMS Configuration and Administration Guide”.

Notice (prestartup*, nomount*, mount*)

Note

These scripts are enabled with Oracle instance resources in standby operation.
Note that they cannot be used with resources other than Oracle instance resources, and cannot also be used in scalable operation with Oracle RAC.