| Message: 55996 |
 |
BY: Chris Evans (cevans111) DATE: 2008-05-16 19:39 SUBJECT: RE: Error connecting Here's my full irb session:
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ibm_db'
=> true
irb(main):003:0> conn=IBM_DB::connect('DRIVER={IBM DB2 ODBC DRIVER};DATABASE=SAMPLE;HOSTNAME=localhost;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=secret;','','')
=> false
irb(main):004:0> puts conn
false
=> nil
irb(main):005:0> puts IBM_DB::conn_errormsg
=> nil
irb(main):006:0>quit
Is it possible something in my environment isn't set up correctly? The only change I made to use the new DB2 CLI was setting the LD_LIBRARY_PATH
| |