Isolation Level Support

Isolation levels let you control the degree to which data can be accessed by other users during a transaction. With version 15.0, Replication Server decouples isolation levels and serialization methods for the replicate data server, and enables all isolation levels for replicate data servers that Replication Server supports. In versions earlier than 15.0, Replication Server supported only isolation level 3.

Through the use of custom function strings, Replication Server supports all isolation levels the replicate data servers may use. Support is not limited to the ANSI standard only.

Each isolation level specifies the types of actions that are not permitted while concurrent transactions are processing. Higher levels include the restrictions imposed by lower levels.

You can set the isolation level with the database configuration parameter dsi_isolation_level. The ANSI standard levels supported by Adaptive Server are:

The default value is the current transaction isolation level for the target data server.

For example, to select isolation level 2 for the Replication Server connection to the TOKYO_DS data server and pubs2 database, enter:
alter connection to TOKYO_DS.pubs2
set dsi_isolation_level to ‘2’
In versions earlier than 15.0, you set isolation level 3 and the serialization method at the same time:
alter connection to TOKYO_DS.pubs2
set dsi_serialization_method to ’isolation_level_3’
With version 15.0, the equivalent is:
alter connection to TOKYO_DS.pubs2
set dsi_serializaiton_method to ’wait_for_start’
alter connection to TOKYO_DS.pubs2
set dsi_isolation_level to ’3’