如何为 Sybase 数据源设置 DB2 Express-C 数据联合?
我希望在 http://www.informatics 中概述的远程公共 Sybase 数据库中创建字段。 jax.org/software.shtml#sql 本地出现在我们的 DB2 项目的模式中。为此,我打算使用数据联合,但是我似乎无法安装数据源库(适用于 Linux 的 Sybase 特定文件 libdb2ctlib.so),因为只有 DB2 和 Infomatix 可以与 DB2 Express-C 一起进行 OOTB 工作v9.5(这是我们当前运行的版本,我还尝试了最新的 V9.7。)
从不清楚的 IBM 文档和论坛帖子中,我能收集到的最好信息是我们需要在 http://www-01.ibm.com/software/data/infosphere/federation-server/ 获得对 Sybase 的支持,但从预算角度来看,这有点不可能。
那么,是否有一种免费方法可以使用以前的工具版本(似乎 DB2 Information Integrator 已更名为 InfoSphere Federation Server)来为 Sybase 设置 DB2 数据包装器?或者,我们是否可以使用另一种非 MySQL 方法,例如将本地 DBMS 从 DB2 切换到 PostgreSQL?后者是否支持数据集成/联合?
I wish to make fields in a remote public Sybase database outlined at http://www.informatics.jax.org/software.shtml#sql appear locally in our DB2 project's schema. To do this, I was going to use data federation, however I can't seem to be able to install the data source library (Sybase-specific file libdb2ctlib.so for Linux) because only DB2 and Infomatix work OOTB with DB2 Express-C v9.5 (which is the version we're currently running, I also tried the latest V9.7.)
From unclear IBM documentation and forum posts, the best I can gather is we need to spend $675 on http://www-01.ibm.com/software/data/infosphere/federation-server/ to get support for Sybase but budget-wise that's a bit out of the question.
So is there a free method using previous tool versions (as it seems DB2 Information Integrator was rebranded as InfoSphere Federation Server) to setup DB2 data wrappers for Sybase? Alternatively, is there another non-MySQL approach we can use, such as switching our local DBMS from DB2 to PostgreSQL? Does the latter support data integration/federation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DB2 Express-C 不允许联合链接到任何远程数据库,甚至其他 DB2 数据库也不行。您是正确的,InfoSphere Federation Server 需要将 DB2 联合到 Sybase 数据源。我不知道 PostgreSQL 是否支持到 Sybase 的联合链接。
DB2 Express-C does not allow federated links to any remote database, not even other DB2 databases. You are correct that InfoSphere Federation Server is required to federate DB2 to a Sybase data source. I don't know if PostgreSQL supports federated links to Sybase.
Derek,有多种方法可以创建联合数据库。一种是使用 DB2 Express-C 中内置的联合数据库功能。然而,DB2 Express-C 只能联合来自特定数据源(即其他 DB2 数据库和行业标准 Web 服务)的数据。要将 Sybase 添加到此列表,您必须购买 IBM Federation Server 产品。
另一种方法是利用 DB2 功能在 DB2 Express-C 中创建用户定义函数,使用 OLE DB API 访问其他数据源。由于 OLE DB 是基于 Windows 的技术,因此只有运行在 Windows 上的 DB2 服务器才能做到这一点。您要做的就是创建一个表 UDF,然后您可以在任何您希望看到表结果集(例如视图定义)的地方使用它。例如,您可以定义一个使用 UDF 来具体化结果的视图。这些结果将来自 Sybase 数据(或任何其他 OLE DB 兼容数据源)的查询(通过 OLE DB)。
您可以在此处找到更多信息 http://publib.boulder.ibm.com/infocenter/idm/v2r2/index.jsp?topic=/com.ibm.datatools.routines.doc/topics/coledb_cont.html
Derek, there are several ways in which one can create a federated database. One is by using the federated database capability that is built in to DB2 Express-C. However, DB2 Express-C can only federate data from specific data sources i.e. other DB2 databases and industry standard web services. To add Sybase to this list you must purchase IBM Federation Server product.
The other way is to leverage DB2 capability to create User Defined Functions in DB2 Express-C that use OLE DB API to access other data sources. Because OLE DB is a Windows-based technology, only DB2 servers running on Windows can do that. What you do is create a table UDF that you can then use anywhere you would expect to see a table result set e.g view definition. For example, you could define a view that uses your UDF to materialize the results. These results would come from a query (via OLE DB) of your Sybase data (or any other OLE DB compliant data source).
You can find more information here http://publib.boulder.ibm.com/infocenter/idm/v2r2/index.jsp?topic=/com.ibm.datatools.routines.doc/topics/coledb_cont.html