dmshowbookmark - Display bookmark information
Use this command on your CDC Replication target system to obtain the replication position (bookmark) in the stream of change data for a subscription.
After generating the replication position information with this command, you can use the dmsetbookmark command on the source system to set the replication position for a subscription.
Applies To—Target
Syntax
dmshowbookmark [-I <name>] -s <source ID>
[-f <binary>] [-x <file>] [-v] [-L <locale>]Parameters
- [-I <name>]
- The name of the CDC Replication instance. You can set the TSINSTANCE environment variable to the name of your CDC Replication instance. After this is complete, you no longer have to specify the instance when issuing commands.
- -s <source ID>
- Specifies the source ID of the subscription for which you want to obtain the replication position (bookmark).
- [-f <binary>]
- Specifies the name of the binary file that will be generated by this command. The generated file contains information about the replication position (bookmark) for the specified subscription.
- [-x <file>]
- Specifies the name of the XML file that will be generated by this command. The generated file contains information about the replication position (bookmark) for the specified subscription. Use this parameter if you are replicating from a DB2 for LUW DPF source environment. The XML file contains replication positions (bookmarks) for all partitions.
- [-v]
- Displays verbose information about the replication position (bookmark), including a hexadecimal-encoded string. The amount of information displayed depends on the type and version of the source engine. The hexadecimal-encoded string is always displayed. This parameter displays a subset of what the dmdecodebookmark command displays. If not specified, only a hexadecimal-encoded string is displayed.
- [-L <locale>]
- The name of the locale used for the CDC Replication instance. The default is your machine's locale.
Result
This command returns a value of 0 if the command was successful and a non-zero value if the command fails.
Examples
dmshowbookmark
-I MYINSTANCE -s MASTER -f bookmarkCDC Replication obtains the replication position (bookmark) information for the specified instance and the MASTER source ID. Replication position (bookmark) information is contained in the bookmark binary file which will be placed in the CDC Replication installation directory since no absolute path has been specified.
dmshowbookmark
-I MYINSTANCE -s FINANCE -x mybookmarksCDC Replication obtains the replication position (bookmark) information for the specified instance and the FINANCE source ID. Replication position (bookmark) information is contained in the mybookmarks XML file which will be placed in the CDC Replication installation directory since no absolute path has been specified.