in reply to using DBD:DB2 with perl on DB2 for windows

DB2 requires certain environment variables to be set (one is DB2INSTANCE I think but there may be more).

You can either set them in the shell where you launch your script (how you do that depends on the shell - I think it is "SET <variable>=<value>" in cmd.exe) or you set them in a BEGIN-block in your script ($ENV{DB2INSTANCE}=<whatever>").

Which variables to set to which value depends on your installation - best to ask your DBA.

  • Comment on Re: using DBD:DB2 with perl on DB2 for windows

Replies are listed 'Best First'.
Re^2: using DBD:DB2 with perl on DB2 for windows
by omer2312 (Initiate) on Oct 16, 2010 at 10:43 UTC

    Thanks for the reply.

    the thing is, i'm able to connect to DB2 through its users interface with no problem..

    and i can't find any reference to the enviornment varibales necessary.

    i'm not sure that the enviornment variables are the issue in this case..

    does anyone have any experience with this?