Updating the log device repository

Mirror Replication Agent stores information about primary log devices in its RASD when you initialize the Mirror Replication Agent instance. Log device information in the RASD is referred to as the log device repository.

Unlike other information in the RASD, you can update the log device repository at any time using the ra_updatedevices command.

NoteIf any log device is added, dropped, extended, or moved at the primary database, the Mirror Replication Agent log device repository must be updated. Sybase recommends that you coordinate all log device changes at the primary database with updating the Mirror Replication Agent log device repository.

When you update the log device repository, Mirror Replication Agent does the following:

If the path for a log device at the primary site is different from the path for the corresponding log device at the standby site, you must use ra_devicepath to specify the path to the log device recorded in the RASD.

NoteThe primary database need not be quiesced when you update the Mirror Replication Agent log device repository.

StepsUpdating the log device repository

  1. Log in to the Mirror Replication Agent instance with the administrator login.

  2. Use the following command to determine the state of the Mirror Replication Agent instance:

    ra_status
    
  3. If the Mirror Replication Agent is in Admin state, skip this step and go to step 4.

    If the Mirror Replication Agent is in Replicating state:

    1. Suspend replication by the Mirror Replication Agent instance:

      suspend
      
    2. Verify that the Mirror Replication Agent is in Admin state:

      ra_status
      
  4. If you coordinate log device changes at the primary database with updating the Mirror Replication Agent log device repository, make the log device changes at the primary database after the Mirror Replication Agent is in Admin state.

  5. After you verify that the Mirror Replication Agent is in Admin state, update the log device repository in the RASD:

    ra_updatedevices
    
  6. If you need to specify the path for a log device, use ra_devicepath:

    ra_devicepath device, dev_path
    

    where:

    • device is the device ID (Oracle Group ID).

    • dev_path is the path that the Mirror Replication Agent must use to connect to the primary database log device at the standby site.

    NoteYou must invoke ra_devicepath once for each log device whose path you need to specify.

  7. Start replication in the Mirror Replication Agent instance:

    resume
    

You can update the log device repository as often as necessary to accommodate log device changes at the primary database.