Manage Replicated Functions

Use replicated functions to replicate the execution of a stored procedure from the source database to the destination database.

When you use function replication, Replication Server replicates the execution of a stored procedure from the source database to the destination database. That is, when a stored procedure is executed at the source database, the Replication Server invokes the execution of another stored procedure at the destination database. The two stored procedures need not have the same name nor perform the same tasks.

See the Replication Server Design Guide for information about replication system design issues that concern replicated stored procedures.

See Replication Server Administration Guide Volume 2 > Asynchronous Procedures for the distribution of stored procedures associated with table replication definitions. See Replication Server 15.6 Administration Guide Volume 2 > Pre-15.1 Request Function Replication for the request function distribution without subscription for versions earlier than 15.1.

You identify the stored procedure at the source and the information that is to be passed to the destination by creating a function replication definition, which specifies:
To satisfy the requirements of distributed applications, Replication Server provides two ways to implement replicate functions. Use:

The maint_user runs the transaction at the replicate database if the function is replicated through applied function replication definition. The origin_user runs the transaction if the function is replicated through request function replication definition at the replicate database.

Related concepts
Applied Functions
Request Functions