473,808 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 and PostgreSQL federation

Hi, All

In the first place sorry for mu english.

I'm trying to integrate DB2 9.1.3 (with WebSphere Federation Server
Relational Wrappers installed) and PostgreSQL 7.4 on SLES9 box

I have configured the unixODBC library for access to Postgre database,
is worked normal (test connect and select from test table via tool /
usr/bin/isql is fine)

And next i'm trying to create the ODBC-wrapper in my DB2 database
via :

create wrapper odbc options (module '/usr/lib/unixODBC/
libodbcdrvcfg2S .so.1.0.0')

but this is fail with error :

SQL0901N The SQL statement failed because of a non-severe system
error.
Subsequent SQL statements can be processed. (Reason "Unable to load
the
fencible wrapper library".) SQLSTATE=58004

DB2 InfoCenter say's : "The MODULE wrapper option specifies the full
path of the library that contains the ODBC Driver Manager."

I'm assume what /usr/lib/unixODBC/libodbcdrvcfg2S .so.1.0.0 is the same
library.
May be am wrong ?

Please help me for this situation and may be provide right links about
integration DB2 and PostgreSQL (or other databases) on Linux with ODBC-
wrapper.

Thank's.

Sep 11 '07 #1
5 5961
mi********@gmai l.com wrote:
Hi, All

In the first place sorry for mu english.

I'm trying to integrate DB2 9.1.3 (with WebSphere Federation Server
Relational Wrappers installed) and PostgreSQL 7.4 on SLES9 box

I have configured the unixODBC library for access to Postgre database,
is worked normal (test connect and select from test table via tool /
usr/bin/isql is fine)

And next i'm trying to create the ODBC-wrapper in my DB2 database
via :

create wrapper odbc options (module '/usr/lib/unixODBC/
libodbcdrvcfg2S .so.1.0.0')

but this is fail with error :

SQL0901N The SQL statement failed because of a non-severe system
error.
Subsequent SQL statements can be processed. (Reason "Unable to load
the
fencible wrapper library".) SQLSTATE=58004

DB2 InfoCenter say's : "The MODULE wrapper option specifies the full
path of the library that contains the ODBC Driver Manager."

I'm assume what /usr/lib/unixODBC/libodbcdrvcfg2S .so.1.0.0 is the same
library.
May be am wrong ?

Please help me for this situation and may be provide right links about
integration DB2 and PostgreSQL (or other databases) on Linux with ODBC-
wrapper.
I've checked with the federated team and they ask for a PMR to be
opened. L1 support gives you a run around refer them to me.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Sep 12 '07 #2
Serge Rielau wrote:
mi********@gmai l.com wrote:
>Hi, All

In the first place sorry for mu english.

I'm trying to integrate DB2 9.1.3 (with WebSphere Federation Server
Relational Wrappers installed) and PostgreSQL 7.4 on SLES9 box

I have configured the unixODBC library for access to Postgre database,
is worked normal (test connect and select from test table via tool /
usr/bin/isql is fine)

And next i'm trying to create the ODBC-wrapper in my DB2 database
via :

create wrapper odbc options (module '/usr/lib/unixODBC/
libodbcdrvcfg2 S.so.1.0.0')

but this is fail with error :

SQL0901N The SQL statement failed because of a non-severe system
error.
Subsequent SQL statements can be processed. (Reason "Unable to load
the
fencible wrapper library".) SQLSTATE=58004

DB2 InfoCenter say's : "The MODULE wrapper option specifies the full
path of the library that contains the ODBC Driver Manager."

I'm assume what /usr/lib/unixODBC/libodbcdrvcfg2S .so.1.0.0 is the same
library.
May be am wrong ?

Please help me for this situation and may be provide right links about
integration DB2 and PostgreSQL (or other databases) on Linux with ODBC-
wrapper.
I've checked with the federated team and they ask for a PMR to be
opened. L1 support gives you a run around refer them to me.

Cheers
Serge
Some comments from backstage:
unixODBC's driver manager lib's name is libodbcinst.a. Sometimes the
datasource driver will ask to find the driver manager name in
"libodbcinst.so ", you can do this:
In unixODBC/lib/,
ar -x libodbcinst.a -->this will archive the
"libodbcinst.so .1" out
ln -s libodbcinst.so. 1 libodbcinst.so
Once I tested with odbc wrapper to access mysql via unixODBC, when I
issue below statement when create wrapper.

create wrapper odbcwrapper library 'libdb2rcodbc.a ' options (MODULE
'/home2/sunyunf/mysqlstuff/mysql-connector-odbc-3.51.17-aix5.2-powerpc-32bit/lib/libmyodbc3.so', DB2_FENCED
'N')
Here is the example of use unixODBC access mysql, hope it will be helpful.

create wrapper odbcwrapper library 'libdb2rcodbc.a ' options (MODULE
'/home2/sunyunf/unixODBC/lib/libodbc.so', DB2_FENCED 'N')
DB20000I The SQL command completed successfully.

create server odbcserver type odbc version 3 wrapper odbcwrapper options
(node 'mysql', dbname 'test', PUSHDOWN 'Y', DB2_MAXIMAL_PUS HDOWN 'Y',
DB2_IUD_ENABLE 'Y',DB2_ONE_REQ UEST_PER_CONNEC TION 'N' )
DB20000I The SQL command completed successfully.

create user mapping for user server odbcserver options ( REMOTE_AUTHID
'Login', REMOTE_PASSWORD 'Passw0rd' )
DB20000I The SQL command completed successfully.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Sep 13 '07 #3
Some comments from backstage:
unixODBC's driver manager lib's name is libodbcinst.a. Sometimes the
datasource driver will ask to find the driver manager name in
"libodbcinst.so ", you can do this:

In unixODBC/lib/,
ar -x libodbcinst.a -->this will archive the
"libodbcinst.so .1" out
ln -s libodbcinst.so. 1 libodbcinst.so

Once I tested with odbc wrapper to access mysql via unixODBC, when I
issue below statement when create wrapper.

create wrapper odbcwrapper library 'libdb2rcodbc.a ' options (MODULE
'/home2/sunyunf/mysqlstuff/mysql-connector-odbc-3.51.17-aix5.2-powerpc-32bi*t/lib/libmyodbc3.so', DB2_FENCED
'N')

Here is the example of use unixODBC access mysql, hope it will behelpful.

create wrapper odbcwrapper library 'libdb2rcodbc.a ' options (MODULE
'/home2/sunyunf/unixODBC/lib/libodbc.so', DB2_FENCED 'N')
DB20000I The SQL command completed successfully.

create server odbcserver type odbc version 3 wrapper odbcwrapper options
(node 'mysql', dbname 'test', PUSHDOWN 'Y', DB2_MAXIMAL_PUS HDOWN 'Y',
DB2_IUD_ENABLE 'Y',DB2_ONE_REQ UEST_PER_CONNEC TION 'N' )
DB20000I The SQL command completed successfully.

create user mapping for user server odbcserver options ( REMOTE_AUTHID
'Login', REMOTE_PASSWORD 'Passw0rd' )
DB20000I The SQL command completed successfully.
Hello.

Serge, thanks for your help.
I reinstal my environment on RHEL5 and is not succesfull :((

I install and configure ODBC-access to my PostgreSQL test database, is
work fine
Next i'm try to configure federated db :

db2 =create wrapper odbc options (module '/usr/lib64/
libodbc.so',DB2 _FENCED 'N')
DB20000I The SQL command completed successfully.

db2 =create server db2pgserv type odbc version 3.0 wrapper odbc
options (node 'pgtest', dbname 'testpgdb')
DB20000I The SQL command completed successfully.

db2 =create user mapping for db2inst1 server db2pgserv options
(remote_authid 'postgres', remote_password 'db2wfs913rhel5 ')
DB20000I The SQL command completed successfully.

db2 =set passthru db2pgserv
DB20000I The SQL command completed successfully.

db2 =select * from testtab
SQL1822N Unexpected error code "I" received from data source
"DB2PGSERV" .
Associated text and tokens are "[". SQLSTATE=560BD

In db2diag.log for this error logged this message :

2007-09-17-09.27.31.897164-420 E57705E753 LEVEL: Error
(Received)
PID : 3139 TID : 46912633403232P ROC : db2agent
(DB2PGDB) 0
INSTANCE: db2inst1 NODE : 000 DB : DB2PGDB
APPHDL : 0-7 APPID: *LOCAL.db2inst1 .070917160821
AUTHID : DB2INST1
FUNCTION: DB2 UDB, ODBC wrapper, report_error_me ssage, probe:1072
DATA #1 : String, 16 bytes
Server name:
DATA #2 : String, 9 bytes
DB2PGSERV
DATA #3 : String, 16 bytes
Function name:
DATA #4 : String, 7 bytes
connect
DATA #5 : String, 16 bytes
ODBC native err:
DATA #6 : signed integer, 4 bytes
0
DATA #7 : String, 16 bytes
ODBC sqlstate:
DATA #8 : String, 1 bytes
I
DATA #9 : String, 16 bytes
ODBC error text:
DATA #10: String, 1 bytes
[



Sep 17 '07 #4
Some more comments from the experts:
-----
Since the customer can access PostgreSQL via ODBC externally, I think
his/her odbc.ini is set correctly.

I suggest the customer use unixODBC-install-dir/bin/dltest to verify
whether the PostgreSQL odbc driver could be loaded by unixODBC driver
manager. We recommend DataDirect as the default Driver manager.

A full record of db2diag.log will be more helpful, seems the fraction
from the customer is too short.
-----------

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Sep 17 '07 #5

Serge Rielau:
Some more comments from the experts:
-----
Since the customer can access PostgreSQL via ODBC externally, I think
his/her odbc.ini is set correctly.

I suggest the customer use unixODBC-install-dir/bin/dltest to verify
whether the PostgreSQL odbc driver could be loaded by unixODBC driver
manager. We recommend DataDirect as the default Driver manager.

A full record of db2diag.log will be more helpful, seems the fraction
from the customer is too short.
-----------
Hi, Serge.

Big thank's for your responses.

In my environvent i use the libodbcpsql.so library shipped with
unixODBC package (the psqlodbc.so shipped with postgres-odbc package
not worked becuase undestandable reasons :( )

I test's this library, what say's your expert :

[root@db2 bin]# dltest /usr/lib64/libodbcpsql.so. 2.0.0
SUCCESS: Loaded /usr/lib64/libodbcpsql.so. 2.0.0

And for my test SELECT in set passthu mode no other messages are
logged on db2diag.log (i restart select statement and recheck
db2diag.log after this)

If possible, are your experts check the same solution on the same
environment ?

Thank you.

Sep 18 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1618
by: RavenCross | last post by:
we are in need of a game developer rather quickly. Candidates will be responsible in assisting in all coding from marketing, developing new games, maintaining and updating existing games in the Space Federation. Interested candidates can apply and start work anytime with us.we mostly need still mech pictures. Space Federation is an endeavor to bring free internet games to the public. With over 290,708 registered players playing daily, we...
14
4342
by: spencer | last post by:
My client is going through a large project to replace existing data warehouse physical infastructure which is running DB2 8.1.6. In the past we had a much more distributed environment where we had certain portions of the data warehouse on a physically different server. We utilized federation to allow the joining of tables on seperate instances. We found that this worked ok in situations where the tables were not that large say under...
3
1855
by: BobTheDatabaseBoy | last post by:
can't find in the RedBook, or scouring this NG, a simple yes/no answer to the question: given mountains of existing COBOL programs which have read/written to multiple schemas, but in one z/OS(v7) instance, whether Information Integrator exists for that platform, and would allow reading/writing to schemas in multiple instances. the doc reads (to me) like II sends all data through an LUW instance.
3
3239
by: Baski | last post by:
Hi, I have few questions, 1) I have DB2 8.2 ESE, with a db2 instance and a few databases. Is it posiible to create and configure a federated server. what are the things/steps required to do so. For federation server should I have additional tool called Information Integrator or can I do without it? Does the Wrapper to connect to
2
2358
by: bspdan | last post by:
Hi - I'm having some federation difficulties and am looking for some help. On AIX 5.3, I'm running DB2 ESE 8.2 FP12 with Federation enabled. Oracle client 10.2.0.2. I can connect to a remote oracle instance using sqlplus, so I'm pretty confident the Oracle client is OK. I'm able to create a NET8 wrapper, and to create a Server using that wrapper. Control Center is able to discover all instances listed in my tnsnames.ora, so I'm...
3
5998
by: zgh1970 | last post by:
Hi, All, We have a database on db2 udb aix. The database has federated server to db2 mainframe. Now We have already catalog database of db2/400 on the db2 UDB aix server. I tried to create new federation server for db2as/400. It seam has problem. 1. can the db2 mainframe and db/400 have the same wrapper? Our existing db2 mainframe uses the wrapper with library libdb2drda.a This wrapper is used by db2 mainframe
5
1957
by: BobTheDataBaseBoy | last post by:
A client has 390/V7 and UDB/V8. It would be useful to use row_number() when selecting from 390, but that's not supported. It occurs to me (I'm not in CubeLand, and anyway we upgraded to V8 on z/OS) that federation (on UDB/V8) might support functions on those 390/V7 tables. Is this known? thanks
0
2047
by: vbace2 | last post by:
Using DB2 v9.1 fixpak 2 (WSE with HADR feature) on Windows 2003 Servers We are trying to set up HADR for two production databases. The two primary databases reside on two different servers. We would like to put the two standby databases on the same server. One of the databases (we will call it NICKNM) has tables federated from the other database (we will call it OTHER). I was able to set up HADR for these two databases so that the...
1
2836
by: dif1754 | last post by:
My Windows DB2 Server 9.x is connected, via federation, to a remote AS/ 400 system: I created several nicknames to remote tables and I can query them. Problem is, during the night, my remote AS/400 is rebooted and DB2 Server cannot connect back to it. Is there any DB2 parameter I must set to reconnect automatically to the remote federated AS/400.
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.