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

3.1.1 Standby Operation

This section describes startup, shutdown and monitoring of Oracle resources in standby operation.

See

In the Oracle Data Guard/Oracle Active Data Guard environment, for details about startup, shutdown and monitoring of Oracle resources in the standby database cluster operation, see "G.3.1 Oracle database Control (Standby Operation)".

3.1.1.1 Starting and Stopping Oracle resources

Oracle instance startup

Startup procedure of an Oracle instance is as follows:

  1. su - <Oracle user>

  2. sqlplus / nolog

  3. connect / as sysdba

  4. startup nomount or startup mount

  5. alter database mount (if “startup nomount” was executed at step 4.)

  6. alter database open

  7. alter pluggable database all open (if UsePDB of Oracle instance resource is set to yes.)

    In the Oracle Data Guard/Oracle Active Data Guard environment, when the CDB started to the OPEN state, which is able to start the PDBs, this command is executed. For details, see "Starting and Stopping CDB and PDB" in "G.1 Feature Outline".

Oracle instance shutdown

Shutdown procedure of an Oracle instance is as follows:

  1. su - <Oracle user>

  2. sqlplus / nolog

  3. connect / as sysdba

  4. shutdown <immediate / abort / transactional> (Setup with StopModeStop)
    Default : immediate

  5. If the Oracle instance is not stopped at step 4 (except for abort), use shutdown abort.

  6. If the Oracle instance is not stopped at step 4 or step 5, shut it down forcibly by sending SIGKILL to the background process.

  1. su - <Oracle user>

  2. sqlplus / nolog

  3. connect / as sysdba

  4. shutdown <immediate / abort> (Setup with StopModeFail)
    Default : abort

  5. If the Oracle instance is not stopped at step 4 (except for abort), use shutdown abort.

  6. If the Oracle instance is not stopped at step 4, shut it down forcibly by sending SIGKILL to the background process.

Even if UsePDB of Oracle instance resource is set to yes, PDBs is not stopped. PDBs stops by stopping the CDB.

Listener startup

Startup procedure of a Listener is as follows:

  1. su - <Oracle user>

  2. lsnrctl start <ListenerName>

  3. Make sure that a listener process does exist.

Listener shutdown

Shutdown procedure of a Listener is as follows:

  1. su - <Oracle user>

  2. lsnrctl stop <ListenerName>

  3. Make sure that a listener process does not exist.

  4. If Listener is not stopped at step 3, shut it down forcibly by sending SIGKILL to the background process.

Oracle ASM instance startup

Oracle ASM instance startup procedure is as follows:

Oracle ASM instance shutdown

Oracle ASM instance shutdown procedure is as follows:

3.1.1.2 Monitoring Oracle resources

Monitoring Oracle instances

Monitoring procedure of an Oracle instance is as follows:

  1. Check the background processes (PMON, SMON) periodically. If the process status can be confirmed after Oracle instance gets activated, go to step 2.

  2. su - <Oracle user>

  3. Local connection to the Oracle instance as a SYSTEM user

  4. If the state of the database which is OPEN can be confirmed, go to step "5".

  5. Check if the background processes (PMON, SMON, DBWn, LGWR, CKPT) are alive.
    The monitoring interval can be changed at the setting of "Interval" and its default value is 30 seconds.

  6. Check if SQL (INSERT, UPDATE, DELETE and COMMIT) can be properly executed using the monitoring table on the SYSTEM user's default tablespace.
    The monitoring with SQL is executed in accordance with the setting of "Interval". The elapsed time from the last monitoring is checked. Only when 60 seconds or more pass, the monitoring with SQL is executed.

  7. Monitoring PDB
    When UsePDB of Oracle instance resource is set to yes, the monitoring of PDB is executed in accordance with the setting of "Interval".
    OPEN_MODE of each PDBs is checked by the V$PDBS table.

    In the Oracle Data Guard/Oracle Active Data Guard environment, when the CDB started to the OPEN state, which is able to start the PDBs, this step is executed. For details, see "Starting and Stopping CDB and PDB" in "G.1 Feature Outline".

  8. Oracle instance is reconnected once every 24 hours.

In the standby node, step 1 is executed to confirm that the background processes (PMON, SMON) do not exist.

Monitoring Listeners

Monitoring procedure of a Listener is as follows:

  1. Make sure that a listener process does not exist.
    The monitoring interval can be changed at the setting of "Interval" and its default value is 30 seconds.

  2. Make sure that the net service name is valid by using "tnsping" command.
    The monitoring with tnsping is executed in accordance with the setting of "Interval". The elapsed time from the last tnsping is checked. Only when 60 seconds or more pass, the monitoring with tnsping is executed.

    Note

    When TNSName is set, tnsping is executed. For details about TNSName, refer to "2.2.7.2 Oracle Resource Creation".

In the standby node, step 1 is executed to confirm that the Listener processes do not exist.

Monitoring Oracle ASM instance

Oracle ASM is not monitored. NullDetector flag is automatically enabled.