Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note

This feature is not

...

currently available. See the known issue https://infozone.atlassian.net/wiki/spaces/MD91/pages/23278867/Known+Issues#Unable-to-change-platform-database-after-installation

Page Properties
hiddentrue

This section describes how to change the Platform database. The new database can be of the type Oracle, PostgreSQL or SAP HANA.

Note

Note!

Changing the database will cause the stored data to be lost.

This includes:

  • System log messages

  • Duplicate Batch processing data

  • Archiving data

  • Error Correction System data

  • User Access data (deprecated and configurable with Platform property)

  • System Statistics

  • Alarm data

  • Group Server data

  • License data

  • Workflow transactions and workflow states

Migration of the data listed above is possible, however the method for this is outside the scope of this document.

Follow these steps to change the Platform database type to an Oracle, PostgreSQL or SAP HANA database.

  1. Create a properties file for the new database. This file contains the database related properties that are available when you install

...

  1. MediationZone.

    Code Block
    $ mzsh mzadmin/<password> db-scripts create-properties \
    --properties-file <properties file>
  2. Update the properties that are applicable for the new database type. For further information about the properties in this file, see Properties for Oracle, Properties for PostgreSQL (to be removed) or Properties for SAP HANA in the Installa (to be removed) ion Instructions

  3. Extract the database scripts that are required to create the new database.

    Code Block
    $ mzsh mzadmin/<password> db-scripts extract --output-directory <db script directory> \
    --properties-file <properties file>
  4. When the database and

...

  1. MediationZone are not installed on the same machine (the database may be installed on any machine within the network), you need to transfer the  database definition files.

  2. Create the new database.

    For an Oracle database, follow the steps in Oracle Database Creation.

    For a PostgreSQL database , follow the steps in PostgreSQL Database Creation

    For a SAP HANA database, follow the steps in SAP HANA Database Creation.

  3. Disable all workflow groups from the Execution Manager in Desktop, or by entering an mzsh command, for example:

    Code Block
    languagetext
    $ mzsh mzadmin/<password> wfgroupdisable \*
    Note
    titleNote!

    If you use the wfgroupdisable command, make sure that you enable all system tasks again when you are done.

  4. Stop all batch workflows and let them finish execution.

  5. Shut down all connected Desktops.

  6. If you want to see which Desktops that are connected, you can use the following command:

    Code Block
    languagetext
    $ mzsh mzadmin/<password> pico -view
  7. Set up the connection to the new database.

    For Oracle:

    Code Block
    languagetext
    $ cd ./scripts/system-configure
    $ ./oracle.sh

    For PostgreSQL:

    Code Block
    languagetext
    $ cd ./scripts/system-configure
    $ ./postgresql.sh

    For SAP HANA:

    Code Block
    $ cd ./scripts/system-configure
    $ ./saphana.sh

    When the saphana.sh script is launched without any parameters, it will return a list of expected parameters, an example command output is the following: 

    <host> <port> <username> <password> <dbname> <SAP HANA JDBC driver dir>

    The user needs to specify the mandatory parameters such as the SQL port where the tenant database is listening. The <dbname> field indicates the tenant name, while the <SAP HANA JDBC driver dir> is the name of the directory where the ngbc.jar file is stored. 

  8. Restart the platform. 

    Code Block
    languagetext
    $ mzsh restart platform
  9. Start all ECs that were previously shut down.

    Code Block
    languagetext
    $ mzsh startup <ec names> 
  10. Enable the workflow groups.

Scroll pagebreak