Returns the current value of the LTM Locator maintained by Replication Agent, requests an LTM Locator value from the primary Replication Server, or sets the value of the LTM Locator maintained by Replication Agent to zero.
ra_locator [ { update | zero | move_truncpt } ]
ra_locator
Locator --------------------------------------------------- 000000005200000000000000527FFFFFFFFFFFFFFF0022FB3B (1 row affected)
ra_locator update
This command requests a new LTM Locator value from the primary Replication Server.
ra_locator zero
This command sets the value of the LTM Locator maintained by Replication Agent to all zeros.
ra_locator move_truncpt
This command moves the transaction log truncation point to the end of the current transaction log.
When you invoke ra_locator with no option, it returns the current value of the LTM Locator maintained by the Replication Agent instance. For UDB, Replication Agent stores the value of the LTM Locator in a table in the primary database; for Oracle and Microsoft SQL Server this value is stored in the RASD.
When you invoke ra_locator with the update keyword, it requests a new LTM Locator value from the primary Replication Server, and Replication Agent saves the value.
When you invoke ra_locator with the zero keyword, it sets the value of the LTM Locator maintained by Replication Agent to zero.
The LTM Locator contains information that Replication Agent uses to determine where to start reading the transaction log.
If the value of the LTM Locator returned from the primary Replication Server is zero, Replication Agent uses the LTM Locator value stored in the transaction log system table.
If the value of the LTM Locator in the transaction log system table is zero, Replication Agent starts reading the transaction log from either the current beginning of the log, or from the end of the log for UDB.
For more information about the format of the origin queue ID, see the section for your specific primary data server in the Replication Agent Primary Database Guide.
If the Replication Agent transaction log does not exist, the ra_locator command returns an error message.
The ra_locator command with the zero keyword is valid only when the Replication Agent instance is in the Admin or Replication Down state.
Without the zero keyword, the ra_locator command is valid when the Replication Agent instance is in the Admin, Replicating, or Replication Down state.
If you invoke ra_locator with the move_truncpt keyword, the truncation point is moved to the end of the log without change or modification to any Replication Agent components. (for Oracle, this is the end of the current online redo log.) The move_truncpt option has no effect if Replication Agent has not been initialized.
If you move the secondary truncation point to the end of the primary database transaction log using ra_locator move_truncpt, you risk skipping over any DDL commands record in the log. The DDL commands might have been used by Replication Agent to update information stored within the Replication Agent System Database (RASD). If the RASD contents are incorrect due to skipping processing of some log records, you may force all of the schema information in the RASD to be refreshed using ra_admin refresh. If only the schema for a single object stored in the RASD is of concern, you can unmark and remark just that single object, which forces the schema of the object to be reread into the RASD.