Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:58 PM
Joachim Banzhaf
 
Posts: n/a
Default Federated Informix - how to djxlink?

Hi,

Creating the federated datasource library for informix fails for me.
The db2 server is version 8.1 WSE on AIX 4.3.
The informix client on this server is version CSDK 2.81/ESQL 9.53 UC2.
When I run djxlink as root, I get the followin messages:

# /usr/opt/db2_08_01/bin/djxlink
/usr/opt/db2_08_01/bin/djxlinkInformix:
nm: /informix/clientsdk/lib/esql/libifgen.a: 0654-200 Cannot open the
specified file.
nm: No such file or directory
nm: /informix/clientsdk/lib/esql/libifsql.a: 0654-200 Cannot open the
specified file.
nm: No such file or directory
Error building libdb2informixF.a
Messages are in file djxlinkInformix.out.

The messages do not lie. The .a files are not there, only .so.

At last I found the directory where the output is created (pretty
nonstandard, why not ., $HOME, /tmp? lib might not even be writeable!)

# cat $HOME/sqllib/lib/*.out
BEGIN INFORMIX PROCESSING

ld: 0706-006 Cannot find or open library file: -l ifasf
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifgen
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifgls
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifglx
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifos
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifsql
ldpen(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ifxa
ldpen(): No such file or directory
ld: 0706-005 Cannot find or open file: /informix/clientsdk/lib/netstub.a
ldpen(): No such file or directory
ld: 0706-005 Cannot find or open file:
/informix/clientsdk/lib/esql/checkapi.o
ldpen(): No such file or directory
Error building libdb2informixF.a
END INFORMIX PROCESSING

Any ideas where to get these libraries or what else to do?

Thanks

Joachim Banzhaf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:58 PM
Aakash Bordia
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

I am trying to find out the answer for your question, please hold on. In the
meanwhile, what is in your db2dj.ini file. Is it something like:
INFORMIXDIR=/informix
INFORMIXSERVER=inf93

Thanks
Aakash

"Joachim Banzhaf" <jbanzhaf@ngi.de> wrote in message
news:sbqn71-4do.ln1@banzhaf.dnsalias.net...
> Hi,
>
> Creating the federated datasource library for informix fails for me.
> The db2 server is version 8.1 WSE on AIX 4.3.
> The informix client on this server is version CSDK 2.81/ESQL 9.53 UC2.
> When I run djxlink as root, I get the followin messages:
>
> # /usr/opt/db2_08_01/bin/djxlink
> /usr/opt/db2_08_01/bin/djxlinkInformix:
> nm: /informix/clientsdk/lib/esql/libifgen.a: 0654-200 Cannot open the
> specified file.
> nm: No such file or directory
> nm: /informix/clientsdk/lib/esql/libifsql.a: 0654-200 Cannot open the
> specified file.
> nm: No such file or directory
> Error building libdb2informixF.a
> Messages are in file djxlinkInformix.out.
>
> The messages do not lie. The .a files are not there, only .so.
>
> At last I found the directory where the output is created (pretty
> nonstandard, why not ., $HOME, /tmp? lib might not even be writeable!)
>
> # cat $HOME/sqllib/lib/*.out
> BEGIN INFORMIX PROCESSING
>
> ld: 0706-006 Cannot find or open library file: -l ifasf
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifgen
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifgls
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifglx
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifos
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifsql
> ldpen(): No such file or directory
> ld: 0706-006 Cannot find or open library file: -l ifxa
> ldpen(): No such file or directory
> ld: 0706-005 Cannot find or open file: /informix/clientsdk/lib/netstub.a
> ldpen(): No such file or directory
> ld: 0706-005 Cannot find or open file:
> /informix/clientsdk/lib/esql/checkapi.o
> ldpen(): No such file or directory
> Error building libdb2informixF.a
> END INFORMIX PROCESSING
>
> Any ideas where to get these libraries or what else to do?
>
> Thanks
>
> Joachim Banzhaf
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:59 PM
Joachim Banzhaf
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Aakash Bordia wrote:

> I am trying to find out the answer for your question, please hold on. In
> the meanwhile, what is in your db2dj.ini file. Is it something like:
> INFORMIXDIR=/informix
> INFORMIXSERVER=inf93
>
> Thanks
> Aakash


Hi Aakash,

I did not find a reference that I have to change it, so I did not touch
db2dj.ini until now. If no tool (e.g. db2cc) touches the file behind the
scenes, it contains what is in by default, after installation of db2 (or
creation of the instance). Since at the time of instance creation the
informix client wasn't installed yet, but a slightly older informix server
I guess it does not contain valid settings.
But I do set those variables via ~/.profile for the instance owner and root.
They contain

INFORMIXDIR=/informix/clientsdk
INFORMIXSERVER=mysrv

In addition I set INFORMIXSQLHOSTS=/informix/clientsdk/etc/sqlhosts.db2
and of course PATH=$INFORMIXDIR/bin:$PATH (all exported)

I'm sorry, I can't give you the contents of db2dj.ini because I cannot acces
the server right now.

Meanwhile: thanks for trying

Joachim Banzhaf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 03:59 PM
Joachim Banzhaf
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Some additions:

I did some digging in the docs about db2dj.ini:
It should have the correct entries for the informix server, since the
informix server was installed at time of instance creation/db2
installation.
But I got the same error messages with the informix server. That was what
made me install the informix client sdk...

By the way, I tested the informix server config with dbaccess to see if
everything is configured correctly on the informix side. What would you
suggest to use to test the configuration of the informix client (I found no
dbacces or anything else I could use for this)

Thanks again,

Joachim Banzhaf

I wrote:

> Aakash Bordia wrote:
>
>> I am trying to find out the answer for your question, please hold on. In
>> the meanwhile, what is in your db2dj.ini file. Is it something like:
>> INFORMIXDIR=/informix
>> INFORMIXSERVER=inf93
>>
>> Thanks
>> Aakash

>
> Hi Aakash,
>
> I did not find a reference that I have to change it, so I did not touch
> db2dj.ini until now. If no tool (e.g. db2cc) touches the file behind the
> scenes, it contains what is in by default, after installation of db2 (or
> creation of the instance). Since at the time of instance creation the
> informix client wasn't installed yet, but a slightly older informix server
> I guess it does not contain valid settings.
> But I do set those variables via ~/.profile for the instance owner and
> root. They contain
>
> INFORMIXDIR=/informix/clientsdk
> INFORMIXSERVER=mysrv
>
> In addition I set INFORMIXSQLHOSTS=/informix/clientsdk/etc/sqlhosts.db2
> and of course PATH=$INFORMIXDIR/bin:$PATH (all exported)
>
> I'm sorry, I can't give you the contents of db2dj.ini because I cannot
> acces the server right now.
>
> Meanwhile: thanks for trying
>
> Joachim Banzhaf


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 03:59 PM
Aakash Bordia
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Here is what I got from one buddy:

"I think the Informix CSDK is not installed on the server, so installing it
will solve the problem. If CSDK is installed correctly, there are always .a
files under the lib or lib/esql directory. I guess Informix IConnect, which
is bundled with IDS, is installed on the server.

When it is installed, there are many .so files under the lib or lib/esql
directory, but these are not sufficient to run djxlinkInformix. In this
case, you might be able to get CSDK version by bin/esqlvars command, but
this does not mean CSDK is installed."

Also, did you try accessing the server from the client side using the
command line access of Informix? I dont know what that would be , but I am
talking about the equivalent of DB2 CLP.

Thanks
Aakash

"Joachim Banzhaf" <jbanzhaf@ngi.de> wrote in message
news:7n1q71-g6n.ln1@banzhaf.dnsalias.net...
> Some additions:
>
> I did some digging in the docs about db2dj.ini:
> It should have the correct entries for the informix server, since the
> informix server was installed at time of instance creation/db2
> installation.
> But I got the same error messages with the informix server. That was what
> made me install the informix client sdk...
>
> By the way, I tested the informix server config with dbaccess to see if
> everything is configured correctly on the informix side. What would you
> suggest to use to test the configuration of the informix client (I found

no
> dbacces or anything else I could use for this)
>
> Thanks again,
>
> Joachim Banzhaf
>
> I wrote:
>
> > Aakash Bordia wrote:
> >
> >> I am trying to find out the answer for your question, please hold on.

In
> >> the meanwhile, what is in your db2dj.ini file. Is it something like:
> >> INFORMIXDIR=/informix
> >> INFORMIXSERVER=inf93
> >>
> >> Thanks
> >> Aakash

> >
> > Hi Aakash,
> >
> > I did not find a reference that I have to change it, so I did not touch
> > db2dj.ini until now. If no tool (e.g. db2cc) touches the file behind the
> > scenes, it contains what is in by default, after installation of db2 (or
> > creation of the instance). Since at the time of instance creation the
> > informix client wasn't installed yet, but a slightly older informix

server
> > I guess it does not contain valid settings.
> > But I do set those variables via ~/.profile for the instance owner and
> > root. They contain
> >
> > INFORMIXDIR=/informix/clientsdk
> > INFORMIXSERVER=mysrv
> >
> > In addition I set INFORMIXSQLHOSTS=/informix/clientsdk/etc/sqlhosts.db2
> > and of course PATH=$INFORMIXDIR/bin:$PATH (all exported)
> >
> > I'm sorry, I can't give you the contents of db2dj.ini because I cannot
> > acces the server right now.
> >
> > Meanwhile: thanks for trying
> >
> > Joachim Banzhaf

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 03:59 PM
Joachim Banzhaf
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Hi Aakash,

Aakash Bordia wrote:

> Here is what I got from one buddy:
>
> "I think the Informix CSDK is not installed on the server, so installing
> it will solve the problem. If CSDK is installed correctly, there are
> always .a files under the lib or lib/esql directory. I guess Informix
> IConnect, which is bundled with IDS, is installed on the server.


I will have to check that again.
There was a pure informix server installation first.
Then - after I got these errors - I asked the system admin to install the
informix sdk. He reported he has it downloaded and installed (in a
different directory than the server). But only some odbc related .a files
where installed. Everything else .so-only :-(.

> When it is installed, there are many .so files under the lib or lib/esql
> directory, but these are not sufficient to run djxlinkInformix. In this
> case, you might be able to get CSDK version by bin/esqlvars command, but
> this does not mean CSDK is installed."


Could you please point me to the right client sdk download? (AIX 4.3 32bit)
How do I verify what really is installed. What else is this command good
for???

> Also, did you try accessing the server from the client side using the
> command line access of Informix? I dont know what that would be , but I am
> talking about the equivalent of DB2 CLP.


I did verify that in the first scenario (informix server, on same machine as
the db2 server, with dbaccess tool without csdk acting as client to an
informix server on another machine). It worked fine. I'd be glad I knew
what the equivalent would be in a client installation. dbacces is not part
of it - at least not on my system.
I wouldn't even be afraid of writing a small sample c program for that
purpose. But I have a feeling that it would not link ;-)

Thanks,

Joachim Banzhaf

> Thanks
> Aakash
>
> "Joachim Banzhaf" <jbanzhaf@ngi.de> wrote in message
> news:7n1q71-g6n.ln1@banzhaf.dnsalias.net...
>> Some additions:
>>
>> I did some digging in the docs about db2dj.ini:
>> It should have the correct entries for the informix server, since the
>> informix server was installed at time of instance creation/db2
>> installation.
>> But I got the same error messages with the informix server. That was what
>> made me install the informix client sdk...
>>
>> By the way, I tested the informix server config with dbaccess to see if
>> everything is configured correctly on the informix side. What would you
>> suggest to use to test the configuration of the informix client (I found

> no
>> dbacces or anything else I could use for this)
>>
>> Thanks again,
>>
>> Joachim Banzhaf
>>
>> I wrote:
>>
>> > Aakash Bordia wrote:
>> >
>> >> I am trying to find out the answer for your question, please hold on.

> In
>> >> the meanwhile, what is in your db2dj.ini file. Is it something like:
>> >> INFORMIXDIR=/informix
>> >> INFORMIXSERVER=inf93
>> >>
>> >> Thanks
>> >> Aakash
>> >
>> > Hi Aakash,
>> >
>> > I did not find a reference that I have to change it, so I did not touch
>> > db2dj.ini until now. If no tool (e.g. db2cc) touches the file behind
>> > the scenes, it contains what is in by default, after installation of
>> > db2 (or creation of the instance). Since at the time of instance
>> > creation the informix client wasn't installed yet, but a slightly older
>> > informix

> server
>> > I guess it does not contain valid settings.
>> > But I do set those variables via ~/.profile for the instance owner and
>> > root. They contain
>> >
>> > INFORMIXDIR=/informix/clientsdk
>> > INFORMIXSERVER=mysrv
>> >
>> > In addition I set INFORMIXSQLHOSTS=/informix/clientsdk/etc/sqlhosts.db2
>> > and of course PATH=$INFORMIXDIR/bin:$PATH (all exported)
>> >
>> > I'm sorry, I can't give you the contents of db2dj.ini because I cannot
>> > acces the server right now.
>> >
>> > Meanwhile: thanks for trying
>> >
>> > Joachim Banzhaf

>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 04:00 PM
Kenro Yamagata
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Hi Joachim,

Joachim Banzhaf <jbanzhaf@ngi.de> wrote in message:
> Could you please point me to the right client sdk download? (AIX 4.3 32bit)

You can get the informations of Informix Client SDK at following url.
http://www-3.ibm.com/software/data/informix/tools/csdk/
The latest version for AIX4.3 32bit is CSDK 2.81.UC2.

> How do I verify what really is installed. What else is this command good
> for???

When Informix CSDK is installed, there is esql command under bin directory.
This is the precompiler which compiles the Embeded SQL files(.ec) to C source
files. You can get the CSDK version by 'esql -V'.

> I did verify that in the first scenario (informix server, on same machine as
> the db2 server, with dbaccess tool without csdk acting as client to an
> informix server on another machine). It worked fine. I'd be glad I knew
> what the equivalent would be in a client installation. dbacces is not part
> of it - at least not on my system.

Unfortunately, there is no tools which comunicates with servers interactively
in Informix CSDK as long as I know. We probably need to write a small
program.

Thanks,
Kenro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 04:00 PM
Joachim Banzhaf
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

Hi Kenro,

Kenro Yamagata wrote:

> Hi Joachim,
>
> Joachim Banzhaf <jbanzhaf@ngi.de> wrote in message:
>> Could you please point me to the right client sdk download? (AIX 4.3
>> 32bit)

> You can get the informations of Informix Client SDK at following url.
> http://www-3.ibm.com/software/data/informix/tools/csdk/
> The latest version for AIX4.3 32bit is CSDK 2.81.UC2.
>
>> How do I verify what really is installed. What else is this command good
>> for???

> When Informix CSDK is installed, there is esql command under bin
> directory. This is the precompiler which compiles the Embeded SQL
> files(.ec) to C source
> files. You can get the CSDK version by 'esql -V'.
>
>> I did verify that in the first scenario (informix server, on same machine
>> as the db2 server, with dbaccess tool without csdk acting as client to an
>> informix server on another machine). It worked fine. I'd be glad I knew
>> what the equivalent would be in a client installation. dbacces is not
>> part of it - at least not on my system.

> Unfortunately, there is no tools which comunicates with servers
> interactively
> in Informix CSDK as long as I know. We probably need to write a small
> program.
>
> Thanks,
> Kenro


That gives me something to work on - thanks.
I'll let you know what happened.

Joachim Banzhaf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 04:10 PM
Joachim Banzhaf
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

<veröffentlicht & per Mail versendet>

Joachim Banzhaf wrote:

> Hi Kenro,
>
> Kenro Yamagata wrote:
>
>> Hi Joachim,
>>
>> Joachim Banzhaf <jbanzhaf@ngi.de> wrote in message:
>>> Could you please point me to the right client sdk download? (AIX 4.3
>>> 32bit)

>> You can get the informations of Informix Client SDK at following url.
>> http://www-3.ibm.com/software/data/informix/tools/csdk/
>> The latest version for AIX4.3 32bit is CSDK 2.81.UC2.
>>
>>> How do I verify what really is installed. What else is this command good
>>> for???

>> When Informix CSDK is installed, there is esql command under bin
>> directory. This is the precompiler which compiles the Embeded SQL
>> files(.ec) to C source
>> files. You can get the CSDK version by 'esql -V'.
>>
>>> I did verify that in the first scenario (informix server, on same
>>> machine as the db2 server, with dbaccess tool without csdk acting as
>>> client to an informix server on another machine). It worked fine. I'd be
>>> glad I knew what the equivalent would be in a client installation.
>>> dbacces is not part of it - at least not on my system.

>> Unfortunately, there is no tools which comunicates with servers
>> interactively
>> in Informix CSDK as long as I know. We probably need to write a small
>> program.
>>
>> Thanks,
>> Kenro

>
> That gives me something to work on - thanks.
> I'll let you know what happened.
>
> Joachim Banzhaf


And now here is what happened:
A fresh informix client sdk install gave me the libraries.
I would really like to know what happened to the first install!

Not surprising then, executed djxlink as root succeeded:
# djxlink
../djxlinkInformix:
libdb2informixF.a built successfully.

But on the very next step a new problem comes up:
db2inst1$ db2 "create wrapper informix library 'libdb2informixF.a'"
DB21034E Der Befehl wurde als SQL-Anweisung verarbeitet, da es sich um
keinen
gültigen Befehl des Befehlszeilenprozessors handelte. Während der
SQL-Verarbeitung wurde Folgendes ausgegeben:
SQL10010N Die angegebene Bibliothek "libdb2informixF.a" wurde geladen, die
Funktion "UnfencedWrapper_Hook" konnte jedoch nicht ausgeführt werden.
SQLSTATE=42724

appending "options(add db2_fenced 'Y')" like suggested by db2cc did not
help.

I am out of options - again.
Any help appreciated.

Joachim Banzhaf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-26-2008, 04:11 PM
Aakash
 
Posts: n/a
Default Re: Federated Informix - how to djxlink?

I would again recommend you to look at your db2dj.ini file. since you
installed a new client etc.
Thanks
Aakash
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433