Upgrading a database using a custom image

You can upgrade an existing database using a custom image. The database inherits the packages and software libraries of the custom image, and is upgraded to the provided database image.

  • You must download and install the latest CDP CLI beta version.
  • You must have a working CDP environment.
  • You must ensure that the custom image resides in your CDP environment.
  1. Run the following commands sequentially to upgrade a database using a custom image.
    1. cdp opdb upgrade-database --environment <env_name> --database <database_name> --image-id=string
    2. cdp opdb upgrade-database --environment <env_name> --database <database_name> --image-id=string --os-upgrade-only
    Parameter value Description
    <env_name> Name of the environment that holds the existing database.
    <database_name> Name of the existing database for which you want to use the custom image.
    --image-id Image ID of the database image to which the existing database is upgraded.
    --os-upgrade-only Only perform an Operating System upgrade.
    For example,
    cdp opdb upgrade-database --environment cod-7216-micro3 --database tempdb12 --image-id a188a3d7-067f-42f1-9b89-16d40faab24c
    cdp opdb upgrade-database --environment cod-7216-micro3 --database tempdb12 --image-id a188a3d7-067f-42f1-9b89-16d40faab24c --os-upgrade-only
  2. Verify that the database upgrade is successful for the same image.
    Navigate to the Data Hub Clusters service or to the Management Console > Data Hub Clusters, and click the Image Details tab of the upgraded Data Hub cluster.