trace

Returns current trace flag settings, or changes trace flag settings for the Replication Agent instance.

Syntax

trace [ {flag | all }, switch ]

Parameters

Usage

  • The trace command is intended for use by Sybase Technical Support engineers when troubleshooting Replication Agent.

  • When trace is invoked with no option, it returns the current settings for all Replication Agent trace flags.

  • When trace is invoked with the flag and switch options, it changes the setting of the trace flag identified, and it returns the current (new) setting for the trace flag.

  • When trace is invoked with the all keyword and a switch option, it sets all Replication Agent trace flags to the value specified in the switch option, and it returns the current (new) setting for all of the trace flags.

  • Changes made with the trace command take effect immediately.

  • When a trace flag is set to true, tracing is enabled for the trace points identified by the flag. When set to false, tracing is disabled for the trace points.

  • Output from all trace points (except LTITRACELTL) is sent to the Replication Agent system log file. Use the log_system_name command to find the name and path of the Replication Agent system log file.

  • Output from the LTITRACELTL trace point is sent to a separate trace output file named LTITRACELTL.log. To view the contents of the LTITRACELTL.log file, your file viewer must be capable of handling very long lines.

    Note: The LTITRACELTL.log file contains a human-readable representation of the LTL, not the actual LTL commands sent to the primary Replication Server.
  • Replication Agent SYSTEM trace flags lists Replication Agent trace flags:

    Replication Agent Trace Flags

    Trace Flag

    Description

    BMGRTRACE

    When set to “true,” this flag enables Bean Management event tracing.

    CACHETRC

    When set to “true,” this flag enables tracing of internal cache events.

    DBCONTEXT

    When set to “true,” this flag turns on tracing of database context events.

    LATRC

    When set to “true,” this flag traces general Log Administrator operations.

    LATRCSQL

    When set to “true,” this flag traces SQL conversations between Log Administrator and the primary database.

    LICTRACE

    When set to “true,” this flag traces feature license check-in/checkout events.

    LOGREADTRC

    When set to “true”, turns on trace of database log reading.

    LRTRACE

    When set to “true,” this flag traces general execution of the Log Reader component.

    LRTRACETX

    When set to "true," this flag traces all transaction management commands processed by Operation Processor in the LRTRACETX.log file.

    LTITRACE

    When set to “true,” this trace flag enables tracing operations of the Log Transfer Interface component.

    LTITRACELTL

    When set to “true,” this trace flag enables LTL statement tracing in the LTITRACELTL.log file.

    LTMCI

    When set to “true,” causes tracing of LTM component interface invocations and LTM invocations of other components' interfaces.

    LTLFMTTRC

    When set to “true,” this trace flag enables tracing of the LTL formatter.

    LTMHL

    When set to “true,” causes highlights in the LTM execution path to be noted.

    LTMSC

    When set to “true,” causes tracing of all Replication Agent state changes.

    RACONTRC

    When set to “true,” causes tracing of connection and query execution.

    RACONTRCSQL

    When set to “true,” causes tracing of SQL statements to be executed.

    RASDTRC

    (For Oracle and Microsoft SQL Server) When set to “true,” turns on tracing of Replication Agent System Data Repository events.

    RATRACE

    When set to “true,” causes tracing of Replication Agent events.

    RSTICKETTRC

    When set to “true,” causes Replication Agent to log trace message including the rs_ticket value to the Replication Agent system log during LTL formatting.

    SNDRTRACETX

    When set to "true," this flag traces all transaction management commands sent by SenderThread in the SNDRTRACETX.log file.

    STMTRACE

    When set to “true,” causes tracing of LTM state monitor events.

    THREADTRC

    When set to “true,” logs ThreadPool trace events.

  • You cannot change the settings of SYSTEM trace flags.

    Replication Agent SYSTEM trace flags lists Replication Agent SYSTEM trace flags:

    Replication Agent SYSTEM Trace Flags

    Trace Flag

    Description

    CONFIG

    Configuration change event logged.

    ERROR

    Serious error; manual intervention may be needed to recover.

    FATAL

    Critical error; application shut down; manual intervention required to recover.

    INFORMATION

    Information only; no action required.

    WARNING

    Minor error; operation not affected, or problem is recoverable.

  • The trace command is valid when the Replication Agent instance is in the Admin, Replicating, or Replication Down state.

Related reference
log_system_name