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

- Previous: Adding Nodes
- Next: Adding Nodes by Recreating the Database

## Refragmenting the Database

Refragment the database to store data in newly-created nodes. Refragmentation distributes data evenly across all active nodes.

To refragment the database, use the `hadbm refragment` command. The command syntax is:

    hadbm refragment  [--dbpassword=password | --dbpasswordfile=file]
    [--adminpassword=password | --adminpasswordfile=file]
    [--agent=maurl]
    [dbname]

The dbname operand specifies the database name. The default is `hadb`. The database must be in `HAFaultTolerant` or `FaultTolerant` state. For more information about database states, see Getting the Status of HADB.

See General Options for a description of command options. For more information, see hadbm-refragment(1).

Online refragmentation requires that the disks for the HADB nodes have enough space to contain the old data and the new data simultaneously until refragmenting is finished, that is, the user data size must not exceed 50% of the space available for user data. For details, see Getting Device Information

Note –

The best time to refragment the database is when the system is lightly loaded.

If this command fails after multiple attempts, see Adding Nodes by Recreating the Database

##### Example 3–14 Example of refragmenting the database

For example:

    hadbm refragment --dbpassword secret123

- Previous: Adding Nodes
- Next: Adding Nodes by Recreating the Database

- © 2010, Oracle Corporation and/or its affiliates