基礎物件與衍生物件的對應已存在

If there is a MAP statement for the base object and also one for the derived object, the result is an explicit mapping. 假設 DDL 敘述句包含 MAPPED,Replicat 會根據其本身的 TARGET 子句轉換每個物件的綱要和名稱。例如,假設如下:

擷取 (來源)

TABLE hr.tab*;  TABLE hr.index*;

Replicat (目標)

MAP hr.tab*, TARGET hrBackup.*;MAP hr.index*, TARGET hrIndex.*;

假設下列來源 DDL 敘述句:

CREATE INDEX hr.indexPayrollDate ON TABLE hr.tabPayroll (payDate);

Replicat 會在目標上執行 CREATE INDEX 敘述句,如下所示:

CREATE INDEX hrIndex.indexPayrollDate ON TABLE hrBackup.tabPayroll (payDate);

當目標上的索引必須由與基礎物件不同的綱要擁有,或當目標上的名稱必須與來源的名稱不同時,請使用明確的對應。