assign action

Description

Assigns Replication Server error-handling actions to data server errors received by the DSI thread.

Syntax

assign action 
	{ignore | warn | retry_log | log |
		retry_stop | stop_replication}
for error_class
	to data_server_error [, data_server_error]...

Parameters

ignore

Instructs Replication Server to ignore the error and continue processing. ignore should be used when the data server error code indicates a successful execution or an inconsequential warning.

warn

Instructs Replication Server to display a warning message in its log file without rolling back the transaction or interrupting execution.

retry_log

Instructs Replication Server to roll back the transaction and retry it. The number of retry attempts is set with alter connection. If the error continues after retrying, Replication Server writes the transaction in the exceptions log and executes the next transaction.

log

Instructs Replication Server to roll back the current transaction, log it in the exceptions log, and then execute the next transaction.

retry_stop

Instructs Replication Server to roll back the transaction and retry it. The number of retry attempts is set with the alter connection. If the error continues after retrying, Replication Server suspends replication for the database.

stop_replication

Instructs Replication Server to roll back the current transaction and suspend replication for the database. This action is equivalent to using suspend connection.

error_class

The error class name for which the action is being assigned.

data_server_error

A data server error number.

Examples

Example 1

Instructs Replication Server to ignore data server errors 5701 and 5703:

assign action ignore
 for pubs2_db_err_class
 to 5701, 5703

Usage


Error actions with multiple errors


Error actions for rs_sqlserver_error_class


Displaying error actions

Permissions

assign action requires "sa" permission.

See also

configure connection, create connection, create error class, drop error class, rs_helperror, suspend connection