この例には、次の要素が含まれています。
ラッパー・プロシージャのコード・サンプル
new_dept(args...)
if call_local='Y'
call new_dept(Jones)
if call_remote='Y'
build call to new_dept
for deferred queue
with call_remote='N'
遅延トランザクション・キュー
procnameに、次の内容が入力されています。
update(oldargs newargs) insert(newargs) update(oldargs newargs) delete(oldargs) new_dept(Jones)
レプリケーション・サイト
レプリケーション・サイトAとレプリケーション・サイトBの両方で、プロシージャがコールされ、employees表が更新されています。プロシージャ・コールは、次のように表されています。
new_dept(arg1)
BEGIN
lock table in EXCLUSIVE mode
disable row-level replication
update employees
enable row-level replication
END;