ETERNUS SF Recovery Manager for Oracle EE 13.0.1 User's Guide - Solaris(TM) Operating System -
Contents PreviousNext

Chapter 2 INSTALLATION AND CONFIGURATION

This chapter explains how to install and configure Recovery Manager for Oracle.

2.1 Prerequisites before Installation

2.1.1 Hardware Requirements 

The following hardware is required to use this software.

2.1.1.1 Requirements 

  1. Solaris(TM) 8/9 Operating System (hereafter referred to as "Solaris ") machine

    Solaris machine of Ultra SPARC or higher version

    i.e. PRIMEPOWER/Fujitsu S series/GP-S Family/Star Fire/SUN Enterprise/SUN

  2. Memory

    The memory of 300MB or more is required.

    Because this software runs on an Oracle database, the system must satisfy the operation requirements of Oracle databases. For details of Oracle database operation requirements, refer to the Oracle Database Installation Guide.

  3. Swap

    The swap space of 300MB or more is required.

    Because this software runs on an Oracle database, the system must satisfy the operation requirements for Oracle databases. For details of Oracle database operation requirements, refer to the Oracle Database Installation Guide.

  4. CD-ROM device

    A CD-ROM that reads the RockRidge format is required.

2.1.1.2 Requirements for Advanced Copy 

The following is required to execute high-speed backup and recovery operations using the advanced copy function:

  1. Storage systems

    Either ETERNUS3000/6000 or ETERNUS GR Series (hardware that can execute OPC/ EC) is required.

2.1.2 Software Requirements

The following software is required to use this software:

2.1.2.1 Requirements 

  1. Operating system

    The following Solaris is supported:

    Note: Solaris x86 (Intel platform version) is not supported.

  2. Oracle database products

    The software requires the following versions of Oracle database products:

  3. Java Runtime Environment (hereafter referred to as "JRE")

    JRE 1.4.2 is required.

  4. X Window system

    The X Window system is required.

2.1.2.2 Requirements for Advanced Copy 

The following is required to execute high-speed backup and recovery operation using the advanced copy function:

  1. Advanced copy execution software

    ETERNUS SF AdvancedCopy Manager (hereafter referred to as "ACM") operable on Solaris 8 or Solaris 9 is required.

    ETERNUS SF AdvancedCopy Manager 13.0 or later version

2.1.2.3 Requirements for Cluster Operation 

The following is required for the cluster operation of the database:

  1. Cluster software

    Only PRIMECLUSTER is supported as the cluster software.

    In addition, the following is required for the Oracle Real Application Cluster (hereafter referred to as "RAC") operation of the database:

2.2 Estimating Resources

This section explains how to estimate the disk space required to install Recovery Manager for Oracle.

2.2.1 Required Disk Space 

  1. Installation volume

    To install Recovery Manager for Oracle for the first time, each file system requires the following disk space. If necessary, extend the size of file system concerned.

    File system Mount point Required disk space
    root file system / 0 byte
    opt file system /$DIR1 *1 50M bytes + (1M byte * n) *2

    *1: "$DIR1" refers to the directory name specified at the time of installing Recovery Manager for Oracle (default: /opt/FJSVrmfo).

    *2: "n" refers to the number of database instances that manage the backup and recovery operation.

  2. Space requirements for log files

    The following disk space must be available for the backup execution log and recovery execution log output by Recovery Manager for Oracle. If necessary, extend the size of file system concerned.

    Execution log output destination directory Required disk space
    /$DIR2 *1 10M bytes + (30MB * n) *2

    *1: "$DIR2" refers to the path of the execution log output destination directory specified at the time of installing Recovery Manager for Oracle (Default: /opt/FJSVrmfo/log).

    *2: "n" refers to the number of database instances that manage the backup and recovery operation.

  3. Swap space

    The swap space refers to the swap size is required for the standard operation of Recovery Manager for Oracle. When the swap space exceeds that provided by the system, extend the swap space.

    Swap size Type of operation
    300MB Backup and recovery operation

2.2.2 Configuring Kernel Parameters 

Recovery Manager for Oracle occupies the following semaphore resources:

Note: If already specified, add the following values.

Kernel parameter

Value

SEMMNS

60 * n *1

*1: "n" refers to the number of database instances that manage the backup and recovery operation.

2.3 Installation

2.3.1 Preparation Prior to Installation 

This section explains the preparation required for installing Recovery Manager for Oracle:

  1. Pre-requisites before installation

    Confirm that the hardware and software prerequisites for installing Recovery Manager for Oracle are satisfied.

    For the installation prerequisites, refer to the section "Pre-requisites before Installation".

  2. Confirm installation status

    Confirm that Recovery Manager for Oracle has not been installed.

    pkginfo -l FJSVrmfo <ENTER>

    If a software package name is output as the result of the above operation, it means that Recovery Manager for Oracle has already been installed. In this case, remove the output package from the system. Refer to the section "Uninstall Procedure" on how to remove the package.

  3. Estimate resources

    Confirm that sufficient disk space is available to install Recovery Manager for Oracle.

    Refer to the section "Estimating resources" for disk space used by Recovery Manager for Oracle.

