| Message: 55974 |
 |
BY: Chris Evans (cevans111) DATE: 2008-05-16 18:31 SUBJECT: RE: Error connecting No luck. This is my db2cli.ini:
; Comment lines start with a semi-colon.
[tstcli1x]
uid=userid
pwd=password
autocommit=0
TableType="'TABLE','VIEW','SYSTEM TABLE'"
[tstcli2x]
; Assuming dbalias2 is a database in DB2 for MVS.
SchemaList="'OWNER1','OWNER2',CURRENT SQLID"
[MyVeryLongDBALIASName]
dbalias=dbalias3
SysSchema=MYSCHEMA
[COMMON]
Trace=1
TraceFileName=/tmp/db29trace.txt
TraceComm=1
TraceFlush=1
TraceTimeStamp=1
TraceScript=1
when I run my test script, no trace file is created. No trace file is created when I run the following, either:
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ibm_db'
=> true
irb(main):003:0> puts IBM_DB::connect("SAMPLE","db2inst1","xxxxx")
false
=> nil
Even if I give it a bogus DB name or username, no error is output, so I don't think the client library is getting called at all. | |