OWB –重用不同数据源的映射
我有一个 PERSON 表,有 5 种不同的模式,即:A、B、C、D 和 E。它具有精确的 sme 结构。
在 OWB 目标模式中,定义了映射 PERSON_MAP,它使用 A.PERSON 表。
我想重用此映射 PERSON_MAP,以与不同的源模式(B、C、D 和 E)一起使用,
如何在 OWB UI 中并使用 OMB+ 命令执行此操作?
I have a PERSON table in 5 different schema namely : A, B, C, D and E. It has exact sme structure.
In OWB target schema, a mapping PERSON_MAP is defined, which uses A.PERSON table.
I want to reuse this mapping PERSON_MAP, to use with different source schema (B, C, D and E)
How can I do this in OWB UI and with OMB+ commands?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将分步骤描述您应该做什么:
定义一个指向 A.PERSON 表的同义词 PERSON
CREATE SYNONYM PERSON FOR A.PERSON;
打开数据库元数据导入向导,选中使用同义词查找对象选项并导入 PERSON 同义词。
现在,当您从映射生成中间脚本时,您将看到它将使用本地架构中的同义词名称。
部署映射
要为不同的源模式重用映射,您应该更改同义词定义并指向任何模式,只要表结构相同即可。
CREATE OR REPLACE SYNONYM PERSON FOR B.PERSON;
当您执行映射时,它将处理同义词后面的源表中的数据。
I will describe in steps what you should do:
Define a synonym PERSON which points to the A.PERSON table
CREATE SYNONYM PERSON FOR A.PERSON;
Open the database metadata import wizard, check Use a synonym to look up objects option and import PERSON synonym.
Now when you generate intermediate script from your mapping you will see that it will use synonym name from the local schema.
Deploy mapping
To reuse mapping for different source schema you should change the synonym definition and point to any schema as long as the table structure is the same.
CREATE OR REPLACE SYNONYM PERSON FOR B.PERSON;
When you execute mapping it will process data from the source table behind the synonym.
在设计中心;
您可以将 PERSON_MAP 创建为 PERSON_MAP_B 和 PERSON_MAP_C 等副本。
以 PERSON_MAP_B 为例,获取一份副本。
右键单击映射并选择“配置”。
在配置视图中;
转到“表运算符”;
展开源表; “乙”;
将“位置”更改为 B 的来源。
In Design Center;
You can create copies of PERSON_MAP as PERSON_MAP_B and PERSON_MAP_C and so on.
Take one copy for example PERSON_MAP_B.
Right-click the mapping and select "Configure".
In the Configuration view;
Go to "Table Operators";
Expand the source table; "B";
Change the "Location" to source of B.