Correct the origin queue ID

If insert or update operations in the primary database are not being replicated, and if you do not find any errors in the Mirror Replication Agent system logs, the most likely cause of the problem is that the value of the origin queue ID (qid) sent to the Replication Server is lower than previous values of the qid. In that case, the new operations are ignored by Replication Server.

StepsTo correct the problem of incorrect qid values

  1. Turn on tracing for the Mirror Replication Agent LTITRACELTL trace flag.

    You can view Mirror Replication Agent LTL output by examining the contents of the LTITRACELTL.log file.

  2. Log in to the Replication Server and use the admin who, sqm command to determine if any duplicate operations are in the inbound queue of the Replication Server.

    If you find duplicate operations in the inbound queue of the Replication Server, then Mirror Replication Agent is re-sending operations to the Replication Server as part of a recovery process. Finding duplicate operations indicates that the value of the Mirror Replication Agent origin queue ID is not the problem.

    If you find no duplicate operations in the inbound queue of the Replication Server, continue this procedure to reset the qid value.

  3. Log in to the Mirror Replication Agent administration port.

  4. Use the Mirror Replication Agent quiesce command to put the Mirror Replication Agent instance in Admin state.

    quiesce
    
  5. Use the Mirror Replication Agent ra_locator command to set the value of the LTM Locator stored in the RASD to all zeros.

    ra_locator zero
    
  6. Log in to the RSSD and execute the rs_zeroltm stored procedure.

    rs_zeroltm pds, pdb
    

    where:

  7. Restart replication using the Mirror Replication Agent resume command.

    resume
    

When the value of the LTM Locator is set to all zeros in both the RASD and the RSSD, Mirror Replication Agent starts scanning the transaction log at the end of the log.