Disabling replication for LOB columns  Marking a stored procedure for replication

Chapter 3: Administering Sybase Replication Agent

Marking and unmarking stored procedures

Sybase Replication Agent supports Replication Server function replication by replicating the invocation of stored procedures in the primary database.

NoteIn this document, the terms function and stored procedure are synonyms.

Sybase Replication Agent can replicate both applied functions and request functions:

In order to replicate a stored procedure invoked in a primary database, the stored procedure must be marked for replication and replication must be enabled for that stored procedure. (This is analogous to marking and enabling replication for tables.)

NoteMarking a stored procedure for replication is separate from enabling replication for the stored procedure. If the value of the pdb_dflt_object_repl parameter is true, replication is enabled automatically at the time a stored procedure is marked. See “Enabling and disabling replication for stored procedures” for more information on enabling and disabling replication for a marked stored procedure.

If a marked stored procedure performs operations that affect a marked table, the operations that affect the marked table are not captured for replication, only the invocation of the marked stored procedure is replicated.

When you mark a stored procedure for replication, Replication Agent creates a shadow-row procedure for that stored procedure.

Replication Agent also modifies the marked stored procedure as follows:

If you need to temporarily suspend replication of a marked stored procedure (for example, when database maintenance operations are performed in the primary database) you can disable replication for the stored procedure. See “Enabling and disabling replication for stored procedures” for more information.

When you unmark an object that has been marked for replication, the transaction log objects that were created to facilitate the replication for that object are removed from the primary database.

NoteProcedure replication is not supported for DB2 UDB.

For more information on the Replication Server function replication feature, see the Replication Server Administration Guide.





Copyright © 2005. Sybase Inc. All rights reserved. Marking a stored procedure for replication

View this book as PDF