dmshutdown - Shut down CDC Replication
Use this command to stop an instance of CDC Replication and end replication on all subscriptions that use the instance as a source.
This command is often used prior to
taking a server or database offline for maintenance purposes or upgrading CDC Replication.
Note: As
a best practice before you run this command and to ensure that it
completes successfully, use the dmendreplication command
to end replication on all subscriptions that use the specified instance
as a source and as a target. This command will not complete successfully
if target subscriptions are still running.
To end replication
on subscriptions that use the specified instance as a target, you
can use the –a parameter which will generate
an error when forcefully ending replication on subscriptions that
use the specified instance as the target.
If this command does not end CDC Replication processes and stop the specified instance, use the dmterminate command on the UNIX and Linux® platforms to force a complete shut down and on Windows, to stop the service.
Syntax
dmshutdown [-I <name>] [-c|-i|-a|-se [-t <timestamp>|-p <log position>]
[-L <locale>]Parameters
- [-I <name>]
- Specifies the name of the CDC Replication instance. Alternatively, you can specify the TSINSTANCE environment variable in place of this value.
- [-c]
- Specifies that CDC Replication stops the specified instance and ends replication on all subscriptions that use the instance as a source with the Normal option. CDC Replication will use this option by default if you do not specify –se, -i, or –a.
- [-i]
- Specifies that CDC Replication stops the specified instance and ends replication on all subscriptions that use the instance as a source with the Immediate option.
- [-a]
- Specifies that CDC Replication stops the specified instance and ends replication on all subscriptions that use the instance as a source or target with the Abort option. Subscriptions that use the specified instance as a target will end replication with an error.
- [-se]
- Specifies that CDC Replication will stop the specified instance and end replication normally at the current source system time in the source database log with the Scheduled End option. Replication will end on subscriptions that use the specified instance as a source. The source system time when replication will end is set when you issue this command.
- [-t <timestamp>]
- Indicates the date and time in the source database log when replication
will end when using
–se. When specifying a value for this parameter, use the following format:yyyy-MM-dd HH:mm
- [-p <log position>]
- Indicates that CDC Replication will
end replication at the specified Informix® LSN
in your source database log when using
-se. Here is an example of an LSN format for Informix Dynamic Server:33500745064472 - -L <locale>
- The name of the locale used for the CDC Replication instance. The default is the locale of the machine where CDC Replication is installed.
Result
This command returns a value of 0 if the command was successful and a non-zero value if the command fails.