2.3.2 Installation Procedure

The installation procedure of Recovery Manager for Oracle is explained as follows:

  1. Log in as root.

    Log in as root.

  2. Mount CD-ROM

    When the volume management software is in use (default for Solaris), the software automatically mounts the CD-ROM to "/cdrom" upon inserting the CD-ROM to the disk drive. In this case, select [3. Execute "pkgadd (1M)" command]. If the volume management software is not in use, mount the CD-ROM manually. The root privileges are required to mount and unmount the CD-ROM.

  3. Execute the "pkgadd (1M)" command

    Install the software using the pkgadd (1M) command.

    # pkgadd -d /cdrom/cdrom0/pkg FJSVrmfo

    The above procedure may not work in some hardware configurations or settings. In such a case, change "n" in "/cdrom/cdromn" according to the hardware configuration.

  4. Specify the destination directory for installation

    To install in the default directory, enter [y]. To change the directory, enter [n].
    When [n] is entered, the system asks the user to specify the destination directory for installation. Enter the name of the new directory.

    Processing package instance <FJSVrmfo> from </cdrom/fjsvrmfo/pkg>

    ETERNUS SF Recovery Manager for Oracle EE
    (sparc) 13.0

    Copyright (c) FUJITSU Limited 2005 - 2006
    All Rights Reserved.

    THIS PACKAGE CONTAINS UNPUBLISHED PROPRIETARY SOURCE CODE OF FUJITSU.

    The copyright notice above does not evidence any actual or intended
    publication of such source code.
    This package default installation information is following:
    Package install directory: /opt

    Are you sure [y, n, ?, q] y


  5. Specify the output destination of the execution log

    Specify the directory to which Recovery Manager for Oracle outputs the execution log.
    To use the default directory, press <Enter>. To change the directory, enter the name of a new directory and press <Enter>.

    The work area is necessary for this package.
    Logging directory information is following:
    Logging directory: /opt/FJSVrmfo

    Are you sure [y, n, ?, q] y


  6. Execute the installation pre-processing

    When [y] is entered (if either the default value is selected or the directory was changed in step 5, above, a reconfirmation message will be displayed), the following installation pre-processing will be executed:

    Using </opt> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.


  7. A confirmation message is displayed.

    A message is displayed confirming installation with super user (root) privileges.

    To continue installation, enter [y]. To cancel installation, enter [n].

    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.

    Do you want to continue with the installation of <FJSVrmfo> [y, n, ?] y


  8. Execute the installation process

    The installation process will be executed.

    Installing ETERNUS SF Recovery Manager for Oracle EE as <FJSVrmfo>

    ## Installing part 1 of 1.
    /opt/FJSVrmfo/bin/rmfobackup
    :
    ## Executing postinstall script.

    Installation of <FJSVrmfo> was successful.

2.4 Uninstallation

  1. Log in as root.

    Log in as root.

  2. Execute the "pkgrm (1M)" command

    Execute the "pkgrm (1M)" command to uninstall.

    # pkgrm FJSVrmfo <ENTER>


  3. A request to specify the package to uninstall will be displayed.

    To continue uninstallation, enter [y]. To cancel uninstallation, enter [n].

    The following package is currently installed:
       FJSVrmfo        ETERNUS SF Recovery Manager for Oracle EE
                       (sparc) 13.0
    
    Do you want to remove this package? [y, n, ?, q] y


  4. Complete uninstallation

    To continue uninstallation, enter [y]. To cancel uninstallation, enter [n].

    Removal of <FJSVrmfo> was successful.

    Note: After the uninstallation completes, confirm that the "/opt/FJSVrmfo" is removed.

2.5 Configuration 

This section explains how to configure for Recovery Manager for Oracle.

2.5.1 Setting the Environment for Root User

Recovery Manager for Oracle operates with the root privileges.

  1. Configuring for Java

    Recovery Manager for Oracle runs as a Java application.
    A path for Java commands must be set in the root environment variable PATH (for example, set "/etc/.login" and "/etc/profile").

    Example: Confirm Java command version.

    # java -version
    java version "1.4.2_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)


    Confirm that the version displayed after "Java version" is "1.4.2" as shown above.

  2. Configuring for Oracle

    The following environment variables relating to Oracle must be set in the root environment (for example, set "/etc/.login" and "/etc/profile"):

    Environment variable

    Value

    ORACLE_HOME

    $ORACLE_HOME of the database to be backed up (hereafter referred to as "target database")

    LD_LIBRARY_PATH

    $ORACLE_HOME/lib *1

    *1: For a 64-bit version Oracle database, the value should be "$ORACLE_HOME/lib32:$ORACLE_HOME/lib".

  3. Configuring for advanced copy (in cluster operation only)

    When the data file (tablespace) backup operation is executed by the advanced copy function and is in the cluster operation (HA and RAC), the following environment variable must be set in the root environment (for example, set "/etc/.login" and "/etc/profile").

    Environment variable

    Value

    SWSTGNODE *1

    Logical host name

    *1: For details of the environment variable SWSTGNODE, refer to the "ETERNUS SF AdvancedCopy Manager Operator's Guide for cluster environment".

