Customizing Zero-Downtime Upgrades

You can customize zero-downtime upgrades using the user-action framework of Fleet Patching and Provisioning.

Note:

The Zero Downtime Upgrade (ZDU) feature of Oracle Fleet Patching and Provisioning (FPP) is deprecated in Oracle AI Database 19c.

To use the user-action framework, you can provide a separate script for any or all of the points listed in the overall process.

Table 6-1 Zero-Downtime Upgrade Plugins

Plugin TypePre or PostPlugin runs...
ZDTUPGRADE_DATABASEPreBefore Fleet Patching and Provisioning starts zero-downtime upgrade.
PostAfter Fleet Patching and Provisioning completes zero-downtime upgrade.
ZDTUPGRADE_DATABASE_SNAPDBPreBefore creating the snapshot or full-clone database.
PostAfter starting the snapshot or full-clone database (but before switching over).
ZDTUPGRADE_DATABASE_DBUAPreBefore running DBUA (after switching over).
PostAfter DBUA completes.
ZDTUPGRADE_DATABASE_SWITCHBACKPreBefore switching back users to the upgraded source database.
PostAfter switching back users to the upgraded source database (before deleting snapshot or full-clone database).
  • To register a plugin to be run during a zero-downtime upgrade, run the following command:
    $ rhpctl add useraction -useraction user_action_name -actionscript script_name
      {-pre | -post} -optype {ZDTUPGRADE_DATABASE | ZDTUPGRADE_DATABASE_SNAPDB |
       ZDTUPGRADE_DATABASE_DBUA | ZDTUPGRADE_DATABASE_SWITCHBACK}

    You can specify run-time input to the plugins using the -useractiondata option of the rhpctl zdtupgrade database command.