| 1 |
written by Helmut K. C. Tessarek
|
| 2 |
|
| 3 |
Last Update: 06-03-2007
|
| 4 |
|
| 5 |
http://mod-auth-ibmdb2.sourceforge.net/
|
| 6 |
|
| 7 |
Contents:
|
| 8 |
---------
|
| 9 |
|
| 10 |
1) Building the library
|
| 11 |
2) Registering the UDFs in the database
|
| 12 |
|
| 13 |
1) Building the library
|
| 14 |
-----------------------
|
| 15 |
|
| 16 |
Please change the PATH settings in the makeudf scripts for your environment.
|
| 17 |
|
| 18 |
AIX / Linux : ./makeudf
|
| 19 |
Win32 : makeudf.bat
|
| 20 |
Other : see below
|
| 21 |
|
| 22 |
The UDFs are written in ANSI C and should compile on all platforms.
|
| 23 |
You can use the bldrtn script in your sqllib/samples/c directory as a good start.
|
| 24 |
The only thing that you have to do is to install APR and APR-util.
|
| 25 |
You can get APR and APR-util at http://apr.apache.org/
|
| 26 |
Furthermore you need to add the compiler and linker flags for APR (see makeudf).
|
| 27 |
|
| 28 |
2) Registering the UDFs in the database
|
| 29 |
---------------------------------------
|
| 30 |
|
| 31 |
You have to connect to the database first.
|
| 32 |
|
| 33 |
db2 -tvf reg_udfs.ddl
|