Re: Connect DB2 from Solaris
Volker Jordan <v_jordan@web.de> writes:
[color=blue]
> Now when I try to set up a connection thru the db2 cli I always get an
> error which says, that there is a license problem. Do I have to buy the
> DB2 connect for iSeries only to connect to the DB2 via perl?[/color]
I believe that the native driver requires this.
I also believe that the Java driver in the Java Toolbox (search for
jt400 if this is intereting for you) does not require this, but I
cannot find it now.
--
Thorbjørn Ravn Andersen
Re: Connect DB2 from Solaris
On Thu, 06 Sep 2007 19:53:27 +0200, Volker Jordan wrote:[color=blue]
> Hi NG,
>
> I want to connect an AS400/DB2 from a solaris workstation using perl.
>
> So I downloaded the solaris db2 client and installed it.
>
> Then I downloaded the DBI::DB2 perl module, compiled it and installed it.
>
> Now when I try to set up a connection thru the db2 cli I always get an
> error which says, that there is a license problem. Do I have to buy the
> DB2 connect for iSeries only to connect to the DB2 via perl?[/color]
You'll need to build against the DB2 libraries in the sqllib directory
from some installation of a DB2 client. I don't think it's particularly
fussy about which. I've had luck with full DB2 installs and just
Connect. See [url]http://www-306.ibm.com/software/data/db2/perl/[/url] for
instructions on building DBI::DB2.
--
6. I will not gloat over my enemies' predicament before killing them.
--Peter Anspach's list of things to do as an Evil Overlord
Re: Connect DB2 from Solaris
Am Thu, 06 Sep 2007 20:28:42 +0200 schrieb Thorbjoern Ravn Andersen:
[color=blue]
> Volker Jordan <v_jordan@web.de> writes:
>[color=green]
>> Now when I try to set up a connection thru the db2 cli I always get an
>> error which says, that there is a license problem. Do I have to buy the
>> DB2 connect for iSeries only to connect to the DB2 via perl?[/color]
>
> I believe that the native driver requires this.
>
> I also believe that the Java driver in the Java Toolbox (search for
> jt400 if this is intereting for you) does not require this, but I
> cannot find it now.[/color]
I already use this driver for my J2EE apps, but I now need a perl
connection.
Re: Connect DB2 from Solaris
Am Thu, 06 Sep 2007 16:26:29 -0500 schrieb Peter H. Coffin:
[color=blue]
> You'll need to build against the DB2 libraries in the sqllib directory
> from some installation of a DB2 client. I don't think it's particularly
> fussy about which. I've had luck with full DB2 installs and just
> Connect. See [url]http://www-306.ibm.com/software/data/db2/perl/[/url] for
> instructions on building DBI::DB2.[/color]
and you dont have a special license on the AS400 or the workstation?
Re: Connect DB2 from Solaris
On Fri, 07 Sep 2007 08:22:57 +0200, Volker Jordan wrote:[color=blue]
> Am Thu, 06 Sep 2007 16:26:29 -0500 schrieb Peter H. Coffin:
>[color=green]
>> You'll need to build against the DB2 libraries in the sqllib directory
>> from some installation of a DB2 client. I don't think it's particularly
>> fussy about which. I've had luck with full DB2 installs and just
>> Connect. See [url]http://www-306.ibm.com/software/data/db2/perl/[/url] for
>> instructions on building DBI::DB2.[/color]
>
> and you dont have a special license on the AS400 or the workstation?[/color]
I believe the special license for the workstation is implicit in the the
DB2 installation you're building the perl against. It's not like you can
pick up the compiled DBI::DB2 bits and move them to a machine that
doesn't have DB2 installed on it, and expect it to work.
I'm also pretty sure that the AS/400 licensing is taken care of by
having DB2 for iSeries installed. But I'm sure there's far more
knowleable people with regard to licensing issues than I. I just write
programs on and around AS/400s, I don't administrate them.
--
6. I will not gloat over my enemies' predicament before killing them.
--Peter Anspach's list of things to do as an Evil Overlord