Home | Previous Page | Next Page   Fault Tolerance > Using High-Availability Data Replication (Enterprise/Workgroup Editions) > Performing Basic Administration Tasks >

Replicating an Index to the Secondary Database Server

If an index on an HDR secondary database server becomes corrupt and needs to be rebuilt, you can either:

To enable the secondary database server to automatically replicate the index, either:

After you set either of these values, when one of the threads on the secondary database server detects a corrupt index, the index is automatically replicated to the secondary database server. Restarting index replication can take up to the amount of time specified in seconds in the DRTIMEOUT configuration parameter.

Sometimes, you might want to replicate an index manually, for example, when you want to postpone index repair because the table is locked. If you want to be able to manually replicate an index on the HDR secondary server, turn off the automatic replication feature.

To turn off the automatic index replication feature, either:

If onmode -d idxauto is set to off or DRIDXAUTO is set to 0 and the secondary server detects a corrupt index, you can manually replicate an index on the HDR secondary server by issuing an onmode -d index command in the following format.

onmode -d index database:[ownername].table#index

For example:

onmode -d index cash_db:user_dx.table_12#index_z

In the case of a fragmented index with one corrupt fragment, the onmode -d idxauto option only transfers the single affected fragment, whereas the onmode -d index option transfers the whole index.

Note:
When turning the automatic index replication feature on or off, you can use either the onmode command or the DRIDXAUTO configuration parameter. If you use the onmode command, you do not need to stop and restart the database server. When you use the DRIDXAUTO parameter, the database server is restarted with the setting you specify. The onmode command does not change the DRIDXAUTO value. If you use the onmode command, you must manually change the value of DRIDXAUTO.

The online.log file produced by the secondary server contains information about any replicated index.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]