Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 60696
BY: Praveen Devarao (praveend)
DATE: 2008-09-24 12:02
SUBJECT: RE: Connection fails with no Error Msg

 

Hi Steven,

Thanks for writing. First of all let me tell you that the ibm_db driver talks to DB2 through CLI, which is an implementation of ODBC. Hence this is different from JDBC, using which you connected to the database successfully.

Coming to the problem that you are facing. Your DB2INSTANCE environment(env) variable is not set properly, this can be made out from the error message,[SQL10007N Message "-1390" could not be retrieved. Reason code: "3"]. To solve this set the env variable DB2INSTANCE to the appropriate instance.
export DB2INSTANCE=<your_instance_name>

To get the list of instances on your machine issue the command db2ilist and set the DB2INSTANCE variable to the appropriate value.

Let me know if this solves the problem.

Thanks,

Praveen


Thread View

Thread Author Date
Connection fails with no Error MsgSteven Hansen2008-09-24 00:08
      RE: Connection fails with no Error MsgSteven Hansen2008-09-24 00:10
            RE: Connection fails with no Error MsgPraveen Devarao2008-09-24 12:02
                  RE: Connection fails with no Error MsgSteven Hansen2008-09-24 14:22
                        RE: Connection fails with no Error MsgSteven Hansen2008-09-24 14:37
                              RE: Connection fails with no Error MsgAlex Pitigoi2008-09-24 14:58
                              RE: Connection fails with no Error MsgPraveen Devarao2008-09-24 15:00
                                    RE: Connection fails with no Error MsgAlex Pitigoi2008-09-24 15:31
                                          RE: Connection fails with no Error MsgSteven Hansen2008-09-24 19:16
                                                RE: Connection fails with no Error MsgSteven Hansen2008-09-24 19:19
                                                RE: Connection fails with no Error MsgAlex Pitigoi2008-09-24 19:35
                                                      RE: Connection fails with no Error MsgSteven Hansen2008-09-24 19:52
                                                            RE: Connection fails with no Error MsgAlex Pitigoi2008-09-24 20:33
                                                                  RE: Connection fails with no Error MsgSteven Hansen2008-09-25 06:13
                                                                        RE: Connection fails with no Error MsgAlex Pitigoi2008-09-25 13:02
                                                                              RE: Connection fails with no Error MsgPraveen Devarao2008-09-25 17:03
                                                                                    RE: Connection fails with no Error MsgSteven Hansen2008-10-07 20:38
                                                                                          RE: Connection fails with no Error MsgPraveen Devarao2008-10-08 05:21

Post a followup to this message