Show TOC

rs_autoc_onLocate this document in the navigation structure

Updates the rs_status table to indicate that autocorrection has been set to on.

Replication Server invokes rs_autoc_on when the Data Server Interface (DSI) encounters an autocorrection on record in the primary database log.
Examples
Example

Creates an rs_autoc_on function string for rs_iq_function_class.

create function string rs_autoc_on
 for rs_iq_function_class
 output language
  'insert into rs_status (schema, tablename, action, starttime, status) values
    (?rs_repl_objowner!sys?, 
     ?rs_deliver_as_name!sys?, 
     "A", 
     current timestamp, 
     "P"); 
  commit'
Usage
  • The rs_autoc_on function has function-string-class scope.
  • Replication Server creates an initial rs_autoc_on function string during installation.
  • rs_autoc_on uses the <rs_deliver_as_name> system-defined variable, which indicates the table in the replicate database affected by autocorrection.
  • rs_autoc_on uses the <rs_repl_objowner> system-defined variable, which indicates the owner of the table in the replicate database affected by autocorrection. If no owner is specified, rs_repl_objowner contains a single space.