Symantec logo

Backing up files if upgrading

If you are upgrading from Oracle 10g R1 to Oracle 10g R2, you must make a backup of your files. For more on upgrading:

 To back up Oracle 10g R1 files

  1. As oracle, create a dump file for the OCR registry file. This dump is used after the upgrade is completed to use the same service and resource names in Oracle 10.2.0.1 and populate the Oracle 10.2.0.1 OCR registry file.

    # su - oracle

    $ cd $CRS_HOME/bin

    $ ./ocrdump

  2. As root, CRS should be stopped on all nodes as follows.

    # su - root

    # /etc/init.d/init.crs stop

  3. Make a backup of Oracle 10.1.0.4 files/folders on all cluster nodes. During Oracle 10.2.0.1 installation, these files will be replaced.

    # /etc/init.d/init.crs stop

    # mv /etc/oracle /etc/oracle-10gR1

    # mv /etc/oraInst.loc /etc/oraInst.loc-10gR1

    # mv /etc/oratab /etc/oratab-10gR1

    # mv /etc -name "[SK]*init.c?s*" | xargs rm -f

    # mv /etc -name "[SK]*init.evm*" | xargs rm -f

    # mv /etc/init.d/init.crs etc/init.d/init.crs-10gR1

    # mv /etc/init.d/init.crsd etc/init.d/init.crsd-10gR1

    # mv /etc/init.d/init.cssd etc/init.d/init.cssd-10gR1

    # mv /etc/init.d/init.evmd /etc/init.d/init.evmd-10gR1

    # mv /etc/inittab.crs etc/inittab.crs-10gR1

    Edit /etc/inittab and remove the following lines:

    # h1:35:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1 </dev/null

    # h2:35:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1 </dev/null

    # h3:35:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1 </dev/null

    # init q

  4. You must use new Oracle 10.2.0.1 CRS_HOME and ORACLE_HOME for 10.2.0.1 during the installation. You must use existing volumes for shared OCR and Vote disks to carry over the existing oracle crs configuration. In case you have OCR on CFS, you need to move it to raw. Refer to
  5. "To apply Oracle 10.1.0.5 patch set" [Point No. 1 only on Page 223] to achieve the same.