rs_triggers_reset

Description

Turns off triggers in Adaptive Server and Oracle.

Examples

Example 1

Creates an instance of an rs_triggers_reset function string for a user-created base function-string class for Adaptive Server.

create function string rs_triggers_reset
 for sqlserver2_function_class
 output language
 'set triggers off'

Example 2

Creates an instance of an rs_triggers_reset function string for a user-created base function-string class for Oracle.

create function string rs_triggers_reset
 for oracle_function_class
 output language
 'BEGIN rs_trigger_control.enable();; END;;'

NoteUnlike Adaptive Server, which has a set triggers off command, Oracle does not publish a session-level trigger control. Hence, you need to install the RS_TRIGGER_CONTROL package in the replicate Oracle database using create connection using profile to be able to work with rs_triggers_reset function string. See Chapter 10, “Oracle Replicate Data Server Issues” in the Replication Server Heterogeneous Guide.

Usage

See also

create connection, create function string