Rolling back a failed patch

If the patch fails, you should run the rollback script to remove the patch and restore your old instance. You can then fix the errors that caused the failure and reapply the patch.

The rollback script restores your old instance from the backup file created by the patch script. Before running the script, you should know the absolute path to this file, which is defined by the BDD_BACKUP_FILE property in the bdd-cloud-cron-env.properties file.

To roll back a failed patch:

  1. If you haven't already, log into the BDDCS node as the opc user and switch to the bdd user.
    Instructions for doing this can be found in Patching the service.
  2. Go to the location of the rollback script:
    cd /opt/oracle/bdd/<patch_number>/installer
    
  3. Run the rollback script:
    ./rollback.sh bdd.conf
    
  4. Enter the absolute path to the backup file you want to restore from (including the filename and extension) when prompted.
    This is defined by the BDD_BACKUP_FILE property in the bdd-cloud-cron-env.properties file.
When the script completes, your old instance will be up and running. You can then fix the errors that caused the patch script to fail and rerun it.