...
Create a properties file for the new database. This file contains the database related properties that are available when you install.
Code Block $ mzsh mzadmin/<password> db-scripts create-properties \ --properties-file <properties file>
- 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 or Properties for SAP HANA in the Installation Instructions.
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>
When the database and 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.
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.
Disable all workflow groups from the Execution Manager in Desktop, or by entering an mzsh command, for example:
Code Block language text theme Eclipse $ mzsh mzadmin/<password> wfgroupdisable \*
Note title Note! If you use the
wfgroupdisable
command, make sure that you enable all system tasks again when you are done.- Stop all batch workflows and let them finish execution.
- Shut down all connected Desktops.
If you want to see which Desktops that are connected, you can use the following command:
Code Block language text theme Eclipse $ mzsh mzadmin/<password> pico -view
Set up the connection to the new database.
For Oracle:
Code Block language text theme Eclipse $ cd ./scripts/system-configure $ ./oracle.sh
For PostgreSQL:
Code Block language text theme Eclipse $ 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.
Restart the platform.
Code Block language text theme Eclipse $ mzsh restart platform
Start all ECs that were previously shut down.
Code Block language text theme Eclipse $ mzsh startup <ec names>
Enable the workflow groups.
Scroll pagebreak |
---|