Migrating user-defined shared libraries from IBM PureData® System for Analytics (Netezza) to Db2 Warehouse
The process of creating and referencing user-defined shared libraries is different for PureData® System for Analytics and Db2® Warehouse. In PureData System for Analytics, the user-defined shared libraries are re-created by using the create library function. And the libraries that are using shared libraries are reregistered by using the dependencies parameter in the create function call. On Db2 Warehouse, every library that is built within a project can be used as a shared library and be referenced by other libraries.
Before you begin
- Only automatic load is supported.
- The libraries can be referenced only within single user project.
About this task
The following example shows how to build a user-defined shared library.
Procedure
Results
You can now use the UDX that references to the shared library as any other function, for
example:
SQL> select sl_udf(col1, col2) from table1;