6.5 Nested Replicated Stored Procedure
These error messages are displayed in the Adaptive Server error log.
96/03/04 14:01:53.34 RepAgent (10) Error: 9202, Severity: EX_CMDFATAL, State: 1 Nested replicated stored procedure detected. Transaction log may be corrupt. Please contact SYBASE Technical Support.
W. 96/03/04 14:01:53. WARNING #1033 logscan thread(NYDS.nydb1) - /ltmscan.c(4689) Nested replicated stored procedure is not allowed. The procedure name = ‘south_nested’, pid = ‘456’, rid = ‘2’.
A nested stored procedure is called from within another stored procedure. The stored procedure that calls the nested stored procedure is called the outer stored procedure.
If stored procedures with nested stored procedures are marked for replication with sp_setrepproc, then:
The RepAgent shuts down.
The RepAgent forwards only the outer stored procedure call to the Replication Server.
An error message is displayed in the Adaptive Server error log.
Do not use nested replicated stored procedures.
To solve this problem:
Skip the nested stored procedure transaction:
Find the page of the secondary truncation point, by executing:
dbcc gettrunc
Set a new secondary truncation point on the page after the nested stored procedure transaction by executing:
dbcc settrunc (‘ltm’, ‘pageid’, pageid)
where pageid is the id for the page after the current page you retrieved in Step a.
Reset the locater by executing:
rs_zeroltm
Reapply only the nested stored procedure transaction.
Restart RepAgent.