Example

The following error message indicates that the RepAgent thread attempted to connect to a database that already has a RepAgent thread running.

06/12/2006 16:37:58.34 PM RepAgent (10) 9220, EX_User,
1: The Rep Agent Thread context for database westernDB
has already been reserved by another session.

Only one RepAgent thread can connect to a database at any one time. Because the RepAgent abnormally terminated, the RepAgent thread process still exists although it is in sleep mode. The RepAgent thread wakes after the time specified in the scan_retry parameter elapses. Since the RepAgent has already terminated, the RepAgent thread process terminates when it wakes.