Re: Problem with remotely connecting to db2 database using perl CGI

2002-10-18 Thread Limei Zhang
Thanks very much. I tried your suggestion and it works On 10/17/02 9:58 PM, "Swen Schillig" <[EMAIL PROTECTED]> wrote: > Michael > > Did you setup your DB2INSTANCE variable properly with > SetEnv DB2INSTANCE db2inst1 > in the httpd.conf file ? > Maybe the remote database belongs to another i

Re: Problem with remotely connecting to db2 database using perl CGI

2002-10-18 Thread Michael A Chase
On Thu, 17 Oct 2002 17:18:46 -0700 Limei Zhang <[EMAIL PROTECTED]> wrote: > Hi, there, > I am using DB2 UDB workgroup 7.2 on linux redhat 7.3, DBD-DB2 0.73 DBI > 1.30 Perl 5. > > I have no problem to connect to database by runnig the perl program > containing the following code in a command lin

Problem with remotely connecting to db2 database using perl CGI

2002-10-18 Thread Limei Zhang
Hi, there, I am using DB2 UDB workgroup 7.2 on linux redhat 7.3, DBD-DB2 0.73 DBI 1.30 Perl 5. I have no problem to connect to database by runnig the perl program containing the following code in a command line: .. my $dbh = DBI->connect("dbi:DB2:$mydatabase", "$user", "$password"); . H

Re: Problem with remotely connecting to db2 database using perl CGI

2002-10-18 Thread Swen Schillig
Michael Did you setup your DB2INSTANCE variable properly with SetEnv DB2INSTANCE db2inst1 in the httpd.conf file ? Maybe the remote database belongs to another instance !? Swen