2.5.2 Checking Target Database

Confirm that the database requirements are satisfied for Recovery Manager for Oracle to run the backup and recovery operation.

  1. Is the database operation in ARCHIVELOG mode?

    The backup operation cannot be executed in the NOARCHIVELOG mode. Confirm that the operation is in the ARCHIVELOG mode.

    Example: Confirm ARCHIVELOG mode

    % setenv ORACLE_SID orcl
    % sqlplus /nolog

    SQL*Plus: Release 10.1.0.3.0 - Production on Fri Mar 25 09:12:53 2005

    Copyright (c) 1982, 2004, Oracle. All rights reserved.

    SQL> connect / as sysdba
    Connected.
    SQL> archive log list
    Database log mode
    Archive Mode
    Automatic archival
    Enabled
    Archive destination /orcl/arch
    Oldest online log sequence 34
    Next log sequence to archive 36
    Current log sequence 36
    SQL>

    Confirm that the database log mode is ARCHIVELOG mode and that the auto archive function is enabled.

  2. Is connection using the password file authentication possible?

    Refer to the manual, "Oracle Database Administrator's Guide" on how to set the password file authentication.

  3. Is the Oracle Net configured correctly?

    Follow the procedure below to confirm that the Oracle Net has been configured correctly.

    1. Have the listeners for target database connection been activated?

      Log in to the target database server as the Oracle Install user, and confirm that the listeners are activated using the "lsnrctl status" command.

      Example: Confirm activation of the listeners

      % lsnrctl status LISTENER
      :
      <snip>
      :
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbsvr01)(PORT=1521)))
      Services Summary...
      Service " orcl.world " has 1 instance(s).
      Instance " orcl ", status UNKNOWN, has 1 handler(s) for this service...
      Service " orcl.world" has 1 instance(s).
      The command completed successfully

      Confirm that the target database listener service has been activated as shown above.

    2. Is the connect string defined in the "tnsnames.ora" file?

      Confirm that the file "tnsnames.ora" containing the connect string to the target database, is located under the $ORACLE_HOME/network/admin directory set as directed in the section, "Setting Oracle related environment"
      Confirm also that SYSDBA connection to the target database is possible as root user.
      To connect with the SYSDBA privileges as root user, the setting of password file authentication must have been performed.

      Example: Confirming SYSDBA connection as root user

      # id
      uid=0(root) gid=1(other)
      # $ORACLE_HOME/bin/sqlplus /nolog

      SQL*Plus: Release 10.1.0.3.0 - Production on Fri Mar 25 11:21:40 2005

      Copyright (c) 1982, 2004, Oracle. All rights reserved.

      SQL> connect sys/sys@orcl as sysdba
      Connected.

      Confirm (as above) that the database can be connected normally with SYSDBA privileges with CONNECT string, as root user.

  4. Is environment variable NLS_LANG set?

    Confirm that NLS_LANG is set for an environment variable of the Oracle Install user.

2.5.3 Checking Disk Resources Configuration 

