4.0 Migrating the OEM PostgreSQL Database to an External PostgreSQL Database

If you are using the OEM PostgreSQL database in ZENworks 2017 Update x, then ensure that you migrate to an external PostgreSQL database before upgrading your zone to ZENworks 2020.

Using the database migration script, you can migrate the database. The script file can be downloaded from the following locations:

Download the OEM PostgreSQL to External PostgreSQL Migration script

You can download the script file, and then perform the following steps to migrate to an external PostgreSQL database:

  1. Take a backup of the database.

  2. Stop all services in ZENworks Primary Server.

  3. On the database server, download and extract the migrate_postgres.sh.zip file.

  4. Download and install the PostgreSQL version supported by ZENworks.

    If you are planning to upgrade to ZENworks 24.2, ensure that you install PostgreSQL 12.14.

  5. Change the permission for the script by running the chmod 755 migrate_script.sh command.

  6. The script log will be saved in the /tmp/migrate_postgres.log location.

  7. Run the following script:

    ./migrate_postgres.sh -p <PostgreSQL_Installed_Directory> --database <zenworks_db_name> --password <superuser password>

    Example: ./migrate_postgres.sh -p /usr/pgsql-11/ --database zenworks_database --password novell

NOTE:

  • To see all the available options, run the script without any argument. (Example: ./migrate_postgres.sh)

  • After migrating to the external PostgreSQL, ensure that you manually clean the OEM PostgreSQL installation.