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

G.3.1 Oracle database Control (Standby Operation)

This section describes startup, shutdown and monitoring of Oracle resources in standby operation using Oracle Data Guard/Oracle Active Data Guard.

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. The procedure according to the database role is executed.
    If UsePDB of Oracle instance resource is set to yes, start the PDBs.

    • Primary Database

      ALTER DATABASE OPEN;

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

    • Physical Standby Database

      The procedure according to the REDOApply of the Oracle instance resource is executed.

      • ReceiveOnly

        No procedure.

      • NormalApply

        ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING ARCHIVED LOGFILE DISCONNECT;

      • RealTimeApply

        ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;

      • ReadOnlyOPEN

        ALTER DATABASE OPEN;

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

      • RealTimeQueryN

        ALTER DATABASE OPEN;

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

        ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING ARCHIVED LOGFILE DISCONNECT;

      • RealTimeQueryR

        ALTER DATABASE OPEN;

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

        ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;

    • Logical Standby Database

      The procedure according to the REDOApply of the Oracle instance resource is executed.

      • ReceiveOnly, ReadOnlyOPEN, RealTimeQueryN, RealTimeQueryR

        ALTER DATABASE OPEN;

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

      • NormalApply

        ALTER DATABASE OPEN;

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

        ALTER DATABASE START LOGICAL STANDBY APPLY;

      • RealTimeApply

        ALTER DATABASE OPEN;

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

        ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;

    • Snapshot Standby Database

      ALTER DATABASE OPEN;

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

Oracle instance shutdown

Shutdown procedure of an Oracle instance is as follows:

Monitoring Oracle instances

Monitoring procedure of an Oracle instance is as follows:

  1. Check the Oracle background processes (PMON, SMON) every 30 seconds (static).
    If the processes status can be confirmed after Oracle instance gets activated, go to the step "2".

  2. su - <Oracle user>

  3. Local connection to the Oracle instance as the SYSTEM user or SYSDBA privilege.

  4. When the roll is PRIMARY, LOGICAL STANDBY or SNAPSHOT STANDBY, check the status of the Oracle instance is “OPEN".
    When the roll is PHYSICAL STANDBY, check the status of the Oracle instance is "MOUNTED" or “OPEN".

  5. Check if the Oracle 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. When the roll is PRIMARY, check if SQL (INSERT, UPDATE, DELETE and COMMIT) can be properly executed using the monitoring table on the SYSTEM user's default table space.
    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 and the CDB is started to the OPEN state, 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.

  8. Oracle instance is reconnected once every 24 hours.

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

Monitoring PDB

OPEN_MODE of each PDBs is checked by the V$PDBS table.

The monitoring of the PDB is executed in accordance with the setting of "Interval". When the state changes when monitoring it last time, the message is output to syslog. The restart and the failover due to fault of PDBs is not executed.

When the state of PDB becomes normal, the following messages are output.

FSP_PCLW-ORACLE_FJSVclora: INFO: 9142: OPEN_MODE of PDB <PDB name> was OPEN. (CDB=<ORACLE_SID of CDB> PDB=<PDB name> OPEN_MODE=<state of PDB>)

When the state of PDB becomes abnormal, the following messages are output.

FSP_PCLW-ORACLE_FJSVclora: ERROR: 9242: clorapdbmon detected OPEN_MODE of PDB <PDB name> is invalid. (CDB=<ORACLE_SID of CDB> PDB=<PDB name> OPEN_MODE=<state of PDB>)

Listener startup, shutdown and monitoring

Startup, shutdown and monitoring of listeners are same as does not use Oracle Data Guard. For details, see "3.1.1 Standby Operation".

Oracle ASM instance startup, shutdown and monitoring

Startup, shutdown and monitoring of Oracle ASM instance are same as does not use Oracle Data Guard. For details, see "3.1.1 Standby Operation".