Versions Compared

Key

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

This section describes different ways of managing Image Removed MediationZone related packages by using the Command Line tool and by using the Java Command Line tool.

Removing Packages

The following mzsh command can be used for deleting a specific package. The command assumes that you have started mzsh interactively.

Code Block
MZ>> premove <package name>

The command should only be used by system administrators with authority to maintain the Image Modified software.

title
Info

Example - Removing a package

If you want to remove the XFER_X25 package, enter:

Code Block
MZ>> premove XFER_X25

The following line will be displayed while the package is being removed:

Code Block
Removing XFER_X25, 8.0.0.0...done.

After a package has been removed, the Platform and Execution Contexts may have to be stopped and restarted. If a removed package contained a bootstrap class, a cache error message will be displayed. The corresponding bootstrap class must be removed from the STR before STR before the pico instance can be restarted.

Package Management Tool

All .mzp files provide a built in management tool. It is executed in a Unix shell by running the following command:

...

The following is an example of a create command syntax.

Code Block
$ java -Dmz.home=$MZ_HOME -jar archiving_8.0.0.0.mzp create

Unpacking database/oracle/packages/archiving/oracle_tables.sql...done
Unpacking database/oracle/packages/archiving/oracle_grants.sql...done
Unpacking database/oracle/packages/archiving/oracle_synonyms.sql...done

title
Note

Note!

If the file install.xml file is not available in the current directory, the environment variable MZ_HOME must be set.

...

Performs an installation of the selected package. This command is only used when making a new installation.

title
Note

Note!

Some packages, e g core, require that install.xml file is available in the current directory when you use the install command.

The following is an example of an install command syntax.

title
Info

Example - Installing a package

Code Block
$ java -Dinstall.types=platform -Dmz.home=$MZ_HOME -jar \ 
archiving_8.0.0.0.mzp install 
... 
Inserting Archiving, 8.0.0.0...done.

...

The patch argument is used to perform a patch installation of packages, generally used for upgrading the system, and if necessary, perform patch only specific operations on the system.

...

Note!

The command should be executed in the directory where the new package is present. The following is an example of a command using the patch argument.

Code Block
$ java -jar <package name>.mzp patch \ mzadmin/<password>

...

If the queried package is already installed or if the last version is not present, a message stating this will be displayed. 

titletitle
Info

Example - Querying a package

Code Block
$ java -jar java -jar ftp_forwarding_8.0.0.0-SNAPSHOT.mzp query
FTP Forwarding, 8.0.0.0 (8.0.0.0)
The package ftp_forwarding_8.0.0.0-SNAPSHOT.mzp is identical to the committed one.
Note

Note!

If the install.xml file is not available in the current directory, the environment variable MZ_HOME must be set.

Adding or Updating Packages

...

The addition/upgrade process consists of three steps:

  1. Create all database definitions needed for a package using the create argument.

  2. Log in as database administrator and execute the corresponding sql files.

  3. Install the package using the install argument.