sp_config_rep_agent

Changes or displays the configuration parameters for the RepAgent thread for an Adaptive Server database.

Syntax

sp_config_rep_agent [dbname[, RepAgent_parameter]
 

Parameters

Examples

Usage

  • Use sp_config_rep_agent to configure RepAgent for Adaptive Server databases.

  • Enable RepAgent in this way:
    • sp_addserver – Identifies the Adaptive Server for RepAgent. You need to do this only once per screen.

    • sp_configure 'enable rep agent thread' – Configures the data server for RepAgent. You need to do this only once per screen.

    • sp_config_rep_agent – Configures the database for RepAgent.

    Refer to the Adaptive Server Enterprise Reference Manual for more information about sp_addserver.

  • After you configure the parameters using sp_config_rep_agent, you must restart RepAgent using sp_start_rep_agent for the new parameters to take effect.

  • If you execute sp_config_rep_agent without parameters, Adaptive Server displays the default, configured, and runtime values for all databases that are enabled for RepAgent.

    If you only enter dbname, Adaptive Server displays the default, configured, and runtime values for the specified database.

  • Properties specified by sp_config_rep_agent are stored in the sysattributes table of the database and have an attribute class of RA.

  • Use sp_config_rep_agent to set the RepAgent configuration parameters after you have enabled RepAgent at the data server using sp_configure.

  • repserver_user must have connect source permission.

Configuring Network-Based Security

Note: Network-based security for RepAgent is enabled with sp_configure at the Adaptive Server. See the Adaptive Server Enterprise System Administration Guide for more information.
  • A security mechanism may not support all security properties. Verify the properties of a security mechanism by executing admin security_property at the Replication Server. For more information, see admin security_property.

  • The security mechanism enabled for the RepAgent must be the same as that enabled for the Replication Server. Security settings at the RepAgent and the Replication Server must be compatible.

    If RepAgent Setting Is

    Setting at Replication Server Can Be

    true

    • required, or

    • not required

    false

    not required

  • If unified_login is true, you must specify the rs_password parameter as NULL when RepAgent is enabled at the database.

  • If you specify one or more security settings, but do not specify a security mechanism, Adaptive Server initializes the default mechanism, the first entry in the SECURITY section in $SYBASE/$SYBASE_ASE/config/libtcl.cfg.

Permissions

sp_config_rep_agent requires “sa” or “dbo” permission or replication_role.

Related reference
sp_configure 'enable rep agent threads'
sp_help_rep_agent
sp_start_rep_agent
sp_stop_rep_agent