The disk layout of the resources used in the backup and recovery operation by Recovery Manager for Oracle must be confirmed to be correct.

  1. Confirm the database layout

    Confirm that the database disk layout is suitable to the backup and recover operation.

    For details, refer to the section, "Disk Resources Allocation".

  2. Is a volume available for creating the recovery catalog database?

    Confirm that a volume is available for creating the recovery catalog database and that the file systems (ufs) have been created using the "newfs" command.

  3. Is the backup volume available?

    Confirm that the following backup volumes are available:

    1. Backup volume to locate the data files (tablespace)
    2. Backup volume to locate control files
    3. Backup volume to locate archived redo log
    4. Backup volume on which to create the recovery catalog database

    For details of each backup volume, refer to the section, "Disk Resources Allocation".

  4. Confirmation when using OPC/EC

    Confirm that the OPC/EC can be used.

    1. When the data file (tablespace) is created on the file systems

      If the data file (tablespace) has been created on the file system, the ACM backup and restore pre and post-processing script must be customized so that unmounting and mounting of the transaction volume (the mount point of the data file volume) must be skipped when executing the OPC/EC.

      To customize the script for the backup and restore pre and post-processing, refer to the section, "Backup and Restore Pre and Post-Processing" in the "ETERNUS SF AdvancedCopy Manager Operation Guide".

    2. When the data file (tablespace) is created on a raw device

      As with the data file (tablespace), the Oracle Install user must be granted permission to read the physical devices (/devices*@*, raw) corresponding to the raw devices (/dev/rdsk) in the OPC/EC backup destination.

      When permission is not granted properly, the following message is output to the backup execution log file, and the backup operation ends in error.

      ORA-19625: error identifying file /dev/rdsk/********
      ORA-27041: unable to open file
      SVR4 Error: 13: Permission denied
      Additional information: 2

2.5.4 Setup Backup and Recovery Environment

This section explains how to set up the environment for Recovery Manager for Oracle backup and recovery operation.

The flow of environment setup is described as follows:

All of the following procedures must be executed as root.

2.5.4.1 Creating db_name Directory

Log in to the database server *1 and create a directory under the "/opt/FJSVrmfo/conf" directory with the name of the database (db_name) to be backed up and recovered by Recovery Manager for Oracle.

*1: Log in to the primary node in the cluster operation (HA and RAC).

Example: When the database name (db_name) is "orcl"

# id
uid=0(root) gid=1(other)
# cd /opt/FJSVrmfo/conf
# mkdir orcl
# ls
orcl

Specify the directory name with the database name using alphanumeric characters comprising 8 or less bytes (case sensitive).

2.5.4.2 Creating Configuration File

Create the configuration files under the directory created as directed in the section, "1. Creating db_name Directory".

The following configuration files must be created:

  1. Basic information file

    File name: rmfo_system.ini

    Basic information such as database operation is set in the file.

    Parameters to be set are explained as follows:

    Parameter name

    Description

    Value

    Restrictions etc.

    1

    DB_NAME

    Database name

    db_name at the time of "create database"

    Alphanumeric characters of 8 bytes or less.

    The same value as the directory name created in the section, "Creating db_name directory"

    2

    ORA_VL

    Version and level of the Oracle database product

    1 or 2

    • 1: 9.2.0
    • 2: 10.1.0


    3

    ORA_E

    Edition of the Oracle database product

    1 or 2

    • 1: SE *1
    • 2: EE *2


    4

    ORACLE_HOME

    ORACLE_HOME directory path name where the Oracle database product has been installed

    Value of ORACLE_HOME, the Oracle Install user environment variable

    256 bytes or less

    Note: ASCII characters only (no nulls)

    5

    CON_STR

    Connect string

    Connect string used to connect to the database via Oracle Net

    Alphanumeric characters of 64 bytes or less

    6

    DB_TYPE

    Database operation form

    1, 2 or 3

    • 1: Single server operation
    • 2: Cluster operation (HA)
    • 3: Cluster operation (RAC)


    7

    NODE_CNT

    Number of nodes comprising the database

    • Fixed at 1 for single server operation
    • Fixed at 2 for cluster operation (HA)
    • 2 to 4 for cluster operation (RAC)

    1 to 4

    8

    ORA_OWN

    Install user of the Oracle database product

    Oracle install user name

    Alphanumeric characters of 8 bytes or less

    9

    ORA_GRP

    Install user group of the Oracle database product

    Name of the group where Oracle Install users belong

    Alphanumeric characters of 8 bytes or less

    10

    HOST

    Host name

    • "hostname" command value in the single server operation
    • Logical host name in the cluster operation (HA and RAC)

    Alphanumeric characters of 8 bytes or less

    11

    ORACLE_SID

    ORACLE_SID name

    • Set ORACLE_SID name in the single server operation
    • No value in the cluster operation (HA and RAC)

    Alphanumeric characters of 21 bytes or less

    *1 SE : Standard Edition
    *2 EE : Enterprise Edition

    An example of parameter setting is shown as follows:

    Example: Setting for the single server operation

    DB_NAME=orcl
    ORA_VL=1
    ORA_E=1
    ORACLE_HOME=/opt/app/oracle/product/920
    CON_STR=orcl_string
    DB_TYPE=1
    NODE_CNT=1
    ORA_OWN=ora920
    ORA_GRP=dba
    HOST=dbsvr01
    ORACLE_SID=orcl

  2. sys password file

    File name: rmfo_syspw.ini

    The password for the database login user sys (SYSDBA) is set in the file.
    The file is encrypted as directed in the section, "Checking and setting up configuration file".

    An example of parameter setting is shown as follows:

    Example:

    change_on_install


    Note: The maximum number of lines is 1.

  3. Node list file

    File name: rmfo_node.ini
    Information on nodes that comprise the database is set in the file.
    Set the node list file in the cluster operation only (HA and RAC). (Not required in the single server operation)
    Add lines equivalent to the number of nodes in the following format:

    Node|ORACLE_SID|Application|

    Note: The maximum number of lines is two for the cluster operation (HA) and four for the cluster operation (RAC).

    1. Node

      Specify the node name (real host name).
      Specify the value obtained from executing the 'hostname" command.
      Restrictions: Alphanumeric characters of 8 bytes or less

      Note: The real host name displayed by the "hostname" command and the node name displayed by the "cftool -n" command of PRIMECLUSTER must be the same (case sensitive).

    2. ORACLE_SID

      Specify the ORACLE_SID name corresponding to the node name.
      Restrictions: Alphanumeric characters of 8 bytes or less. The value must be the same for both nodes in the cluster operation (HA) and different for each node in the cluster operation (RAC).

    3. Application

      Specify the name of the user application that contains the cluster resources (gResource) of Oracle instances corresponding to the node names.
      Restrictions: Alphanumeric characters of 64 bytes or less. The value must be the same for both nodes in the cluster operation (HA) and different for each node in the cluster operation (RAC).

    An example of parameter setting is shown as follows:

    Example: In the cluster operation (HA)

    hanode1|orcl|app1|
    hanode2|orcl|app2|

    Example: In the cluster operation (RAC) of four-node configuration

    racnode1|rac01|app1|
    racnode2|rac02|app2|
    racnode3|rac03|app3|
    racnode4|rac04|app4|


  4. Backup basic information file

    File name: rmfo_bkcom.ini
    The basic backup information is set in the file.

    Parameters to be set are explained as follows:

    Parameter name

    Description

    Value

    Restrictions

    1

    BK_TYPE

    How to backup data files

    1 to 3

    • 1: Standard (RMAN)
    • 2: OPC
    • 3: EC


    2

    DBF_TYPE

    Data file volume type

    1 or 2

    • 1: File system
    • 2: Raw device


    3

    BK_GEN

    The number of backup management generations

    1 to 3 (generations)

    1 to 3 *1

    4

    LOG_GEN

    Storage period of backup execution log

    1 to 31 (days)

    1 to 31

    5

    ALT_ROWS

    Number of alert log display lines on the recovery screen (from the bottom)

    100 (lines)

    A value other than 100 is not permitted *2

    6

    TRC_LVL

    Trace level (information output to the execution log)

    1 or 2

    • 1: Normal
    • 2: Detailed


    *1: 2 to 3 for EC. Setting '1' is not permitted for EC.
    *2: Set 100

    An example of parameter setting is shown as follows:

    Example: To backup data files using the OPC

    BK_TYPE=2
    DBF_TYPE=1
    BK_GEN=2
    LOG_GEN=14
    ALT_ROWS=100
    TRC_LVL=1


  5. Data file backup definition file

    File name: rmfo_bkdbf.ini

    The data files backup information is set in the file.

    1. When the data file backup method (BK_TYPE) is standard (RMAN)

      Add the number of lines equivalent to the number of backup destination volumes in the following format:

      Mount point|volume|volume type|


      Note: The maximum number of lines is 1024.

      1. Mount point

        Specify the mount point name of the data file backup output destination volume.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

      2. Volume

        Specify the physical disk volume name

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      3. Volume type

        Specify the volume type of the file system.

        The following values can be specified:

        1: ufs
        2: ufs logging
        3: sfxfs *1
        4: sfcfs *2

        *1: GFS local file system
        *2: GFS shared file system
        GFS: Global File Services

      An example of parameter setting is shown as follows:

      Example: When there are two backup output destinations.

      /bkset/orcl/dbf1|/dev/dsk/c3t16d3s0|1|
      /bkset/orcl/dbf2|/dev/dsk/c3t16d4s0|1|

      • Separate parameters (strings) with "|".
      • Three separators "|" are always required on each line.


    2. When the data file backup method (BK_TYPE) is OPC/EC

      # When the data file volume type (DBF_TYPE) is the file systems

      Add the number of lines equivalent to the number of backup destination volumes in the following format:

      Mount point|Target volume|Backup volume (1)|Backup volume (2)|Backup volume (3)|

      Note: The maximum number of lines is 1024.

      1. Mount point

        Specify the name of the mount point where the data file (tablespace) of the target database is located.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

      2. Target volume

        Specify the name of the physical disk volume where the data file (tablespace) of the target database is located.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -t" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      3. Backup volume (1)

        Specify the name of the OPC/EC backup destination volume (first generation) for the target volume.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      4. Backup volume (2)

        Specify the name of the OPC/EC backup destination volume (second generation) for the target volume.

        Specify when the number of backup management generations (BK_GEN) is two or more.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      5. Backup volume (3)

        Specify the name of the OPC/EC backup destination volume (third generation) for the target volume.

        Specify when the number of backup management generations (BK_GEN) is three or more.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      An example of parameter setting is shown as follows:

      Example: When the number of OPC/EC backup generation managements is two

      /orcl/dbf1|/dev/dsk/c3t16d10s0|/dev/dsk/c3t16d20s0|/dev/dsk/c3t16d21s0||
      /orcl/dbf2|/dev/dsk/c3t16d10s1|/dev/dsk/c3t16d20s1|/dev/dsk/c3t16d21s1||

      • Separate parameters (strings) with "|".
      • Five separators "|" are required on each line.

      # When the data file volume type (DBF_TYPE) is a raw device

      Add the number of lines equivalent to the number of backup target volumes in the following format:

      Tablespace|Target volume|Backup volume (1)|Backup volume (2)|Backup volume (3)|

      Note: The maximum number of lines is 1024.

      1. Tablespace

        Specify the name of the target database tablespace.

        Restrictions: Alphanumeric characters of 30 bytes or less

      2. Target volume

        Specify the volume name of the block logical device (/dev/dsk) corresponding to the data files (raw device) allocated to the target database tablespace.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -t" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      3. Backup volume (1)

        Specify the name of the OPC/EC backup destination volume (first generation) for the target volume.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      4. Backup volume (2)

        Specify the name of the OPC/EC backup destination volume (second generation) for the target volume.

        Specify when the number of backup management generations (BK_GEN) is two or more.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      5. Backup volume (3)

        Specify the name of the OPC/EC backup destination volume (third generation) for the target volume.

        Specify when the number of backup management generations (BK_GEN) is three or more.

        Specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

        Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

      An example of parameter setting is shown as follows:

      Example: When the number of the OPC/EC backup generation managements is 1 and multiple data files are allocated to the system table space

      system|/dev/dsk/c3t16d10s0|/dev/dsk/c3t16d20s0|||
      sysaux|/dev/dsk/c3t16d10s1|/dev/dsk/c3t16d20s1|||
      undotbs|/dev/dsk/c3t16d10s3|/dev/dsk/c3t16d20s3|||
      users01|/dev/dsk/c3t16d10s4|/dev/dsk/c3t16d20s4|||
      users02|/dev/dsk/c3t16d10s5|/dev/dsk/c3t16d20s5|||
      users03|/dev/dsk/c3t16d10s6|/dev/dsk/c3t16d20s6|||

      • Separate parameters (strings) with "|".
      • Five separators "|" are required on each line.
      • Do not enter the temporary tablespace (TEMPFILE)


  6. Control file backup definition file

    File name: rmfo_bkctl.ini

    The control files backup information is set in the file.

    Specify in the following format:

    Mount point|volume|volume type|


    Note: The maximum number of lines is 1.

    1. Mount point

      Specify the mount point name of the backup output destination volume of the control files.

      Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

    2. Volume

      Specify the physical disk volume name.

      Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

    3. Volume type

      Specify the volume type of the file system.

      The following values can be specified:

      1: ufs
      2: ufs logging
      3: sfxfs
      4: sfcfs

    An example of parameter setting is shown as follows:

    Example:

    /bkset/orcl/ctl|/dev/dsk/c3t16d4s6|1|


  7. Archived redo log information file

    File name: rmfo_arch.ini

    Information on the output destination of the archived redo log files is set in the file.

    Set the file in the cluster operation (RAC). (Not required in the single server operation or cluster operation (HA)

    Specify in the following format:

    Node|Mount point|volume|volume type|

    Note: The maximum number of lines is four.

    1. Node

      Specify the same name as the node in the node list file.

    2. Mount point

      Specify the mount point name of the directory specified in the initial parameter, "log_archive_dest" or "log_archive_dest_1".

    3. Volume

      Specify the physical disk volume name.

      Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

    4. Volume type

      Specify the volume type of the file system.

      Restrictions: Always set "4" (sfcfs:GFS shared file system).

    Example: For the cluster operation (RAC) of four-node configuration

    racnode1|/racdb/arch01|/dev/sfdsk/racdb/dsk/arch01|4|
    racnode2|/racdb/arch02|/dev/sfdsk/racdb/dsk/arch02|4|
    racnode3|/racdb/arch03|/dev/sfdsk/racdb/dsk/arch03|4|
    racnode4|/racdb/arch04|/dev/sfdsk/racdb/dsk/arch04|4|


  8. Archived redo log backup definition file

    File name: rmfo_bkarch.ini

    The backup information on the archived redo log file is set in the file.

    Specify in the following format:

    Node|Mount point|volume|volume type|


    Note: The maximum number of lines is one for the single server operation and cluster operation (HA), and four for the cluster operation (RAC).

    1. Node

      Specify the same name as the node in the node list file.

      Set the node in the cluster operation (RAC). (No value is available in the single server operation or cluster operation (HA))

    2. Mount point

      Specify the mount point name of the backup output destination volume of the archived redo log file.

      Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/".

    3. Volume

      Specify the physical disk volume name.

      Restrictions: Alphanumeric characters of 256 bytes or less always starting with "/dev".

    4. Volume type

      Specify the volume type of the file system.

      The following values can be specified:

      1: ufs
      2: ufs logging
      3: sfxfs
      4: sfcfs

    An example of parameter setting is shown as follows:

    Example: For the single operation and cluster operation (HA)

    |/orcl/arch|/dev/dsk/c3t16d5s0|1|

    Example: For the cluster operation (RAC) in the four-node configuration

    racnode1|/racdb/bk_arch01|/dev/dsk/c3t16d5s0|1|
    racnode2|/racdb/bk_arch02|/dev/dsk/c3t16d6s0|1|
    racnode3|/racdb/bk_arch03|/dev/dsk/c3t16d7s0|1|
    racnode4|/racdb/bk_arch04|/dev/dsk/c3t16d8s0|1|


  9. Recovery catalog database definition file

    File name: rmfo_catalog.ini

    Information on the recovery catalog database is set in the file.

    Parameters to be set are explained as follows:

    Parameter name

    Description

    Value

    Restrictions

    1

    R_DB_NAME

    Recovery catalog database name

    Name of any unused database*1

    Alphanumeric characters of 8 bytes or less

    2

    LSNR_NAME

    Name of a listener for recovery catalog database connection

    Name of any unused listener*2

    Alphanumeric characters of 64 bytes or less

    3

    PORT

    Port number used by the listener for recovery catalog database connection

    Any unused port number *3

    1024 to 65535

    4

    R_TAR_MP

    Name of the mount point of the volume where the recovery catalog database is created

    Name of any unused mount point *4

    Alphanumeric characters of 256 bytes or less starting with "/"

    5

    R_TAR_DEV

    Name of the physical disk volume where the recovery catalog database is created

    Name of a unused physical disk volume

    Alphanumeric characters of 256 bytes or less starting with "/dev"

    6

    R_BK_TYPE

    How to back up the recovery catalog database

    1 or 2

    • 1: DD
    • 2: OPC


    7

    R_BK_MP

    Mount point of the backup destination volume

    Fixed at "NONE"

    Always specify "NONE"

    8

    R_BK_DEV

    Name of the physical disk volume of the backup destination volume

    Name of a unused physical disk volume *5

    Alphanumeric characters of 256 bytes or less starting with "/dev"

    *1: Recovery Manager for Oracle creates the recovery catalog database during environment setup.

    *2: Recovery Manager for Oracle creates the listeners for recovery catalog database connection during environment setup.

    *3: The port number specified for the listener for recovery catalog database connection is allocated.

    *4: When the method of recovery catalog database backup is OPC (R_BK_TYPE=2), specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -t" command.

    *5: When the method of recovery catalog database backup is OPC (R_BK_TYPE=2), specify the volume name displayed in the "Device" row of the "/opt/FJSVswsts/bin/swstdevdisp -b" command.

    Example:

    R_DB_NAME=r_orcl
    LSNR_NAME=LISTENER_R_ORCL
    PORT=1525
    R_TAR_MP=/orcl/r_orcl
    R_TAR_DEV=/dev/dsk/c5t16d9s0
    R_BK_TYPE=1
    R_BK_MP=NONE
    R_BK_DEV=/dev/dsk/c5t16d10s0

2.5.4.3 Checking and Setting Up the Configuration File

Perform simplified checking of the configuration files set up as directed in the section, "Creating the configuration files", encrypt the sys password file, and create the RMAN recovery catalog database to build the backup and recovery environment.

Log in to the database server*1 and execute the configuration command. "/opt/FJSVrmfo/bin/rmfoconfig".

*1: Log in to the primary node (node for which the configuration file has been created) in the cluster operation (HA and RAC)

  1. Specification

    # /opt/FJSVrmfo/bin/rmfoconfig DB_NAME all


  2. Parameters

    Parameter

    Explanation

    DB_NAME

    Specify the name of the database subject to the backup operation

    all

    required


  3. Example of execution: (DB_NAME=orcl)

    # id
    uid=0(root) gid=1(other)
    # /opt/FJSVrmfo/bin/rmfoconfig orcl all

2.5.5 Changing the Backup and Recovery Environment

This section explains the procedure for changing the backup and recovery environment.

To change the database configuration, edit the files setup as directed in the section, "Setup Backup and Recovery Environment", and execute the configuration command "/opt/FJSVrmfo/bin/rmfoconfig".

The flow of changing the backup and recovery environment is explained as follows:

The following processing must be executed as root.

  1. Editing the configuration file

    Edit the files set up as directed in the section "Creating Configuraiotn File" according to the changes in the database configuration.

    Do not edit the Recovery catalog database definition file (rmfo_catalog.ini).

  2. Checking the configuration file

    Check the configuration file after it is edited.

    Log in to the database server*1 and execute the configuration command "/opt/FJSVrmfo/bin/rmfoconfig".

    *1: Log in to the primary node (node for which the configuration file has been created) in the cluster operation (HA and RAC)

    Example of execution: When the database name is "orcl"

    # id
    uid=0(root) gid=1(other)
    # /opt/FJSVrmfo/bin/rmfoconfig orcl check



  3. Encrypting the sys password file (rmfo_syspw.ini)

    When the password of the login user of the database, sys(SYSDBA), has been changed, specify the new password in the " rmfo_syspw.ini" file, and encrypt it.

    Log in to the database server*1 and execute the configuration command (/opt/FJSVrmfo/bin/rmfoconfig).

    *1: Log in to the primary node (node for which the configuration file has been created) in the cluster operation (HA and RAC).

    Example of execution: When the database name is "orcl"

    # id
    uid=0(root) gid=1(other)
    # /opt/FJSVrmfo/bin/rmfoconfig orcl enc


  4. Setting the cluster node

    The cluster node must be set in the cluster operation (HA and RAC).

    Log in to the database server*1 and execute the configuration command (/opt/FJSVrmfo/bin/rmfoconfig).

    *1: Log in to the primary node (node for which the configuration file has been created) in the cluster operation (HA and RAC)

    Example of execution: When the database name is "orcl"

    # id
    uid=0(root) gid=1(other)
    # /opt/FJSVrmfo/bin/rmfoconfig orcl cls


Explanation of the configuration command

  1. How to specify

    # /opt/FJSVrmfo/bin/rmfoconfig DB_NAME option


  2. Operands

    Operand

    Explanation

    DB_NAME

    Specify the name of the database for which the environment is to be set up.


  3. Options

    Option

    Explanation

    check

    Checks the configuration file

    enc

    Encrypts the "rmfo_syspw.ini" file

    dec

    Decrypts the "rmfo_syspw.ini" file

    cls

    Sets the cluster node

    crdb

    Creates the RMAN recovery catalog database

    rmdb

    Deletes the RMAN recovery catalog database

2.5.6 Removing the Backup and Recovery Environment

This section explains the procedure for removing the backup and recovery environment.
The flow of removing the backup and recovery environment is explained as follows:

The following processing must be executed as root.

  1. Removing the recovery catalog database

    Remove the recovery catalog database that manages backup operations of the target database.
    Log in to the database server*1 and execute the configuration command, "/opt/FJSVrmfo/bin/rmfoconfig".

    *1: Log in to the primary node (node for which the configuration file has been created) in the cluster operation (HA and RAC)

    Example of execution: When the database name is "orcl"

    # id
    uid=0(root) gid=1(other)
    # /opt/FJSVrmfo/bin/rmfoconfig orcl rmdb


  2. Editing the "listener.ora" file

    Edit the "$ORACLE_HOME/network/admin/listener.ora" file using vi etc.

    Delete the part defining the listener for recovery catalog database connection.

    Delete the following:

    LSNR_NAME =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = PORT))
    )

    SID_LIST_LSNR_NAME =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = R_DB_NAME.world)
    (ORACLE_HOME = $ORACLE_HOME)
    (SID_NAME = R_DB_NAME)
    )
    )

    *1: In the cluster operation (HA and RAC), the "$ORACLE_HOME/network/admin/listener.ora" file on every cluster node must be edited.

  3. Editing the "tnsnames.ora" file

    Edit the "$ORACLE_HOME/network/admin/tnsnames.ora" file using a text editor (for example vi).

    Delete the part defining the recovery catalog database connection.

    Delete the following:

    R_DB_NAME =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = PORT))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = R_DB_NAME.world)
    )
    )

    *1: In the cluster operation (HA and RAC), the "$ORACLE_HOME/network/admin/tnsnames.ora" file on every cluster node must be edited.

  4. Deleting the configuration file

    Delete the "db_name directory" created as directed in the section, "Setup Backup and Recovery Environment".

    Example: When the database name (db_name) is "orcl"

    # id
    uid=0(root) gid=1(other)
    # cd /opt/FJSVrmfo/conf
    # pwd
    /opt/FJSVrmfo/conf
    # rm -r orcl

    In the cluster operation (HA and RAC), the "db_name directory" of all nodes comprising the cluster must be deleted.

Explanation of the configuration command "/opt/FJSVrmfo/bin/rmfoconfig"

  1. How to specify

    # /opt/FJSVrmfo/bin/rmfoconfig DB_NAME option


  2. Operands

    Operand

    Explanation

    DB_NAME

    Specify the name of the database for which the environment is set up


  3. Options

    Option

    Explanation

    rmdb

    Deletes the RMAN recovery catalog database


Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006