Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

- Previous: To upgrade HADB to a newer version
- Next: Unregistering HADB Packages

## Registering HADB Packages

Use the `hadbm registerpackage` command to register the HADB packages that are installed on the hosts in the management domain. HADB packages can also be registered when creating a database with `hadbm create`.

Before using the `hadm registerpackage` command, ensure that all management agents are configured and running on all the hosts in the hostlist, the management agent’s repository is available for updates, and no software package is already registered with the same package name.

The command syntax is:

`hadbm registerpackage `--packagepath=`path [`--hosts`=hostlist] [`--adminpassword`=password | `--adminpasswordfile`=file] [`--agent`=maurl]` [[package-name]]

The package-name operand is the name of the package.

The following table describes the special `hadbm registerpackage` command option. See Security Options and General Options for a description of other command options.

Table 2–1 `hadbm registerpackage` Options

Option | Description
--- | ---
--hosts=hostlist -H | List of hosts, either comma-separated or enclosed in double quotes and space separated.
--packagepath=path -L | Path to the HADB software package.

For example, the following command registers software package v4 on hosts host1, host2, and host3:

    hadbm registerpackage
    --packagepath=hadb_install_dir/SUNWHadb/4.4
    --hosts=host1,host2,host3 v4

The response is:

`Package successfully registered.`

If you omit the `--hosts` option, the command registers the package on all enabled hosts in the domain.

- Previous: To upgrade HADB to a newer version
- Next: Unregistering HADB Packages

- © 2010, Oracle Corporation and/or its affiliates