Received: from punt.demon.co.uk by oink with SMTP (PP) id <21811-5@oink>;
          Wed, 23 Oct 1996 02:06:32 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846031624:04050:3; Wed, 23 Oct 96 01:47:04 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03885; 23 Oct 96 1:46 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA06780 for dbi-users-real; Tue, 22 Oct 1996 13:04:52 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from pentium90. (pentium90.mojoski.com [168.121.255.75]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA06776 
          for <dbi-users@fugue.com>; Tue, 22 Oct 1996 13:04:36 -0700 (PDT)
Received: from pentium90 by pentium90. (SMI-8.6/SMI-SVR4) id QAA00384;
          Tue, 22 Oct 1996 16:04:00 -0400
Message-ID: <326D28B0.4E90@infoman.com>
Date: Tue, 22 Oct 1996 16:04:00 -0400
From: Del Simmons <del@infoman.com>
Organization: del@infoman.com
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 i86pc)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: descarte@hermetica.com
Subject: DBD Informix install problem... Help!
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,
  I'm new to DBI so this is probably something stupid I am doing. 
Please forgive me if it is.

I have a UltraSparc running Sol 2.5.1 and Perl 5.003 and when I try to
install DBD Informix I am getting some strange errors.

The DBI install seemed to go well, only a few warnings.. test and
install completed with no errors..

I'm using gcc to compile it. I have Informix Online Dynamic Server
installed in /illustra/informix .. (long story.. :-)

"onstat" reports :   INFORMIX-OnLine Version 7.20.UC2
ESQL/C appears to be version 7.2 also (that's what the manual says...)


Here is what happens:

----------------------------------------------------------

# make realclean
rm -rf Informix.c ./blib Makefile.aperl
./blib/arch/auto/DBD/Informix/extralibs.all perlmain.c mon.out core
so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe Informix.bs
Informix.bso Informix.def Informix.exp
mv Makefile Makefile.old 2>/dev/null
rm -rf ./blib/lib/auto/DBD/Informix ./blib/arch/auto/DBD/Informix
rm -f ./blib/arch/auto/DBD/Informix/Informix.so
./blib/arch/auto/DBD/Informix/Informix.bs
rm -f ./blib/arch/auto/DBD/Informix/Informix.a
rm -f ./blib/lib/DBD/Informix.pm
rm -rf Makefile Makefile.old

everything is fine here..  hehe
----------------------------------------------------------
# perl Makefile.PL

Configuring DBD::Informix version 0.23...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] 7
Using Informix version 7 in /illustra/informix
Informix sysliblist: -L/illustra/informix/lib
-L/illustra/informix/lib/esql -lsql -lasf -lgen -los -lm
System: perl5.003 sunos pez 5.5.1 generic sun4u sparc sunw,ultra-1 
sun4-solaris dl_dlopen.xs
Compiler: gcc -O 

Checking if your kit is complete...
Warning: the following files are missing in your kit:
        Makefile
        Makefile.old
Please inform the author.
Writing Makefile for DBD::Informix
----------------------------------------------------------
# make
cp Informix.pm ./blib/lib/DBD/Informix.pm
/usr/bin/perl -I/usr/local/lib/perl5/sun4-solaris/5.003
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/ExtUtils/typemap Informix.xs >Informix.tc && mv
Informix.tc Informix.c
Please specify prototyping behavior for Informix.xs (see perlxs manual)
gcc -c -I/illustra/informix/incl/esql
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI  -O   
-DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fpic
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic
-Wno-comment -Wpointer-arith -Wcast-align -Wconversion -Wtraditional
-Wpointer-arith -Wcast-qual Informix.c
Informix.c: In function `XS_DBD__Informix__dr__ListDBs':
Informix.c:86: warning: implicit declaration of function `sqgetdbs'
Informix.c:91: warning: ANSI C forbids braced-groups within expressions
Informix.c:78: warning: unused variable `drh'
Informix.c: In function `XS_DBD__Informix__db__login':
Informix.c:111: warning: implicit declaration of function `dbd_db_login'
Informix.c: In function `XS_DBD__Informix__db_commit':
Informix.c:123: warning: implicit declaration of function
`dbd_db_commit'
Informix.c: In function `XS_DBD__Informix__db_rollback':
Informix.c:135: warning: implicit declaration of function
`dbd_db_rollback'
Informix.c: In function `XS_DBD__Informix__db_STORE':
Informix.c:149: warning: implicit declaration of function `dbd_db_STORE'
Informix.c: In function `XS_DBD__Informix__db_FETCH':
Informix.c:167: warning: implicit declaration of function `dbd_db_FETCH'
Informix.c:167: warning: initialization makes pointer from integer
without a cast
Informix.c: In function `XS_DBD__Informix__db_disconnect':
Informix.c:189: warning: ANSI C forbids braced-groups within expressions
Informix.c:196: warning: int format, I32 arg (arg 3)
Informix.c:198: warning: implicit declaration of function
`dbd_db_disconnect'
Informix.c: In function `XS_DBD__Informix__db_DESTROY':
Informix.c:221: warning: function `dbd_db_disconnect' was previously
declared within a block
Informix.c:223: warning: implicit declaration of function
`dbd_db_destroy'
Informix.c: In function `XS_DBD__Informix__st__prepare':
Informix.c:236: warning: implicit declaration of function
`dbd_st_prepare'
Informix.c: In function `XS_DBD__Informix__st_rows':
Informix.c:248: warning: unused variable `imp_sth'
Informix.c: In function `XS_DBD__Informix__st_execute':
Informix.c:267: warning: ANSI C forbids braced-groups within expressions
Informix.c:275: warning: ANSI C forbids braced-groups within expressions
Informix.c: In function `XS_DBD__Informix__st_fetchrow':
Informix.c:321: warning: ANSI C forbids braced-groups within expressions
Informix.c: In function `XS_DBD__Informix__st_readblob':
Informix.c:358: warning: implicit declaration of function
`dbd_st_readblob'
Informix.c:358: warning: assignment makes pointer from integer without a
cast
Informix.c: In function `XS_DBD__Informix__st_STORE':
Informix.c:372: warning: implicit declaration of function `dbd_st_STORE'
Informix.c: In function `XS_DBD__Informix__st_FETCH':
Informix.c:390: warning: implicit declaration of function `dbd_st_FETCH'
Informix.c:390: warning: initialization makes pointer from integer
without a cast
Informix.c: In function `XS_DBD__Informix__st_finish':
Informix.c:414: warning: ANSI C forbids braced-groups within expressions
Informix.c:419: warning: ANSI C forbids braced-groups within expressions
Informix.c:421: warning: implicit declaration of function
`dbd_st_finish'
Informix.c: In function `XS_DBD__Informix__st_DESTROY':
Informix.c:445: warning: function `dbd_st_finish' was previously
declared within a block
Informix.c:447: warning: implicit declaration of function
`dbd_st_destroy'
Informix.c: In function `boot_DBD__Informix':
Informix.c:460: warning: ANSI C forbids braced-groups within expressions
gcc -c -I/illustra/informix/incl/esql
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI  -O   
-DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fpic
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic
-Wno-comment -Wpointer-arith -Wcast-align -Wconversion -Wtraditional
-Wpointer-arith -Wcast-qual dbdimp.c
dbdimp.ec: In function `dbd_db_login':
dbdimp.ec:113: warning: unused variable `ret'
dbdimp.ec: In function `dbd_db_commit':
dbdimp.ec:141: warning: unused variable `imp_dbh'
dbdimp.ec: In function `dbd_db_rollback':
dbdimp.ec:149: warning: unused variable `imp_dbh'
dbdimp.ec: In function `dbd_db_STORE':
dbdimp.ec:192: warning: unused variable `on'
dbdimp.ec:188: warning: unused variable `imp_dbh'
dbdimp.ec: In function `dbd_db_FETCH':
dbdimp.ec:226: warning: value computed is not used
dbdimp.ec:227: warning: value computed is not used
dbdimp.ec:217: warning: unused variable `i'
dbdimp.ec:214: warning: unused variable `imp_dbh'
dbdimp.ec: In function `dbd_st_prepare':
dbdimp.ec:322: warning: cast discards `const' from pointer target type
dbdimp.ec:327: warning: cast discards `const' from pointer target type
dbdimp.ec:338: warning: cast discards `const' from pointer target type
dbdimp.ec:339: warning: cast discards `const' from pointer target type
dbdimp.ec:339: warning: cast discards `const' from pointer target type
dbdimp.ec:339: warning: cast discards `const' from pointer target type
dbdimp.ec:341: warning: cast discards `const' from pointer target type
dbdimp.ec:342: warning: cast discards `const' from pointer target type
dbdimp.ec:262: warning: unused variable `inside_quote'
dbdimp.ec:260: warning: unused variable `imp_dbh'
dbdimp.ec: In function `dbd_describe':
dbdimp.ec:537: warning: int format, pointer arg (arg 3)
dbdimp.ec:564: warning: cast discards `const' from pointer target type
dbdimp.ec:591: warning: overflow in implicit constant conversion
dbdimp.ec:590: warning: pointer targets in passing arg 1 of `strcpy'
differ in signedness
dbdimp.ec:504: warning: unused variable `loop'
dbdimp.ec:502: warning: unused variable `desc_count'
dbdimp.ec:501: warning: unused variable `demodesc'
dbdimp.ec:500: warning: unused variable `fp'
dbdimp.ec:499: warning: unused variable `length'
dbdimp.ec: In function `dbd_st_readblob':
dbdimp.ec:685: warning: ANSI C forbids braced-groups within expressions
dbdimp.ec:667: warning: unused variable `imp_sth'
dbdimp.ec:668: warning: `retl' might be used uninitialized in this
function
dbdimp.ec: In function `dbd_st_FETCH':
dbdimp.ec:787: warning: pointer targets in passing arg 1 of
`Perl_newSVpv' differ in signedness
dbdimp.ec:793: warning: value computed is not used
Running Mkbootstrap for DBD::Informix ()
chmod 644 Informix.bs
LD_RUN_PATH="/illustra/informix/lib/esql:/illustra/informix/lib:/lib"
gcc -o blib/arch/auto/DBD/Informix/Informix.so -G -L/usr/lib Informix.o
dbdimp.o dbdimp.o -L/illustra/informix/lib -L/illustra/informix/lib
-R/illustra/informix/lib -L/illustra/informix/lib/esql
-R/illustra/informix/lib/esql   -L/illustra/informix/lib
-L/illustra/informix/lib/esql -lsql -lasf -lgen -los -lm 
ld: warning: file dbdimp.o: attempted multiple inclusion of file
chmod 755 blib/arch/auto/DBD/Informix/Informix.so
cp Informix.bs ./blib/arch/auto/DBD/Informix/Informix.bs
chmod 644 blib/arch/auto/DBD/Informix/Informix.bs

----------------------------------------------------------
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
install_driver(Informix) failed: Can't load
'./blib/arch/auto/DBD/Informix/Informix.so' for module DBD::Informix:
ld.so.1: /usr/bin/perl: fatal: relocation error: symbol not found:
gl_full_mbscat: referenced in ./blib/arch/auto/DBD/Informix/Informix.so
at /usr/local/lib/perl5/DynaLoader.pm line 140.

 at blib/lib/DBD/Informix.pm line 18
        DBI::install_driver called at test.pl line 10
Testing: DBI->install_driver( 'Informix' ): make: *** [test_dynamic]
Error 2

----------------------------------------------------------
Here is my perl info...

$ perl -e 'use Config; print Config::myconfig()'
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos pez 5.5.1 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags=''
    ccflags =''
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags ='-L/usr/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/lib'

----------------------------------------------------------


Any ideas you guys have would be greatly appreciated! I think I am
subscribed to the
list now so I should get your replies

Del Simmons
del@infoman.com
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22810-9@oink>;
          Wed, 23 Oct 1996 07:36:15 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846037457:21804:0; Wed, 23 Oct 96 03:24:17 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21617; 23 Oct 96 3:23 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA07591 for dbi-users-real; Tue, 22 Oct 1996 16:58:48 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id QAA07587 
          for <dbi-users@fugue.com>; Tue, 22 Oct 1996 16:58:46 -0700 (PDT)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id aa10138;
          23 Oct 96 0:58 BST
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa05860; 23 Oct 96 0:58 BST
Received: from toad by oink with SMTP (PP) id <20945-0@oink>;
          Wed, 23 Oct 1996 00:56:54 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04510;
          Wed, 23 Oct 1996 00:56:28 +0000
Date: Wed, 23 Oct 1996 00:56:28 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610222356.AA04510@toad.ig.co.uk>
To: dbi-users@fugue.com, berli@switch.ch
Subject: Re: Have you read README.login
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Martin Berli <berli@switch.ch>
> 
>  $dbuser = 'scott/tiger@lim1';
> 
> But it still gives the same error:
> 
>  ora_login: 1019: ORA-01019: unable to allocate memory in the user side
> 
> No problem with this:
> 
> > sqlplus scott/tiger@lim1
> 
> Hmmm...just a thought: in the README.clients it says:
> 
> > With recent versions of Oracle (specifically around 7.3) you may be
> > able to build DBD::Oracle without Pro*C installed by using the Oracle
> > supplied oracle.mk file:
> > 
> >         perl Makefile.PL -m $ORACLE_HOME/rdbms/demo/oracle.mk
> > 
> > (The oracle.mk file might also be found in $ORACLE_HOME/rdbms/public/)
> 
> I used the oracle.mk file instead of the one from Pro*C (Pro*C is not
> installed at our site). Could it be that the trouble comes from there?

Possibly.

The ORA-01019 sounds like a configuration or build problem.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22810-11@oink>;
          Wed, 23 Oct 1996 07:36:22 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846037457:21801:10; Wed, 23 Oct 96 03:24:17 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21632; 23 Oct 96 3:23 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA07584 for dbi-users-real; Tue, 22 Oct 1996 16:56:43 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id QAA07580 
          for <dbi-users@fugue.com>; Tue, 22 Oct 1996 16:56:39 -0700 (PDT)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id aa09955;
          23 Oct 96 0:56 BST
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab05469; 23 Oct 96 0:55 BST
Received: from toad by oink with SMTP (PP) id <20892-0@oink>;
          Wed, 23 Oct 1996 00:49:55 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04495;
          Wed, 23 Oct 1996 00:49:37 +0000
Date: Wed, 23 Oct 1996 00:49:37 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610222349.AA04495@toad.ig.co.uk>
To: shundal@thomtech.com
Subject: OraPerl
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


----- Begin Included Message -----

From: Sam Hundal <shundal@thomtech.com>

Tim,

   I am a windows programmer stuck on a UNIX project for two months.
   We need to use OraPerl. I have looked around but couldn't find
   a binary copy of OraPerl. Getting it compiled is a time consuming
   job. 

   We are using Unix system V on SunOS 5.4. Do you know any place where
   I can grab binary versions of OraPerl and Perl.

   It will be a great help. I will be in your debt.

   Thanks sooooooooooooooo much,

   Sam Hundal

----- End Included Message -----

Getting it compiled and installed on Solaris typically takes less
than 5 minutes (once you've got a compiler installed :-).

I don't and won't ship binaries. Others in the dbi-users list might.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22810-22@oink>;
          Wed, 23 Oct 1996 07:37:23 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846042913:07687:6; Wed, 23 Oct 96 04:55:13 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07486; 23 Oct 96 4:54 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id SAA07819 for dbi-users-real; Tue, 22 Oct 1996 18:18:58 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id SAA07808;
          Tue, 22 Oct 1996 18:18:54 -0700 (PDT)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id aa15172;
          23 Oct 96 2:18 BST
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa14351; 23 Oct 96 2:17 BST
Received: from toad by oink with SMTP (PP) id <21889-0@oink>;
          Wed, 23 Oct 1996 02:16:40 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04726;
          Wed, 23 Oct 1996 02:16:28 +0000
Date: Wed, 23 Oct 1996 02:16:28 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610230116.AA04726@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: Announce: DBD-Oracle-0.41 *WITH ROW CACHE*
Cc: dbi-announce@fugue.com, mellon@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

Changes in DBD::Oracle 0.41 (Oraperl 1.30), 22nd Oct 1996

    Added the long overdue row cache to DBD::Oracle.
    (Thanks to Reetnem@aol.com for providing a patch that prompted
    me to complete the work.)
    Oraperl $ora_cache and cache parameter to ora_open now work.
    Default cache size is adjusted automatically for row width.
    Major reworking of field buffer memory management.
    Added a more internal debugging.
    Further updates to the README files.

As a little example of the effectiveness of the cache, a large
script of mine which does lots of large queries across a modem
link now runs 70% faster. (LAN based clients will see an
improvement but generally not _that_ much!)

Although I forgot to add it to the Changes file, I'd classify
this as a beta-level stability release. It should be fine (I've
done quite a lot of testing) but you should always test yourself.

Uploaded to ftp.demon.co.uk as usual. Should arrive on CPAN in
a day or three.

Tim.

p.s. Astute readers of the source might notice that it's taken
a tiny step towards supporting binding entire arrays. No promises.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22810-24@oink>;
          Wed, 23 Oct 1996 07:37:34 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846043044:07991:0; Wed, 23 Oct 96 04:57:24 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07823; 23 Oct 96 4:56 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id SAA07853 for dbi-users-real; Tue, 22 Oct 1996 18:26:13 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.mel.aone.net.au (mail.mel.aone.net.au [203.12.176.157]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id SAA07849 
          for <dbi-users@fugue.com>; Tue, 22 Oct 1996 18:26:07 -0700 (PDT)
Received: from user3 (d79-1.cpe.Brisbane.aone.net.au [203.12.188.79]) 
          by mail.mel.aone.net.au (8.6.13/8.6.11) with SMTP id LAA09072;
          Wed, 23 Oct 1996 11:25:52 +1000
Message-Id: <1.5.4.32.19961023012330.002e2a38@b022.aone.net.au>
X-Sender: ca059589@b022.aone.net.au
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 23 Oct 1996 11:23:30 +1000
To: dbi-users@fugue.com
From: Darren Brechman-Toussaint <dbt@b022.aone.net.au>
Subject: DBD-Oracle-0.35 Installation
Cc: Tim.Bunce@ig.co.uk

Hi all,

Could anyone help me with the install of DBD-Oracle-0.35.

I am getting errors during the "make" of the DBD-Oracle-0.35 after a "make
realclean"

The output received from "perl Makefile.PL" and "make" are at the end of
this message.

Please note that our oracle installation is in
"/u01/home/dba/oracle/product/7.0.16" but the version of oracle is 7.3.2.1.0

The install of perl 5.003 all went fine running all of "make", "make test"
and "make install"
also the install of DBI-0.73 went fine running all of "make", "make test"
and "make install"

Any help would be greatly appreciated

Thanks
Darren Brechman-Toussaint
Security Mailing Services
dbt@b022.aone.net.au

===== Output from "perl Makefile.PL" =====


 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!

Using Oracle in /u01/home/dba/oracle/product/7.0.16
Using /u01/home/dba/oracle/product/7.0.16/precomp/demo/proc/proc.mk
/u01/home/dba/oracle/product/7.0.16/precomp/env_precomp.mk 
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.
System: perl5.003 sunos asterix 5.5 generic sun4d sparc sunw,sparccenter-2000 
Compiler: cc -O -I/usr/local/include
Linker:   /usr/ccs/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS)
$(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib
-R/opt/SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon
-lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl
-lm 

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle

=============================

==== Output from "make" =====

cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
perl -I/opt/perl5.003/lib/sun4-solaris/5.003 -I/opt/perl5.003/lib
/opt/perl5.003/lib/ExtUtils/xsubpp  -typemap
/opt/perl5.003/lib/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc
Oracle.c
cc -c -I. -I/u01/home/dba/oracle/product/7.0.16/precomp/public
-I/u01/home/dba/oracle/product/7.0.16/rdbms/demo
-I/opt/perl5.003/lib/site_perl/sun4-solaris/DBI
-I/opt/perl5.003/lib/sun4-solaris/5.003/DBI -Xc -xstrconst -xcg92 -xF -mr -K
PIC -DSLXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT -xO4     -DVERSION=\"0.35\"
-DXS_VERSION=\"0.35\" -Kpic -I/opt/perl5.003/lib/sun4-solaris/5.003/CORE
Oracle.c
cc: multiple use of -K option, previous one discarded.
"/opt/perl5.003/lib/sun4-solaris/5.003/CORE/perl.h", line 1367: undefined or
not a type: sigjmp_buf
"/opt/perl5.003/lib/sun4-solaris/5.003/CORE/perl.h", line 1367: syntax error
before or at: top_env
"/opt/perl5.003/lib/sun4-solaris/5.003/CORE/perl.h", line 1367: warning:
old-style declaration or incorrect type for: top_env
"Oracle.c", line 144: warning: end-of-loop code not reached
"Oracle.c", line 256: warning: end-of-loop code not reached
"Oracle.c", line 265: warning: end-of-loop code not reached
"Oracle.c", line 305: warning: end-of-loop code not reached
"Oracle.c", line 400: warning: end-of-loop code not reached
"Oracle.c", line 404: warning: end-of-loop code not reached
cc: acomp failed for Oracle.c
*** Error code 2
make: Fatal error: Command failed for target `Oracle.o'

=============================

==== Output from "perl -V" ====

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos asterix 5.5 generic sun4d sparc sunw,sparccenter-2000 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/local/lib'

@INC: /opt/perl5.003/lib/sun4-solaris/5.003 /opt/perl5.003/lib
/opt/perl5.003/lib/site_perl/sun4-solaris /opt/perl5.003/lib/site_perl .

===============================

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24901-15@oink>;
          Wed, 23 Oct 1996 12:14:11 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846066852:11935:21; Wed, 23 Oct 96 11:34:12 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11715; 23 Oct 96 11:33 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA08609 for dbi-users-real; Wed, 23 Oct 1996 00:18:10 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from deimos (deimos.sovam.com [194.67.1.156]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id AAA08605 
          for <dbi-users@fugue.com>; Wed, 23 Oct 1996 00:17:48 -0700 (PDT)
Received: from nike.sovam.com ([194.67.3.241]) by deimos.sovam.com with SMTP 
          id <94416-13492>; Wed, 23 Oct 1996 11:17:10 +0400
Message-ID: <326DC692.625C@online.ru>
Date: Wed, 23 Oct 1996 11:17:39 +0400
From: "Roman L. Podshivalov" <romas@online.ru>
Reply-To: romas@online.ru
Organization: ROL
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com, berli@switch.ch
Subject: Re: Have you read README.login
References: <9610222356.AA04510@toad.ig.co.uk>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Tim Bunce wrote:
> 
> > From: Martin Berli <berli@switch.ch>
> >
> >  $dbuser = 'scott/tiger@lim1';
> >
> > But it still gives the same error:
> >
> >  ora_login: 1019: ORA-01019: unable to allocate memory in the user side
> >
> > No problem with this:
> >
> > > sqlplus scott/tiger@lim1
> >
> > Hmmm...just a thought: in the README.clients it says:
> >
> > > With recent versions of Oracle (specifically around 7.3) you may be
> > > able to build DBD::Oracle without Pro*C installed by using the Oracle
> > > supplied oracle.mk file:
> > >
> > >         perl Makefile.PL -m $ORACLE_HOME/rdbms/demo/oracle.mk
> > >
> > > (The oracle.mk file might also be found in $ORACLE_HOME/rdbms/public/)
> >
> > I used the oracle.mk file instead of the one from Pro*C (Pro*C is not
> > installed at our site). Could it be that the trouble comes from there?
> 
> Possibly.
> 
> The ORA-01019 sounds like a configuration or build problem.
> 

Just misconfiguration. You build DBI && DBD with other Oracle version
then you run with.
Probably build with 7.2.2.3 and run against 7.3.2.2.
Shared libraries changed.

-- 
Roman L. Podshivalov                           Sovam Teleport
<mailto:romas@online.ru>                       phone: +7-501-258-4170
<http://www.online.ru/~romas>                  fax:   +7-501-258-4133
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26240-0@oink>;
          Wed, 23 Oct 1996 15:42:33 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846081672:09709:92; Wed, 23 Oct 96 15:41:12 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10109; 23 Oct 96 15:39 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA08797 for dbi-users-real; Wed, 23 Oct 1996 03:41:02 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id DAA08793 
          for <dbi-users@fugue.com>; Wed, 23 Oct 1996 03:40:57 -0700 (PDT)
Received: by gw.home.vix.com id DAA04614; Wed, 23 Oct 1996 03:40:53 -0700 (PDT)
Message-Id: <199610231040.DAA04614@gw.home.vix.com>
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Wed, 23 Oct 1996 12:37:42 +0200
X-Mailer: exmh version 1.6.9 8/22/96
To: romas@online.ru
cc: Tim Bunce <Tim.Bunce@ig.co.uk>, dbi-users@fugue.com
Subject: Re: ORA-01019: unable to allocate memory in the user side
In-reply-to: Message from "Roman L. Podshivalov" <romas@online.ru> of "Wed, 23 Oct 1996 11:17:39 +0400." <326DC692.625C@online.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 23 Oct 1996 12:37:40 +0200
From: Martin Berli <berli@switch.ch>


> > > But it still gives the same error:
> > >
> > >  ora_login: 1019: ORA-01019: unable to allocate memory in the user side
> > >
> > > No problem with this:
> > >
> > > > sqlplus scott/tiger@lim1
> > >
> > > Hmmm...just a thought: in the README.clients it says:
> > >
> > > > With recent versions of Oracle (specifically around 7.3) you may be
> > > > able to build DBD::Oracle without Pro*C installed by using the Oracle
> > > > supplied oracle.mk file:
> > > >
> > > >         perl Makefile.PL -m $ORACLE_HOME/rdbms/demo/oracle.mk
> > > >
> > > > (The oracle.mk file might also be found in $ORACLE_HOME/rdbms/public/)
> > >
> > > I used the oracle.mk file instead of the one from Pro*C (Pro*C is not
> > > installed at our site). Could it be that the trouble comes from there?
> > 
> > Possibly.
> > 
> > The ORA-01019 sounds like a configuration or build problem.
> > 
> 
> Just misconfiguration. You build DBI && DBD with other Oracle version
> then you run with.
> Probably build with 7.2.2.3 and run against 7.3.2.2.
> Shared libraries changed.

We only have 7.3.2.1.0 on this machine. Never installed another version here.
No upgrades yet.

I now installed Pro*C, so DBD::Oracle was now built with 'proc.mk'. But still,
I get the same error. Hmmm... I really think that I have tried all hints from
those README* files now, but no luck yet.

Anything else I could try? How to narrow the 'bug search scope'?

Martin


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28866-39@oink>;
          Thu, 24 Oct 1996 07:53:13 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846120963:24483:1; Thu, 24 Oct 96 02:36:03 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24267; 24 Oct 96 2:35 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id OAA10425 for dbi-users-real; Wed, 23 Oct 1996 14:50:26 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from jafar.qualcomm.com (jafar.qualcomm.com [129.46.50.13]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id OAA10421 
          for <dbi-users@fugue.com>; Wed, 23 Oct 1996 14:50:24 -0700 (PDT)
Received: (from ckoder@localhost) by jafar.qualcomm.com (8.7.5/1.0/8.7.2/1.9) 
          id OAA17834 for dbi-users@fugue.com;
          Wed, 23 Oct 1996 14:49:53 -0700 (PDT)
From: Corinne Koder <ckoder@qualcomm.com>
Message-Id: <199610232149.OAA17834@jafar.qualcomm.com>
Subject: Statement handles destroyed w/out finish
To: dbi-users@fugue.com
Date: Wed, 23 Oct 1996 14:49:52 -0700 (PDT)
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Has anyone had this warning message pop up incessantly?  

"Statement handle DBI::st=HASH(0x207f20) destroyed without finish()
at /iago/mnt2/web/httpd/cgi-bin/d3/add line 169."

I am not sure but I think it may be causing memory leaks, and I
cannot figure out how to "finish()" other than with the method I
am already using after an SQL call:

$sth->finish;
undef $sth;

I am using DBI::Informix and Informix v.7 on a Sun.  Any advice
is appreciated!

Corinne 
ckoder@qualcomm.com

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-8@oink>;
          Fri, 25 Oct 1996 07:36:17 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846182941:23904:1949; Thu, 24 Oct 96 19:49:01 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10114; 24 Oct 96 19:21 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11960 for dbi-users-real; Thu, 24 Oct 1996 09:05:08 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA11956 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 09:05:07 -0700 (PDT)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id JAA13353;
          Thu, 24 Oct 1996 09:03:31 -0700
Date: Thu, 24 Oct 1996 09:03:31 -0700 (PDT)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: Martin Berli <berli@switch.ch>
cc: dbi-users@fugue.com
Subject: Re: DBD-Oracle: 'make test' still fails
In-Reply-To: <199610241511.IAA11893@toccata.fugue.com>
Message-ID: <Pine.SOL.3.95.961024090103.13336A-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 24 Oct 1996, Martin Berli wrote:

> Sorry to come back again with this problem. I have now tried all I found
> within the README* files, but 'make test' for DBD-Oracle-0.41 (and 0.40)
> still fails with
> 
>   ora_login: 1019: ORA-01019: unable to allocate memory in the user side 
> (DBD:login failed)

Wild guess:

Did you make all the changes to the Solaris kernel specified in the
Oracle installation guide?  If I recall you have to jack up the shared
memory pages, semaphore limits and other stuff.  Also, can you run 
SQL*PLUS and connect to the test database?

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-13@oink>;
          Fri, 25 Oct 1996 07:36:41 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846183342:23904:2279; Thu, 24 Oct 96 19:55:42 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11862; 24 Oct 96 19:26 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA11909 for dbi-users-real; Thu, 24 Oct 1996 08:21:44 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bastix.tunix.kun.nl (bastix.tunix.kun.nl [131.174.20.39]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id IAA11905 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 08:21:41 -0700 (PDT)
Received: (from root@localhost) by bastix.tunix.kun.nl (8.7.1/8.6.12) 
          id RAA08287 for <dbi-users@fugue.com>;
          Thu, 24 Oct 1996 17:21:37 +0200 (MET DST)
Received: from omegix.tunix.kun.nl(172.16.2.15) by bastix.tunix.kun.nl 
          via smap (V1.3) id sma007899; Thu Oct 24 17:21:36 1996
Received: from localhost by (4.1/SMI-4.1) id AA22145;
          Thu, 24 Oct 96 17:21:07 +0200
Message-Id: <9610241521.AA22145@>
To: dbi-users@fugue.com
Subject: fields in fetchrow with mSQL
Date: Thu, 24 Oct 1996 17:21:06 +0200
From: Leo Willems <leo@tunix.kun.nl>


Hello,

I have a problem with fetchrow (or fetch). The query I do seems to
be ok but when I fetch a row, I only get the last field.

I have been playing around with bind_col et al. but can't figure out
what to do.

If someone is having a simple example that (in pseudo code) does:

		select * from table
		while(row=fetchrow)
			for (fields in row)
				print field

(It should work with the mSQL package).


Regards,

Leo
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-16@oink>;
          Fri, 25 Oct 1996 07:36:54 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846183469:23904:2429; Thu, 24 Oct 96 19:57:49 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12263; 24 Oct 96 19:27 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA11897 for dbi-users-real; Thu, 24 Oct 1996 08:11:14 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat.switch.ch (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id IAA11893 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 08:11:10 -0700 (PDT)
Message-Id: <199610241511.IAA11893@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Thu, 24 Oct 1996 17:10:57 +0200
X-Mailer: exmh version 1.6.9 8/22/96
To: dbi-users@fugue.com
From: Martin Berli <berli@switch.ch>
Subject: DBD-Oracle: 'make test' still fails
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 24 Oct 1996 17:10:55 +0200

Hello,

Sorry to come back again with this problem. I have now tried all I found
within the README* files, but 'make test' for DBD-Oracle-0.41 (and 0.40)
still fails with

  ora_login: 1019: ORA-01019: unable to allocate memory in the user side 
(DBD:login failed)

I'm now looking for someone who has successfully installed and tested
DBD-Oracle with the following configuration:

  Architecture: sun4-solaris
            OS: solaris 2.5
          Perl: 5.003
        Oracle: 7.3.2.1.0
           DBI: 0.73
    DBD-Oracle: 0.40 (or 0.41)
      Compiler: cc  (not gcc)

Installation History:

  1. Oracle RDBMS incl Pro*C
  2. Perl 5.003
  3. DBI-0.73  ('make' ok, 'make test' ok, 'make install' ok)
  4. DBD-Oracle-0.40/41 ('make' ok, 'make test' fails when trying to login
                          to oracle)

I would be very thankful for any help: Also hints on what could be done to
try to narrow the search scope: Is it Oracle / Is it DBD-Oracle / ...
         
Remember, I think I'm really done with the READMEs.

Thanks again for every hint!

  Martin

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-18@oink>;
          Fri, 25 Oct 1996 07:37:04 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846185491:23878:3564; Thu, 24 Oct 96 20:31:31 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04164; 24 Oct 96 19:06 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA11763 for dbi-users-real; Thu, 24 Oct 1996 06:45:33 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA11752;
          Thu, 24 Oct 1996 06:45:29 -0700 (PDT)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id af03370;
          24 Oct 96 12:50 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa01088; 24 Oct 96 13:48 BST
Received: from toad by oink with SMTP (PP) id <02734-0@oink>;
          Thu, 24 Oct 1996 13:47:56 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA15609;
          Thu, 24 Oct 1996 13:47:47 +0000
Date: Thu, 24 Oct 1996 13:47:47 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610241247.AA15609@toad.ig.co.uk>
To: dbi-announce@fugue.com, mellon@fugue.com
Subject: URGENT - Possible problem with DBD-Oracle-0.40
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


I've no time to investigate but I suspect that DBD-Oracle-0.40 has
a cache related bug that manifests as alternate ora_binds/ora_fetch
pairs returning no data.

Sadly I've a plan to catch so I can't dig deeper right now.

If anyone else does, please try something like this:

	open "select 100+:1 from dual"
	bind 42
	fetch -- returns 142
	bind 43
	fetch -- returns noting (end of data)

The fix is probably trivial.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-47@oink>;
          Fri, 25 Oct 1996 07:40:23 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846190768:10979:178; Thu, 24 Oct 96 21:59:28 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28634; 24 Oct 96 21:23 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA12090 for dbi-users-real; Thu, 24 Oct 1996 09:55:20 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat.switch.ch (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA12086 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 09:55:18 -0700 (PDT)
Message-Id: <199610241655.JAA12086@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Thu, 24 Oct 1996 18:55:05 +0200
To: Chris Abajian <chrisa@serac.mbt.washington.edu>
cc: dbi-users@fugue.com
Subject: Re: DBD-Oracle: 'make test' still fails
In-reply-to: Message from Chris Abajian <chrisa@serac.mbt.washington.edu> of "Thu, 24 Oct 1996 09:03:31 -0700." <Pine.SOL.3.95.961024090103.13336A-100000@serac>
Date: Thu, 24 Oct 1996 18:55:03 +0200
From: Martin Berli <berli@switch.ch>


> Did you make all the changes to the Solaris kernel specified in the
> Oracle installation guide?  If I recall you have to jack up the shared
> memory pages, semaphore limits and other stuff. 

Yes, we set that up.

> Also, can you run SQL*PLUS and connect to the test database?

Yes, this works. Both without TWO_TASK, or with TWO_TASK set to dbname
(sqlnet v2), and a listener running.

I also installed Oracle Webserver. This also works. The database seems to
run ok, I think.

Now, If all those clients accessing oracle (sqlplus, svrmgr, orawebserver)
on the local machine have no problems, what might be different when oracle
is accessed via DBD-Oracle/DBI? I also made a 'truss make test', but 
interpreting that output is probably more suited for system gurus...

Still not happy...

Martin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-53@oink>;
          Fri, 25 Oct 1996 07:40:59 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846192428:21699:6; Thu, 24 Oct 96 22:27:08 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16254; 24 Oct 96 22:12 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12552 for dbi-users-real; Thu, 24 Oct 1996 11:39:33 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from psi.com (psi.com [192.67.6.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12548 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 11:39:31 -0700 (PDT)
Received: from mail.infoman.com by psi.com (8.6.12/SMI-4.1.3-PSI) id OAA20501;
          Thu, 24 Oct 1996 14:38:45 -0400
Received: from pez (169.137.4.248) by mail.infoman.com 
          with SMTP (Apple Internet Mail Server 1.1.1);
          Thu, 24 Oct 1996 14:38:43 -0400
Message-ID: <326FB784.2EA9@infoman.com>
Date: Thu, 24 Oct 1996 14:37:56 -0400
From: Del Simmons from IMI <del@infoman.com>
Organization: Information Management, Inc.
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Help! Statement handle DBI::st=HASH(0x17ee90) DESTROY ignored - never 
         set up
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Do any of you see what I'm doing wrong here?? 

I keep getting the following error whenever I try to perform an SQL
statement:

    Statement handle DBI::st=HASH(0x17ee90) DESTROY ignored - never set
up at ./movie_insert.pl line 30

Any ideas would be much appreciated.

I am using the latest DBI with Perl 5.003 on a Sparc running Solaris
2.5.1

I am using the DBD-Informix-0.24 pkg with Informix 7

HELP!

Here is my code...

-------------------------------------------------------
#!/usr/bin/perl

BEGIN{unshift @INC, "../../lib", "./lib";}
use DBI;

$table = "movies_tb";
$dbname = "movie_db";

@body=();

# read in the movie file into the array @body
open (INFILE,"<normal.txt");
while (<INFILE>){
   push(@body,$_);
} 
#close while loop
close (INFILE);

# connect to the database
$drh = DBI->install_driver( 'Informix' );
$dbh = $drh->connect( 'dbhost', $dbname, 'dbuser', 'dbpass' );
die unless $dbh;

# Drop the old table
print STDOUT ("Dropping Table\n");
$dbh->do( "DROP TABLE $table" );

# Rebuild an empty table
print STDOUT ("About to build table!\n");
$dbh->do( "CREATE TABLE $table ( area CHAR(20), m0 CHAR(30), chain
CHAR(30), chaininfo CHAR(30), theatre CHAR(30), theatreinfo(30),
screen(45), times (45))"$

print STDOUT ("about to disconnect\n");
$dbh->disconnect;

print STDOUT ("Made it past the disconnect, i'm exiting now!\n");
exit;
-----------------------------------------------------------------------------

I remmed out the for loop until I could figure out why the CREATE and
DROP are failing..


Here is the output
-----------------------------------------------------------------------------
# movie_insert.pl
Dropping Table
Statement handle DBI::st=HASH(0x17ee90) DESTROY ignored - never set up
at ./movie_insert.pl line 30.
About to build table!
Statement handle DBI::st=HASH(0x17efa4) DESTROY ignored - never set up
at ./movie_insert.pl line 49.
about to disconnect
Made it past the disconnect, i'm exiting now!
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-57@oink>;
          Fri, 25 Oct 1996 07:41:24 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846192750:21700:325; Thu, 24 Oct 96 22:32:30 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15097; 24 Oct 96 22:09 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA12285 for dbi-users-real; Thu, 24 Oct 1996 10:43:57 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA12281 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 10:43:51 -0700 (PDT)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ae24149;
          24 Oct 96 18:03 BST
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa22132; 24 Oct 96 18:00 BST
Received: from toad by oink with SMTP (PP) id <03431-0@oink>;
          Thu, 24 Oct 1996 17:12:20 +0100
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA15975;
          Thu, 24 Oct 1996 17:12:13 +0000
Date: Thu, 24 Oct 1996 17:12:13 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610241612.AA15975@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: fix for DBD-Oracle-0.40
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

add these three lines above the oexec call in dbdimp.c

    imp_sth->in_cache   = 0;
    imp_sth->next_entry = 0;
    imp_sth->end_of_data = 0;

Jacqui Caren

dictated by tim bunce by phone from shannon airport!
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-59@oink>;
          Fri, 25 Oct 1996 07:41:35 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846192929:21709:535; Thu, 24 Oct 96 22:35:29 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18237; 24 Oct 96 22:17 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA12318 for dbi-users-real; Thu, 24 Oct 1996 10:52:29 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fhg.de (mailgw1.fhg.de [153.96.1.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA12314 
          for <dbi-users@fugue.com>; Thu, 24 Oct 1996 10:52:23 -0700 (PDT)
Received: by mailgw1.fhg.de (fhg.de) with PRESMTP;
          Thu, 24 Oct 1996 19:51:51 +0200 from FHG-GATEWAY
X-ENV: (fhg.de) kuehn@zv.fhg.de ->
Received: by mailgw1.fhg.de (fhg.de) with SMTP; Thu, 24 Oct 1996 19:51:45 +0200 
          from zv.fhg.de
Received: by zv.fhg.de; Thu, 24 Oct 96 18:46:30 +0100; FhG-zv.zv.fhg.de-3.51
From: Peter Kuehn <kuehn@zv.fhg.de>
Received: by sigma2.zv.fhg.de; Thu, 24 Oct 96 19:52:11 +0200; FhG-sigma2-3.10
Message-Id: <9610241752.AA26979@sigma2.zv.fhg.de>
Subject: DBD-40 core dump
To: dbi-users@fugue.com
Date: Thu, 24 Oct 96 19:52:11 MESZ
Cc: Tim.Bunce@ig.co.uk
Mailer: Elm [revision: 70.85]

Hi,

we have the following problem:

src/DBD-Oracle-0.40> uname -a
HP-UX sigma6 B.10.01 A 9000/821 2010306686 two-user license

src/DBD-Oracle-0.40> perl Makefile.PL
substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /home1/oracle/product/7.3.2
Reading /home1/oracle/product/7.3.2/precomp/demo/proc/proc.mk.
Reading /home1/oracle/product/7.3.2/precomp/env_precomp.mk.
System: perl5.003 hp-ux sigma6 b.10.01 a 9000821 2010306686 lizenz fr zwei benutzer 
Compiler: cc -O -D_HPUX_SOURCE -Aa
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -Wl,-aarchive -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME)
Linking with   -lxa -lsql -lsqlnet -lncr -lsqlnet -L/home1/oracle/product/7.3.2/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/home1/oracle/product/7.3.2/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 

src/DBD-Oracle-0.40> make
        cc -c -I. -I/home1/oracle/product/7.3.2/precomp/public -I/home1/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/PA-RISC1.1/DBI -I/usr/local/lib/perl5/PA-RISC1.1/5,003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.40\"  -DXS_VERSION=\"0.40\" +z -n -I/usr/local/lib/perl5/PA-RISC1.1/5,003/CORE  Oracle.c
        cc -c -I. -I/home1/oracle/product/7.3.2/precomp/public -I/home1/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/PA-RISC1.1/DBI -I/usr/local/lib/perl5/PA-RISC1.1/5,003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.40\"  -DXS_VERSION=\"0.40\" +z -n -I/usr/local/lib/perl5/PA-RISC1.1/5,003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/home1/oracle/product/7.3.2/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/home1/oracle/product/7.3.2/lib -lxa -lsql -lsqlnet -lncr -lsqlnet -L/home1/oracle/product/7.3.2/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/home1/oracle/product/7.3.2/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

src/DBD-Oracle-0.40> make test
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/PA-RISC1.1/5,003 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  0 secs ( 0.34 cusr  0.07 csys =  0.41 cpu)
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/PA-RISC1.1/5,003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.25 $

Oraperl Emulation Interface version 1.29 
Oracle Driver 0.40
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='entw', TWO_TASK='sigma6')
Caught a SIGBUS at blib/lib/DBD/Oracle.pm line 142
@ = DBD::Oracle::dr::connect('DBI::dr=HASH(0x40117260)', '', 'scott/tiger', '') called from file `blib/lib/Oraperl.pm' line 98
@ = Oraperl::ora_login('', 'scott/tiger', '') called from file `test.pl' line 43
sh: 27087 Abort(coredump)
*** Error exit code 134

Stop.

--
any clue??

Thank you in advance.

+-----------------------------------------------------------+
| Peter Kuehn * Fraunhofer Gesellschaft * <kuehn@zv.fhg.de> |
| Tel. +49-89-1205-614                                      |
+-----------------------------------------------------------+
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06418-69@oink>;
          Fri, 25 Oct 1996 07:42:37 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846195067:06734:202; Thu, 24 Oct 96 23:11:07 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05902; 24 Oct 96 23:05 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12631 for dbi-users-real; Thu, 24 Oct 1996 12:08:59 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw2.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id MAA12623;
          Thu, 24 Oct 1996 12:08:57 -0700 (PDT)
Received: from auspex.auspex.com ([144.48.8.10]) 
          by auspex-gw2.auspex.com (8.6.12/8.6.12) with ESMTP id MAA13284;
          Thu, 24 Oct 1996 12:08:39 -0700
Received: from dumas.auspex.fr by auspex.auspex.com (8.7.2/) id MAA21334;
          Thu, 24 Oct 1996 12:08:30 -0700 (PDT)
Received: from balzac ([194.2.216.102]) by dumas.auspex.fr (8.6.9/8.6.9) 
          with SMTP id UAA29071; Thu, 24 Oct 1996 20:09:49 +0100
Message-ID: <326FBEDA.2781E494@Auspex.Com>
Date: Thu, 24 Oct 1996 21:09:14 +0200
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 aushp)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-announce@fugue.com, mellon@fugue.com, dbi-users@fugue.com
Subject: Re: URGENT - Possible problem with DBD-Oracle-0.40
References: <9610241247.AA15609@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> I've no time to investigate but I suspect that DBD-Oracle-0.40 has
> a cache related bug that manifests as alternate ora_binds/ora_fetch
> pairs returning no data.
> 
> Sadly I've a plan to catch so I can't dig deeper right now.
> 
> If anyone else does, please try something like this:
> 
>         open "select 100+:1 from dual"
>         bind 42
>         fetch -- returns 142
>         bind 43
>         fetch -- returns noting (end of data)
> 
> The fix is probably trivial.

Looks like the ora_bind() implementation isn't invalidating the
current cache as it should. Things should look the same following
ora_bind() as they do following ora_open().

	Kevin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10415-22@oink>;
          Fri, 25 Oct 1996 18:03:06 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846243037:17311:1; Fri, 25 Oct 96 12:30:37 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17264; 25 Oct 96 12:30 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA14653 for dbi-users-real; Fri, 25 Oct 1996 01:36:33 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA14649 
          for <dbi-users@fugue.com>; Fri, 25 Oct 1996 01:36:25 -0700 (PDT)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id JAA19669;
          Fri, 25 Oct 1996 09:20:40 +0100
Date: Fri, 25 Oct 1996 08:20:39 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com
Subject: Re: fix for DBD-Oracle-0.40
In-Reply-To: <9610241612.AA15975@toad.ig.co.uk>
Message-ID: <Pine.SGI.3.95.961025081619.1830A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I presume this is actually a fix for a "feature" in DBD-Oracle-0.41
and not DBD-Oracle-0.40 ..... but then I am probably way off line?

On Thu, 24 Oct 1996, Tim Bunce wrote:

> From: Tim Bunce <Tim.Bunce@ig.co.uk>
> To: dbi-users@fugue.com
> Subject: fix for DBD-Oracle-0.40
> 
> add these three lines above the oexec call in dbdimp.c
> 
>     imp_sth->in_cache   = 0;
>     imp_sth->next_entry = 0;
>     imp_sth->end_of_data = 0;
> 
> Jacqui Caren
> 
> dictated by tim bunce by phone from shannon airport!
> 

.... thanks Jacqui.

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10415-42@oink>;
          Fri, 25 Oct 1996 18:05:55 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846250240:25555:36; Fri, 25 Oct 96 14:30:40 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25302; 25 Oct 96 14:29 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA14768 for dbi-users-real; Fri, 25 Oct 1996 03:22:48 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fu-manchu.pindar.co.uk (root@fu-manchu.pindar.co.uk [194.193.96.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id DAA14764 
          for <dbi-users@fugue.com>; Fri, 25 Oct 1996 03:22:45 -0700 (PDT)
Received: from [193.123.165.57] (ip57.pindar.co.uk [193.123.165.57]) 
          by fu-manchu.pindar.co.uk (8.6.11/8.6.9) with SMTP id LAA04538 
          for <dbi-users@fugue.com>; Fri, 25 Oct 1996 11:20:44 GMT
Message-Id: <199610251120.LAA04538@fu-manchu.pindar.co.uk>
X-Sender: bw@fu-manchu.pindar.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 25 Oct 1996 11:21:39 -0500
To: dbi-users@fugue.com
From: bwilkinson@pindar.co.uk (Bob Wilkinson)
Subject: Re: fields in fetchrow with mSQL

Leo Willems <leo@tunix.kun.nl> said
>Hello,
>
>I have a problem with fetchrow (or fetch). The query I do seems to
>be ok but when I fetch a row, I only get the last field.
>
>I have been playing around with bind_col et al. but can't figure out
>what to do.
>
>If someone is having a simple example that (in pseudo code) does:
>
>                select * from table
>                while(row=fetchrow)
>                        for (fields in row)
>                                print field
>
>(It should work with the mSQL package).
>
>
>Regards,
>
>Leo

Hello,
      Here is an example from a program I wrote to use mSQL - it demonstrates
one use of fetchrow.

I hope that this helps.

Bob
---

sub access_DB {

=pod

=item access_DB

This subroutine returns the $select'ed fields from the named $DB given 
the $where condition. A list of pointers to the rows returned from the
database query is returned to the caller.

=cut

        my($DB,$select,$where) = @_;
        my($dbh) = $drh->connect($DB_server,"webcat") and print STDERR
"Connected OK\n";
        my($cursor) = $dbh->prepare( "SELECT $select FROM $DB $where") 
        and print STDERR "Cursor prepared\n";
        $cursor->execute and print STDERR "Cursor executed OK\n";
        my(@row,@data);
        while (@row = $cursor->fetchrow) {
                push(@data,[@row]);
        }
        $cursor->finish and print STDERR "Cursor finished OK\n";
        undef $cursor;
        $dbh->disconnect;
#       
#       @data now contains a list of pointers to the rows which have to be 
#       de-referenced
#
        @data;
}
#
###############################################################################
#

EXAMPLES CALL TO sub access_DB

        my(@classes) = &access_DB("Classification","O_ID, Name$language",
        "WHERE M_ParentID = $level");

EXAMPLE HANDLING OF RETURNED ARRAY OF POINTERS FROM sub access_DB

        if (@classes) {
                $data = "<ul>";
                foreach (@classes) {
                        my($id,$name) = @{$_};
                        $data .= "<li><a
href=$Main_Path/$id?magic_cookie=$magic_cookie&";
                        $data .= "option_browse.x=1>$name</a>\n";
                }
        

________________________________________________________________
          Bob Wilkinson, Perl Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email: B.Wilkinson@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.connection.co.uk/bob
________________________________________________________________
  I don't speak for my employer - er, they made me say that..
________________________________________________________________


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13147-4@oink>;
          Fri, 25 Oct 1996 20:31:54 +0100
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846271785:21902:5243; Fri, 25 Oct 96 20:29:45 BST
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08971; 25 Oct 96 19:46 BST
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA15232 for dbi-users-real; Fri, 25 Oct 1996 07:51:01 -0700 (PDT)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id HAA15227 
          for <dbi-users@fugue.com>; Fri, 25 Oct 1996 07:50:45 -0700 (PDT)
Message-Id: <199610251450.HAA15227@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Fri, 25 Oct 1996 16:49:55 +0200
To: dbi-users@fugue.com
From: Martin Berli <berli@switch.ch>
Subject: DBD-Oracle-0.41: 'make test' now successful!
Date: Fri, 25 Oct 1996 16:49:54 +0200

Remember these mails?

> Sorry to come back again with this problem. I have now tried all I found
> within the README* files, but 'make test' for DBD-Oracle-0.41 (and 0.40)
> still fails with
> 
>   ora_login: 1019: ORA-01019: unable to allocate memory in the user side 
> (DBD:login failed)

The problem is now solved with a hint from Garth Kennedy <garth@comm.mot.com>.
As we are running 7.3.2 Oracle, Garth suggested to try to build a separate
$ORACLE_HOME with older oracle libraries. I found a 7.2.3 CD, installed
code-only, and remade DBD-Oracle with $ORACLE_HOME pointing to 7.2.3. After
that, 'make test' passed ok.

Thanks again to all that sent hints to me!

   Martin Berli

------------------------------------------------------------------------
Internet: berli@switch.ch  | SWITCH, Swiss Academic and Research Network
Phone   : +41 1 268 1540   | Limmatquai 138
Fax     : +41 1 268 1568   | CH-8001 Zurich


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20096-107@oink>;
          Mon, 28 Oct 1996 08:02:22 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846425240:29802:7; Sun, 27 Oct 96 14:07:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29769; 27 Oct 96 14:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA18421 for dbi-users-real; Sun, 27 Oct 1996 04:02:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from calanais.mcqueen.com (freakshop.mcqueen.com [194.72.106.247]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA18417 
          for <dbi-users@fugue.com>; Sun, 27 Oct 1996 04:02:16 -0800 (PST)
From: descarte@hermetica.com
Received: from chewbacca.hermetica.com (descarte@chewbacca.hermetica.com [192.192.192.246]) 
          by calanais.mcqueen.com (8.7.6/8.6.12) with ESMTP id LAA22563;
          Sun, 27 Oct 1996 11:48:42 GMT
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id MAA06774; Sun, 27 Oct 1996 12:00:20 GMT
Message-Id: <199610271200.MAA06774@chewbacca.hermetica.com>
Subject: Re: fields in fetchrow with mSQL
To: leo@tunix.kun.nl (Leo Willems)
Date: Sun, 27 Oct 1996 12:00:13 +0000 (GMT)
Cc: dbi-users@fugue.com
In-Reply-To: <9610241521.AA22145@> from "Leo Willems" at Oct 24, 96 05:21:06 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> I have a problem with fetchrow (or fetch). The query I do seems to
> be ok but when I fetch a row, I only get the last field.
> 
> If someone is having a simple example that (in pseudo code) does:
> 
> 		select * from table
> 		while(row=fetchrow)
> 			for (fields in row)
> 				print field
> 
> (It should work with the mSQL package).

Look at test.pl bundled with DBD::mSQL. Basically, from the psuedo-code, it
looks like you're doing something like:

	while ( @row = $dth->fetchrow ) {
            print "Row: @row\n";
          }
        print "Rows fetched: ...\n";

So, each iteration round the loop, your previous value of @row will get 
overwritten. You need to store each row onto a stack, or something as you
iterate.

> Leo

A.

-- 
Alligator Descartes                                             Anathematician
descarte@hermetica.com					   Circuit VI Engineer
http://www.hermetica.com					     KEPhALH F
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20096-109@oink>;
          Mon, 28 Oct 1996 08:02:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846425305:29975:9; Sun, 27 Oct 96 14:08:25 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29946; 27 Oct 96 14:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA18427 for dbi-users-real; Sun, 27 Oct 1996 04:04:15 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from calanais.mcqueen.com (freakshop.mcqueen.com [194.72.106.247]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA18423 
          for <dbi-users@fugue.com>; Sun, 27 Oct 1996 04:04:08 -0800 (PST)
From: descarte@hermetica.com
Received: from chewbacca.hermetica.com (descarte@chewbacca.hermetica.com [192.192.192.246]) 
          by calanais.mcqueen.com (8.7.6/8.6.12) with ESMTP id LAA22599;
          Sun, 27 Oct 1996 11:50:21 GMT
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id MAA06787; Sun, 27 Oct 1996 12:02:00 GMT
Message-Id: <199610271202.MAA06787@chewbacca.hermetica.com>
Subject: Re: Help! Statement handle DBI::st=HASH(0x17ee90) DESTROY ignored - 
         never set up
To: del@infoman.com (Del Simmons from IMI)
Date: Sun, 27 Oct 1996 12:01:59 +0000 (GMT)
Cc: dbi-users@fugue.com, ckoder@qualcomm.com
In-Reply-To: <326FB784.2EA9@infoman.com> from "Del Simmons from IMI" at Oct 24, 96 02:37:56 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> 
> Do any of you see what I'm doing wrong here?? 
> 
> I keep getting the following error whenever I try to perform an SQL
> statement:
> 
>     Statement handle DBI::st=HASH(0x17ee90) DESTROY ignored - never set
> up at ./movie_insert.pl line 30
> 
> Any ideas would be much appreciated.

It's a bug. It's on the To-Look-At list. 

A.

-- 
Alligator Descartes                                             Anathematician
descarte@hermetica.com					   Circuit VI Engineer
http://www.hermetica.com					     KEPhALH F
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24923-0@oink>;
          Mon, 28 Oct 1996 15:07:01 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846511368:01656:41; Mon, 28 Oct 96 14:02:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02049; 28 Oct 96 14:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA01118 for dbi-dev-real; Mon, 28 Oct 1996 03:46:25 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from speedy.speakeasy.org (speedy.speakeasy.org [199.238.226.57]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id DAA01114 
          for <dbi-dev@fugue.com>; Mon, 28 Oct 1996 03:46:24 -0800 (PST)
Received: (from brett@localhost) by speedy.speakeasy.org (8.8.0/8.7.3) 
          id DAA31964 for dbi-dev@fugue.com;
          Mon, 28 Oct 1996 03:46:17 -0800 (PST)
Date: Mon, 28 Oct 1996 03:46:17 -0800 (PST)
From: Brett McCormick <brett@speedy.speakeasy.org>
Message-Id: <199610281146.DAA31964@speedy.speakeasy.org>
To: dbi-dev@fugue.com
Subject: DBD for Postgres in the works?


If there isn't already a DBD for postgres in the works, (which I don't
think there is) I would be interested in writing one.


--brett
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25794-1@oink>;
          Mon, 28 Oct 1996 17:35:31 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846523918:26624:2; Mon, 28 Oct 96 17:31:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19617; 28 Oct 96 17:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA01342 for dbi-users-real; Mon, 28 Oct 1996 06:12:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA01338 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 06:12:26 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id aa03996;
          28 Oct 96 13:08 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa24513; 28 Oct 96 13:04 GMT
Received: from toad by oink with SMTP (PP) id <24103-0@oink>;
          Mon, 28 Oct 1996 13:04:16 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA28366;
          Mon, 28 Oct 1996 13:04:08 +0000
Date: Mon, 28 Oct 1996 13:04:08 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281304.AA28366@toad.ig.co.uk>
To: agw@mail.nerc-bas.ac.uk
Subject: Re: fix for DBD-Oracle-0.40
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Andy Wood <agw@mail.nerc-bas.ac.uk>
> 
> I presume this is actually a fix for a "feature" in DBD-Oracle-0.41
> and not DBD-Oracle-0.40 ..... but then I am probably way off line?

DBD-Oracle-0.40 has a serious bug (announced recently).

*** It should not be used without applying this patch ***

I'll make a new release today.

> On Thu, 24 Oct 1996, Tim Bunce wrote:
> 
> > From: Tim Bunce <Tim.Bunce@ig.co.uk>
> > To: dbi-users@fugue.com
> > Subject: fix for DBD-Oracle-0.40
> > 
> > add these three lines above the oexec call in dbdimp.c
> > 
> >     imp_sth->in_cache   = 0;
> >     imp_sth->next_entry = 0;
> >     imp_sth->end_of_data = 0;
> > 
> > Jacqui Caren
> > 
> > dictated by tim bunce by phone from shannon airport!
> 
> .... thanks Jacqui.

Thanks indeed. The fix came to me while flying over to Ireland (it was
trivial after all) so I called Jacqui and walked her though applying
and testing it before dictating the email message.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25794-3@oink>;
          Mon, 28 Oct 1996 17:35:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846523927:26624:14; Mon, 28 Oct 96 17:32:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19820; 28 Oct 96 17:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA01382 for dbi-users-real; Mon, 28 Oct 1996 06:22:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA01378 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 06:22:45 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id ab08403;
          28 Oct 96 13:50 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa05950; 28 Oct 96 13:41 GMT
Received: from toad by oink with SMTP (PP) id <24535-0@oink>;
          Mon, 28 Oct 1996 13:40:47 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA28409;
          Mon, 28 Oct 1996 13:40:33 +0000
Date: Mon, 28 Oct 1996 13:40:33 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281340.AA28409@toad.ig.co.uk>
To: benm@benm.webdev.co.uk
Subject: Re: DBI-0.73 + DBD-Oracle-0.41 blob read problem.
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Ben Middleton <benm@benm.webdev.co.uk>
> To: Tim.Bunce@ig.co.uk

Please don't mail me direct.

> Hello Tim, sorry to bother you with this, but I have installed the latest
> DBI/DBD-Oracle set, but have started getting problems using the:
> 
>     $blob = $lcsr->blob_read (0, $offset, $length);
>     &HtmlDie ("Blob read error:",$ora_errstr) if $ora_errno;  
> 
> method...
> 
> This used to read truncated records properly before (in
> DBI-0.71/DBD-Oracle-0.39), why do you think it no longer works?

DBD-Oracle-0.41 IS BROKEN - DO NOT USE IT (without applying the
fix posted recently).

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25794-5@oink>;
          Mon, 28 Oct 1996 17:35:46 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846524012:26624:85; Mon, 28 Oct 96 17:33:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20708; 28 Oct 96 17:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA01332 for dbi-users-real; Mon, 28 Oct 1996 06:07:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA01328 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 06:06:59 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id ab08278;
          28 Oct 96 13:49 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa05860; 28 Oct 96 13:40 GMT
Received: from toad by oink with SMTP (PP) id <24519-0@oink>;
          Mon, 28 Oct 1996 13:40:10 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA28404;
          Mon, 28 Oct 1996 13:39:57 +0000
Date: Mon, 28 Oct 1996 13:39:57 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281339.AA28404@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: STATUS OF DBD::Oracle
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

My previous statements re DBD-Oracle-0.40 should have referred to
DBD-Oracle-0.41. Sorry for any confusion caused.

In summary:

	DBD::Oracle version 0.41 is *BROKEN* (0.40 is not)

To fix it, add these three lines above the oexec() call in dbdimp.c:

    imp_sth->in_cache    = 0;
    imp_sth->next_entry  = 0;
    imp_sth->end_of_data = 0;

I'll release a fixed 0.42 version sometime today.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-9@oink>;
          Tue, 29 Oct 1996 07:37:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846532967:24018:715; Mon, 28 Oct 96 20:02:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07454; 28 Oct 96 19:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA01706 for dbi-dev-real; Mon, 28 Oct 1996 08:28:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA01702 
          for <dbi-dev@fugue.com>; Mon, 28 Oct 1996 08:28:21 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ae09951;
          28 Oct 96 15:52 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa16878; 28 Oct 96 15:43 GMT
Received: from toad by oink with SMTP (PP) id <25242-0@oink>;
          Mon, 28 Oct 1996 15:42:09 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA28891;
          Mon, 28 Oct 1996 15:41:56 +0000
Date: Mon, 28 Oct 1996 15:41:56 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281541.AA28891@toad.ig.co.uk>
To: dbi-dev@fugue.com, brett@speedy.speakeasy.org
Subject: Re: DBD for Postgres in the works?
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Brett McCormick <brett@speedy.speakeasy.org>
> 
> If there isn't already a DBD for postgres in the works, (which I don't
> think there is) I would be interested in writing one.

Not that I'm aware of. There is at least one and possibly two postgres
extensions for perl (one was released recently). I'd recommend you
start by implementing a DBD::Postgres in perl as a layer over an
existing interface and migrate to C later.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-21@oink>;
          Tue, 29 Oct 1996 07:38:58 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846534976:10045:545; Mon, 28 Oct 96 20:36:16 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02716; 28 Oct 96 20:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA01663 for dbi-users-real; Mon, 28 Oct 1996 08:09:37 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA01652;
          Mon, 28 Oct 1996 08:09:33 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id aa21843;
          28 Oct 96 15:59 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa21491; 28 Oct 96 15:55 GMT
Received: from toad by oink with SMTP (PP) id <25404-0@oink>;
          Mon, 28 Oct 1996 15:55:04 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA28903;
          Mon, 28 Oct 1996 15:54:56 +0000
Date: Mon, 28 Oct 1996 15:54:56 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281554.AA28903@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: ANNOUNCE: DBD-Oracle-0.42 (bug fix and enhancement)
Cc: dbi-announce@fugue.com, mellon@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

Changes in DBD::Oracle 0.42 (Oraperl 1.30), 28nd Oct 1996

    Fixed serious 'cache empty after re-bind' bug.
    Do not use DBD::Oracle 0.41.
    Implemented oexfet (combined execute and cache fetch) for
    select operations. This is a further significant speed up.
    Many selects now make only one trip to Oracle (after prepare)
    which combines the execute and fetching multiple rows.

Uploaded to ftp.demon.co.uk as usual. Should reach CPAN in a day or so.

This release marks the end of the current phase of performance and
functionality enhancements. I have other fishes to fry for a while.
I will, of course, be as keen as ever to fix any bugs which may appear.

Please accept my apologies for the 'cache empty after re-bind' bug.
Please also delete any copies of DBD-Oracle-0.41 you may have.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-50@oink>;
          Tue, 29 Oct 1996 07:43:23 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846540385:22711:78; Mon, 28 Oct 96 22:06:25 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22217; 28 Oct 96 22:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA01868 for dbi-users-real; Mon, 28 Oct 1996 09:31:34 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA01864 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 09:31:23 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id RAA17721;
          Mon, 28 Oct 1996 17:27:28 GMT
Date: Mon, 28 Oct 1996 17:27:28 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: DBI-users <dbi-users@fugue.com>
cc: Tim Bunce <Tim.Bunce@ig.co.uk>
Subject: DBD-Oracle-0.42 .... error message in make test?
Message-ID: <Pine.SGI.3.95.961028171742.5009A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Just downloaded DBD-Oracle-0.42 and run it through my perl
configuration:

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=dec_osf, osver=2.0, archname=alpha-dec_osf
    uname='osf1 bscomp v2.0 240 alpha '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O2 -Olimit 2900', gccversion=
    cppflags='-DSTANDARD_C -D__LANGUAGE_C__ -D_NO_PROTO'
    ccflags ='-DSTANDARD_C -D__LANGUAGE_C__ -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lm -lc -lbsd -lPW
    libc=/usr/shlib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -s
-L/usr/local/lib'

.... all was looking fine until I spotted the following in make test

[...]
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
.... what is this error message ...
ora_fetch(DBI::st=HASH(0x140186ed8)): 1: ORA-00001: unique constraint
(.) violated (DBD: ofetch error)
Test ora_do with harmless non-select statement (set transaction read
only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of
transaction (DBD: oexec error)

I am not certain that this is a problem at my end .... is it a feature
of test.pl around :

% diff -c test.pl.orig test.pl
*** test.pl.orig        Mon Oct 28 17:10:41 1996
--- test.pl     Mon Oct 28 17:12:41 1996
***************
*** 161,167 ****
        while(@fields = &ora_fetch($csr)){
                print "Fetched: "; print "@fields\n";
        }
!       warn "ora_fetch($csr): $ora_errno: $ora_errstr\n" if
$ora_errno;
  
        print "Test ora_do with harmless non-select statement ",
                        "(set transaction read only)\n";
--- 161,169 ----
        while(@fields = &ora_fetch($csr)){
                print "Fetched: "; print "@fields\n";
        }
!       print ".... what is this error message ...\n";
!               warn "ora_fetch($csr): $ora_errno: $ora_errstr\n" if
                      $ora_errno;
! 
  
        print "Test ora_do with harmless non-select statement ",
                        "(set transaction read only)\n";

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-54@oink>;
          Tue, 29 Oct 1996 07:44:09 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846540670:26082:22; Mon, 28 Oct 96 22:11:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25063; 28 Oct 96 22:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA02086 for dbi-users-real; Mon, 28 Oct 1996 10:32:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA02082 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 10:32:21 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ah16711;
          28 Oct 96 18:07 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab20318; 28 Oct 96 18:02 GMT
Received: from toad by oink with SMTP (PP) id <26349-0@oink>;
          Mon, 28 Oct 1996 17:49:48 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA29176;
          Mon, 28 Oct 1996 17:49:42 +0000
Date: Mon, 28 Oct 1996 17:49:42 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281749.AA29176@toad.ig.co.uk>
To: dbi-users@fugue.com, kuehn@zv.fhg.de
Subject: Re: DBD-40 core dump
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Peter Kuehn <kuehn@zv.fhg.de>
> Subject: DBD-40 core dump

Upgrade to 0.42.

> we have the following problem:
> 
> src/DBD-Oracle-0.40> uname -a
> HP-UX sigma6 B.10.01 A 9000/821 2010306686 two-user license
> 
> src/DBD-Oracle-0.40> perl Makefile.PL
> substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
> substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
> substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
> substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.
> substr outside of string at /usr/local/lib/perl5/ExtUtils/MM_Unix.pm line 100.

Upgrade to Perl5.003_07 or remove empty entries in your PATH env var.

> >>>     Remember to actually *READ* the README file!
>         Especially if you have any problems.

Follow the above advise.

> Connecting
>  to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
>  as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
> (ORACLE_SID='entw', TWO_TASK='sigma6')

Avoid having both TWO_TASK and ORACLE_SID set.

> Caught a SIGBUS at blib/lib/DBD/Oracle.pm line 142

See the README about core dumps.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-74@oink>;
          Tue, 29 Oct 1996 07:47:05 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846544864:25277:33; Mon, 28 Oct 96 23:21:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25274; 28 Oct 96 23:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA02425 for dbi-users-real; Mon, 28 Oct 1996 11:41:49 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from info.bts.gov (info.bts.gov [152.120.123.156]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA02421 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 11:41:45 -0800 (PST)
Received: from hedgehog.bts.gov (hedgehog.bts.gov [152.120.123.236]) 
          by info.bts.gov (8.7.6/8.7.3) with SMTP id OAA15320 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 14:42:22 -0500 (EST)
Received: by hedgehog.bts.gov with Microsoft Mail 
          id <01BBC4DE.8ECFFDC0@hedgehog.bts.gov>;
          Mon, 28 Oct 1996 14:44:44 -0500
Message-ID: <01BBC4DE.8ECFFDC0@hedgehog.bts.gov>
From: Matt Neuendorf <mneuendo@bts.gov>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: While loop problems....
Date: Mon, 28 Oct 1996 14:44:41 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

For some reason DB-perl refuses to return the first row gotten in the loop below.
The next values are retrieved and output correctly. What is the skipping a row about?

Here is a section of the perl code. 

while (@columns)  //When I use a foreach loop, the last sql statement isn't executed instead
{		    // of the first statement.

 @column_info = split(/::/,$column_table);

 $sql = "select * from column_names where table_column=\'$column_info[1]\' AND table_name=\'$column_info[0]\'";

 print "<BR>sql:$sql<BR>\n";
 $cursor = $dbh->prepare("$sql");
 $cursor->execute;

 ($temp1,$column_name,$temp2) = $cursor->fetchrow;

 print "<TR><TD>\n";
 print "<BR>$column_name\n";
 print "</TD><TD>\n";

...
}

The $column_name dosen't print out on the first pass even though the sql statement prints out
and the syntax is correct. 

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-78@oink>;
          Tue, 29 Oct 1996 07:47:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846546811:07763:19; Mon, 28 Oct 96 23:53:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07479; 28 Oct 96 23:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA02387 for dbi-users-real; Mon, 28 Oct 1996 11:33:33 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA02381 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 11:33:29 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ai16711;
          28 Oct 96 18:07 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac20318; 28 Oct 96 18:02 GMT
Received: from toad by oink with SMTP (PP) id <26366-0@oink>;
          Mon, 28 Oct 1996 17:54:09 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA29180;
          Mon, 28 Oct 1996 17:54:02 +0000
Date: Mon, 28 Oct 1996 17:54:02 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610281754.AA29180@toad.ig.co.uk>
To: KStock@auspex.com
Subject: Re: URGENT - Possible problem with DBD-Oracle-0.40
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Kevin Stock <KStock@auspex.com>
> 
> > I've no time to investigate but I suspect that DBD-Oracle-0.40 has
> > a cache related bug that manifests as alternate ora_binds/ora_fetch
> > pairs returning no data.
> > 
> > Sadly I've a plan to catch so I can't dig deeper right now.
> > 
> > If anyone else does, please try something like this:
> > 
> >         open "select 100+:1 from dual"
> >         bind 42
> >         fetch -- returns 142
> >         bind 43
> >         fetch -- returns noting (end of data)
> > 
> > The fix is probably trivial.
> 
> Looks like the ora_bind() implementation isn't invalidating the
> current cache as it should. Things should look the same following
> ora_bind() as they do following ora_open().
> 
> 	Kevin

Thanks Kevin. I came to the same conclusion on the plane.

Now 0.42 uses oexfet() it's possible that Oraperl/DBD::Oracle is
finally faster (after startup) than oraperl 2.4. Especially on slow
networks. That's a testament to the good performance of oraperl 2.4.

[For those who don't recall, Kevin wrote the original oraperl]

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-90@oink>;
          Tue, 29 Oct 1996 07:49:16 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846550296:25980:11; Tue, 29 Oct 96 00:51:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25824; 29 Oct 96 0:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA02813 for dbi-users-real; Mon, 28 Oct 1996 13:19:00 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA02809 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 13:18:55 -0800 (PST)
Received: by gateway.fcmc.com; id QAA25251; Mon, 28 Oct 1996 16:12:42 -0500
Received: from unknown(192.129.90.50) by vone.fcmc.com via smap (g3.0.3) 
          id xma025243; Mon, 28 Oct 96 16:12:22 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA09146;
          Mon, 28 Oct 96 16:18:31 EST
Received: from ford.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) id AA03274;
          Mon, 28 Oct 96 16:18:48 EST
Date: Mon, 28 Oct 96 16:18:48 EST
From: siva@fcmc.com (Siva Pothireddy \(Technology\))
Message-Id: <9610282118.AA03274@anderson.fcmc.com>
To: dbi-users@fugue.com
Subject: error handling using DBPerl


Greetings,

I have just started using DBPerl using informix drivers.
I am having hard time trapping the sql error codes returned
from the server. Could someone show me how to trap the errors.

Thanks.

Siva Pothireddy.
FCMC
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-106@oink>;
          Tue, 29 Oct 1996 07:51:40 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846558331:24030:11; Tue, 29 Oct 96 03:05:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23802; 29 Oct 96 3:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA03527 for dbi-users-real; Mon, 28 Oct 1996 17:02:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id RAA03523 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 17:02:46 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.2/8.8.2) 
          id RAA25385 for dbi-users@fugue.com;
          Mon, 28 Oct 1996 17:01:34 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199610290101.RAA25385@abyss.ecst.csuchico.edu>
Subject: DBD, DBI::Oracle, and Oraperl
To: dbi-users@fugue.com
Date: Mon, 28 Oct 1996 17:01:33 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Greetings all,
I have some begginner's frustration and confusion.. Here is the story
I'm using an HP 9000/712 with HPUX 9.05. I've installed perl5.003
successfully. Installed DBI .73 w/o error messages. I don't have Oracle
or ProC locally on my machine. I've mounted both as a remote file system to get
DBI::Oracle to compile. remote Oracle is 7.2.3, don;t know which  ProC version,
but DBI::Oracle .39 compiled, and test.pl ran with no errors, after  pointing
to the correct oracle home, sid, user/password  etc.
Now, do I need to install oraperl of anykind if I want to use oraperl emulation
in DBI? 
I don;t know the answer to this question, so I've been fretting for a while
trying to install oraperl 2.4. I keep getting "don't know how to make 
uperl.o" I (tried) to follow oraperl.hpux file for installing oraperl on
an hpux 9.x. Honestly I don't know enough to mess with *.h files and makefiles.

Although DBI, DBD are installed, I haven't written a singl script to test
their functionality, SO I do not know for sure if all I've installed so
far is configured correctly.
In short:
1- DO I need to install oraperl?
2- If yes, what's the way considering my equipment?

one last request: Could someone post (or email) a barebones sample script
using orapler emulation in DBI, and if possible, the equiv in pure DBI.
I'd like to see for myself which to learn.

Any help thankfully appreciated.
Regards,
Kal.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-108@oink>;
          Tue, 29 Oct 1996 07:51:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846558333:24045:3; Tue, 29 Oct 96 03:05:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23795; 29 Oct 96 3:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA03494 for dbi-users-real; Mon, 28 Oct 1996 16:42:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from raima.raima.com (root@raima.raima.com [198.206.247.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id QAA03490 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 16:42:25 -0800 (PST)
Received: from dmorse.raima.com (dmorse.raima.com [198.206.247.35]) 
          by raima.raima.com (8.6.11/8.6.11) with SMTP id OAA29840 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 14:49:20 -0800
Message-ID: <3275FC45.5ACB@raima.com>
Date: Tue, 29 Oct 1996 04:44:53 -0800
From: Dave Morse <dmorse@raima.com>
Reply-To: dmorse@raima.com
Organization: Marketing
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Raima databases
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Is there a Perl interface for Raima databases?  Can you send me
information on it.

Thanks,
-- 
David C. Morse
Director of Marketing
dmorse@raima.com
206-557-5205
If it's fast - It's Raima
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28545-110@oink>;
          Tue, 29 Oct 1996 07:52:08 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846558664:25124:11; Tue, 29 Oct 96 03:11:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24957; 29 Oct 96 3:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA03616 for dbi-users-real; Mon, 28 Oct 1996 17:42:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.brainstorm.net (root@mail.brainstorm.net [205.164.112.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id RAA03612 
          for <dbi-users@fugue.com>; Mon, 28 Oct 1996 17:42:46 -0800 (PST)
Received: from [205.178.22.15] (only.if.net [205.178.22.15]) 
          by mail.brainstorm.net (8.7.4/8.6.9) with ESMTP id RAA13281;
          Mon, 28 Oct 1996 17:42:30 -0800 (PST)
X-Sender: thorman@netcom.com
Message-Id: <v03007838ae9b11fd930b@[205.178.22.15]>
In-Reply-To: <199610290101.RAA25385@abyss.ecst.csuchico.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 28 Oct 1996 17:45:34 -0800
To: Simplicist <kal@ecst.csuchico.edu>, dbi-users@fugue.com
From: Chris Thorman <ct@if.net>
Subject: Re: DBD, DBI::Oracle, and Oraperl

Hi,

If anyone replies directly to you, would you remind forwarding their
responses to me, ct@if.net?

I expect to be in a situation similar to your shortly, and am also
wondering about the oraperl / ProC / DBI stuff.

Thanks,

-c


------------------------------------------------------------------------
Chris Thorman                           ct@if.net
If.Net, Inc.                            (415) 392-6244 voice
870 Market Street                       (415) 392-6245 fax
San Francisco, CA 94102                 http://if.net
------------------------------------------------------------------------


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03063-6@oink>;
          Tue, 29 Oct 1996 12:07:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846590037:05029:16; Tue, 29 Oct 96 11:53:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04727; 29 Oct 96 11:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA04413 for dbi-users-real; Tue, 29 Oct 1996 00:08:57 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw2.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id AAA04409 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 00:08:56 -0800 (PST)
Received: from auspex.auspex.com ([144.48.8.10]) 
          by auspex-gw2.auspex.com (8.6.12/8.6.12) with ESMTP id AAA15291;
          Tue, 29 Oct 1996 00:08:52 -0800
Received: from dumas.auspex.fr by auspex.auspex.com (8.7.2/) id AAA04095;
          Tue, 29 Oct 1996 00:08:50 -0800 (PST)
Received: from dickens ([194.2.216.6]) by dumas.auspex.fr (8.6.9/8.6.9) 
          with SMTP id JAA02064; Tue, 29 Oct 1996 09:10:25 +0100
Message-ID: <3275BBCF.794BDF32@Auspex.Com>
Date: Tue, 29 Oct 1996 09:09:51 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
MIME-Version: 1.0
To: Tim Bunce <Tim.Bunce@ig.co.uk>
CC: dbi-users@fugue.com
Subject: Re: URGENT - Possible problem with DBD-Oracle-0.40
References: <9610281754.AA29180@toad.ig.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Tim Bunce wrote:
> 
> Now 0.42 uses oexfet() it's possible that Oraperl/DBD::Oracle is
> finally faster (after startup) than oraperl 2.4. Especially on slow
> networks. That's a testament to the good performance of oraperl 2.4.
> 
> [For those who don't recall, Kevin wrote the original oraperl]

Back when I were a lad, we didn't even have oexfet(). We had to get
up at 3 in the morning, lick the database clean and then go and spend
27 hours a day down the data mines.

*Ahem*

Looks like Oraperl's tombstone can finally be carved, then. :-)
Congratulations.

	Kevin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03475-10@oink>;
          Tue, 29 Oct 1996 13:28:23 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846594493:00977:21; Tue, 29 Oct 96 13:08:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00722; 29 Oct 96 13:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA04547 for dbi-users-real; Tue, 29 Oct 1996 01:37:21 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA04543 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 01:37:08 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id JAA26299;
          Tue, 29 Oct 1996 09:30:05 GMT
Date: Tue, 29 Oct 1996 09:30:04 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Kevin Stock <KStock@auspex.com>
cc: DBI-users <dbi-users@fugue.com>
Subject: Re: URGENT - Possible problem with DBD-Oracle-0.40
In-Reply-To: <3275BBCF.794BDF32@Auspex.Com>
Message-ID: <Pine.SGI.3.95.961029091907.5875A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Tue, 29 Oct 1996, Kevin Stock wrote:

> From: Kevin Stock <KStock@auspex.com>
> To: Tim Bunce <Tim.Bunce@ig.co.uk>
> Cc: dbi-users@fugue.com
> Subject: Re: URGENT - Possible problem with DBD-Oracle-0.40
> 
> Tim Bunce wrote:
> > 
> > Now 0.42 uses oexfet() it's possible that Oraperl/DBD::Oracle is
> > finally faster (after startup) than oraperl 2.4. Especially on slow
> > networks. That's a testament to the good performance of oraperl 2.4.
> > 
> > [For those who don't recall, Kevin wrote the original oraperl]
> 
> Back when I were a lad, we didn't even have oexfet(). We had to get
> up at 3 in the morning, lick the database clean and then go and spend
> 27 hours a day down the data mines.
> 

27 hours a day .... you were lucky.  We had to get up 4 hours before
going to bed, eat a handful of cold SQL .... work 30 hours a day, day
in, day out, for 3 pence every 4 years; come home and .... knock up
another version of DBD-Oracle.

..... but then you know the rest!

Andy.

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04342-5@oink>;
          Tue, 29 Oct 1996 16:01:40 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846599172:29632:88; Tue, 29 Oct 96 14:26:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00130; 29 Oct 96 14:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA04621 for dbi-users-real; Tue, 29 Oct 1996 02:50:18 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id CAA04614;
          Tue, 29 Oct 1996 02:50:16 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id ae22763;
          29 Oct 96 10:48 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa11594; 29 Oct 96 10:39 GMT
Received: from toad by oink with SMTP (PP) id <01964-0@oink>;
          Tue, 29 Oct 1996 10:35:11 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA00590;
          Tue, 29 Oct 1996 10:34:31 +0000
Date: Tue, 29 Oct 1996 10:34:31 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610291034.AA00590@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: Darn! Bug in DBD-Oracle-0.42
Cc: dbi-announce@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


Sigh.

I was too hasty with that last release.

When implementing the oexfet support I'd forgotten that the end_of_data
variable actually holds the error which caused the end of data rather
than a simple boolean.

The effect is that any select which returns fewer rows than the cache
size will appear to end with a ORA-00001: unique constraint violation
error.

Here's the fix:

diff -c -r1.26 dbdimp.c
*** 1.26	1996/10/28 15:34:28
--- dbdimp.c	1996/10/29 10:20:00
***************
*** 831,837 ****
  	}
  	imp_sth->in_cache = imp_sth->cda->rpc;	/* cache loaded */
  	if (imp_sth->cda->rc == 1403)
! 	    imp_sth->end_of_data = TRUE;
      }
      else {					/* NOT a select */
  	if (oexec(imp_sth->cda)) {
--- 831,837 ----
  	}
  	imp_sth->in_cache = imp_sth->cda->rpc;	/* cache loaded */
  	if (imp_sth->cda->rc == 1403)
! 	    imp_sth->end_of_data = 1403;
      }
      else {					/* NOT a select */
  	if (oexec(imp_sth->cda)) {

I new release will be out today (with a renamed variable and better tests).

Once again, please accept my apologies for any inconvenience caused.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07979-1@oink>;
          Wed, 30 Oct 1996 10:06:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846621801:15667:162; Tue, 29 Oct 96 20:43:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab02974; 29 Oct 96 17:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA04814 for dbi-users-real; Tue, 29 Oct 1996 05:31:57 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from goblin.rosprint.ru (vic@goblin.rosprint.ru [193.232.89.107]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id FAA04810 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 05:31:47 -0800 (PST)
Received: (from vic@localhost) by goblin.rosprint.ru (8.7.5/cvt) id RAA26250 
          for dbi-users@fugue.com; Tue, 29 Oct 1996 17:37:50 -0300 (GMT)
From: Victor Teslikov <vic@goblin.rosprint.ru>
Message-Id: <199610292037.RAA26250@goblin.rosprint.ru>
Subject: child died? what with parent LDA?
To: dbi-users@fugue.com
Date: Tue, 29 Oct 1996 17:37:50 -0300 (GMT)
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text

Hello!
This is my first posting to this list, so sorry if any.

Please, help me find where (parent) connection gets lost.
Next is my problem.

------------------------

$ENV{ORACLE_HOME} = '/oracle';
$ENV{ORACLE_SID} = 'rs';
$dbname = '';

$dbuser = 'bill/billpasswd'; # probe 1
#$dbuser = 'bill/billpasswd@rs_tcp'; # probe 2

eval '$Oraperl::safe = 1'       if $] >= 5;
eval 'use Oraperl; 1' || die $@ if $] >= 5;

$SIG{CHLD}='SigCHLD';

{
  # Connect first
  my ($l) = &ora_login($dbname, $dbuser, '');
  print "Not conn\n" unless defined $l;
  &ora_autocommit($l,1);
  $l->debug(2);
  my $pid = fork;
  if ($pid) {
    print "This is parent\n";
  } else {
    my $z = &ora_login($dbname,$dbuser,'');
    $z->debug(2);
    &ora_logoff($z) || die "z logoff: $ora_errstr\n";
    exit(0);
  }
  wait;

  &ora_logoff($l) || die "l logoff: $ora_errstr\n";
}

sub SigCHLD {
  print "Child exited!\n";
}
--------------------------
connection through ora-pipes 

    DBI::db=HASH(0xeca48) debug level set to 2
This is parent
    DBI::db=HASH(0xd0d78) debug level set to 2
    -> disconnect for DBD::Oracle::db (DBI::db=HASH(0xeca9c)~0xd0d78)
    <- disconnect= 1
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0xeca48))
    <- DESTROY= undef
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0xd0d78))
    <- DESTROY= undef
    -> disconnect for DBD::Oracle::db (DBI::db=HASH(0x1232d0)~0xeca48)
Broken Pipe
--------------------------
connection through TCP (multithreaded server)

    DBI::db=HASH(0xecaf0) debug level set to 2
This is parent
    DBI::db=HASH(0xd0de0) debug level set to 2
    -> disconnect for DBD::Oracle::db (DBI::db=HASH(0xecb44)~0xd0de0)
    <- disconnect= 1
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0xecaf0))
    <- DESTROY= undef
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0xd0de0))
    <- DESTROY= undef
Child exited!
    -> disconnect for DBD::Oracle::db (DBI::db=HASH(0x123428)~0xecaf0)
    <- disconnect= 
l logoff: ORA-03113: end-of-file on communication channel (DBD: disconnect error)
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0xecaf0))
    <- DESTROY= undef
------------------------------

Thanks.
	Victor
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07979-11@oink>;
          Wed, 30 Oct 1996 10:07:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846635316:27313:1759; Wed, 30 Oct 96 00:28:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16740; 29 Oct 96 19:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA04936 for dbi-users-real; Tue, 29 Oct 1996 06:49:13 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gatekeeper.newmetrics.com (gatekeeper.newmetrics.com [199.217.207.226]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA04932 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 06:49:11 -0800 (PST)
Received: (from daemon@localhost) by gatekeeper.newmetrics.com (8.6.12/8.6.12) 
          id IAA15089; Tue, 29 Oct 1996 08:49:06 -0600
Message-Id: <199610291449.IAA15089@gatekeeper.newmetrics.com>
Received: from unknown(199.217.246.204) by gatekeeper.newmetrics.com 
          via smap (V1.3) id sma015087; Tue Oct 29 08:48:56 1996
Received: by yang.newmetrics.com (1.38.193.5/16.2) id AA05776;
          Tue, 29 Oct 1996 08:55:29 -0600
From: Dean Burdick <dean@yang.newmetrics.com>
Subject: Help...
To: dbi-users@fugue.com
Date: Tue, 29 Oct 96 8:55:29 CST
Cc: Tim.Bunce@ig.co.uk
Mailer: Elm [revision: 70.85.2.1]

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07979-21@oink>;
          Wed, 30 Oct 1996 10:08:22 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846642974:04059:1883; Wed, 30 Oct 96 02:36:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab19352; 29 Oct 96 23:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA05329 for dbi-users-real; Tue, 29 Oct 1996 09:58:08 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mail.Space.NET (root@newton.space.net [194.59.182.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA05323 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 09:57:40 -0800 (PST)
Received: from moebius.space.net ([194.59.182.25]) by newton.Space.NET 
          with SMTP id <82681-1>; Tue, 29 Oct 1996 18:56:32 +0100
Date: Tue, 29 Oct 1996 18:51:47 +0100
From: Thomas Eisenbock <et@Space.NET>
To: dbi-users@fugue.com
Subject: Q: ODBC access ?
Message-ID: <Pine.BSI.3.94.961029184855.25827F-100000@moebius.space.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hola,

I'm sorry, if this goes to a list or if it's a FAQ.

I am looking for a way to access an ODBC Database from my Unix machine.
As I love Perl, I found the DBI (at http://www.hermetica.com/technologia/DBI/)
and saw the announcement, so I thought you may be able to help me.
                                     
I'd even spend money, if I could only get hold of some routines to access  
Windows Databases via ODBC from a perl program. 
                                     
Please help me ! If you know, where to get information or find anything
about an existing interface, then tell me about it...and if this a mailing list,
please subscribe me :)

Best regards,
Thomas Eisenbock

-- 
SpaceNet - Gesellschaft f.                          http://www.space.net/
innovative Netzwerktechnik mbH                        webmaster@space.net  
Muenchner Technologie Zentrum                      
Frankfurter Ring 193a                             Telefon: +49 89 3246830
D-80807 Muenchen                                      Fax: +49 89 32468351


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07979-24@oink>;
          Wed, 30 Oct 1996 10:08:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846643058:04059:2208; Wed, 30 Oct 96 02:37:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20028; 29 Oct 96 23:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA05568 for dbi-users-real; Tue, 29 Oct 1996 11:00:11 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-1.mail.demon.net (relay-1.mail.demon.net [158.152.1.140]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA05557;
          Tue, 29 Oct 1996 11:00:07 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-1.mail.demon.net id ac27980;
          29 Oct 96 18:42 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa25650; 29 Oct 96 18:41 GMT
Received: from toad by oink with SMTP (PP) id <05584-0@oink>;
          Tue, 29 Oct 1996 18:41:18 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA01866;
          Tue, 29 Oct 1996 18:41:10 +0000
Date: Tue, 29 Oct 1996 18:41:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610291841.AA01866@toad.ig.co.uk>
To: dbi-users@fugue.com
Subject: Announce: DBD-Oracle-0.43 (bug fix release)
Cc: dbi-announce@fugue.com, mellon@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


Changes in DBD::Oracle 0.43 (Oraperl 1.30), 29nd Oct 1996

    Fixed serious 'false ora_errno 1 after short select' bug.
    Worked around oracle bug that makes cda->ft unreliable.
    Do not use DBD::Oracle 0.41 or 0.42.
    Cursors are now 'describe'd at prepare time thus making
    NUM_OF_FIELDS etc always available. Describe does nothing
    for non-select operations. NUM_OF_FIELDS > 0 is now used to
    select between oexec() and oexfet() in execute().
    Added more internal debugging. Improved test.pl. 

In the immortal words of a collegue of mine "I've fixed the last bug"!

:-)

This version is happily crunching millions of call records using
a wide assortment of cursor types as I write. All seems well but,
as always, your milage may vary.

Apologies once again.

Uploaded to ftp.demon.co.uk as usual. Should reach CPAN in a day or so.
(Please check that the file you get is 80119 bytes long.)

Tim.

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09312-0@oink>;
          Wed, 30 Oct 1996 12:26:17 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846678117:04408:3133; Wed, 30 Oct 96 12:21:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ac23644; 29 Oct 96 23:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA05628 for dbi-users-real; Tue, 29 Oct 1996 11:27:22 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA05624 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 11:27:19 -0800 (PST)
Message-Id: <199610291927.LAA05624@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Tue, 29 Oct 1996 20:26:45 +0100
To: dbi-users@fugue.com
From: Martin Berli <berli@switch.ch>
Subject: Oracle WebServer 3.0: Perl Cartridge
Date: Tue, 29 Oct 1996 20:26:43 +0100

Just read this in a "White Paper" from Oracle:

> Perl Cartridge
>
> Perl is an extremely popular development language for deploying complex,
> robust applications that require different types of information from
> different sources. In Oracle WebServer 3.0, the Perl cartridge allows
> developers to use their existing Perl code through the Web Request Broker
> Architecture.

Does anyone know more about that? Could this be in concurrence with Oraperl?

Martin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09785-5@oink>;
          Wed, 30 Oct 1996 14:59:06 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846681404:04213:5009; Wed, 30 Oct 96 13:16:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ac25837; 30 Oct 96 6:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id UAA07070 for dbi-dev-real; Tue, 29 Oct 1996 20:54:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from speedy.speakeasy.org (speedy.speakeasy.org [199.238.226.57]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id UAA07066 
          for <dbi-dev@fugue.com>; Tue, 29 Oct 1996 20:54:38 -0800 (PST)
Received: (from brett@localhost) by speedy.speakeasy.org (8.8.0/8.7.3) 
          id UAA19748 for dbi-dev@fugue.com;
          Tue, 29 Oct 1996 20:54:19 -0800 (PST)
Date: Tue, 29 Oct 1996 20:54:19 -0800 (PST)
From: Brett McCormick <brett@speedy.speakeasy.org>
Message-Id: <199610300454.UAA19748@speedy.speakeasy.org>
To: dbi-dev@fugue.com
Subject: DBI->connect


Why does DBI->connect try to enforce the arguments when many of the
drivers deviate?  I'm writing DBD::Postgres and there are 5 parameters
(host, port, options, tty, dbname) but DBI->connect won't let me do
this!  What is the work-around?
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09785-16@oink>;
          Wed, 30 Oct 1996 15:00:12 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846684851:04213:7578; Wed, 30 Oct 96 14:14:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab12561; 30 Oct 96 6:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id UAA07015 for dbi-users-real; Tue, 29 Oct 1996 20:30:22 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from anna.in-berlin.de (anna.in-berlin.de [193.175.21.66]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id UAA07007;
          Tue, 29 Oct 1996 20:30:16 -0800 (PST)
Received: by anna.in-berlin.de (940816.SGI.8.6.9/940406.SGI) id FAA25751;
          Wed, 30 Oct 1996 05:29:33 +0100
Date: Wed, 30 Oct 1996 05:29:33 +0100
Message-Id: <199610300429.FAA25751@anna.in-berlin.de>
From: Andreas Koenig <k@anna.in-berlin.de>
To: Tim.Bunce@ig.co.uk
CC: dbi-users@fugue.com, dbi-announce@fugue.com, mellon@fugue.com
In-reply-to: <9610291841.AA01866@toad.ig.co.uk> (message from Tim Bunce on Tue, 29 Oct 1996 18:41:10 +0000)
Subject: Re: Announce: DBD-Oracle-0.43 (bug fix release)

>>>>> Tim Bunce <Tim.Bunce@ig.co.uk> writes:

 tim> Uploaded to ftp.demon.co.uk as usual. Should reach CPAN in a day or so.
 tim> (Please check that the file you get is 80119 bytes long.)

 tim> Tim.

Uh, no, that's not a good checksum. PAUSE has already shaved off
27%. The only reliable checksum that is easily available would be the
MD5 cecksum on the uncompressed tarfile, i.e. the 'md5-ungz' value in
the CHECKSUMS file in your DBD/Oracle directory on CPAN.

 'DBD-Oracle-0.43.tar.gz' => {
    size => 58523,
    'md5' => 'f300231a7ea13a1a68e7d65b236ce8f5',
    'md5-ungz' => '139da8570787750d4eea7d74db889bd9'
  },

So to check if the files you supplied and the files that arrived here
are the same, you should run this and compare the output:

# zcat DBD-Oracle-0.43.tar.gz | md5sum -
139da8570787750d4eea7d74db889bd9  -


andreas
---+++---
Received: from 158.152.1.73 by oink with SMTP (PP) id <10869-6@oink>;
          Wed, 30 Oct 1996 18:02:53 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846689184:04408:9413; Wed, 30 Oct 96 15:26:24 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18620; 29 Oct 96 22:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA04926 for dbi-users-real; Tue, 29 Oct 1996 06:41:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gatekeeper.newmetrics.com (gatekeeper.newmetrics.com [199.217.207.226]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA04922 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 06:41:41 -0800 (PST)
Received: (from daemon@localhost) by gatekeeper.newmetrics.com (8.6.12/8.6.12) 
          id IAA15075 for <dbi-users@fugue.com>;
          Tue, 29 Oct 1996 08:41:33 -0600
Message-Id: <199610291441.IAA15075@gatekeeper.newmetrics.com>
Received: from unknown(199.217.246.204) by gatekeeper.newmetrics.com 
          via smap (V1.3) id sma015073; Tue Oct 29 08:41:27 1996
Received: by yang.newmetrics.com (1.38.193.5/16.2) id AA26479;
          Tue, 29 Oct 1996 08:47:59 -0600
Date: Tue, 29 Oct 1996 08:47:59 -0600
From: Dean Burdick <dean@yang.newmetrics.com>
Apparently-To: dbi-users@fugue.com

Hi,

	I am trying to build DBI-0.72 on HP-UX 9.04. It seems
to compile OK but doesn't pass all tests and I can't get it
statically linked with perl.  I get "directory not found"
for the DBI directory when I try to rebuild Perl(5.003).  What am I doing wrong?
Any help is appreciated.

Dean Burdick.
dean@newmetrics.com

Here is my scenario:

# perl Makefiel.PL
Can't open perl script "Makefiel.PL": No such file or directory
# perl Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI
# make
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
        /usr/bin/perl -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib /opt/perl5/lib/ExtUtils/xsubpp  -typemap /opt/perl5/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
        cc -c  -D_HPUX_SOURCE -Aa -I/usr/local/include      -DVERSION=\"0.72\"  -DXS_VERSION=\"0.72\"  -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  DBI.c
        rm -rf ./blib/arch/auto/DBI/DBI.a
        ar cr ./blib/arch/auto/DBI/DBI.a DBI.o && : ./blib/arch/auto/DBI/DBI.a
        chmod 755 ./blib/arch/auto/DBI/DBI.a
# make test TEST_VERBOSE = 1
Memory fault(coredump)
# make test TET ST+ _VERBOSE=1
        rm -rf ./blib/arch/auto/DBI/DBI.a
        ar cr ./blib/arch/auto/DBI/DBI.a DBI.o && : ./blib/arch/auto/DBI/DBI.a
        chmod 755 ./blib/arch/auto/DBI/DBI.a
Writing "Makefile.aperl" for this perl

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
        CCCDLFLAGS => q[]
        DIR => []
        LINKTYPE => q[static]
        MAKEAPERL => q[1]
        MAKEFILE => q[Makefile.aperl]
        NAME => q[DBI]
        NORECURS => q[1]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile.aperl for DBI
        make -f Makefile.aperl perl
Writing ./perlmain.c
        cd . && cc -c  -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  -D_HPUX_SOURCE -Aa -I/usr/local/include  \
           -DVERSION=\"0.72\" \
        -DXS_VERSION=\"0.72\" -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE perlmain.c
        cat ./blib/arch/auto/DBI/extralibs.ld >> ./blib/arch/auto/DBI/extralibs.all
        cc -L/usr/local/lib -o perl  ./perlmain.o /opt/perl5/lib/PA-RISC1.1/5.003/CORE/libperl.a ./blib/arch/auto/DBI/DBI.a `cat ./blib/arch/auto/DBI/extralibs.all` -ldld -lm -lc 
To install the new "perl" binary, call
    make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
    make -f Makefile.aperl map_clean
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
Can't locate auto/Fcntl/autosplit.ix in @INC at /opt/perl5/lib/AutoLoader.pm line 69.
 at /opt/perl5/lib/Fcntl.pm line 29
t/min...............1..12
ok 1
ok 2
ok 3
DBD::ExampleP in /opt/perl5/lib/site_perl is hidden by DBD::ExampleP in ./blib/lib
 at t/min.t line 16
DBD::NullP in /opt/perl5/lib/site_perl is hidden by DBD::NullP in ./blib/lib
 at t/min.t line 16
DBD::Sponge in /opt/perl5/lib/site_perl is hidden by DBD::Sponge in ./blib/lib
 at t/min.t line 16
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok
All tests successful.
Files=1,  Tests=12,  0 secs ( 0.42 cusr  0.04 csys =  0.46 cpu)
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib test.pl
test.pl 
DBI test application $Revision: 1.16 $
Switch: DBI-0.72 Switch by Tim Bunce, 0.72
DebugDispatch: 0
DBD::ExampleP in /opt/perl5/lib/site_perl is hidden by DBD::ExampleP in ./blib/lib
 at test.pl line 49
DBD::NullP in /opt/perl5/lib/site_perl is hidden by DBD::NullP in ./blib/lib
 at test.pl line 49
DBD::Sponge in /opt/perl5/lib/site_perl is hidden by DBD::Sponge in ./blib/lib
 at test.pl line 49
Available Drivers: ExampleP, NullP, Sponge
Read DBI special variables (expect: empty string, 99, 99):
err:    
err:    99
errstr: 99
Attempt to modify DBI special variables.
Expect a 'Can't modify' error message:
Can't modify $DBI::&rows special variable at test.pl line 59

Connected as DBI::db=HASH(0x400a9cc4)

Test error handling: prepare()'ing an invalid query.
Expect prepare to return UNDEF and an error message:
prepare returned UNDEF. $DBI::err=Unknown field names: unknown_field_name

Cursor prepare'd as DBI::st=HASH(0x400ab290)
Prepared as DBI::st=HASH(0x400ab344)
Number of fields: 3
Data type of first field: 1
Driver name: ExampleP

Fetching data from both cursors.
Expect several rows of data:
16877 2 ., 1 1024 .
16877 2 .., 1 1024 ..
16877 3 lost+found, 1 1024 cron
16895 1600 tmp, 8 8192 mqueue
16749 3200 bin, 1 1024 lp
16749 6400 man, 1 24 uucppublic
16749 6401 netdemo, 1 1024 uucp
16749 19201 lib, 1 1024 ppl
16749 6563 include, 1 1024 fax

Automatic method parameter usage check.
Expect a 'DBI ... invalid' error and a 'Usage: ...' message:
DBI commit: invalid number of parameters: handle + 1
Usage: $h->commit() at test.pl line 124.

Preparing new $cursor_a to replace current $cursor_a.
We enable debugging on current to watch it's destruction.
Expect several lines of DBI trace information:
    DBI::st=HASH(0x400ab368) debug level set to 2
    -> DESTROY for DBD::ExampleP::st (DBI::st=HASH(0x400ab368))
    <- DESTROY= undef

Executing via func redirect: $h->func(..., 'execute')

Binding columns of $cursor_a to variables.

Fetching one row from new $cursor_a with a bound column.
Expect a large number follwed by a dot:
846598719 .
bind_col worked

Cursor tests done (scoped objects will be destroyed now)
test.pl done (global destruction will follow)

# perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=9, archname=PA-RISC1.1
    uname='hp-ux yin a.09.04 e 9000856 103994331 8-user license '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize=' ', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib
    libs=-ldld -lm -lc
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''

@INC: /opt/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .
# exit


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11721-0@oink>;
          Wed, 30 Oct 1996 18:27:19 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846699643:22344:327; Wed, 30 Oct 96 18:20:43 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ac29417; 30 Oct 96 18:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA07923 for dbi-users-real; Wed, 30 Oct 1996 04:28:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from omzrelay.mci.com (omzrelay.mci.com [199.249.19.40]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA07919 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 04:28:41 -0800 (PST)
Received: by omzrelay.mci.com; (8.6.12/1.1.8.2/07Nov95-0827AM) id GAA16311;
          Wed, 30 Oct 1996 06:28:10 -0600
Received: from pop2b.mail.mci.com by omzrelay.mci.com;
          (8.6.12/1.1.8.2/14Nov95-0411PM) id GAA02652;
          Wed, 30 Oct 1996 06:28:09 -0600
Received: by pop2b.mail.mci.com; (8.6.12/1.1.8.2/07Nov95-0827AM) id GAA20673;
          Wed, 30 Oct 1996 06:28:07 -0600
Received: from pipeline.cs.mci.com by pop2b.mail.mci.com;
          (8.6.12/1.1.8.2/14Nov95-0411PM) id GAA18215;
          Wed, 30 Oct 1996 06:28:07 -0600
Received: from localhost 
          by pipeline.cs.mci.com (5.65v3.2/1.1.10.5/02Jul96-0412PM) id AA31307;
          Wed, 30 Oct 1996 05:28:06 -0700
Date: Wed, 30 Oct 1996 05:28:06 -0700 (MST)
From: Jeff Schenk <jaschenk@mci.com>
To: dbi-users@fugue.com
Subject: Informix DBD Problem with Dec UNIX and Online Server 7.2 (fwd)
Message-Id: <Pine.OSF.3.95.961030052710.15797A-100000@pipeline.cs.mci.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII



===========================================
==== Jeff Schenk InnerApps Development ====
==== Phone: 719-535-4372 Vnet: 622-4372====
==== Pager: 800-SKY-8888 PIN: 2120447  ====
===========================================  

---------- Forwarded message ----------
Date: Tue, 29 Oct 1996 15:18:30 -0700
From: Jeff Schenk <jaschenk@MCI.Com>
To: perldb-interest@fugue.com
Cc: Jeff.Schenk@mci.com, descarte@hermetica.com
Subject: Informix DBD Problem with Dec UNIX and Online Server 7.2

I have run into the following problem while running a make on for the Informix DBD at level 
0.24.  Using DBI 0.73.  ESQL/C is 7.20.UC3 on Digital UNIX V4.0.

Output from make:

cp Informix.pm ./blib/lib/DBD/Informix.pm
/usr/local/bin/perl -I/usr/local/lib/perl5/alpha-dec_osf/5.003 -I/usr/local/lib/
perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUti
ls/typemap Informix.xs >Informix.tc && mv Informix.tc Informix.c
Please specify prototyping behavior for Informix.xs (see perlxs manual)
cc -c -I/usr/users/informix/incl/esql -I/usr/local/lib/perl5/alpha-dec_osf/5.003
/DBI -I/usr/local/lib/perl5/site_perl/alpha-dec_osf/DBI -DSTANDARD_C -I/usr/loca
l/include -D__LANGUAGE_C__ -D_NO_PROTO -O2 -Olimit 2900     -DVERSION=\"0.24\"  
-DXS_VERSION=\"0.24\"  -I/usr/local/lib/perl5/alpha-dec_osf/5.003/CORE  Informix
.c
cc: Warning: Informix.c, line 167: In the initializer for valuesv, "dbd_db_FETCH(...)" of type 
"int", is being converted to "pointer to struct sv".
    SV *valuesv = dbd_db_FETCH(dbh, keysv);
------------------^
cc: Warning: Informix.c, line 358: In this statement, "dbd_st_readblob(...)" of type "int", is 
being converted to "pointer to struct sv".
    ST(0) = dbd_st_readblob(sth, field, offset, len, destsv);
----^
cc: Warning: Informix.c, line 390: In the initializer for valuesv, "dbd_st_FETCH(...)" of type 
"int", is being converted to "pointer to struct sv".
    SV *valuesv = dbd_st_FETCH(sth, keysv);
------------------^
esql -e -I/usr/users/informix/include -I/usr/local/lib/perl5 
-I/usr/local/lib/perl5/alpha-dec_osf/5.003 -I/usr/local/lib/perl5/site_perl/alpha-dec_osf/DBI 
-I/usr/local/lib/perl5/alpha-dec_osf/5.003/CORE dbdimp.ec
cc -c -I/usr/users/informix/incl/esql -I/usr/local/lib/perl5/alpha-dec_osf/5.003/DBI 
-I/usr/local/lib/perl5/site_perl/alpha-dec_osf/DBI -DSTANDARD_C -I/usr/local/include 
-D__LANGUAGE_C__ -D_NO_PROTO -O2 -Olimit 2900     -DVERSION=\"0.24\"  -DXS_VERSION=\"0.24\"  
-I/usr/local/lib/perl5/alpha-dec_osf/5.003/CORE  -I/usr/users/informix/include dbdimp.c
cc: Error: dbdimp.ec, line 1314: In this declaration, the type of "free_cursor" is not 
compatible with the type of a previous declaration of "free_cursor" at line number 1216 in file 
dbdimp.ec.
static void free_cursor(sqc)
------------^
*** Exit 1
Stop.




Contents of Makefile.PL:

#!/usr/local/bin/perl -sw
# $Id: Makefile.PL,v 1.1 1996/04/14 17:25:11 descarte Exp descarte $
#
# (c)1996 Hermetica. Written by Alligator Descartes <descarte@hermetica.com>
# From an original by Tim Bunce
#
# Covered by GPL - License to be added!
#
# $Log: Makefile.PL,v $
# Revision 1.1  1996/04/14 17:25:11  descarte
# Initial revision
#

use ExtUtils::MakeMaker qw(&WriteMakefile $Verbose);
use Getopt::Std;
use Config;

use DBI;	# The DBI must be installed before we can build a DBD

%opts = (
    'NAME'    => 'DBD::Informix',
    'VERSION' => '0.24',
);

print "\nConfiguring DBD::Informix version $opts{VERSION}...\n";
print "Remember to actually read the README file!\n\n";

# --- Where is Informix installed...

unless ($ENV{INFORMIXDIR}){
    warn "\$INFORMIXDIR not defined. Searching for Informix...\n";
    foreach(qw(/usr/informix /opt/informix /usr/soft/informix)){
	$ENV{INFORMIXDIR}=$_,last if -d "$_";
    }
    die "Unable to determine \$INFORMIXDIR!\n" unless $ENV{INFORMIXDIR};
}
my $ID = $ENV{INFORMIXDIR};

print "What version of Informix are you using? [5/6/7] ";
open TTY, "/dev/tty";
$infversion = <TTY>;
chomp( $infversion );
close TTY;

print "Using Informix version $infversion in $ID\n";

# --- What Informix is installed...

# Validate we have the right stuff installed

if ( $infversion eq '5' ) {
    warn "Warning: Informix library does not appear to be installed.\n"
    	unless -f "$ID/lib/esql/libgen.a"
               and -f "$ID/lib/esql/libos.a"
               and -f "$ID/lib/esql/libsql.a";
    $sysliblist = "-L$ID/lib/esql -lsql -lgen -los -lm";
  } else {
        if ( $infversion eq '6' || $infversion eq '7' ) {
            warn "Warning: Informix library does not appear to be installed.\n"
                unless -f "$ID/lib/esql/libgen.a"
                   and -f "$ID/lib/esql/libos.a"
                   and -f "$ID/lib/esql/libsql.a"
                   and -f "$ID/lib/libasf.a";
            $sysliblist = "-L$ID/lib -L$ID/lib/esql -lsql -lasf -lgen -los -lm";
          }
  }

# Display the list of libs that we reckon the stated version of Informix  
# - requires to build
print "Informix sysliblist: $sysliblist\n";

$ccflags = "";			# Fudge to get round HP-UX brain-death
if ( $Config{osname} eq 'solaris' ) {
    $linkwith = "-L$ID/lib -R$ID/lib -L$ID/lib/esql -R$ID/lib/esql";
  } else {
    if ( $Config{osname} eq 'aix' ) {
        $linkwith = "-L$ID/lib -lbsd";
      } else {
        if ( $Config{osname} eq 'hpux' ) {
            $ccflags = $Config{ccflags};
          }
        $linkwith = "-L$ID/lib";
      }
  }
 
$opts{LIBS} = [ $sysliblist ];
$opts{INC}  = "-I$ID/incl/esql -I$Config{archlib}/DBI -I$Config{sitearch}/DBI";
$opts{dynamic_lib} = { OTHERLDFLAGS => '-L$(INFORMIXDIR)/lib ' .$linkwith };
$opts{OBJECT} = '$(O_FILES) dbdimp.o';
$opts{macro} = { 'ESQL_LIB' => '$(INFORMIXDIR)/include' };

$opts{DEFINE} = '-Wall -pedantic -Wno-comment -Wpointer-arith -Wcast-align'
	    . ' -Wconversion -Wtraditional -Wpointer-arith'
	    . ' -Wcast-qual'
	if $Config{cc} eq 'gcc';	# Just me asking gcc to be paranoid.

$opts{DEFINE} .= ' -Xa' if $Config{cc} eq 'clcc';	# CenterLine CC

# log key platform information to help me help you quickly
print "System: perl$] @Config{qw(myuname archname dlsrc)}\n";
print "Compiler: @Config{qw(cc optimize ccflags)}\n";

# Assorted hints - these should be move to a hints subdirectory
print "See README notes about SPARCompiler on Solaris\n"
    if -d "/opt/SUNWspro/bin" and $Config{osname} eq 'solaris';

print "\n";

WriteMakefile(%opts);

# Cleanly exit from the Makefile-build process

exit 0;

sub MY::postamble {
      '
.SUFFIXES: .ec

.ec.o:
	esql -e -I$(ESQL_LIB) -I$(PERL_LIB) -I$(PERL_ARCHLIB) -I$(SITEARCHEXP)/DBI 
-I$(PERL_ARCHLIB)/CORE dbdimp.ec
	$(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) -I$(ESQL_LIB) $*.c
	rm -f dbdimp.c
';
}

sub MY::clean {
    '
clean::
	rm -f dbdimp.c
	rm -f *.o
	rm -f *.so
	rm -f Makefile.old
	rm -f Informix.c
	rm -f pm_to_blib
	rm -rf blib
';
}

__END__


Output from perl -e 'use Config; print Config::myconfig()':

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=dec_osf, osver=4.0, archname=alpha-dec_osf
    uname='osf1 pipeline.cs.mci.com v4.0 386 alpha '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O2 -Olimit 2900', gccversion=
    cppflags='-DSTANDARD_C -I/usr/local/include -D__LANGUAGE_C__ -D_NO_PROTO'
    ccflags ='-DSTANDARD_C -I/usr/local/include -D__LANGUAGE_C__ -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -ldb -lm -lc -lbsd -lPW
    libc=/usr/shlib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -s -hidden -L/usr/local/lib'




Please let me know if anyone needs more info or has run across this.
Thanks,
Jeff Schenk
MCI
InnerApps Development Engineer IV
USA 719-535-4372


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-18@oink>;
          Thu, 31 Oct 1996 07:37:19 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846720641:18542:3723; Thu, 31 Oct 96 00:10:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab14722; 30 Oct 96 9:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id XAA07542 for dbi-users-real; Tue, 29 Oct 1996 23:20:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from auspex-gw2.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id XAA07538 
          for <dbi-users@fugue.com>; Tue, 29 Oct 1996 23:20:23 -0800 (PST)
Received: from auspex.auspex.com ([144.48.8.10]) 
          by auspex-gw2.auspex.com (8.6.12/8.6.12) with ESMTP id XAA16399;
          Tue, 29 Oct 1996 23:14:06 -0800
Received: from dumas.auspex.fr by auspex.auspex.com (8.7.2/) id XAA02137;
          Tue, 29 Oct 1996 23:14:03 -0800 (PST)
Received: from dickens ([194.2.216.6]) by dumas.auspex.fr (8.6.9/8.6.9) 
          with SMTP id IAA03215; Wed, 30 Oct 1996 08:15:41 +0100
Message-ID: <3277007D.41C67EA6@Auspex.Com>
Date: Wed, 30 Oct 1996 08:15:09 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
MIME-Version: 1.0
To: Martin Berli <berli@switch.ch>
CC: dbi-users@fugue.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
References: <199610291927.LAA05624@toccata.fugue.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Martin Berli wrote:
> 
> Just read this in a "White Paper" from Oracle:
> 
> > Perl Cartridge
> >
> > Perl is an extremely popular development language for deploying complex,
> > robust applications that require different types of information from
> > different sources. In Oracle WebServer 3.0, the Perl cartridge allows
> > developers to use their existing Perl code through the Web Request Broker
> > Architecture.
> 
> Does anyone know more about that? Could this be in concurrence with Oraperl?

Some time ago, Oracle announced that they were making available a
package of unsupported tools for Oracle Web access. These included
Oraperl v2.4 (BTW, this was shortly after I described Oraperl during
a job interview at Oracle, and was informed "we use our own tools"!).
Perhaps they've added DBI/DBD to the current version.

	Kevin
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-40@oink>;
          Thu, 31 Oct 1996 07:39:52 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846723154:16558:1762; Thu, 31 Oct 96 00:52:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab15457; 30 Oct 96 18:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA08088 for dbi-users-real; Wed, 30 Oct 1996 06:44:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lin01.global.co.za (lin01.global.co.za [196.3.164.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id GAA08084 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 06:44:17 -0800 (PST)
Received: from kite.global.co.za (kite.global.co.za [196.3.167.110]) 
          by lin01.global.co.za (8.7.3/8.7.3) with ESMTP id QAA03386 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 16:39:58 -0200 (GMT)
Message-Id: <199610301839.QAA03386@lin01.global.co.za>
From: Herman Scheepers <hermans@global.co.za>
To: oraperl mailing list <dbi-users@fugue.com>
Subject: DBD::Oracle-0.38 on Solaris
Date: Wed, 30 Oct 1996 16:42:36 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi

I attempted to make DBD::Oracle-0.38 on Solaris 2.4. I installed Perl 5.003
and DBI. These seemed to be file and all the tests
checked out OK. As I did perl Makefile.PL I got the following:

Can't load module DBI, dynamic loading not available in this perl.
  (You may need to build a new perl executable which either supports
  dynamic loading or has the DBI module statically linked into it.)
 at /usr/local/lib/perl5/site_perl/DBI.pm line 32
BEGIN failed--compilation aborted at Makefile.PL line 18.          

Any help would be appreciated.

Regards
Herman

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-44@oink>;
          Thu, 31 Oct 1996 07:40:29 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846723687:16558:2706; Thu, 31 Oct 96 01:01:27 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28760; 30 Oct 96 19:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA08210 for dbi-users-real; Wed, 30 Oct 1996 07:49:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA08206 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 07:49:20 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id PAA11726;
          Wed, 30 Oct 1996 15:48:20 GMT
Date: Wed, 30 Oct 1996 15:48:20 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Herman Scheepers <hermans@global.co.za>
cc: oraperl mailing list <dbi-users@fugue.com>
Subject: Re: DBD::Oracle-0.38 on Solaris
In-Reply-To: <199610301839.QAA03386@lin01.global.co.za>
Message-ID: <Pine.SGI.3.95.961030154327.7707A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Wed, 30 Oct 1996, Herman Scheepers wrote:

> From: Herman Scheepers <hermans@global.co.za>
> To: oraperl mailing list <dbi-users@fugue.com>
> Subject: DBD::Oracle-0.38 on Solaris 
> 
> Hi
> 
> I attempted to make DBD::Oracle-0.38 on Solaris 2.4. I installed Perl 5.003
> and DBI. These seemed to be file and all the tests
> checked out OK. As I did perl Makefile.PL I got the following:
> 
> Can't load module DBI, dynamic loading not available in this perl.
>   (You may need to build a new perl executable which either supports
>   dynamic loading or has the DBI module statically linked into it.)
>  at /usr/local/lib/perl5/site_perl/DBI.pm line 32
> BEGIN failed--compilation aborted at Makefile.PL line 18.          
> 
> Any help would be appreciated.
> 

My suggestions would be do the following in this order ....

1.  reinstall perl and test it .... you should be able to get dynamic
    loading working.

2.  get the latest version of DBI (DBI-0.73) built tested and
    installed.

3.  get the latest version of the Oracle DBD (DBD-Oracle-0.43) built
    tested and installed.

..... then you won't have a problem :-)

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-48@oink>;
          Thu, 31 Oct 1996 07:40:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846723813:15953:3151; Thu, 31 Oct 96 01:03:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab21748; 30 Oct 96 20:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA08699 for dbi-dev-real; Wed, 30 Oct 1996 10:20:38 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-1.mail.demon.net (relay-1.mail.demon.net [158.152.1.140]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA08695 
          for <dbi-dev@fugue.com>; Wed, 30 Oct 1996 10:20:36 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-1.mail.demon.net id bj06997;
          30 Oct 96 18:04 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac05537; 30 Oct 96 18:03 GMT
Received: from toad by oink with SMTP (PP) id <10800-0@oink>;
          Wed, 30 Oct 1996 17:49:57 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04925;
          Wed, 30 Oct 1996 17:49:51 +0000
Date: Wed, 30 Oct 1996 17:49:51 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610301749.AA04925@toad.ig.co.uk>
To: dbi-dev@fugue.com, brett@speedy.speakeasy.org
Subject: Re: DBI->connect
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Brett McCormick <brett@speedy.speakeasy.org>
> 
> Why does DBI->connect try to enforce the arguments when many of the
> drivers deviate?

Because that's the only way that a script could be made portable.
It's a core feature of the DBI.

> I'm writing DBD::Postgres and there are 5 parameters
> (host, port, options, tty, dbname) but DBI->connect won't let me do
> this!  What is the work-around?

The correct solution (rather than a workaround) is to define a syntax
which allows those five parameters to be expressed as three.

I'd suggest at least combining dbname, host and port as

	dbname@host:port

and allow port and host to default is not specified, thus:

	dbname@host    -- using default port

	dbname         -- using default port on current host

since I don't know what 'options' and 'tty' are and I can't see a
username or password I won't make any other recommendations yet.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-58@oink>;
          Thu, 31 Oct 1996 07:41:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846724487:16581:4040; Thu, 31 Oct 96 01:14:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ac14956; 30 Oct 96 20:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA08376 for dbi-users-real; Wed, 30 Oct 1996 08:18:15 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id IAA08371 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 08:18:13 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id LAA15152;
          Wed, 30 Oct 1996 11:01:48 -0500 (EST)
Message-Id: <199610301601.LAA15152@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Kevin Stock <KStock@auspex.com>
cc: Martin Berli <berli@switch.ch>, dbi-users@fugue.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
In-reply-to: Your message of "Wed, 30 Oct 1996 08:15:09 +0100." <3277007D.41C67EA6@Auspex.Com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 30 Oct 1996 10:58:36 EST
From: John D Groenveld <groenvel@cse.psu.edu>

Well, its nice to see Oracle take the lead in promoting non-proprietary tools 
like Perl. As good as Magnus Lonoroth's PL/SQL Webserver packages are, there 
are always going to be areas where Perl, JAVA, etal may be better suited. I 
didnt want my IOUW paper to be yet another "us versus them" diatribe. This 
helps alot.

Where can I find this white paper, its not in the Oracle (US) search engine? I 
have a couple customers who I need to forward a copy of this doc.

John
groenvel@cse.psu.edu

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-61@oink>;
          Thu, 31 Oct 1996 07:42:16 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846724581:15171:4623; Thu, 31 Oct 96 01:16:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20200; 30 Oct 96 21:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA08935 for dbi-users-real; Wed, 30 Oct 1996 11:15:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA08929 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 11:15:31 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id az11193;
          30 Oct 96 18:09 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ad05537; 30 Oct 96 18:03 GMT
Received: from toad by oink with SMTP (PP) id <10816-0@oink>;
          Wed, 30 Oct 1996 17:50:58 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04929;
          Wed, 30 Oct 1996 17:50:52 +0000
Date: Wed, 30 Oct 1996 17:50:52 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610301750.AA04929@toad.ig.co.uk>
To: dbi-users@fugue.com, berli@switch.ch
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Martin Berli <berli@switch.ch>
> 
> Just read this in a "White Paper" from Oracle:
> 
> > Perl Cartridge
> >
> > Perl is an extremely popular development language for deploying complex,
> > robust applications that require different types of information from
> > different sources. In Oracle WebServer 3.0, the Perl cartridge allows
> > developers to use their existing Perl code through the Web Request Broker
> > Architecture.
> 
> Does anyone know more about that?

Not me. I'd be glad to know more.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-63@oink>;
          Thu, 31 Oct 1996 07:42:26 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846724704:15171:4860; Thu, 31 Oct 96 01:18:24 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19873; 30 Oct 96 20:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA08823 for dbi-dev-real; Wed, 30 Oct 1996 10:50:08 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from speedy.speakeasy.org (speedy.speakeasy.org [199.238.226.57]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA08819 
          for <dbi-dev@fugue.com>; Wed, 30 Oct 1996 10:50:06 -0800 (PST)
Received: (from brett@localhost) by speedy.speakeasy.org (8.8.0/8.7.3) 
          id KAA24629; Wed, 30 Oct 1996 10:48:36 -0800 (PST)
Date: Wed, 30 Oct 1996 10:48:36 -0800 (PST)
Message-Id: <199610301848.KAA24629@speedy.speakeasy.org>
From: Brett McCormick <brett@speedy.speakeasy.org>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-dev@fugue.com
Subject: Re: DBI->connect
In-Reply-To: <9610301749.AA04925@toad.ig.co.uk>
References: <9610301749.AA04925@toad.ig.co.uk>


On Wed, 30 October 1996, at 17:49:51, Tim Bunce wrote:
> > From: Brett McCormick <brett@speedy.speakeasy.org>
> > 
> > Why does DBI->connect try to enforce the arguments when many of the
> > drivers deviate?
> 
> Because that's the only way that a script could be made portable.
> It's a core feature of the DBI.

How are the scripts portable in that way when the drivers use the
arguments differently?

> since I don't know what 'options' and 'tty' are and I can't see a
> username or password I won't make any other recommendations yet.

There is no username or password.  Options and tty are *rarely* used
> (at least by me, anyway)

--brett
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-88@oink>;
          Thu, 31 Oct 1996 07:45:07 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846726480:16558:7818; Thu, 31 Oct 96 01:48:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20110; 30 Oct 96 21:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA08662 for dbi-users-real; Wed, 30 Oct 1996 10:14:04 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA08658 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 10:14:02 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id as10911;
          30 Oct 96 18:05 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab05537; 30 Oct 96 18:00 GMT
Received: from toad by oink with SMTP (PP) id <10783-0@oink>;
          Wed, 30 Oct 1996 17:44:10 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04901;
          Wed, 30 Oct 1996 17:44:03 +0000
Date: Wed, 30 Oct 1996 17:44:03 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610301744.AA04901@toad.ig.co.uk>
To: k@anna.in-berlin.de
Subject: Re: Announce: DBD-Oracle-0.43 (bug fix release)
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Andreas Koenig <k@anna.in-berlin.de>
> 
> >>>>> Tim Bunce <Tim.Bunce@ig.co.uk> writes:
> 
>  tim> Uploaded to ftp.demon.co.uk as usual. Should reach CPAN in a day or so.
>  tim> (Please check that the file you get is 80119 bytes long.)
> 
>  tim> Tim.
> 
> Uh, no, that's not a good checksum.

Well, it wasn't really a checksum. It was just a hint in case anyone
might a grabbed a rogue 0.43.tar.Z which appeared on ftp.demon in error
for an hour or so. From what we've discussed elsewhere I know no one
has so there's no need for concern.

> PAUSE has already shaved off 27%.

I'd forgotten this useful feature of the very wonderful PAUSE server.

> The only reliable checksum that is easily available would be the
> MD5 cecksum on the uncompressed tarfile, i.e. the 'md5-ungz' value in
> the CHECKSUMS file in your DBD/Oracle directory on CPAN.
> 
>  'DBD-Oracle-0.43.tar.gz' => {
>     size => 58523,
>     'md5' => 'f300231a7ea13a1a68e7d65b236ce8f5',
>     'md5-ungz' => '139da8570787750d4eea7d74db889bd9'
>   },
> 
> So to check if the files you supplied and the files that arrived here
> are the same, you should run this and compare the output:
> 
> # zcat DBD-Oracle-0.43.tar.gz | md5sum -
> 139da8570787750d4eea7d74db889bd9  -
> 
> andreas

Thanks Andreas. For this, and the very wonderful PAUSE server as a whole.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-90@oink>;
          Thu, 31 Oct 1996 07:45:20 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846726509:16581:8004; Thu, 31 Oct 96 01:48:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20625; 30 Oct 96 21:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA08803 for dbi-users-real; Wed, 30 Oct 1996 10:45:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA08799 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 10:45:20 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ao11273;
          30 Oct 96 18:10 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa11277; 30 Oct 96 18:08 GMT
Received: from toad by oink with SMTP (PP) id <10909-0@oink>;
          Wed, 30 Oct 1996 18:03:39 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04957;
          Wed, 30 Oct 1996 18:03:20 +0000
Date: Wed, 30 Oct 1996 18:03:20 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610301803.AA04957@toad.ig.co.uk>
To: dbi-users@fugue.com, et@space.net
Subject: Re: Q: ODBC access ?
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Thomas Eisenbock <et@Space.NET>
> 
> Hola,
> 
> I'm sorry, if this goes to a list or if it's a FAQ.
> 
> I am looking for a way to access an ODBC Database from my Unix machine.
> As I love Perl, I found the DBI (at http://www.hermetica.com/technologia/DBI/)
> and saw the announcement, so I thought you may be able to help me.
>                                      
> I'd even spend money, if I could only get hold of some routines to access  
> Windows Databases via ODBC from a perl program. 

How much? :-)

ODBC support for the DBI is now top of my DBI related to-do list (as promised).
When that will translate into action I can't be sure. I would be surprised if
I can find any time before January. Sadly.

> Please help me ! If you know, where to get information or find anything
> about an existing interface, then tell me about it...and if this a mailing list,
> please subscribe me :)

Subscribe via http://www.fugue.com/dbi.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13425-111@oink>;
          Thu, 31 Oct 1996 07:47:33 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846729396:11350:202; Thu, 31 Oct 96 02:36:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab16460; 31 Oct 96 0:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA09349 for dbi-users-real; Wed, 30 Oct 1996 13:02:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from stortek.com (stortek.com [129.80.22.249]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA09342 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 13:02:16 -0800 (PST)
Received: from hp7013.ecae.stortek.com by stortek.com with SMTP 
          id AA28173 (5.65c/IDA-1.4.4 for <dbi-users@fugue.com>);
          Wed, 30 Oct 1996 14:01:41 -0700
Received: from hp7028 (hp7028.ecae.stortek.com) by hp7013.ecae.stortek.com 
          with SMTP (1.37.109.14/16.2) id AA136949302;
          Wed, 30 Oct 1996 14:01:42 -0700
Message-Id: <3277C233.4036@hp7013.ecae.stortek.com>
Date: Wed, 30 Oct 1996 14:01:39 -0700
From: "Sarah Kennedy (skennedy)" <skennedy@hp7013.ecae.StorTek.COM>
X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.01 9000/730)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD Oracle
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have just installed DBI ver. 73 and DBD Oracle ver. 43 on HP-UX 09.01.
The install looked OK and the tests looked OK. Now I am trying my first
attempt at using DBI/DBD by taking the bind.pl program and trying to
execute it. I get the following error:

install_driver(Oracle) failed: Can't find loadable object for module
DBD::Oracle in @INC
(/net/hp7061/xd2/perl5003_build/opt/perl/lib/PA-RISC1.1/5.003
/net/hp7061/xd2/perl5003_build/opt/perl/lib
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/PA-RISC1.1
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl .) at
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/DBD/Oracle.pm line
24
        DBI::install_driver called at
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/Oraperl.pm line 57
        require Oraperl.pm called at (eval 2) line 1
        main::BEGIN called at
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/Oraperl.pm line 0
        eval {...} called at
/net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/Oraperl.pm line 0
        eval 'use Oraperl; 1
;' called at bind.pl line 10
BEGIN failed--compilation aborted at (eval 2) line 1.
------------------------------------------------------------
My code is:

     1  #!/project/perl5003_test/perl
     2
     3  $ENV{ORACLE_HOME} = '/net/hp7029/xd1/users/oratest' unless
$ENV{ORACLE_HOME};
     4  $ENV{TWO_TASK} = 't:hp7029:ecaep' unless $ENV{TWO_TASK};
     5
     6  $dbname = $ARGV[0] || '';       # $ENV{TWO_TASK} ||
$ENV{ORACLE_SID} || 'crgs';
     7  $dbuser = $ENV{ORACLE_USERID} || 'oracle_user/pumpkin';
     8
     9  eval '$Oraperl::safe = 1'       if $] >= 5;
    10  eval 'use Oraperl; 1' || die $@ if $] >= 5;
    11
    12  &ora_version;
    13
    14  print "\nConnecting\n",
    15         " to '$dbname' (from command line, else uses ORACLE_SID
or TWO_TASK - recommended)\n";
    16  print " as '$dbuser' (via ORACLE_USERID env var or default -
recommend name/passwd\@dbname)\n";
    17
    18  printf("(ORACLE_SID='%s', TWO_TASK='%s')\n",
$ENV{ORACLE_SID}||'', $ENV{TWO_TASK}||'');
    19
    20  $lda = &ora_login('1', 'oracle_user', 'pumpkin') || die
$ora_errstr;
    21
    22  $csr = &ora_open($lda, 'select * from dat3 where group_id = :1')
|| die $ora_errstr;
    23
    24  while (<STDIN>)
    25  {
    26      chop;
    27      &ora_bind($csr, $_) || die $ora_errstr;
    28      if (($phone) = &orafetch($csr))
    29      {
    30         print "$phone\n";
    31      }
    32      else
    33      {
    34         die $ora_errstr if $ora_errno;
    35         print "unknown\n";
    36      }
    37  }
    38  &ora_close($csr);
    39  &ora_logoff($lda);

Anyone have any ideas? Thanks.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18127-0@oink>;
          Thu, 31 Oct 1996 16:40:44 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846749446:06157:5; Thu, 31 Oct 96 08:10:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06110; 31 Oct 96 8:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id VAA10823 for dbi-users-real; Wed, 30 Oct 1996 21:27:38 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bfs2.ug.cs.sunysb.edu (bfs2.ug.cs.sunysb.edu [129.49.15.4]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id VAA10819 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 21:27:36 -0800 (PST)
Received: from ws29.ug.cs.sunysb.edu (ws29.ug.cs.sunysb.edu [129.49.15.49]) 
          by bfs2.ug.cs.sunysb.edu (8.7.5/8.6.9) with ESMTP id AAA17579 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 00:27:34 -0500 (EST)
Received: from localhost (man-huik@localhost) 
          by ws29.ug.cs.sunysb.edu (8.7.5/8.6.9) with SMTP id AAA13344 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 00:27:33 -0500 (EST)
Date: Thu, 31 Oct 1996 00:27:33 -0500 (EST)
From: kong man-hui <man-huik@UG.CS.SUNYSB.EDU>
To: dbi-users@fugue.com
Subject: moer info about sqlperl
Message-ID: <Pine.BSF.3.95.961031001909.13333A-100000@ws29.ug.cs.sunysb.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi:
	I am a student who is taking a course about Web application.  I am
currently developing an application which Perl and Ingres are involved.  I
would like to know more about the DBI between Perl and 
Ingres(sqlperl/ingperl). Would you please send me the DBI
package(sqlperl/ingperl) or direct me how to get more information. 
	Thank you.


							      Man-Hui Kong

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18127-17@oink>;
          Thu, 31 Oct 1996 16:42:09 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846758489:15614:22; Thu, 31 Oct 96 10:41:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15429; 31 Oct 96 10:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id WAA11001 for dbi-users-real; Wed, 30 Oct 1996 22:50:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from vf.wpafb.af.mil (vf.wpafb.af.mil [129.48.97.237]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id WAA10997 
          for <dbi-users@fugue.com>; Wed, 30 Oct 1996 22:50:20 -0800 (PST)
From: nielsodc@vf.wpafb.af.mil
X-Nvlenv-01Date-Posted: 30-Oct-1996 10:49:23 -0500; at vf.F15
Date: 30 Oct 96 10:48:00 CDT
To: dbi-users@fugue.com
Subject: test.pl not working
Message-Id: <00BF2D3001C6360C@-SMF->
Reply-To: nielsodc@vf.wpafb.af.mil
References: <01BF2D3002C6360C@-SMF->

I've successfully installed DBI Version 0.73 and DBD 0.40 and all make's and 
make test's worked fine.  When I try to run the following test.pl program to 
test connecting to an oracle database, I get the following error.

Script started on Wed Oct 30 10:11:36 1996
# test.pl
Oraperl test application $Revision: 1.25 $
Error after this line
install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC at (eval 
3) line 2.
        DBI::install_driver called at Oraperl.pm line 62
        require Oraperl.pm called at (eval 2) line 1
        main::BEGIN called at Oraperl.pm line 0
        eval {...} called at Oraperl.pm line 0
        eval 'use Oraperl; 1
;' called at test.pl line 38
BEGIN failed--compilation aborted at (eval 2) line 1.
# 

script done on Wed Oct 30 10:11:39 1996


I'm running Oracle 7.1 on an HP running HP-UX 10.10.  I've read all that 
I've found, the README, the web pages, FAQ...  Here's the test.pl source 
code below.  It's a database connect and disconnect test program.  Any ideas 
why I can't locate DBD/Oracle.pm as the error suggests?  Any help or 
suggestions would be greatly appreciated.  

Dean Nielson, F-15 MIS, nielsodc@vf.wpafb.af.mil




#!/usr/local/bin/perl -w

# $Id: test.pl,v 1.25 1996/10/15 02:19:14 timbo Exp $
#
# Copyright (c) 1995, Tim Bunce
#
# You may distribute under the terms of either the GNU General Public
# License or the Artistic License, as specified in the Perl README file.


require 'getopts.pl';

$| = 1;
print q{Oraperl test application $Revision: 1.25 $}."\n";

$SIG{__WARN__} = sub {
	($_[0] =~ /^Bad free/) ? warn "See README about Bad free() 
warnings!\n": warn @_;
};

$opt_d = 0;		# debug
$opt_l = 0;		# log
$opt_c = 5;		# count for loops
$opt_m = 0;		# count for mem leek test
$opt_p = 1;		# test pl/sql code
&Getopts('m:d:c:lp ') || die "Invalid options\n";

$ENV{PERL_DBI_DEBUG} = 2 if $opt_d;
$ENV{ORACLE_HOME} = '/jcals/dmp/oracle' unless $ENV{ORACLE_HOME};

$dbname = $ARGV[0] || 't:137.244.160.179:cmis50';	# $ENV{TWO_TASK} || 
$ENV{ORACLE_SID} || 'crgs';

#$dbuser = $ENV{ORACLE_USERID} || 'scott/tiger';
$dbuser = $ENV{ORACLE_USERID} || 'nielsodc/nielsodc';


eval '$Oraperl::safe = 1'       if $] >= 5;
print q{Error after this line}."\n";
eval 'use Oraperl; 1' || die $@ if $] >= 5;
print q{Oraperl test application $Revision: 1.25 $}."\n";

&ora_version;

print "\nConnecting\n",
      " to '$dbname' (from command line, else uses ORACLE_SID or TWO_TASK - 
recommended)\n";
print " as '$dbuser' (via ORACLE_USERID env var or default - recommend 
name/passwd\@dbname)\n";
printf("(ORACLE_SID='%s', TWO_TASK='%s')\n", $ENV{ORACLE_SID}||'', 
$ENV{TWO_TASK}||'');

{	# test connect works first
	local($l) = &ora_login($dbname, $dbuser, '');
    unless($l) {
		warn "ora_login: $ora_errno: $ora_errstr\n";
		# Try to help dumb users who don't know how to connect to 
oracle...
	    warn "\nHave you set the environment variable ORACLE_USERID ?\n"
			if ($ora_errno == 1017);	# ORA-01017: invalid 
username/password
	    warn "\nHave you included your password in ORACLE_USERID ? (e.g., 
'user/passwd')\n"
			if ($ora_errno == 1017 and $dbuser !~ m:/:);
	    warn "\nHave you set the environment variable ORACLE_SID or 
TWO_TASK?\n"
			if ($ora_errno == 2700);	# error translating ORACLE_SID
	    warn "\nORACLE_SID or TWO_TASK possibly not right, or server not 
running.\n"
			if ($ora_errno == 1034);	# ORA-01034: ORACLE not 
available
	    warn "\nTWO_TASK possibly not set correctly right.\n"
			if ($ora_errno == 12545);
		warn "\n";
        warn "Try to connect to the database using an oracle tool like 
sqlplus\n";
        warn "only if that works should you suspect problems with 
DBD::Oracle.\n";
        warn "Try leaving dbname value empty and set dbuser to 
name/passwd\@dbname.\n";
		die "\nTest aborted.\n";
    }
	&ora_logoff($l)	|| warn "ora_logoff($l): $ora_errno: 
$ora_errstr\n";
}
$start = time;

rename("test.log","test.olog") if $opt_l;
eval 'DBI->internal->{DebugLog} = "test.log";'  if $opt_l;

&test3($opt_m) if $opt_m;

&test1();

print "\nTesting repetitive connect/open/close/disconnect:\n";
print "Expect sequence of digits, no other messages:\n";
#DBI->internal->{DebugDispatch} = 2;
foreach(1..$opt_c) { print "$_ "; &test2(); }
print "\n";

print "\nTest interaction of explicit close/logoff and implicit DESTROYs\n";
print "Expect just 'done.', no other messages:\n";
$lda2 = &ora_login($dbname, $dbuser, '');
$csr2 = &ora_open($lda2, "select 42 from dual") || die "ora_open: 
$ora_errno: $ora_errstr\n";
&ora_close($csr2)  || warn "ora_close($csr2): $ora_errno: $ora_errstr\n";
&ora_logoff($lda2) || warn "ora_logoff($lda2): $ora_errno: $ora_errstr\n";
print "done.\n";

&test3($opt_m) if $opt_m;

&test_plsql() if $opt_p;

$dur = time - $start;
print "\nTest complete ($dur seconds).\n";
print "If the tests above have produced the 'expected' output then they have 
passed.\n";

exit 0;


sub test1 {
    local($lda) = &ora_login($dbname, $dbuser, '')
			|| die "ora_login: $ora_errno: $ora_errstr\n";

    &ora_commit($lda)   || warn "ora_commit($lda): $ora_errno: 
$ora_errstr\n";
    &ora_rollback($lda) || warn "ora_rollback($lda): $ora_errno: 
$ora_errstr\n";
    &ora_autocommit($lda, 1);
    &ora_autocommit($lda, 0);

    # Test ora_do with harmless non-select statement
    &ora_do($lda, "set transaction read only ")
			|| warn "ora_do: $ora_errno: $ora_errstr\n";

    # DBI::dump_results($lda->tables());

    # $lda->debug(2);

    {
	local($csr) = &ora_open($lda,
	    "select 11*7.2	num_t,
		    SYSDATE	date_t,
		    USER	char_t,
		    NULL	null_t
	    from dual") || die "ora_open: $ora_errno: $ora_errstr\n";

	print "Fields:  ",scalar(&ora_fetch($csr)),"\n";
	die "ora_fetch in scalar context error\n" unless &ora_fetch($csr)==4;
	print "Names:   '",join("',\t'", &ora_titles($csr)),"'\n";
	print "Lengths: '",join("',\t'", &ora_lengths($csr)),"'\n";
	print "Types:   '",join("',\t'", &ora_types($csr)),"'\n";

	print "Data rows:\n";
	#$csr->debug(2);
	while(@fields = &ora_fetch($csr)) {
	    warn "ora_fetch returned .".@fields." fields instead of 4!"
		    if (@fields!=4);
	    die "Perl list/scalar context error" if @fields==1;
	    $fields[3] = "NULL" unless defined $fields[3];
	    print "    fetch: "; print "@fields\n";
	}

	&ora_close($csr) || warn "ora_close($csr): $ora_errno: $ora_errstr\n";
	print "\n";

	print "csr reassigned (forces destruction)...\n";

	#$lda->debug(2);
	$csr = &ora_open($lda,<<"") || die "ora_open: $ora_errno: 
$ora_errstr\n";
		select TABLE_NAME from ALL_TABLES
		where TABLE_NAME like :1 and ROWNUM < 5

	#$lda->debug(0);
	print "Fetch list of tables:\n";
#	print "BindParams error $csr->{BindParams}\n" unless 
$csr->{BindParams}==1;
	&ora_bind($csr, '%');

	#DBI::dump_handle($lda, "lda");
	#DBI::dump_handle($csr, "csr");

	while(@fields = &ora_fetch($csr)){
		print "Fetched: "; print "@fields\n";
	}
	warn "ora_fetch($csr): $ora_errno: $ora_errstr\n" if $ora_errno;

	print "Test ora_do with harmless non-select statement ",
			"(set transaction read only)\n";
    # example: push(@{$lda->{Handlers}}, sub { die "ora_errno=$ora_errno" } 
);
	print "Expect error message:\n";
	&ora_do($lda, "set transaction read only ")
		    || warn "ora_do: $ora_errno: $ora_errstr\n";

	print "csr out of scope...\n";
    }

    print "ora_logoff...\n";
    &ora_logoff($lda)   || warn "ora_logoff($lda): $ora_errno: 
$ora_errstr\n";

    print "lda out of scope...\n";
}


sub test2 {
    local($l) = &ora_login($dbname, $dbuser, '')
			|| die "ora_login: $ora_errno: $ora_errstr\n";
    local($c) = &ora_open($l, "select 42,42,42,42,42,42,42 from dual")
			|| die "ora_open: $ora_errno: $ora_errstr\n";
    local(@row);
    @row = &ora_fetch($c);
    &ora_close($c)	|| warn "ora_close($c):  $ora_errno: $ora_errstr\n";
    &ora_logoff($l)	|| warn "ora_logoff($l): $ora_errno: $ora_errstr\n";
}


sub test3 {
    local($count) = @_;
    local($ps) = (-d '/proc') ? "ps -p " : "ps -l";
    local($i) = 0;

    while(++$i <= $count) {
	system("echo $i; $ps$$") if (($i % 10) == 0);
	&test2();
    }
    system("echo $i; $ps$$") if (($i % 10) == 0);
}


sub test_plsql {

	print "\nTesting PL/SQL interaction.\n";

    local($l) = &ora_login($dbname, $dbuser, '')
			|| die "ora_login: $ora_errno: $ora_errstr\n";
    my $c;

    $c = &ora_open($l, q{
		begin RAISE invalid_number; end;
    });
    # Expect ORA-01722: invalid number
    die "ora_open: $ora_errstr" unless $ora_errno == 1722;

    $c = &ora_open($l, q{
		DECLARE FOO EXCEPTION;
		begin raise foo; end;
    });
    # Expect ORA-06510: PL/SQL: unhandled user-defined exception
    die "ora_open: $ora_errstr" unless $ora_errno == 6510;

    $c = &ora_open($l, q{
		begin raise_application_error(-20101,'app error'); end;
    });
    # Expect our exception number and error text
    die "ora_open: $ora_errno $ora_errstr"
	    unless $ora_errno == 20101;			# our exception number
    die "ora_open: $ora_errstr"
	    unless $ora_errstr =~ m/app error/;	# our exception text

    $c = &ora_open($l, q{
	declare err_num number; err_msg char(510);
	begin
	    err_num := :1;
	    err_msg := :2;
	    raise_application_error(-20000-err_num, 'plus '||err_msg);
	end;
    }) || die "ora_open: $ora_errstr";
    $c->execute(42,"my msg");
    # Expect our exception number and error text
    die "ora_open: $ora_errno $ora_errstr"
	    unless $ora_errno == 20042;				# our exception 
number
    die "ora_open: $ora_errstr"
	    unless $ora_errstr =~ m/plus my msg/;	# our exception text

    print "Testing bind_param_inout. Expect '200', '3800', '75800':\n";
    #$l->debug(2);
    #DBI->internal->{DebugDispatch} = 2;
    $c = &ora_open($l, q{
	declare bar number;
	begin bar := :1; bar := bar * 20; :1 := bar; end;
    }) || die "ora_open: $ora_errstr";
    $param = 10;
    $c->bind_param_inout(1, \$param, 100) || die "bind_param_inout 
$ora_errstr";
    do {
	$c->execute	|| die "execute $ora_errstr";
	print "param='$param'\n";
	$param -= 10;
    } while ($param < 70000);

    # To do
    #	test NULLs at first bind
    #	NULLS later binds.
    #	returning NULLS
    #	multiple params, mixed types and in only vs inout
    #	automatic rebind if location changes
}

# end.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18210-0@oink>;
          Thu, 31 Oct 1996 16:49:26 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846780359:19743:80; Thu, 31 Oct 96 16:45:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15886; 31 Oct 96 16:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA11532 for dbi-users-real; Thu, 31 Oct 1996 03:19:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id DAA11528 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 03:19:43 -0800 (PST)
Message-Id: <199610311119.DAA11528@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Thu, 31 Oct 1996 12:19:25 +0100
X-Mailer: exmh version 1.6.9 8/22/96
To: John D Groenveld <groenvel@cse.psu.edu>
cc: dbi-users@fugue.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
In-reply-to: Message from John D Groenveld <groenvel@cse.psu.edu> of "Wed, 30 Oct 1996 10:58:36 -0500." <199610301601.LAA15152@cse.psu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 31 Oct 1996 12:19:23 +0100
From: Martin Berli <berli@switch.ch>

 
> Where can I find this white paper, its not in the Oracle (US) search engine?

I had a look at

  http://tiburon.us.oracle.com/odp/public/library/cr/html/cr_white.html

but I didn't find it there. Our local Oracle support sent it to us via fax.
They say they have it "downloaded from Oracle". So it must be around somewhere.
If you don't find it, ask Oracle for

  Oracle WebServer 3.0
  An Oracle White Paper
  November 1996

Martin

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-24@oink>;
          Fri, 1 Nov 1996 07:38:35 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846798247:23040:4331; Thu, 31 Oct 96 21:44:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00816; 31 Oct 96 20:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA11930 for dbi-users-real; Thu, 31 Oct 1996 08:37:49 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bnr.ca (x400gate.nortel.ca [192.58.194.73]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA11926 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 08:37:46 -0800 (PST)
X400-Received: by mta bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed;
               Thu, 31 Oct 1996 10:54:20 -0500
X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed;
               Thu, 31 Oct 1996 10:53:28 -0500
X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed;
               Thu, 31 Oct 1996 10:53:00 -0500
Date: Thu, 31 Oct 1996 10:53:00 -0500
X400-Originator: /dd.id=0505099/g=iain/i=j/s=bennett/@bnr.ca
X400-MTS-Identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars520.b.943:31.09.96.15.53.28]
X400-Content-Type: P2-1984 (2)
Content-Identifier: DBD::Oracle a...
From: "iain (j.) bennett" <coopd590@nortel.ca>
Message-ID: <"3964 Thu Oct 31 10:53:36 1996"@bnr.ca>
To: dbi-users@fugue.com
Cc: robert_altherr@nt.com
Subject: DBD::Oracle and procedures

Hi Tim,

Bob Altherr and I have a few questions regarding DBD::Oracle and running
stored procedures from Oracle.

How do you do it?  We were trying the following code:

local($cursor) = $dbh->call_func('_proc',"mfsapp.esd_download_flagging"
, ($user_greeting, $product_code, $exec_status, $exec_message));

Now $exec_status and $exec_message are return values which of course are
not supported under the current driver we are using which is DBD-Oracle-0.37
with DBI-0.71.

We've just tried do download 0.38 of DBD:Oracle and there is a server error.

Please help! 
-Iain Bennett
 Global Support Processes Co-op 
 NORTEL - Northern Telecom
 +1.613.723.4000 x 7078
 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-27@oink>;
          Fri, 1 Nov 1996 07:39:04 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846798416:07006:7574; Thu, 31 Oct 96 21:46:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18747; 31 Oct 96 21:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA12356 for dbi-users-real; Thu, 31 Oct 1996 10:55:26 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from vortex.uplanet.com (host-165-3.uplanet.com [204.163.165.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA12352 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 10:55:24 -0800 (PST)
Received: from yoga.uplanet.com by vortex.uplanet.com (SMI-8.6/SMI-SVR4) 
          id KAA28600; Thu, 31 Oct 1996 10:55:20 -0800
Received: by yoga.uplanet.com (SMI-8.6/SMI-SVR4) id KAA27478;
          Thu, 31 Oct 1996 10:55:17 -0800
Date: Thu, 31 Oct 1996 10:55:17 -0800
From: hamilton@uplanet.com (Hamilton H.)
Message-Id: <199610311855.KAA27478@yoga.uplanet.com>
To: dbi-users@fugue.com
Subject: Number of Rows selected
X-Sun-Charset: US-ASCII

I am using DBI/DBD::Oracle and trying to get the number of rows
selected in an execute statement.  The documentation says that
$db_rows should contain this and it doesn't.  Also, it says that
the return value from execute should contain the number of rows
but instead it contains 0E0.  I'm sure a number of you have stumbled
across this.  Can you tell me how to get the number of rows after
doing a select inside an execute?  Thank you very much.

Hamilton Hitchings
hamilton@uplanet.com 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-32@oink>;
          Fri, 1 Nov 1996 07:39:37 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846799709:26483:5228; Thu, 31 Oct 96 22:08:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23787; 31 Oct 96 21:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12408 for dbi-users-real; Thu, 31 Oct 1996 11:19:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12404 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 11:19:16 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id at22817;
          31 Oct 96 18:20 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab19164; 31 Oct 96 18:16 GMT
Received: from toad by oink with SMTP (PP) id <19414-0@oink>;
          Thu, 31 Oct 1996 17:34:17 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09202;
          Thu, 31 Oct 1996 17:34:10 +0000
Date: Thu, 31 Oct 1996 17:34:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610311734.AA09202@toad.ig.co.uk>
To: dbi-users@fugue.com, skennedy@hp7013.ecae.stortek.com
Subject: Re: DBD Oracle
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Sarah Kennedy (skennedy)" <skennedy@hp7013.ecae.StorTek.COM>
> 
> I have just installed DBI ver. 73 and DBD Oracle ver. 43 on HP-UX 09.01.
> The install looked OK and the tests looked OK. Now I am trying my first
> attempt at using DBI/DBD by taking the bind.pl program and trying to
> execute it. I get the following error:
> 
> install_driver(Oracle) failed: Can't find loadable object for module
> DBD::Oracle in @INC
> (/net/hp7061/xd2/perl5003_build/opt/perl/lib/PA-RISC1.1/5.003
> /net/hp7061/xd2/perl5003_build/opt/perl/lib
> /net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/PA-RISC1.1
> /net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl .) at
> /net/hp7061/xd2/perl5003_build/opt/perl/lib/site_perl/DBD/Oracle.pm line
> 24

Did you actually 'make install' it? If so where did it copy the files to?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-34@oink>;
          Fri, 1 Nov 1996 07:39:47 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846800459:07300:16; Thu, 31 Oct 96 22:20:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab17618; 31 Oct 96 21:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11997 for dbi-users-real; Thu, 31 Oct 1996 09:11:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mailhost.deagostini.co.uk (mailhost.deagostini.co.uk [194.128.193.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA11993 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 09:11:20 -0800 (PST)
Received: from smtp-gw.deagostini.co.uk 
          by mailhost.deagostini.co.uk (8.6.9/PIPEX simple 1.12) id RAA12605;
          Thu, 31 Oct 1996 17:46:17 GMT
Received: from ccMail 
          by smtp-gw.deagostini.co.uk (IMA Internet Exchange 2.02 Enterprise) 
          id 278E5A10; Thu, 31 Oct 96 17:45:05 +0000
Mime-Version: 1.0
Date: Thu, 31 Oct 1996 16:46:13 +0000
Message-ID: <278E5A10.1349@deagostini.co.uk>
From: uocarroll@deagostini.co.uk (Ultan O'Carroll)
Subject: Perl5.003 build on HP-UX 10.01
To: Tim.Bunce@ig.co.uk, dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     Hello Tim,
     
     I hope you can help or give me some suggestions.
     
     Im trying to compile 5.003 up on HP-UX 10.01 with standard cc compiler 
     so that I can use DBI/DBD with Oracle 7.2. I did have 5.002 but the 
     DBD make told me to get 5.003 or later. 
     
     I ran the Configure script and it seemed to recognise everything OK. 
     Told it to create dynamic loader but statically link extensions. 
     Compiled OK. tested OK. installed OK.
     
     Now Im trying to compile and install the DBI. After succesfully 
     running 'perl Makefile.PL' 'make' drops out with the following error :
     
     
         Remember to actually *read* the README file!
     
         Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or 
     later.
     
         DO NOT build the DBI under the Perl source tree.
     
         Use 'make test' to execute self tests.
     
         Install DBI (using 'make install' before building DBD::* drivers.
     
     MakeMaker (v5.34)
     Checking if your kit is complete...
     Looks good
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], 
     PREOP=>q[$(MAKE) -f Makefile.old distdir] }
     Using PERL=/opt/perl5/bin/perl
     
     WARNING! By default new modules are installed into your 'site_lib'
     directories. Since site_lib directories come after the normal library
     directories you MUST delete old DBI files and directories from your
     'privlib' and 'archlib' directories and their auto subdirectories.
     
     Writing Makefile for DBI
     cp DBIXS.h ./blib/arch/DBI/DBIXS.h
     cp DBI.pm ./blib/lib/DBI.pm
     cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
     cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
     cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
        /opt/perl5/bin/perl -I/opt/perl5/lib/PA-RISC1.1/5.003 
     -I/opt/perl5/lib /opt/perl5/lib/ExtUtils/xsubpp  -typemap 
     /opt/perl5/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
        cc -c  -DJMPCLOBBER -O     -DVERSION=\"0.73\"  
     -DXS_VERSION=\"0.73\" +z -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  DBI.c
     (Bundled) cc: warning 480: The -O option is available only with the 
     C/ANSI C product; ignored.
     (Bundled) cc: warning 480: The +z option is available only with the 
     C/ANSI C product; ignored.
     Running Mkbootstrap for DBI ()
        chmod 644 DBI.bs
        LD_RUN_PATH="" ld -o ./blib/arch/auto/DBI/DBI.sl -dy 
     -L/usr/local/lib DBI.o     
     ld: Unsatisfied symbols:
        Perl_markstack_max (data)
        __iob (data)
        $global$ (data)
        Perl_sv_2pv (code)
        memset (code)
        Perl_Sv (data)
        Perl_sv_setsv (code)
        Perl_hv_fetch (code)
        Perl_sv_magic (code)
        Perl_sv_setiv (code)
        Perl_sv_dump (code)
        Perl_warn (code)
        isprint (code)
        Perl_markstack_ptr (data)
        strcpy (code)
        Perl_sv_no (data)
        Perl_sv_catpvn (code)
        Perl_newRV (code)
        fclose (code)
        strlen (code)
        perl_call_method (code)
        Perl_savepv (code)
        Perl_newAV (code)
        strncmp (code)
        dirty (data)
        Perl_sv_yes (data)
        Perl_op (data)
        strcmp (code)
        fprintf (code)
        perl_get_sv (code)
        Perl_sv_backoff (code)
        Perl_gv_stashpv (code)
        Perl_sv_undef (data)
        Perl_newSV (code)
        Perl_sv_2iv (code)
        strcat (code)
        Perl_sv_bless (code)
        Perl_stack_grow (code)
        Perl_av_store (code)
        Perl_newSVsv (code)
        Perl_sv_newmortal (code)
        Perl_sv_catpv (code)
        strerror (code)
        Perl_gv_fetchmethod (code)
        Perl_sv_mortalcopy (code)
        Perl_na (data)
        malloc (code)
        Perl_sv_setpv (code)
        isspace (code)
        fopen (code)
        Perl_croak (code)
        Perl_Xpv (data)
        sprintf (code)
        Perl_sv_2bool (code)
        Perl_sv_2mortal (code)
        Perl_newXS (code)
        Perl_markstack_grow (code)
        Perl_av_fetch (code)
        setbuf (code)
        Perl_stack_sp (data)
        runlevel (data)
        perl_destruct_level (data)
        Perl_dowantarray (code)
        perl_call_sv (code)
        Perl_mg_find (code)
        Perl_gv_fetchpv (code)
        Perl_sv_free (code)
        Perl_stack_base (data)
        Perl_av_len (code)
        Perl_stack_max (data)
        Perl_newSVpv (code)
        Perl_newSViv (code)
     ld: No $UNWIND_END$ subspace has been defined (probably missing 
     /usr/ccs/lib/crt0.o)
     *** Error exit code 1
     
     Stop.
     
     
     Iv also tried it with static loading and the DBI has compiled but the 
     DBD wont saying that I either recompile with dynamic loading. I cant 
     win :(.
     
     Any hints please ? Thanks in advance
     
     Ultan OCarroll
     Systems Consultant
     
     God Bless Perl.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-45@oink>;
          Fri, 1 Nov 1996 07:42:22 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846805985:07300:4001; Thu, 31 Oct 96 23:53:05 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18997; 31 Oct 96 21:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA12292 for dbi-users-real; Thu, 31 Oct 1996 10:41:35 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA12286 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 10:41:30 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ab24667;
          31 Oct 96 16:41 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa02997; 31 Oct 96 16:40 GMT
Received: from toad by oink with SMTP (PP) id <17417-0@oink>;
          Thu, 31 Oct 1996 11:05:33 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA07165;
          Thu, 31 Oct 1996 11:05:25 +0000
Date: Thu, 31 Oct 1996 11:05:25 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610311105.AA07165@toad.ig.co.uk>
To: berli@switch.ch, KStock@auspex.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Kevin Stock <KStock@auspex.com>
> 
> Martin Berli wrote:
> > 
> > Just read this in a "White Paper" from Oracle:
> > 
> > > Perl Cartridge
> > >
> > > Perl is an extremely popular development language for deploying complex,
> > > robust applications that require different types of information from
> > > different sources. In Oracle WebServer 3.0, the Perl cartridge allows
> > > developers to use their existing Perl code through the Web Request Broker
> > > Architecture.
> > 
> > Does anyone know more about that? Could this be in concurrence with Oraperl?
> 
> Some time ago, Oracle announced that they were making available a
> package of unsupported tools for Oracle Web access. These included
> Oraperl v2.4 (BTW, this was shortly after I described Oraperl during
> a job interview at Oracle, and was informed "we use our own tools"!).
> Perhaps they've added DBI/DBD to the current version.

I'd certainly be interested in finding out.

Can anyone check?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-51@oink>;
          Fri, 1 Nov 1996 07:42:59 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846806980:04558:5313; Fri, 01 Nov 96 00:09:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19573; 31 Oct 96 22:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12491 for dbi-users-real; Thu, 31 Oct 1996 11:44:11 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA12487 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 11:44:09 -0800 (PST)
Received: by gw.home.vix.com id LAA11517; Thu, 31 Oct 1996 11:44:05 -0800 (PST)
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id aa22931;
          31 Oct 96 18:21 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ae19164; 31 Oct 96 18:17 GMT
Received: from toad by oink with SMTP (PP) id <19471-0@oink>;
          Thu, 31 Oct 1996 17:39:27 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09276;
          Thu, 31 Oct 1996 17:39:20 +0000
Date: Thu, 31 Oct 1996 17:39:20 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610311739.AA09276@toad.ig.co.uk>
To: dbi-users@fugue.com, nielsodc@vf.wpafb.af.mil
Subject: Re: test.pl not working
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: nielsodc@vf.wpafb.af.mil
> 
> I've successfully installed DBI Version 0.73 and DBD 0.40 and all make's and 
> make test's worked fine.  When I try to run the following test.pl program to 
> test connecting to an oracle database, I get the following error.
> 
> Script started on Wed Oct 30 10:11:36 1996
> # test.pl

Don't run test.pl by hand. Always run 'make test' as directed in the README.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-53@oink>;
          Fri, 1 Nov 1996 07:43:12 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846807272:20536:25; Fri, 01 Nov 96 00:14:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab20755; 31 Oct 96 22:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12462 for dbi-users-real; Thu, 31 Oct 1996 11:36:27 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from huey.disney.com (0@huey.disney.com [204.128.192.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA12458 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 11:36:24 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id LAA03091 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 11:36:21 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA13785 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Thu, 31 Oct 1996 12:30:50 -0700
Received: by wdigl000.is.wdi.disney.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BBC720.459341A0@wdigl000.is.wdi.disney.com>;
          Thu, 31 Oct 1996 11:40:10 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-961031193601Z-7344@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: "'berli@switch.ch'" <berli@switch.ch>, 
    "'KStock@auspex.com'" <KStock@auspex.com>, 'Tim Bunce' <Tim.Bunce@ig.co.uk>
Cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: Oracle WebServer 3.0: Perl Cartridge
Date: Thu, 31 Oct 1996 11:36:01 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

>
>>> Some time ago, Oracle announced that they were making available a
>>> package of unsupported tools for Oracle Web access. These included
>>> Oraperl v2.4 (BTW, this was shortly after I described Oraperl during
>>> a job interview at Oracle, and was informed "we use our own =
tools"!).
>>> Perhaps they've added DBI/DBD to the current version.
>>
>>I'd certainly be interested in finding out.
>>
>>Can anyone check?
>>
>>Tim.

From:
http://www.oracle.com/corporate/press/html/sdkrel.html



ORACLE UNVEILS WORLD WIDE WEB INTERFACE KIT

Kit Enables Developers to Bring the Power of Oracle7 to the World Wide
Web



SAN FRANCISCO, Feb. 7, 1995 Oracle Corp. today announced the immediate=20
availability of the Oracle World Wide Web Interface Kit which enables
developers=20
and World Wide Web server administrators to tightly integrate Oracle7
databases=20
with Web servers. The Kit, available free of charge on the Internet,
includes real-life=20
examples of linked Oracle7 databases with Web servers created by Web
developers=20
from around the world. Also included is a powerful Oracle gateway for
Web servers,=20
which translates Oracle standard database language (PL/SQL) to
Internet-standard=20
language (HTML).

"Handling large quantities of documents and meta-data in a flat file
system is just=20
not very attractive," said Bjorn Elliasson, Technical Manager for
Molnlycke Corp.=20
"By using Oracle7 as a standard repository, we know that our information
is safe=20
and accessible."

Using the Kit, developers can now create links between Web servers and
Oracle7=20
databases to bring to the Internet exciting new services and information
systems.=20
Potential uses for the Kit include the capability to make Oracle7
databases accessible=20
to users of Web servers, as well as enabling new applications that
integrate Web server
transactions into existing business processes using Oracle7 databases.

"Many of our customers have shown interest in interfacing Oracle7 with a
Web server,=20
so we're making this kit available to give them a helping hand," said
Mark Jarvis,=20
senior director of network products for Oracle Corp. "With minimal
effort, our customers=20
can now integrate Web servers into their existing Oracle7 database
applications
to bring a whole new way of displaying, browsing and manipulating data.
It brings about=20
a new way of doing business and nicely ties the corporate data
environment into the Internet."

"Our developers are fascinated. They know how to write PL/SQL, so
implementing=20
advanced World Wide Web gateways is no harder than writing a simple
procedure,"=20
said Peter Nystrom, Information Systems Analyst at Molnlycke.

The modules in the Oracle WWW Interface Kit include the following:

   Oracle's Web-Oracle-Web (WOW) PL/SQL gateway to Web servers=20

   Oracle's PL/SQL Editor and Development tool for the creation of
dynamic PL/SQL code=20

   ORAYWWW, a PERL gateway contributed by Mr. Arthur Yasinski of the
Department of Natural Resources,
Canadian Forest Service=20

   WORA, a user-friendly database browser written in Pro*C by
Constantine Ocarinets of JINR, Russia=20

   DECOUX, a post-processing gateway that inserts query results from an
Oracle7 database into HTML
documents. DECOUX was contributed by Guy Decoux of France.=20

   Navigator, a collection of PERL scripts and one Pro*C module that
allows administrators to quickly configure
HTML forms for end-user queries of Oracle7 databases. This gateway was
contributed by Rick Hudson of the
University of Massachusetts.=20

   Text Search System (TSS), a full-scale indexing and free-text search
system contributed by Peter Larsson of
Astrakan, Sweden.=20

  MORE, a collection of Pro*C gateways for maintaining an information
repository contributed
by David Eichmann of the University of Texas=20

   HotMetal, an HTML editor from SoftQuad=20

  PERL, a freeware interpreting programming language developed by Larry
Wall=20

   ORAPERL, an extension to PERL for use with Oracle7 databases
including user exits developed by Kevin
Stock=20

For more information about Oracle, please contact Oracle's headquarters
in Redwood Shores, Calif. at (415)
506-7000. Oracle's World Wide Web server address is
http://WWW.oracle.com/=20

Copyright =A9 1996 Oracle Corporation. All Rights Reserved.=20
>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-82@oink>;
          Fri, 1 Nov 1996 07:46:50 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846815386:24039:12; Fri, 01 Nov 96 02:29:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23970; 1 Nov 96 2:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA13021 for dbi-users-real; Thu, 31 Oct 1996 15:55:09 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id PAA13017 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 15:55:06 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-4.mail.demon.net id ak22863;
          31 Oct 96 18:21 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ad19164; 31 Oct 96 18:17 GMT
Received: from toad by oink with SMTP (PP) id <19440-0@oink>;
          Thu, 31 Oct 1996 17:37:30 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA09253;
          Thu, 31 Oct 1996 17:37:24 +0000
Date: Thu, 31 Oct 1996 17:37:24 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9610311737.AA09253@toad.ig.co.uk>
To: dbi-users@fugue.com, man-huik@ug.cs.sunysb.edu
Subject: Re: moer info about sqlperl
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: kong man-hui <man-huik@UG.CS.SUNYSB.EDU>
> 
> Hi:
> 	I am a student who is taking a course about Web application.  I am
> currently developing an application which Perl and Ingres are involved.  I
> would like to know more about the DBI between Perl and 
> Ingres(sqlperl/ingperl). Would you please send me the DBI
> package(sqlperl/ingperl) or direct me how to get more information. 
> 	Thank you.
> 							      Man-Hui Kong

There is no Perl5 interface for Ingres.

The perl4 ingperl can be found on any CPAN site (use a web search).

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21925-101@oink>;
          Fri, 1 Nov 1996 07:49:44 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846822797:17514:8; Fri, 01 Nov 96 04:33:17 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17433; 1 Nov 96 4:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id SAA13345 for dbi-users-real; Thu, 31 Oct 1996 18:07:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cs.sunysb.edu (sbcs.sunysb.edu [130.245.1.15]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id SAA13341 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 18:07:40 -0800 (PST)
Received: from sbgrad10.csdept (sbgrad10.cs.sunysb.edu [130.245.2.19]) 
          by cs.sunysb.edu (8.6.12/8.6.9) with SMTP id VAA17244 
          for <dbi-users@fugue.com>; Thu, 31 Oct 1996 21:14:18 -0500
From: cse532 student <c532-7@CS.SunySB.EDU>
Message-Id: <199611010214.VAA17244@cs.sunysb.edu>
Subject: Getting started : Running test.pl with the dbi...
To: dbi-users@fugue.com
Date: Thu, 31 Oct 1996 21:05:24 +1900 (EST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello Somebody,
	I am trying to get the test.pl program running.  I tons of error
messages, and cant find the documentation thats listed in the web page
(perldoc Oraperl) .     I am probably doing something very stupid.
	Can someone tell me where I can get some documentation to shuffle
through?  

THanks, 
Sincerely,
Mike Pukmel
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25798-10@oink>;
          Fri, 1 Nov 1996 18:01:42 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846853123:11321:5114; Fri, 01 Nov 96 12:58:43 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14571; 1 Nov 96 12:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA13964 for dbi-users-real; Fri, 1 Nov 1996 02:00:18 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA13953 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 01:59:48 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id SAA23929 for dbi-users@fugue.com; Fri, 1 Nov 1996 18:56:49 +0900
Date: Fri, 1 Nov 1996 18:56:49 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611010956.SAA23929@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: I can't pass 'make test' on DBD-Oracle-0.42


  Hi Greetings!

  I knew the DBD-Oracle-0.42 came into being.
  I downloaded it and tried to make. I finished making, however,
  I can't pass completely 'make test'.

My Environment:
  Machine: NEC EWS4800/310PX (Mips chip R4400)
  OS: SVR4.2

  perl:
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=svr4, osver=, archname=R4000-svr4
    uname='unix_sv cgewsf 4.2mp 1.release.1025.08:24 r4000 r4000 '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='/usr/abiccs/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include'
    ccflags ='-I/usr/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='/usr/abiccs/bin/cc', ldflags ='-L/usr/abiccs/lib'
    libpth=/usr/abiccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    libc=/usr/abiccs/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags='-ZXNd=5000 -KOlimit=3000'
    cccdlflags=' ', lddlflags='-G -L/usr/abiccs/lib'

INC: /usr/local/lib/perl5/R4000-svr4/5.003 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/R4000-svr4 /usr/local/lib/perl5/site_perl .


  DBI-0.71(make ok, make test ok, make install ok)


  DBD-Oracle-0.42(make ok)
  the following is messages when making test:
ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  6 secs ( 0.83 cusr  0.61 csys =  1.44 cpu)
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/R4000-svr4/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.26 $

Oraperl Emulation Interface version 1.30
Oracle Driver 0.42
DBI-0.71 Switch by Tim Bunce, version 0.71


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
dbname)
(ORACLE_SID='ORASAMP', TWO_TASK='')

Testing row cache (5).
Test completed in 1 seconds.
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 01-NOV-96 SCOTT NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
ora_fetch(DBI::st=HASH(0x583f20)): 1: ORA-00001: unique constraint (.) violated (DBD: ofetch error)
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error)
csr out of scope...
ora_logoff...
lda out of scope...

Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5

Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.

Testing PL/SQL interaction.
Testing bind_param_inout. Expect '200', '3800', '75800':
Can't locate object method "bind_param_inout" via package "DBI::st" at test.pl line 289.
*** Error code 2 (bu21)
make: fatal error.


Please give me some advices.

Thank you in advance.

-------------------
Takami Keiichi
(takami@mikigw2.paris-miki.co.jp)
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25798-43@oink>;
          Fri, 1 Nov 1996 18:04:41 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846863516:13093:9591; Fri, 01 Nov 96 15:51:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab01500; 1 Nov 96 15:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA14183 for dbi-users-real; Fri, 1 Nov 1996 04:41:34 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA14179 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 04:41:32 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ad29436;
          1 Nov 96 10:38 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ab01444; 1 Nov 96 10:37 GMT
Received: from toad by oink with SMTP (PP) id <24598-0@oink>;
          Fri, 1 Nov 1996 10:37:22 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11515;
          Fri, 1 Nov 1996 10:37:10 +0000
Date: Fri, 1 Nov 1996 10:37:10 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611011037.AA11515@toad.ig.co.uk>
To: dbi-users@fugue.com, c532-7@cs.sunysb.edu
Subject: Re: Getting started : Running test.pl with the dbi...
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: cse532 student <c532-7@CS.SunySB.EDU>
> 
> Hello Somebody,
> 	I am trying to get the test.pl program running.

Don't try. Do 'make test' instead.

> I tons of error
> messages, and cant find the documentation thats listed in the web page
> (perldoc Oraperl) .     I am probably doing something very stupid.
> 	Can someone tell me where I can get some documentation to shuffle
> through?  

The README and pod text in Oraperl.pm.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25798-12@oink>;
          Fri, 1 Nov 1996 18:01:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846853166:11320:4644; Fri, 01 Nov 96 12:59:26 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14773; 1 Nov 96 12:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA14018 for dbi-users-real; Fri, 1 Nov 1996 02:40:53 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id CAA14014 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 02:40:46 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id KAA04498;
          Fri, 1 Nov 1996 10:39:33 GMT
Date: Fri, 1 Nov 1996 10:39:33 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
cc: dbi-users@fugue.com
Subject: Re: I can't pass 'make test' on DBD-Oracle-0.42
In-Reply-To: <199611010956.SAA23929@mikigw2.paris-miki.co.jp>
Message-ID: <Pine.SGI.3.95.961101103735.10605A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Fri, 1 Nov 1996, K.Takami wrote:

> From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
> To: dbi-users@fugue.com
> Subject: I can't pass 'make test' on DBD-Oracle-0.42
> 
> 
>   Hi Greetings!
> 
>   I knew the DBD-Oracle-0.42 came into being.
>   I downloaded it and tried to make. I finished making, however,
>   I can't pass completely 'make test'.
> 

There are known problems with DBD-Oracle-0.42 ..... upgrade to
DBD-Oracle-0.43 and all should work fine.

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25798-21@oink>;
          Fri, 1 Nov 1996 18:02:38 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846855466:11320:5998; Fri, 01 Nov 96 13:37:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab27991; 1 Nov 96 13:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA14062 for dbi-users-real; Fri, 1 Nov 1996 03:07:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id DAA14058 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 03:07:17 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id ad29940;
          1 Nov 96 10:43 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id ac00242; 1 Nov 96 10:34 GMT
Received: from toad by oink with SMTP (PP) id <24414-0@oink>;
          Fri, 1 Nov 1996 10:16:07 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11444;
          Fri, 1 Nov 1996 10:15:59 +0000
Date: Fri, 1 Nov 1996 10:15:59 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611011015.AA11444@toad.ig.co.uk>
To: dbi-users@fugue.com, hamilton@uplanet.com
Subject: Re: Number of Rows selected
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: hamilton@uplanet.com (Hamilton H.)
> 
> I am using DBI/DBD::Oracle and trying to get the number of rows
> selected in an execute statement.  The documentation says that
> $db_rows should contain this and it doesn't.  Also, it says that
> the return value from execute should contain the number of rows
> but instead it contains 0E0.  I'm sure a number of you have stumbled
> across this.  Can you tell me how to get the number of rows after
> doing a select inside an execute?  Thank you very much.
> 
> Hamilton Hitchings
> hamilton@uplanet.com 
> 

"the documentation" isn't the documentation.

Use the 'perdoc Oraperl' command to read the documentation.

I'd be interested to know where your got your "documentation" and
how you interpreted the warning on the title page.

Tim. 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-2@oink>;
          Mon, 4 Nov 1996 07:36:10 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846873275:11321:15926; Fri, 01 Nov 96 18:34:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab28440; 1 Nov 96 16:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA14278 for dbi-users-real; Fri, 1 Nov 1996 05:43:16 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id FAA14274 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 05:43:10 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id NAA26053; Fri, 1 Nov 1996 13:40:21 GMT
Message-Id: <199611011340.NAA26053@chewbacca.hermetica.com>
Subject: DBD::Informix future
To: dbi-users@fugue.com
Date: Fri, 1 Nov 1996 13:40:17 +0000 (GMT)
Cc: Tim.Bunce@ig.co.uk
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Due to an impending job change, I shall not have access to Informix databases
for the foreseeable future, which means there will be *no* further updates on
the DBD::Informix driver.

If anyone wishes to take maintenance of this module on, please email me.

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-87@oink>;
          Mon, 4 Nov 1996 07:46:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846895030:11321:33661; Sat, 02 Nov 96 00:37:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ad16656; 1 Nov 96 23:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA15132 for dbi-users-real; Fri, 1 Nov 1996 12:17:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA15128 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 12:17:37 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id PAA18543;
          Fri, 1 Nov 1996 15:17:45 -0500 (EST)
Message-Id: <199611012017.PAA18543@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Martin Berli <berli@switch.ch>
cc: dbi-users@fugue.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
In-reply-to: Your message of "Tue, 29 Oct 1996 20:26:43 +0100." <199610291927.LAA05624@toccata.fugue.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 01 Nov 1996 15:16:23 EST
From: John D Groenveld <groenvel@cse.psu.edu>

> Just read this in a "White Paper" from Oracle:
> 
> > Perl Cartridge
> >
> > Perl is an extremely popular development language for deploying complex,
> > robust applications that require different types of information from
> > different sources. In Oracle WebServer 3.0, the Perl cartridge allows
> > developers to use their existing Perl code through the Web Request Broker
> > Architecture.
> 
> Does anyone know more about that? Could this be in concurrence with Oraperl?
> 
> Martin

Other favorite quotes from Oracle WebServer 3.0--An Oracle White Paper 
(November 1996):
"It [Oracle WebServer 3.0] is a unifying architecture, bringing together the 
Web with client/server, bridging distinct object architectures, and unifying 
diverse Web server API's"
"Oracle WebServer works with the supplied Spyglass listener and also supports 
Netscape, Microsoft, and Apache servers."

I love this stuff--its not your father's C/S anymore. Now lets make Oracle 
stick to its word.

BTW: My SE also sent me WebServer 3.0 Transactions (Larry Jacobs September 
1996) and a draft of Oracle WebServer 3.0-- Web Request Broker API (September 
1996)

Have a great day!
John
groenvel@cse.psu.edu

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-99@oink>;
          Mon, 4 Nov 1996 07:47:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846896664:13093:36121; Sat, 02 Nov 96 01:04:24 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ae05804; 2 Nov 96 0:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA15316 for dbi-users-real; Fri, 1 Nov 1996 13:55:27 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from medusa (medusa.ed.atl.sita.int [57.4.76.13]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA15312 
          for <dbi-users@fugue.com>; Fri, 1 Nov 1996 13:55:23 -0800 (PST)
Received: from tayebd by medusa (8.6.10/SMI-SVR4) id QAA00940;
          Fri, 1 Nov 1996 16:54:45 -0500
Date: Fri, 1 Nov 96 16:48:13 PST
From: Tayeb Damerji <tayebd@ed.atl.sita.int>
Subject: Error in prepare using Informix DBD
To: dbi-users@fugue.com
X-Mailer: Chameleon ARM_55, TCP/IP for Windows, NetManage Inc.
Message-ID: <Chameleon.961101165551.tayebd@tayebd>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I am using the Informix DBD 0.24 with Informix 5. I am trying to use a 
cursor to perform a query involving 4 tables and a number of columns. The 
query is pretty large and it executes properly when run through the ACE 
tool. The error message that I get after calling:

( $cursor = $dbh->prepare( "SELECT cs.customer_code,
        cs.prod_id,
        cs.prod_name,
        cu.customer_name, 
..

the error is:

 Column (%s) not found in any table in the query. 

I would appreciate if anyone can point out possible reasons for this error 
and what can be done to debug it further.

I would also appreciate any pointers to example scripts that involve 
complex SQL queries.

Thanks and Best Regards,

Tayeb

-------------------------------------
Name: Tayeb Damerji
E-mail: Tayeb Damerji <tayebd@ed.atl.sita.int>
Date: 11/01/96
Time: 16:48:13
-------------------------------------


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-130@oink>;
          Mon, 4 Nov 1996 07:51:11 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846969952:19093:9; Sat, 02 Nov 96 21:25:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18771; 2 Nov 96 21:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA17122 for dbi-users-real; Sat, 2 Nov 1996 11:29:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA17118 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 11:29:00 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id LAA13715 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 11:38:03 -0800
Date: Sat, 2 Nov 1996 11:27:50 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: DBI Users <dbi-users@fugue.com>
Subject: DBD::Oracle on Linux.
In-Reply-To: <9610101837.AA29565@wcc.com>
Message-ID: <Pine.LNX.3.91.961102110816.2529A-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

I wish to install DBD::Oracle on my Linux box.  However, I don't know which 
version of Oracle for SCO I should purchase (i.e. UnixWare or 
OpenServer).  Will either version allow me to compile and use DBPerl?  If 
either version will work, what are the advantages and disadvantages of 
using the different versions?

Your help is greatly appreciated :)
Mark
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-132@oink>;
          Mon, 4 Nov 1996 07:51:23 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846969959:19086:23; Sat, 02 Nov 96 21:25:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18920; 2 Nov 96 21:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA17170 for dbi-users-real; Sat, 2 Nov 1996 11:54:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA17166 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 11:54:47 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id MAA14262 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 12:02:47 -0800
Date: Sat, 2 Nov 1996 11:52:13 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: dbi-users@fugue.com
Subject: RE: Oracle WebServer 3.0: Perl Cartridge
In-Reply-To: <c=US%a=_%p=Disney%l=WDIGL005-961031193601Z-7344@wdigl000.is.wdi.disney.com>
Message-ID: <Pine.LNX.3.91.961102113244.2529E-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: QUOTED-PRINTABLE

Dear Friends,

I searched Oracleland far and wide and could not find the site where the=20
WWW Interface Kit could be downloaded from.  All I could find was press=20
releases.  Does anyone know if and where Oracle has placee this thing?

:)
Mark


On Thu, 31 Oct 1996, McAdams, Bill D. wrote:

> >
> >>> Some time ago, Oracle announced that they were making available a
> >>> package of unsupported tools for Oracle Web access. These included
> >>> Oraperl v2.4 (BTW, this was shortly after I described Oraperl during
> >>> a job interview at Oracle, and was informed "we use our own tools"!).
> >>> Perhaps they've added DBI/DBD to the current version.
> >>
> >>I'd certainly be interested in finding out.
> >>
> >>Can anyone check?
> >>
> >>Tim.
>=20
> From:
> http://www.oracle.com/corporate/press/html/sdkrel.html
>=20
>=20
>=20
> ORACLE UNVEILS WORLD WIDE WEB INTERFACE KIT
>=20
> Kit Enables Developers to Bring the Power of Oracle7 to the World Wide
> Web
>=20
>=20
>=20
> SAN FRANCISCO, Feb. 7, 1995 Oracle Corp. today announced the immediate=20
> availability of the Oracle World Wide Web Interface Kit which enables
> developers=20
> and World Wide Web server administrators to tightly integrate Oracle7
> databases=20
> with Web servers. The Kit, available free of charge on the Internet,
> includes real-life=20
> examples of linked Oracle7 databases with Web servers created by Web
> developers=20
> from around the world. Also included is a powerful Oracle gateway for
> Web servers,=20
> which translates Oracle standard database language (PL/SQL) to
> Internet-standard=20
> language (HTML).
>=20
> "Handling large quantities of documents and meta-data in a flat file
> system is just=20
> not very attractive," said Bjorn Elliasson, Technical Manager for
> Molnlycke Corp.=20
> "By using Oracle7 as a standard repository, we know that our information
> is safe=20
> and accessible."
>=20
> Using the Kit, developers can now create links between Web servers and
> Oracle7=20
> databases to bring to the Internet exciting new services and information
> systems.=20
> Potential uses for the Kit include the capability to make Oracle7
> databases accessible=20
> to users of Web servers, as well as enabling new applications that
> integrate Web server
> transactions into existing business processes using Oracle7 databases.
>=20
> "Many of our customers have shown interest in interfacing Oracle7 with a
> Web server,=20
> so we're making this kit available to give them a helping hand," said
> Mark Jarvis,=20
> senior director of network products for Oracle Corp. "With minimal
> effort, our customers=20
> can now integrate Web servers into their existing Oracle7 database
> applications
> to bring a whole new way of displaying, browsing and manipulating data.
> It brings about=20
> a new way of doing business and nicely ties the corporate data
> environment into the Internet."
>=20
> "Our developers are fascinated. They know how to write PL/SQL, so
> implementing=20
> advanced World Wide Web gateways is no harder than writing a simple
> procedure,"=20
> said Peter Nystrom, Information Systems Analyst at Molnlycke.
>=20
> The modules in the Oracle WWW Interface Kit include the following:
>=20
>    Oracle's Web-Oracle-Web (WOW) PL/SQL gateway to Web servers=20
>=20
>    Oracle's PL/SQL Editor and Development tool for the creation of
> dynamic PL/SQL code=20
>=20
>    ORAYWWW, a PERL gateway contributed by Mr. Arthur Yasinski of the
> Department of Natural Resources,
> Canadian Forest Service=20
>=20
>    WORA, a user-friendly database browser written in Pro*C by
> Constantine Ocarinets of JINR, Russia=20
>=20
>    DECOUX, a post-processing gateway that inserts query results from an
> Oracle7 database into HTML
> documents. DECOUX was contributed by Guy Decoux of France.=20
>=20
>    Navigator, a collection of PERL scripts and one Pro*C module that
> allows administrators to quickly configure
> HTML forms for end-user queries of Oracle7 databases. This gateway was
> contributed by Rick Hudson of the
> University of Massachusetts.=20
>=20
>    Text Search System (TSS), a full-scale indexing and free-text search
> system contributed by Peter Larsson of
> Astrakan, Sweden.=20
>=20
>   MORE, a collection of Pro*C gateways for maintaining an information
> repository contributed
> by David Eichmann of the University of Texas=20
>=20
>    HotMetal, an HTML editor from SoftQuad=20
>=20
>   PERL, a freeware interpreting programming language developed by Larry
> Wall=20
>=20
>    ORAPERL, an extension to PERL for use with Oracle7 databases
> including user exits developed by Kevin
> Stock=20
>=20
> For more information about Oracle, please contact Oracle's headquarters
> in Redwood Shores, Calif. at (415)
> 506-7000. Oracle's World Wide Web server address is
> http://WWW.oracle.com/=20
>=20
> Copyright =A9 1996 Oracle Corporation. All Rights Reserved.=20
> >
>=20

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-134@oink>;
          Mon, 4 Nov 1996 07:51:37 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846971339:24519:34; Sat, 02 Nov 96 21:48:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24487; 2 Nov 96 21:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA17212 for dbi-users-real; Sat, 2 Nov 1996 12:25:55 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA17208 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 12:25:53 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id MAA15186 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 12:34:56 -0800
Date: Sat, 2 Nov 1996 12:24:45 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: dbi-users@fugue.com
Subject: DBD::Oracle on Linux.
Message-ID: <Pine.LNX.3.91.961102121653.3263A-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

Please ignore my previous message, below, if it doesn't make sense.  The 
Oracle store calls UnixWare "SCO UnixWare".  Other Oracle pages call it 
"Novell UnixWare".

Thanks %-)
Mark

> I wish to install DBD::Oracle on my Linux box.  However, I don't know 
> which version of Oracle for SCO I should purchase (i.e. UnixWare or 
> OpenServer).  Will either version allow me to compile and use DBPerl?  If 
> either version will work, what are the advantages and disadvantages of 
> using the different versions?
>
> Your help is greatly appreciated :)
> Mark

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-146@oink>;
          Mon, 4 Nov 1996 07:52:42 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846980061:24677:14; Sun, 03 Nov 96 00:14:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24595; 3 Nov 96 0:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id OAA17376 for dbi-users-real; Sat, 2 Nov 1996 14:22:37 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from remus.chiba.com (root@remus.chiba.com [207.33.63.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id OAA17372 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 14:22:35 -0800 (PST)
Received: from remus.chiba.com (brian@remus.chiba.com [207.33.63.1]) 
          by remus.chiba.com (8.6.12/8.6.6) with SMTP id OAA06003;
          Sat, 2 Nov 1996 14:10:46 -0800
Date: Sat, 2 Nov 1996 14:10:46 -0800 (PST)
From: brian <brian@chiba.com>
To: Mark Molinari <mark@linux-markm.fishnet.net>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle on Linux.
In-Reply-To: <Pine.LNX.3.91.961102121653.3263A-100000@linux-markm.fishnet.net>
Message-ID: <Pine.LNX.3.95.961102140722.5948A-100000@remus.chiba.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


> Please ignore my previous message, below, if it doesn't make sense.  The 
> Oracle store calls UnixWare "SCO UnixWare".  Other Oracle pages call it 
> "Novell UnixWare".

> > which version of Oracle for SCO I should purchase (i.e. UnixWare or 
> > OpenServer).  Will either version allow me to compile and use DBPerl?  If 

so what you are saying is that i can purchase the openserver version and
run it on my linux box? interesting. not that i would care much if i
couldnt use dbi.

sorry if this is a stupid question, but the sales rep ive been dealing
with over there told me that i could not find a workgroup server version
that would run on linux.

brian moseley


---* work *---                                      ---* not work *---
art & science w3 development                              flux@bud.com
brian@chiba.com                      http://www.whitetrashtheater.com/
415.974.1067                                              415.495.7156

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-150@oink>;
          Mon, 4 Nov 1996 07:53:07 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846985540:19635:2; Sun, 03 Nov 96 01:45:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19608; 3 Nov 96 1:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA17478 for dbi-users-real; Sat, 2 Nov 1996 15:55:12 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id PAA17474 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 15:55:10 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id SAA28232;
          Sat, 2 Nov 1996 18:52:57 -0500 (EST)
Message-Id: <199611022352.SAA28232@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Mark Molinari <mark@linux-markm.fishnet.net>
cc: dbi-users@fugue.com
Subject: Re: Oracle WebServer 3.0: Perl Cartridge
In-reply-to: Your message of "Sat, 02 Nov 1996 11:52:13 PST." <Pine.LNX.3.91.961102113244.2529E-100000@linux-markm.fishnet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Date: Sat, 02 Nov 1996 18:51:31 EST
From: John D Groenveld <groenvel@cse.psu.edu>

> I searched Oracleland far and wide and could not find the site where th=
e =

> WWW Interface Kit could be downloaded from.  All I could find was press=
 =

> releases.  Does anyone know if and where Oracle has placee this thing?

As I remember it, this was temporary collection of free tools to connect =
Oracle to the Web. Now that Oracle has its own production toolset, Oracle=
 WebSystem, the archive has been shutdown. Most of these tools are outdat=
ed, so its probably not worth your effort to track down the packages from=
 the various archives.

I occasionally browse through the Oraywww and GSQL source trees and dream=
 of generic HTML<->DB form languages, but its become much too easy to hac=
k PL/SQL or Perl scripts to make a generic form language very useful. Blu=
estone, Oracle, and others already have GUI code generators for Web devel=
opment--its really a by-gone age.

Thanks Kevin, Tim, and company...
John
groenvel@cse.psu.edu


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-156@oink>;
          Mon, 4 Nov 1996 07:54:05 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846993727:26147:6; Sun, 03 Nov 96 04:02:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25627; 3 Nov 96 4:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA17696 for dbi-users-real; Sat, 2 Nov 1996 17:58:07 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bach.videotron.net (bach.videotron.net [205.151.222.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id RAA17692 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 17:58:05 -0800 (PST)
Received: from Cable.spc.videotron.ca (ppp084.135.mmtl.videotron.net [207.96.135.84]) 
          by bach.videotron.net (8.7.5/8.6.12) with SMTP id UAA18134 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 20:58:19 -0500 (EST)
Message-Id: <199611030158.UAA18134@bach.videotron.net>
Comments: Authenticated sender is <dmccabe@pop.spc.videotron.ca>
From: David McCabe <David.McCabe@videotron.net>
To: dbi-users@fugue.com
Date: Sat, 2 Nov 1996 20:53:59 +0000
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: RE: Oracle WebServer 3.0: Perl Cartridge
Reply-to: David.McCabe@videotron.net
X-Confirm-Reading-To: dmccabe@videotron.net
X-pmrqc: 1
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.32)

> Date:          Sat, 2 Nov 1996 11:52:13 -0800 (PST)
> From:          Mark Molinari <mark@linux-markm.fishnet.net>
> Subject:       RE: Oracle WebServer 3.0: Perl Cartridge

> Dear Friends,
> 
> I searched Oracleland far and wide and could not find the site where the 
> WWW Interface Kit could be downloaded from.  All I could find was press 
> releases.  Does anyone know if and where Oracle has placee this thing?

I too, was intrigued by all of this talk on web sites of the "WWW Interface
Kit", or whatever they called it, and called up Oracle Canada, and wrote to
Oracle USA (by email from the address on their website), and was told by
both that wile they had made a kit available at one time, (that was really
just oraperl with lots of web sample code), that it is now part of their
WebServer, and you only get it by buying that product. Then came the press
realese that was posted here too, about them unbundling the Web Request
Broker, (the current part of the Webserver software that interfaces to the
database) so it can work with other web servers, not just their own. Well,
that is partly true, according to Oracle Canada. It will work with other web
servers, but you still need to buy their webserver, at around 4000 Canadian.
And they know of no plans to make it available as a seperate product. Thankx
Oracle, but no thanks.

David McCabe    Unix Admin for http://www.infinit.net
Le Groupe Videotron   Services PC  (sent from home)
Montreal, Quebec 1 (514) 281 1232  ext 2511
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-158@oink>;
          Mon, 4 Nov 1996 07:54:15 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846993729:26148:11; Sun, 03 Nov 96 04:02:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25876; 3 Nov 96 4:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id SAA17744 for dbi-users-real; Sat, 2 Nov 1996 18:25:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id SAA17740 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 18:25:21 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id SAA23866;
          Sat, 2 Nov 1996 18:34:05 -0800
Date: Sat, 2 Nov 1996 18:23:53 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: brian <brian@chiba.com>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle on Linux.
In-Reply-To: <Pine.LNX.3.95.961102140722.5948A-100000@remus.chiba.com>
Message-ID: <Pine.LNX.3.91.961102181829.4123A-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello,

All I know is what I've learned from being on this mailing list and the 
Linux Journal.  Basically this is it.  There is an SCO emulation package 
called iBCS (I think), and an SCO cross compiler for Linux.  Put these 
two together with DBD::Oracle and SCO Oracle and I understand it works 
just fine.

Mark

On Sat, 2 Nov 1996, brian wrote:

> 
> > Please ignore my previous message, below, if it doesn't make sense.  The 
> > Oracle store calls UnixWare "SCO UnixWare".  Other Oracle pages call it 
> > "Novell UnixWare".
> 
> > > which version of Oracle for SCO I should purchase (i.e. UnixWare or 
> > > OpenServer).  Will either version allow me to compile and use DBPerl?  If 
> 
> so what you are saying is that i can purchase the openserver version and
> run it on my linux box? interesting. not that i would care much if i
> couldnt use dbi.
> 
> sorry if this is a stupid question, but the sales rep ive been dealing
> with over there told me that i could not find a workgroup server version
> that would run on linux.
> 
> brian moseley
> 
> 
> ---* work *---                                      ---* not work *---
> art & science w3 development                              flux@bud.com
> brian@chiba.com                      http://www.whitetrashtheater.com/
> 415.974.1067                                              415.495.7156
> 

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04048-162@oink>;
          Mon, 4 Nov 1996 07:54:40 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846999176:19374:6; Sun, 03 Nov 96 05:32:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19299; 3 Nov 96 5:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id TAA17903 for dbi-users-real; Sat, 2 Nov 1996 19:40:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id TAA17899 
          for <dbi-users@fugue.com>; Sat, 2 Nov 1996 19:40:17 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id WAA29380;
          Sat, 2 Nov 1996 22:41:43 -0500 (EST)
Message-Id: <199611030341.WAA29380@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: cse532 student <c532-7@cs.sunysb.edu>
cc: dbi-users@fugue.com
Subject: Re: Oraperl
In-reply-to: Your message of "Sat, 02 Nov 1996 20:02:18 EST." <199611030115.UAA01933@cs.sunysb.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 02 Nov 1996 22:40:15 EST
From: John D Groenveld <groenvel@cse.psu.edu>

> Hello Mr Groenvel,
> 
> 	I read your paper on the web today.  Can you suggest where I
> can find some example programs using DBIperl function calls? 
> 
> 	 I am trying to learn to use the functions to connect to Oracle. 
> I can get logged on and a simple sql search but I cant get an insert into 
> the database.    (I am doing something wrong with &ora_bind()).
> 
> 
> 	There isnt any documentation with examples in the package tar file.
> Any help would be greatly appreciated,
> 
> 
> Thanks
> 
> Mike Pukmel
To really learn the Oracle Programmer's Interface, you have to read the manuals. I know Oracle isnt shipping them anymore so you'll have to run Oracle Book. I know its bitter medicine and Oracle hasnt quite figured out the Cherry taste, but if you're serious about learning it--swallow hard and fast. Assuming you know SQL, the Pro*C stuff isnt too bad and includes good demos.

Now assuming you are not going to follow my advice, run "perldoc Oraperl" and download OraperlV4 examples from Demon.

Now assuming I've read your whole query wrong and you really have just hit a brain lockup, remember to test for error conditions as Oracle error codes can be quite helpful:

#!/usr/bin/perl -Tw
use Oraperl;
use strict;
 
my($lda) = &ora_login('', 'scott/tiger','') || die "ora_login: $ora_errno: $
ora_errstr\n";
&ora_do($lda,'create table foo (bar number)') || die "ora_do: $o
ra_errno: $ora_errstr\n";
&ora_commit($lda) || die "ora_commit: $ora_errno: $ora_errstr\n";
my($csr) = &ora_open($lda,'insert into foo values (:1)') || die "ora_open: $ora_
errno: $ora_errstr\n";
&ora_bind($csr, 1) || die "ora_bind: $ora_errno: $ora_errstr\n";
&ora_close($csr) || die "ora_close: $ora_errno: $ora_errstr\n";
my($csr) = &ora_open($lda,'select bar from foo') || die "ora_open: $ora_errno: $
ora_errstr\n";
my($bar);
while (($bar) = &ora_fetch($csr)) {
   die "ora_fetch: $ora_errno: $ora_errstr\n" if $ora_errno;
   print $bar,"\n";
}
&ora_close($csr) ||die "ora_close: $ora_errno: $ora_errstr\n";
&ora_do($lda, 'drop table foo') || die "ora_do: $ora_errno: $ora_errstr\n";
&ora_logoff($lda) || die "ora_logoff: $ora_errno: $ora_errstr\n";

John
groenvel@cse.psu.edu

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09065-1@oink>;
          Mon, 4 Nov 1996 11:54:50 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847107159:21884:7; Mon, 04 Nov 96 11:32:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21707; 4 Nov 96 11:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA19480 for dbi-users-real; Mon, 4 Nov 1996 01:00:19 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lin01.global.co.za (lin01.global.co.za [196.3.164.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id BAA19476 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 01:00:15 -0800 (PST)
Received: from kite.global.co.za (kite.global.co.za [196.3.167.110]) 
          by lin01.global.co.za (8.7.3/8.7.3) with ESMTP id KAA17704 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 10:55:05 -0200 (GMT)
Message-Id: <199611041255.KAA17704@lin01.global.co.za>
From: Herman Scheepers <hermans@global.co.za>
To: oraperl mailing list <dbi-users@fugue.com>
Subject: Dates wirh Oraperl
Date: Mon, 4 Nov 1996 10:58:57 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi all

I am having trouble with the oracle date datatype in Oraperl. Can anyone
help?

Regards
Herman
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09065-3@oink>;
          Mon, 4 Nov 1996 11:54:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847107170:21884:31; Mon, 04 Nov 96 11:32:50 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21753; 4 Nov 96 11:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA19516 for dbi-users-real; Mon, 4 Nov 1996 01:20:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA19512 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 01:20:29 -0800 (PST)
Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net id aa05613;
          4 Nov 96 9:05 GMT
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net 
          id aa07922; 4 Nov 96 9:03 GMT
Received: from toad by oink with SMTP (PP) id <26006-0@oink>;
          Fri, 1 Nov 1996 18:07:56 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18449;
          Fri, 1 Nov 1996 18:07:41 +0000
Date: Fri, 1 Nov 1996 18:07:41 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611011807.AA18449@toad.ig.co.uk>
To: dbi-users@fugue.com, takami@mikigw2.paris-miki.co.jp
Subject: Re: I can't pass 'make test' on DBD-Oracle-0.42
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
> 
>   Hi Greetings!
> 
>   I knew the DBD-Oracle-0.42 came into being.
>   I downloaded it and tried to make. I finished making, however,
>   I can't pass completely 'make test'.

You should also know that 0.42 was quickly replaced by 0.43.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09065-7@oink>;
          Mon, 4 Nov 1996 11:55:10 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847108155:26446:19; Mon, 04 Nov 96 11:49:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa26160; 4 Nov 96 11:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA19538 for dbi-users-real; Mon, 4 Nov 1996 01:35:55 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA19534 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 01:35:49 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id JAA16839;
          Mon, 4 Nov 1996 09:34:56 GMT
Date: Mon, 4 Nov 1996 09:35:22 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Herman Scheepers <hermans@global.co.za>
cc: oraperl mailing list <dbi-users@fugue.com>
Subject: Re: Dates wirh Oraperl
In-Reply-To: <199611041255.KAA17704@lin01.global.co.za>
Message-ID: <Pine.SGI.3.95.961104093328.13161A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Mon, 4 Nov 1996, Herman Scheepers wrote:

> From: Herman Scheepers <hermans@global.co.za>
> To: oraperl mailing list <dbi-users@fugue.com>
> Subject: Dates wirh Oraperl
> 
> Hi all
> 
> I am having trouble with the oracle date datatype in Oraperl. Can anyone
> help?
> 

Possibly .... but I suggest you be a little more explicit about your
problem and then you might get a solution :-)

Andy.



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09318-27@oink>;
          Mon, 4 Nov 1996 12:05:21 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 846789342:5:17273:0; Thu, 31 Oct 96 19:15:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa611917; 31 Oct 96 19:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA11838 for dbi-dev-real; Thu, 31 Oct 1996 07:44:54 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (root@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id HAA11834 
          for <dbi-dev@fugue.com>; Thu, 31 Oct 1996 07:44:51 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id KAA23399; Thu, 31 Oct 1996 10:10:37 GMT
Message-Id: <199610311010.KAA23399@chewbacca.hermetica.com>
Subject: Re: DBI->connect
To: brett@speedy.speakeasy.org (Brett McCormick)
Date: Thu, 31 Oct 1996 10:09:21 +0000 (GMT)
Cc: Tim.Bunce@ig.co.uk, dbi-dev@fugue.com
In-Reply-To: <199610301848.KAA24629@speedy.speakeasy.org> from "Brett McCormick" at Oct 30, 96 10:48:36 am
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> > > Why does DBI->connect try to enforce the arguments when many of the
> > > drivers deviate?
> > 
> > Because that's the only way that a script could be made portable.
> > It's a core feature of the DBI.
> 
> How are the scripts portable in that way when the drivers use the
> arguments differently?

Because the drivers that are non compliant are about to be when I get a chance
to fix them.

> --brett

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15176-64@oink>;
          Tue, 5 Nov 1996 07:43:04 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847148927:10702:4397; Mon, 04 Nov 96 23:08:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12777; 4 Nov 96 22:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA20383 for dbi-users-real; Mon, 4 Nov 1996 10:12:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA20379 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 10:11:59 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA02901;
          Mon, 4 Nov 1996 10:10:53 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA01560;
          Mon, 4 Nov 1996 10:11:54 -0800
Date: Mon, 4 Nov 1996 10:11:54 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611041811.KAA01560@anubis.informix.com>
To: dbi-users@fugue.com, tayebd@ed.atl.sita.int
Subject: Re: Error in prepare using Informix DBD

I'm not sure what the problem is since you have not sent the complete statement.
However, your code references various cs.* elements and one cu.customer_name.
Could that be the problem -- the cu should be cs?

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>From owner-dbi-users@fugue.com Fri Nov  1 15:34 PST 1996
>Date: Fri,  1 Nov 96 16:48:13 PST
>From: Tayeb Damerji <tayebd@ed.atl.sita.int>
>Subject: Error in prepare using Informix DBD
>To: dbi-users@fugue.com
>Mime-Version: 1.0
>
>
>I am using the Informix DBD 0.24 with Informix 5. I am trying to use a 
>cursor to perform a query involving 4 tables and a number of columns. The 
>query is pretty large and it executes properly when run through the ACE 
>tool. The error message that I get after calling:
>
>( $cursor = $dbh->prepare( "SELECT cs.customer_code,
>        cs.prod_id,
>        cs.prod_name,
>        cu.customer_name, 
>..
>
>the error is:
>
> Column (%s) not found in any table in the query. 
>
>I would appreciate if anyone can point out possible reasons for this error 
>and what can be done to debug it further.
>
>I would also appreciate any pointers to example scripts that involve 
>complex SQL queries.
>
>Thanks and Best Regards,
>
>Tayeb
>
>-------------------------------------
>Name: Tayeb Damerji
>E-mail: Tayeb Damerji <tayebd@ed.atl.sita.int>
>Date: 11/01/96
>Time: 16:48:13
>-------------------------------------
>
>
>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15176-82@oink>;
          Tue, 5 Nov 1996 07:45:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847170569:06126:12; Tue, 05 Nov 96 05:09:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05058; 5 Nov 96 5:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA20760 for dbi-users-real; Mon, 4 Nov 1996 13:51:06 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ams.sunysb.edu (amirani.ams.sunysb.edu [129.49.6.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA20756 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 13:51:04 -0800 (PST)
Received: from poincare (poincare.ams.sunysb.edu) 
          by amirani.ams.sunysb.edu (4.1/25-eef) id AA28069;
          Mon, 4 Nov 96 16:33:38 EST
From: mpukmel@ams.sunysb.edu (Michael Pukmel)
Received: (mpukmel@localhost) by poincare (950413.SGI.8.6.12/8.6.9) id QAA23614 
          for dbi-users@fugue.com; Mon, 4 Nov 1996 16:33:37 -0500
Message-Id: <199611042133.QAA23614@poincare>
Subject: simple dbi programs
To: dbi-users@fugue.com
Date: Mon, 4 Nov 1996 16:33:36 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24 ME5a]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15176-84@oink>;
          Tue, 5 Nov 1996 07:45:10 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847170731:06657:7; Tue, 05 Nov 96 05:12:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06426; 5 Nov 96 5:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA20745 for dbi-users-real; Mon, 4 Nov 1996 13:39:38 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ams.sunysb.edu (amirani.ams.sunysb.edu [129.49.6.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA20741 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 13:39:36 -0800 (PST)
Received: from cauchy.ams.sunysb.edu by amirani.ams.sunysb.edu (4.1/25-eef) 
          id AA28105; Mon, 4 Nov 96 16:39:33 EST
From: mpukmel@ams.sunysb.edu (Michael Pukmel)
Message-Id: <9611042139.AA28105@ams.sunysb.edu>
Subject: Simple DBI Programs
To: dbi-users@fugue.com
Date: Mon, 4 Nov 1996 16:39:30 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi ,
	I am new to DBI/Oraperl.  Could someone spare a few short programs with 
examples using the basic DBI functions?  I DBD and DBI up and running but have 
some trouble getting a table insert to work.  ( but oracle is cranking!)
	I have a copy of "perldoc oraperl" but its a bit confusing, and I 
am currently wading through many pounds of the oracle pro*c stuff (its slow
going)

Thanks for the patience

Mike Pukmel

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-6@oink>;
          Tue, 5 Nov 1996 10:32:33 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847185613:25168:0; Tue, 05 Nov 96 09:20:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24651; 5 Nov 96 9:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA20913 for dbi-users-real; Mon, 4 Nov 1996 15:26:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id PAA20909 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 15:26:38 -0800 (PST)
Received: by gateway.fcmc.com; id SAA07050; Mon, 4 Nov 1996 18:25:17 -0500
Received: from unknown(192.129.90.50) by vone.fcmc.com via smap (g3.0.3) 
          id xma007044; Mon, 4 Nov 96 18:25:04 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA13780;
          Mon, 4 Nov 96 18:25:05 EST
Received: from ford.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) id AA02275;
          Mon, 4 Nov 96 18:24:47 EST
Date: Mon, 4 Nov 96 18:24:47 EST
From: siva@fcmc.com (Siva Pothireddy \(Technology\))
Message-Id: <9611042324.AA02275@anderson.fcmc.com>
To: dbi-users@fugue.com, nielsodc@vf.wpafb.af.mil, Tim.Bunce@ig.co.uk
Subject: DBD::Informix


Hi,

We are using DBD-Informix-0.24 with online 7.20 on solaris 2.5 
prepare statement is failing with 'Insufficient number of host variables'.


My statement is as follows.

dbh->prepare ("insert into aaa values (?,?)");
dbh->execute (1, "help");

Thanks in advance.

Siva
FUJI Cap.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-8@oink>;
          Tue, 5 Nov 1996 10:32:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847185619:25168:6; Tue, 05 Nov 96 09:20:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24734; 5 Nov 96 9:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id UAA21644 for dbi-users-real; Mon, 4 Nov 1996 20:46:21 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from vortex.uplanet.com (host-165-3.uplanet.com [204.163.165.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id UAA21640 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 20:46:19 -0800 (PST)
Received: from yoga.uplanet.com by vortex.uplanet.com (SMI-8.6/SMI-SVR4) 
          id UAA10678; Mon, 4 Nov 1996 20:46:17 -0800
Received: by yoga.uplanet.com (SMI-8.6/SMI-SVR4) id UAA00950;
          Mon, 4 Nov 1996 20:46:16 -0800
Date: Mon, 4 Nov 1996 20:46:16 -0800
From: hamilton@uplanet.com (Hamilton H.)
Message-Id: <199611050446.UAA00950@yoga.uplanet.com>
To: dbi-users@fugue.com
Subject: DBI/DBD::Oracle connection problems
X-Sun-Charset: US-ASCII

I have DBI, using the Oracle driver, working great on my machine.
I have a test script which establishes a connection to an Oracle
database.  This script works fine on the machine which I installed
Perl/DBI/DBD on.  However, when I trying running this perl script
on a different machine it doesn't work.  The script points to the original 
perl executable which is on the same network and uses the same
@INC paths.  I have even tried setting ORACLE_HOME
to the same directory.  Are there libraries that get installed
in /usr/local or special tweaks to Oracle files not under
ORACLE_HOME?  What am I missing?

Hamilton Hitchings
hamilton@uplanet.com 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-10@oink>;
          Tue, 5 Nov 1996 10:32:46 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847185637:25168:31; Tue, 05 Nov 96 09:20:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24884; 5 Nov 96 9:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id VAA21678 for dbi-users-real; Mon, 4 Nov 1996 21:07:37 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id VAA21674 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 21:07:21 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id OAA20131 for dbi-users@fugue.com; Tue, 5 Nov 1996 14:04:22 +0900
Date: Tue, 5 Nov 1996 14:04:22 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611050504.OAA20131@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: Re: I can't pass 'make test' on DBD-Oracle-0.42


Hi Folks!

I had posted email like this
>   I knew the DBD-Oracle-0.42 came into being.
>   I downloaded it and tried to make. I finished making, however,
>   I can't pass completely 'make test'.

I fetched DBD-Oracle-0.43, and finished making test successfully.

I'm glad to install it on my machine without any problems.

Thank you for advising me, Tim and Andy.

---------------------
Takami Keiichi
(takami@mikigw2.paris-miki.co.jp)
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-12@oink>;
          Tue, 5 Nov 1996 10:32:53 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847185760:25791:43; Tue, 05 Nov 96 09:22:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25708; 5 Nov 96 9:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id UAA21619 for dbi-users-real; Mon, 4 Nov 1996 20:37:19 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from vortex.uplanet.com (host-165-3.uplanet.com [204.163.165.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id UAA21615 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 20:37:18 -0800 (PST)
Received: from yoga.uplanet.com by vortex.uplanet.com (SMI-8.6/SMI-SVR4) 
          id UAA10556; Mon, 4 Nov 1996 20:37:16 -0800
Received: by yoga.uplanet.com (SMI-8.6/SMI-SVR4) id UAA00944;
          Mon, 4 Nov 1996 20:37:14 -0800
Date: Mon, 4 Nov 1996 20:37:14 -0800
From: hamilton@uplanet.com (Hamilton H.)
Message-Id: <199611050437.UAA00944@yoga.uplanet.com>
To: dbi-users@fugue.com
Subject: perldoc for dbi and dbd
X-Sun-Charset: US-ASCII

Where is the most up-to-date documentation on DBI and DBD.
I would assume it is available through perldoc but when I
typed "perldoc dbi" I didn't get anything?  Any suggestions.

Hamilton
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-14@oink>;
          Tue, 5 Nov 1996 10:33:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847185764:25824:33; Tue, 05 Nov 96 09:22:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25762; 5 Nov 96 9:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id UAA21628 for dbi-users-real; Mon, 4 Nov 1996 20:41:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cloud9.net (0CTgS8ueCj/D164IcQyKLYzentYLS6eO@cloud9.net [168.100.1.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id UAA21624 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 20:41:21 -0800 (PST)
Received: from ctichler-dial-in.lehman.com (catech.dialup.cloud9.net [168.100.200.71]) 
          by cloud9.net (8.8.2/cloud9-1.0) with SMTP id XAA06407;
          Mon, 4 Nov 1996 23:41:12 -0500 (EST)
Message-ID: <327EC4F8.583C@cloud9.net>
Date: Mon, 04 Nov 1996 23:39:20 -0500
From: Carl Tichler <catech@cloud9.net>
Reply-To: catech@cloud9.net
Organization: CAT Technology, Inc.
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: Herman Scheepers <hermans@global.co.za>
CC: dbi-users@fugue.com
Subject: Re: Dates wirh Oraperl
References: <199611041255.KAA17704@lin01.global.co.za>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I prefer to convert the date to a string, and then use
Perl to parse the string.  Use the "to_char()" function to
convert a string to a date, or the "to_date()" to convert
a date to a string.  (Depending on whether you are sending
the date in or retrieving it).  These functions each take
a date specification string, which you can formulate according
to your needs.

Carl Tichler
catech@cloud9.net

Herman Scheepers wrote:
> 
> Hi all
> 
> I am having trouble with the oracle date datatype in Oraperl. Can anyone
> help?
> 
> Regards
> Herman
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-17@oink>;
          Tue, 5 Nov 1996 10:33:09 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847187307:03092:3; Tue, 05 Nov 96 09:48:27 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02518; 5 Nov 96 9:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id WAA21835 for dbi-users-real; Mon, 4 Nov 1996 22:27:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id WAA21831 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 22:27:35 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id XAA24388;
          Mon, 4 Nov 1996 23:32:58 -0800
Date: Mon, 4 Nov 1996 22:26:22 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: Tim.Bunce@ig.co.uk
cc: dbi-users@fugue.com
Subject: Bad Free
Message-ID: <Pine.LNX.3.91.961104221916.1016A-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Dear Tim,

I could possibly help you with getting Oracle support for the bad free 
problem.  Recently you circulated mail with the subject: "Purify's view of 
Oracle 7.3's Bad Free".  I could forward the problem to Oracle.  The only 
catch is I'm new to Oracle and DBI.  Perhaps you could give me some 
direction and understanding of the problem so that I could communicate 
with them semi-intelligently.

Mark
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17205-19@oink>;
          Tue, 5 Nov 1996 10:33:15 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847187315:03072:20; Tue, 05 Nov 96 09:48:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02639; 5 Nov 96 9:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA21017 for dbi-users-real; Mon, 4 Nov 1996 15:52:22 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id PAA21013 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 15:52:18 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id AAA09129; Tue, 5 Nov 1996 00:50:09 GMT
Message-Id: <199611050050.AAA09129@chewbacca.hermetica.com>
Subject: Re: DBD::Informix
To: siva@fcmc.com (Siva Pothireddy \(Technology\))
Date: Tue, 5 Nov 1996 00:50:06 +0000 (GMT)
Cc: dbi-users@fugue.com, nielsodc@vf.wpafb.af.mil
In-Reply-To: <9611042324.AA02275@anderson.fcmc.com> from "Siva Pothireddy (Technology)" at Nov 4, 96 06:24:47 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> We are using DBD-Informix-0.24 with online 7.20 on solaris 2.5 
> prepare statement is failing with 'Insufficient number of host variables'.
> 
> My statement is as follows.
> 
> dbh->prepare ("insert into aaa values (?,?)");
> dbh->execute (1, "help");
> 
> Thanks in advance.

Binding isn't supported yet.

> Siva

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18028-1@oink>;
          Tue, 5 Nov 1996 11:56:38 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847192362:27144:12; Tue, 05 Nov 96 11:12:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa26910; 5 Nov 96 11:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id XAA22078 for dbi-users-real; Mon, 4 Nov 1996 23:58:18 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lin01.global.co.za (lin01.global.co.za [196.3.164.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id XAA22073 
          for <dbi-users@fugue.com>; Mon, 4 Nov 1996 23:58:14 -0800 (PST)
Received: from kite.global.co.za (kite.global.co.za [196.3.167.110]) 
          by lin01.global.co.za (8.7.3/8.7.3) with ESMTP id IAA15145;
          Tue, 5 Nov 1996 08:15:53 -0200 (GMT)
Message-Id: <199611051015.IAA15145@lin01.global.co.za>
From: Herman Scheepers <hermans@global.co.za>
To: Michael Pukmel <mpukmel@ams.sunysb.edu>, dbi-users <dbi-users@fugue.com>
Subject: Re: Simple DBI Programs
Date: Tue, 5 Nov 1996 08:20:31 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Mike

Here is a small test program which gets sysdate and a next sequence no, and
subsequently inserts it (with some other stuff) into an account table. The
way I did it was by building up the select statement through string
concatenation, and then executing it with 
&ora_do($lda, $statement). This is as opposed to using bind variables. The
advantage of
this approach is that you can print out your SQL statement, cut and paste
it into SQL plus, and then execute it from there in order to debug it.

Regards
Herman

#!/usr/local/bin/perl



eval '$Oraperl::safe = 1'       if $] >= 5;
eval 'use Oraperl; 1' || die $@ if $] >= 5;

$lda=&ora_login("isis", "isis/isis", '') || die "Logon failed";

$cs=&ora_open($lda, "select accountnoseq.nextval from dual") ||
        die("Could not select next account no");

while(($VAL) = &ora_fetch($cs)){
  $ACCOUNTNO=$VAL;
  print "AccountNo= $ACCOUNTNO\n";
}

&ora_close($cs);

$dc=&ora_open($lda, "select to_char(sysdate,'DD-MON-YYYY') from dual")
        || die "Could not select sysdate from dual";
@sDate=&ora_fetch($dc);
printf("%s \n",@sDate);
&ora_close($dc);   
$USERNAME = "Perl";
$PASSWD = "perl";
$OS = "unix";
$UPDATED_IN_UNIX = "Y";
$VERIFIED = "Y";
$SURNAME = "Perl";
$DATECREATED = @sDate[0];
printf "DATECREATED=$DATECREATED\n";
$ADDRESS = "a";
$CITY = "c";
$POSTALCODE = "2000";
$STATUS = "A";
.
.
.

$StrInsert = "Insert into users (
ACCOUNTNO,
USERNAME,
PASSWD,
OS,
UPDATED_IN_UNIX,
VERIFIED,
SURNAME,
DATECREATED,
ADDRESS,
CITY,
POSTALCODE,
STATUS,
RECEIVED_CONTRACT,
BANKNAME,
BRANCHNO,
BANKBRANCH,
BANKACCOUNT_TYPE,
.
.
.
VALUES ("
. $ACCOUNTNO
.",'". $USERNAME."'\n"
.",'". $PASSWD."'"
.",'". $OS."'"
.",'". $UPDATED_IN_UNIX."'"
.",'".$VERIFIED."'"
.",'". $SURNAME."'"
.",". "to_date('" . $DATECREATED . "','DD-MON-YYYY')"
.",'". $ADDRESS."'\n"
.",'". $CITY."'"
.",'". $POSTALCODE."'"
.",'". $STATUS."'"
.",'". $RECEIVED_CONTRACT."'"
.",'". $BANKNAME."'"
.",'". $BRANCHNO."'\n"           
.
.
.

. ")";    
&ora_do($lda, $StrInsert) || die $ora_errstr;   




----------
> From: Michael Pukmel <mpukmel@ams.sunysb.edu>
> To: dbi-users@fugue.com
> Subject: Simple DBI Programs 
> Date: Monday, November 04, 1996 11:39 PM
> 
> Hi ,
> 	I am new to DBI/Oraperl.  Could someone spare a few short programs with 
> examples using the basic DBI functions?  I DBD and DBI up and running but
have 
> some trouble getting a table insert to work.  ( but oracle is cranking!)
> 	I have a copy of "perldoc oraperl" but its a bit confusing, and I 
> am currently wading through many pounds of the oracle pro*c stuff (its
slow
> going)
> 
> Thanks for the patience
> 
> Mike Pukmel
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18872-13@oink>;
          Tue, 5 Nov 1996 16:26:19 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847207848:16471:92; Tue, 05 Nov 96 15:30:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16546; 5 Nov 96 15:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA23164 for dbi-users-real; Tue, 5 Nov 1996 03:36:54 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from stimpy.quickquote.com ([206.99.110.20]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id DAA23160 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 03:36:53 -0800 (PST)
Received: (from dahl@localhost) by stimpy.quickquote.com (8.7.5/8.7.3) 
          id DAA16206 for dbi-users@fugue.com;
          Tue, 5 Nov 1996 03:36:20 -0800 (PST)
From: Michael Dahl <dahl@quickquote.com>
Message-Id: <199611051136.DAA16206@stimpy.quickquote.com>
Subject: Help: DBI/DBD::Oracle connection hangs
To: dbi-users@fugue.com
Date: Tue, 5 Nov 1996 03:36:20 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text

We have a cgi perl script using DBI/DBD that accesses Oracle running on a 
second system.

Occasionally the perl script will hang when it tries to connect to 
Oracle.  When this happens, the job cannot be killed.  Any other scripts 
that try to access Oracle will also hang until we reboot the system.

Has anyone else seen this problem?  
Is there a way to recover without rebooting?

Details:
DBI-0.72 
DBD-Oracle-0.39
Solaris 2.5
perl 5.003 

Thanks for the help.

Michael
dahl@quickquote.com
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19082-0@oink>;
          Tue, 5 Nov 1996 16:47:21 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847212227:5:15625:12; Tue, 05 Nov 96 16:43:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa515496; 5 Nov 96 16:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA23242 for dbi-users-real; Tue, 5 Nov 1996 04:37:12 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA23238 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 04:37:08 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id NAA10214 for dbi-users@fugue.com; Tue, 5 Nov 1996 13:35:19 GMT
Message-Id: <199611051335.NAA10214@chewbacca.hermetica.com>
Subject: WWW update
To: dbi-users@fugue.com
Date: Tue, 5 Nov 1996 13:35:16 +0000 (GMT)
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


The WWW pages at:

	http://www.hermetica.com/technologia/DBI

have been slightly updated. They're now pretty much up to date. The site is
getting a revamp done on it just now, which should be ready in a week or
so. More news later.

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21643-6@oink>;
          Tue, 5 Nov 1996 22:32:27 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847233024:08253:3255; Tue, 05 Nov 96 22:30:24 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20878; 5 Nov 96 20:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA23406 for dbi-users-real; Tue, 5 Nov 1996 07:26:14 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA23402 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 07:26:12 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id ac521901; 5 Nov 96 11:56 GMT
Received: from toad by oink with SMTP (PP) id <17762-0@oink>;
          Tue, 5 Nov 1996 10:49:37 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA29695;
          Tue, 5 Nov 1996 10:49:30 +0000
Date: Tue, 5 Nov 1996 10:49:30 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611051049.AA29695@toad.ig.co.uk>
To: dbi-users@fugue.com, hamilton@uplanet.com
Subject: Re: perldoc for dbi and dbd
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From owner-dbi-users@fugue.com  Tue Nov  5 10:34:17 1996
> Sender: owner-perldb-interest@fugue.com
> Date: Mon, 4 Nov 1996 20:37:14 -0800
> From: hamilton@uplanet.com (Hamilton H.)
> To: dbi-users@fugue.com
> Subject: perldoc for dbi and dbd
> 
> Where is the most up-to-date documentation on DBI and DBD.
> I would assume it is available through perldoc but when I
> typed "perldoc dbi" I didn't get anything?  Any suggestions.
> 
> Hamilton
> 

perldoc Oraperl is basically it for the time being.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22032-32@oink>;
          Wed, 6 Nov 1996 00:08:35 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847237429:28480:117; Tue, 05 Nov 96 23:43:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16763; 5 Nov 96 23:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA23613 for dbi-users-real; Tue, 5 Nov 1996 09:10:18 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA23609 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 09:10:16 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id ab609428; 5 Nov 96 16:47 GMT
Received: from toad by oink with SMTP (PP) id <19047-0@oink>;
          Tue, 5 Nov 1996 16:42:52 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03504;
          Tue, 5 Nov 1996 16:42:44 +0000
Date: Tue, 5 Nov 1996 16:42:44 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611051642.AA03504@toad.ig.co.uk>
To: hkatz@hkatz.dialup.access.net
Subject: Re: DBD,DBI,Oraperl from CPAN and substitution vars
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Henry Katz <hkatz@hkatz.dialup.access.net>

>         $sql = "select skill from loc_skill where skill like '%:1%'";

>         ora_bind($cursor, "dba");

> execute called with 1 bind variables, 0 needed at file line 10.
> 
> Any tips would be kindly appreciated.

I wish there was a way to avoid questions like these. I don't feel like
teaching the world how to use Oracle and I've no tile to write docs.

Oh well, here's the answer:

	$sql = "select skill from loc_skill where skill like :1"

	ora_bind($cursor, "%dba%");

Please always send mail to the mailing list and not to me personally.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22032-34@oink>;
          Wed, 6 Nov 1996 00:08:43 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847237438:28475:145; Tue, 05 Nov 96 23:43:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16893; 5 Nov 96 23:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA23685 for dbi-users-real; Tue, 5 Nov 1996 09:47:45 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA23681 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 09:47:43 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa604394; 5 Nov 96 16:25 GMT
Received: from toad by oink with SMTP (PP) id <18154-0@oink>;
          Tue, 5 Nov 1996 12:06:54 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA02662;
          Tue, 5 Nov 1996 12:06:47 +0000
Date: Tue, 5 Nov 1996 12:06:47 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611051206.AA02662@toad.ig.co.uk>
To: mpukmel@ams.sunysb.edu, dbi-users@fugue.com, hermans@global.co.za
Subject: Re: Simple DBI Programs
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Herman Scheepers <hermans@global.co.za>
> 
> Hi Mike
> 
> Here is a small test program which gets sysdate and a next sequence no, and
> subsequently inserts it (with some other stuff) into an account table. The
> way I did it was by building up the select statement through string
> concatenation, and then executing it with 
> &ora_do($lda, $statement).

Thanks. Some random comments:

> This is as opposed to using bind variables. The advantage of
> this approach is that you can print out your SQL statement, cut and paste
> it into SQL plus, and then execute it from there in order to debug it.

On the other hand, you can use bind variables in SQL Plus.

You should not use ora_do for statements which you're likely to execute
more than once or twice. The cost of preparing a query execution plan in
the server can be high.

> $lda=&ora_login("isis", "isis/isis", '') || die "Logon failed";

I trust this system isn't available (or hackable) from the internet.
For your own sake, don't include passwords in examples!

> $cs=&ora_open($lda, "select accountnoseq.nextval from dual") ||
>         die("Could not select next account no");

> $dc=&ora_open($lda, "select to_char(sysdate,'DD-MON-YYYY') from dual")
>         || die "Could not select sysdate from dual";

You could combine those into one query.

> $StrInsert = "Insert into users (
> ACCOUNTNO,
> USERNAME,
> .
> .
> .
> VALUES ("
> . $ACCOUNTNO
> .",'". $USERNAME."'\n"
> .
> .
> .
> . ")";    
> &ora_do($lda, $StrInsert) || die $ora_errstr;   

You can't insert NULL's easily that way and, from memory, Oracle won't
properly deal with 'not null with default' fields that way. Binding an
undef values does the right thing.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22848-0@oink>;
          Wed, 6 Nov 1996 00:46:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847240920:15724:36; Wed, 06 Nov 96 00:42:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15688; 6 Nov 96 0:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA24433 for dbi-users-real; Tue, 5 Nov 1996 12:48:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from noc.cerf.net (nbt@noc.cerf.net [192.153.156.22]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA24429 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 12:48:38 -0800 (PST)
Received: (from nbt@localhost) by noc.cerf.net (10.2.90/8.6.9) id MAA27869;
          Tue, 5 Nov 1996 12:47:34 -0800 (PST)
From: Binh Thanh Nguyen <nbt@cerf.net>
Message-Id: <199611052047.MAA27869@noc.cerf.net>
Subject: Re: Using Insert with char(n) with n > 256 and Perl
To: marc@bienlogic.com (Marc Northover)
Date: Tue, 5 Nov 1996 12:47:34 -0800 (PST)
Cc: dbi-users@fugue.com
In-Reply-To: <v01540b02aea4ddbfc94b@[199.106.143.102]> from "Marc Northover" at Nov 5, 96 12:14:46 pm
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> 
> I have a table with the following column and value:
> 
> params               char(512)
> 
> When inserting values through a perl interface (use DBI), it only inserts
> when the length of the string is 256 or less.
> (i.e. INSERT INTO sessions (sid, params) VALUES (123456, 'when this string
> exceeds 256 characters it doesn't work. However short strings work. Help'))
> 
> Any attempt to insert a string of 257 or more doesn't get past the '$cursor
> = $dbh ->prepare($cmd)' statement.
> 
> Has anyone else run into this problem???
> 
> 
> Marc Northover
> marc@bienlogic.com
> 
> 

Dear Marc,

One kludge -- You can embeded ESQL/C routine within PERL scripts.
That's the easiest way.  Perl5-Informix-DBD is at it early stage, 
There are lot of bugs and limitation.


regards,

Binh Nguyen 
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22848-2@oink>;
          Wed, 6 Nov 1996 00:46:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847240982:16025:1; Wed, 06 Nov 96 00:43:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15734; 6 Nov 96 0:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA23732 for dbi-users-real; Tue, 5 Nov 1996 10:02:06 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-6.mail.demon.net (punt2.demon.co.uk [194.217.242.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA23728 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 10:02:04 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id ab521901; 5 Nov 96 11:56 GMT
Received: from toad by oink with SMTP (PP) id <17754-0@oink>;
          Tue, 5 Nov 1996 10:49:03 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA29692;
          Tue, 5 Nov 1996 10:48:56 +0000
Date: Tue, 5 Nov 1996 10:48:56 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611051048.AA29692@toad.ig.co.uk>
To: dbi-users@fugue.com, hamilton@uplanet.com
Subject: Re: DBI/DBD::Oracle connection problems
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: hamilton@uplanet.com (Hamilton H.)
> 
> I have DBI, using the Oracle driver, working great on my machine.
> I have a test script which establishes a connection to an Oracle
> database.  This script works fine on the machine which I installed
> Perl/DBI/DBD on.  However, when I trying running this perl script
> on a different machine it doesn't work.  The script points to the original 
> perl executable which is on the same network and uses the same
> @INC paths.  I have even tried setting ORACLE_HOME
> to the same directory.  Are there libraries that get installed
> in /usr/local or special tweaks to Oracle files not under
> ORACLE_HOME?  What am I missing?
> 
> Hamilton Hitchings
> hamilton@uplanet.com 

"it doesn't work" isn't very helpful.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22848-4@oink>;
          Wed, 6 Nov 1996 00:46:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847240984:16028:6; Wed, 06 Nov 96 00:43:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15816; 6 Nov 96 0:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA24334 for dbi-users-real; Tue, 5 Nov 1996 12:15:32 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bienlogic.com ([199.106.143.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA24330 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 12:15:30 -0800 (PST)
Received: from [199.106.143.102] ([199.106.143.102]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id MAA07656 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 12:14:46 -0800 (PST)
Date: Tue, 5 Nov 1996 12:14:46 -0800 (PST)
X-Sender: marc@miles.bienlogic.com
Message-Id: <v01540b02aea4ddbfc94b@[199.106.143.102]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: marc@bienlogic.com (Marc Northover)
Subject: Using Insert with char(n) with n > 256 and Perl

I have a table with the following column and value:

params               char(512)

When inserting values through a perl interface (use DBI), it only inserts
when the length of the string is 256 or less.
(i.e. INSERT INTO sessions (sid, params) VALUES (123456, 'when this string
exceeds 256 characters it doesn't work. However short strings work. Help'))

Any attempt to insert a string of 257 or more doesn't get past the '$cursor
= $dbh ->prepare($cmd)' statement.

Has anyone else run into this problem???


Marc Northover
marc@bienlogic.com


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23147-2@oink>;
          Wed, 6 Nov 1996 01:16:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847242437:21447:16; Wed, 06 Nov 96 01:07:17 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21393; 6 Nov 96 1:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA24554 for dbi-users-real; Tue, 5 Nov 1996 13:41:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from vortex.uplanet.com (host-165-3.uplanet.com [204.163.165.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA24550 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 13:41:27 -0800 (PST)
Received: from yoga.uplanet.com by vortex.uplanet.com (SMI-8.6/SMI-SVR4) 
          id NAA28186; Tue, 5 Nov 1996 13:41:26 -0800
Received: by yoga.uplanet.com (SMI-8.6/SMI-SVR4) id NAA01843;
          Tue, 5 Nov 1996 13:41:22 -0800
Date: Tue, 5 Nov 1996 13:41:22 -0800
From: hamilton@uplanet.com (Hamilton H.)
Message-Id: <199611052141.NAA01843@yoga.uplanet.com>
To: dbi-users@fugue.com
Subject: Patch for connection problem with DBD::Oracle
X-Sun-Charset: US-ASCII

Folks,

I have a bug fix for a problem I recently encountered in DBD::Oracle .39.
When connecting my test case would only work for databases on remote machines.
The reason is that on remote machines an @remote_database was appended
to the end of the UID.  By appending @remote_database to the UID even
for local machines it fixed the problem.  Below is my version of the bug 
fix which belongs in Oracle.pm in the connect method, however, it may already 
have been fixed in a subsequent version or be deemed not necessary by
Tim who has a much better understanding of all this stuff.  By the way,
I could not have tracked down this problem without the source code.
Thanks.

Hamilton Hitchings

PS:  Below is the patch:

if ($orahome) { # is in oratab == is local
	if ($ENV{ORACLE_HOME} and $orahome ne $ENV{ORACLE_HOME})
	{
		$ENV{ORACLE_HOME} = $orahome;
		$ENV{ORACLE_SID}  = $dbname;
		delete $ENV{TWO_TASK};
	} else {
		$user .= '@'.$dbname;	# BUG FIX
	}
}
else {
	$user .= '@'.$dbname;	# assume it's an alias
}


> From Tim.Bunce@ig.co.uk Tue Nov  5 12:18:46 1996
> Date: Tue, 5 Nov 1996 10:48:56 +0000
> From: Tim Bunce <Tim.Bunce@ig.co.uk>
> To: dbi-users@fugue.com, hamilton@uplanet.com
> Subject: Re: DBI/DBD::Oracle connection problems
> 
> 
> > From: hamilton@uplanet.com (Hamilton H.)
> > 
> > I have DBI, using the Oracle driver, working great on my machine.
> > I have a test script which establishes a connection to an Oracle
> > database.  This script works fine on the machine which I installed
> > Perl/DBI/DBD on.  However, when I trying running this perl script
> > on a different machine it doesn't work.  The script points to the original 
> > perl executable which is on the same network and uses the same
> > @INC paths.  I have even tried setting ORACLE_HOME
> > to the same directory.  Are there libraries that get installed
> > in /usr/local or special tweaks to Oracle files not under
> > ORACLE_HOME?  What am I missing?
> > 
> > Hamilton Hitchings
> > hamilton@uplanet.com 
> 
> "it doesn't work" isn't very helpful.
> 
> Tim.
> 



----- End Included Message -----

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23147-4@oink>;
          Wed, 6 Nov 1996 01:16:43 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847242574:21972:3; Wed, 06 Nov 96 01:09:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21759; 6 Nov 96 1:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA24543 for dbi-users-real; Tue, 5 Nov 1996 13:39:10 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from DGS.dgsys.com (root@dgs.dgsys.com [204.97.64.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA24539 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 13:39:08 -0800 (PST)
Received: from DGS (dgs.dgsys.com) by DGS.dgsys.com (5.0/SMI-SVR4) id AA27198;
          Tue, 5 Nov 1996 16:36:12 -0500
Date: Tue, 5 Nov 1996 16:36:12 -0500 (EST)
From: Robert Nicholson <steffi@DGS.dgsys.com>
X-Sender: steffi@DGS
To: dbi-users@fugue.com
Subject: cursor support?
Message-Id: <Pine.SOL.3.94.961105163531.25855B-100000@DGS>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

I would like to get some idea as to wether DBI supports cursors or cursor
variables?

I'm particularly interested in the oraperl interface..




---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24212-11@oink>;
          Wed, 6 Nov 1996 07:36:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847247589:07281:14; Wed, 06 Nov 96 02:33:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07286; 6 Nov 96 2:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA25247 for dbi-users-real; Tue, 5 Nov 1996 16:55:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id QAA25243 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 16:55:22 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id QAA02606;
          Tue, 5 Nov 1996 16:54:19 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id QAA14409;
          Tue, 5 Nov 1996 16:55:19 -0800
Date: Tue, 5 Nov 1996 16:55:19 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611060055.QAA14409@anubis.informix.com>
To: johnl@informix.com, pixel@organic.com
Cc: dbi-users@fugue.com
Subject: Re: DBD::Informix

>Date: Tue, 5 Nov 1996 15:47:08 -0800 (PST)
>From: James Cooper <pixel@organic.com>
>To: johnl@informix.com
>Subject: DBD::Informix
>
>Hi,
>
>I noticed that you have taken over maintainance of the DBD::Informix
>driver.

Yes, that's correct.  As a spare time activity, in general.  Please address
questions to the standard mail groups, not to me personally.  If it
involves DBD::Informix, there's a fair chance I'll answer anyway.  I'd
rather not get involved in too many private conversations.

So, please sent email on DBD::Informix to dbi-users@fugue.com or
dbi-dev@fugue.com and not to me alone.  You can copy me on it if you wish
(in fact, I even encourage it), but don't expect me to answer unless nobody
else does.

>Organic Online uses Online Dynamic server and is planning on evaluating
>Illustra.

Great.

>When Informix releases Universal Server, how will this affect the API?

It means, primarily, that there are things that can be returned from the
database which are more complex than anything we've had to deal with so
far.  However, if you don't use the new features, then there won't be any
problem.

>From my understanding Online only supports embedded SQL, while Illustra
>uses a traditional C call interface.

More or less correct.

>Will the DBD module have to be
>totally re-written to accomodate Universal Server?

Yes, No, and Maybe.  Yes, to accomodate the compound data classes.  No,
because ESQL/C is available, even with Informix Universal Server.  Maybe,
because I haven't got the basic interface working as I want it to, yet.

I've not yet spent much time thinking about this -- there's more than
enough work to do on the basic (7.20-ish) version before I worry about
IUS.

>Thanks!
>
>-- James
>
>---------------------
>James Paul Cooper
>Organic Online
>pixel@organic.com

Sorry to pick on you, James, but I need to make the protocol clear.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24212-13@oink>;
          Wed, 6 Nov 1996 07:36:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847247654:07513:3; Wed, 06 Nov 96 02:34:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab07297; 6 Nov 96 2:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA25212 for dbi-users-real; Tue, 5 Nov 1996 16:45:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id QAA25208 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 16:45:41 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa500253; 6 Nov 96 0:39 GMT
Received: from toad by oink with SMTP (PP) id <22815-0@oink>;
          Wed, 6 Nov 1996 00:38:58 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04743;
          Wed, 6 Nov 1996 00:38:46 +0000
Date: Wed, 6 Nov 1996 00:38:46 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611060038.AA04743@toad.ig.co.uk>
To: steffi@dgs.dgsys.com
Subject: Re: walking a result set in oraperl
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Robert Nicholson <rnichols@mailserv.metro.mci.com>
> 
> Tim,
> 
> Can Oraperl or DBI currently support walking a cursor variable that  
> it opened in a stored proc? I need to fetch from the resultset of a  
> stored proc.

No. I envisage implementing support for PL/SQL returning cursor variables
at some point but not now and probably not soon.

Others are welcome to supply patches (that will still work for <7.3).

Tim.

p.s. Please always send mail to the dbi-users mailing list and not to me.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24212-15@oink>;
          Wed, 6 Nov 1996 07:36:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847247665:07514:26; Wed, 06 Nov 96 02:34:25 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07489; 6 Nov 96 2:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA24972 for dbi-users-real; Tue, 5 Nov 1996 15:42:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id PAA24968 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 15:42:34 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id PAA28355;
          Tue, 5 Nov 1996 15:40:59 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id PAA12927;
          Tue, 5 Nov 1996 15:41:59 -0800
Date: Tue, 5 Nov 1996 15:41:59 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611052341.PAA12927@anubis.informix.com>
To: dbi-users@fugue.com, marc@bienlogic.com
Subject: Re: Using Insert with char(n) with n > 256 and Perl

You don't say which database you are using, so answers have to be
based on guesswork.  Ditto for which version of the DBI/DBD stuff.

However, there is a limitation in Informix databases that literal
strings in a statement cannot exceed 256 characters.  I don't know
where that limit comes from, or why it is still there, and you may
not be using Informix, but maybe it originates with an SQL standard
(eg SQL-86) and you are breaching that limit.

There is nothing inside Perl which should hit that limit.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>From owner-dbi-users@fugue.com Tue Nov  5 15:20 PST 1996
>Date: Tue, 5 Nov 1996 12:14:46 -0800 (PST)
>X-Sender: marc@miles.bienlogic.com
>Mime-Version: 1.0
>To: dbi-users@fugue.com
>From: marc@bienlogic.com (Marc Northover)
>Subject: Using Insert with char(n) with n > 256 and Perl
>
>I have a table with the following column and value:
>
>params               char(512)
>
>When inserting values through a perl interface (use DBI), it only inserts
>when the length of the string is 256 or less.
>(i.e. INSERT INTO sessions (sid, params) VALUES (123456, 'when this string
>exceeds 256 characters it doesn't work. However short strings work. Help'))
>
>Any attempt to insert a string of 257 or more doesn't get past the '$cursor
>= $dbh ->prepare($cmd)' statement.
>
>Has anyone else run into this problem???
>
>
>Marc Northover
>marc@bienlogic.com
>
>
>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24212-17@oink>;
          Wed, 6 Nov 1996 07:37:10 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847247801:07957:14; Wed, 06 Nov 96 02:36:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07851; 6 Nov 96 2:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA25032 for dbi-users-real; Tue, 5 Nov 1996 16:00:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bienlogic.com ([199.106.143.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id QAA25028 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 16:00:38 -0800 (PST)
Received: from [199.106.143.102] ([199.106.143.102]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id QAA09108 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 16:00:05 -0800 (PST)
Date: Tue, 5 Nov 1996 16:00:05 -0800 (PST)
X-Sender: marc@miles.bienlogic.com
Message-Id: <v01540b05aea514f4110b@[199.106.143.102]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: marc@bienlogic.com (Marc Northover)

I forgot to mention I was using Informix as my database........

>>Subject: Using Insert with char(n) with n > 256 and Perl
>>
>>I have a table with the following column and value:
>>
>>params               char(512)
>>
>>When inserting values through a perl interface (use DBI), it only inserts
>>when the length of the string is 256 or less.
>>(i.e. INSERT INTO sessions (sid, params) VALUES (123456, 'when this string
>>exceeds 256 characters it doesn't work. However short strings work. Help'))
>>
>>Any attempt to insert a string of 257 or more doesn't get past the '$cursor
>>= $dbh ->prepare($cmd)' statement.
>>
>>Has anyone else run into this problem???
>>
>>
>>Marc Northover
>>marc@bienlogic.com
>>
>>
>>


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24212-28@oink>;
          Wed, 6 Nov 1996 07:38:38 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847253691:25713:3; Wed, 06 Nov 96 04:14:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25520; 6 Nov 96 4:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA25337 for dbi-users-real; Tue, 5 Nov 1996 17:16:44 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id RAA25333 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 17:16:32 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id KAA26136 for dbi-users@fugue.com; Wed, 6 Nov 1996 10:13:36 +0900
Date: Wed, 6 Nov 1996 10:13:36 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611060113.KAA26136@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: Re:cursor support?


>> I would like to get some idea as to wether DBI supports
>> cursors or cursor variables?

I think the Oraperl supports the cursor.
The following is my programm which I use the cursor:

sub logon {
_;

	$ora_sid = $ENV{"ORACLE_SID"};
	$lda = ora_login( $ora_sid, $userid, $passwd ) || die $ora_errstr;

	return $lda;
}

sub open {
_;

	$statements='select * from v_cg where tenp_tnp_syozoku_code = :1';
	$csr = &ora_open($lda, $statements,10) || die $ora_errstr;

	return $csr;
}

...
...
@result = &ora_fetch($csr)

...
...

When you select many records from your database,
you have to use the cursor.
Please reference the manual "ORACLE7 Server Application Developer's Guide".

-------------------
Takami Keiichi
(takami@paris-miki.co.jp)
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26409-0@oink>;
          Wed, 6 Nov 1996 11:37:56 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847278413:21158:25; Wed, 06 Nov 96 11:06:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21028; 6 Nov 96 11:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id XAA00533 for dbi-users-real; Tue, 5 Nov 1996 23:35:50 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lbl.gov (lbl.gov [128.3.254.23]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id XAA00529 
          for <dbi-users@fugue.com>; Tue, 5 Nov 1996 23:35:48 -0800 (PST)
Received: from voro.lbl.gov by lbl.gov (SMI-8.6/SMI-SVR4) id XAA22544;
          Tue, 5 Nov 1996 23:35:29 -0800
Received: from voro by voro.lbl.gov (SMI-8.6/SMI-SVR4) id XAA11657;
          Tue, 5 Nov 1996 23:35:30 -0800
Message-Id: <199611060735.XAA11657@voro.lbl.gov>
Reply-to: mtdedlow@lbl.gov
To: dbi-users@fugue.com
Subject: perl and Oracle WebServer 3 cartridge
Date: Tue, 05 Nov 1996 23:35:30 -0800
From: Mark Dedlow <dedlow@voro.lbl.gov>

I went to Oracle's OpernWorld conference today, and got the scoop
on the WebServer 3.0 Perl Cartridge.  

First, terms:  "cartridge" is a server application that is linked
into their Webserver. In a sense, it's a low-overhead, pre-spawned
CGI.  I am not doing the full concept justice (intentionally), as
it is really part of a bigger ORB strategy.  For purposes here,
however, considering it to be an efficient CGI is reasonable.

So the perl cartridge essentially gives you one or many pre-spawned 
instances of the perl interpreter to run your script, primarily
for the performance and efficiency gains.  Whether you have
to modify your scripts slightly, e.g. to add a main event loop 
a la FastCGI, I didn't ask, though I would guess so.

That's basically it.  It does not include oraperl, or DBD, or 
any mechanism for DB access, and there are no plans to add that.

It does allow one to make ICX calls (Inter Cartridge eXchange?),
which is to say, you can call other cartridges, and get results 
back from them.  Since PL/SQL also has a cartridge interface,
you could call PL/SQL and get data that way.  However, this is
not an SQL interface; the call interface to cartridges is a URL, and 
the return is a string buffer.

It may be worth noting that Oracle has modified the perl source.
You can't run a stock perl.  The main change is to allow functions
that write to STDOUT to hand off back to Oracle's ORB instead.
Perhaps necessary, but surely less than desirable.  I suspect it
could raise compatibility questions with some modules.

It is slated to ship in January.  Beta versions were apparently 
available, though I didn't pick one up (too much real work to do :)

Mark
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26792-0@oink>;
          Wed, 6 Nov 1996 12:46:32 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847282753:09912:16; Wed, 06 Nov 96 12:19:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09720; 6 Nov 96 12:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA00727 for dbi-users-real; Wed, 6 Nov 1996 01:29:44 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id BAA00723 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 01:29:42 -0800 (PST)
Received: by gw.home.vix.com id BAA07486; Wed, 6 Nov 1996 01:28:50 -0800 (PST)
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from p133 (194.224.202.13) by quad.es (EMWAC SMTPRS 0.80) with SMTP 
          id <B0000003931@quad.es>; Wed, 06 Nov 1996 10:28:03 +0100
Date: Wed, 06 Nov 1996 10:28:03 +0100
Message-ID: <B0000003931@quad.es>
X-Sender: pedro@quad.es
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: pedro@quad.es (Pedro Agudo)
Subject: Oraperl


         Hi out there!

         Sorry for disturbing you but I am in a nervous breakdown:I've been
trying to construct the oraperl for the last two weeks but I have not be
able yet.I have oraperl v2 and perl 4.036 .I'm working on msdos and I don't
understand the
function of the makefile and how to make it run.I have heard something about
using
"pdmake" but ...
         I would be infinitely pleasant if you could help me on this.


                Thanks in advance.



                              Pedro Agudo.


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26792-2@oink>;
          Wed, 6 Nov 1996 12:46:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847283479:13173:3; Wed, 06 Nov 96 12:31:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12937; 6 Nov 96 12:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA00794 for dbi-users-real; Wed, 6 Nov 1996 02:06:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id CAA00790 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 02:06:44 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id CAA15885; Wed, 6 Nov 1996 02:10:31 GMT
Message-Id: <199611060210.CAA15885@chewbacca.hermetica.com>
Subject: Re: Using Insert with char(n) with n > 256 and Perl
To: nbt@cerf.net (Binh Thanh Nguyen)
Date: Wed, 6 Nov 1996 02:09:12 +0000 (GMT)
Cc: marc@bienlogic.com, dbi-users@fugue.com
In-Reply-To: <199611052047.MAA27869@noc.cerf.net> from "Binh Thanh Nguyen" at Nov 5, 96 12:47:34 pm
X-Pants: ** The return address of this email should be: descarte@hermetica.com
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> One kludge -- You can embeded ESQL/C routine within PERL scripts.
> That's the easiest way.  Perl5-Informix-DBD is at it early stage, 
> There are lot of bugs and limitation.

I wouldn't say a lot of bugs or limitations. There are one or two. Of course,
if people actually provided sensible test scripts to exercise bugs, or even
reported the damn things in the first place including error output, we might
be more inclined to prioritise fixes.

Just my 2p.

> Binh Nguyen 

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27791-0@oink>;
          Wed, 6 Nov 1996 15:22:49 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847293068:06054:101; Wed, 06 Nov 96 15:11:08 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05563; 6 Nov 96 15:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA01009 for dbi-users-real; Wed, 6 Nov 1996 04:32:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sluggo.rochgrp.com ([204.249.122.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA01005 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 04:32:17 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id EAA00195; Wed, 6 Nov 1996 04:29:29 -0500
Message-ID: <32736657.4A20@rochgrp.com>
Date: Sun, 27 Oct 1996 05:40:39 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com, steffi@DGS.dgsys.com
Subject: Re: cursor support?
References: <Pine.SOL.3.94.961105163531.25855B-100000@DGS>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Robert Nicholson wrote:
> 
> I would like to get some idea as to wether DBI supports cursors or cursor
> variables?
> 
> I'm particularly interested in the oraperl interface..

Yes cursors are supported.
The oraperl emulation in DBD::Oracle is your best bet.
I have just started working with it myself.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc.
600 Park Avenue
Rochester,NY 14607
USA
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27791-3@oink>;
          Wed, 6 Nov 1996 15:22:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847293513:09400:11; Wed, 06 Nov 96 15:18:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08778; 6 Nov 96 15:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA00966 for dbi-users-real; Wed, 6 Nov 1996 04:08:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from quad.es ([194.224.202.2]) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id EAA00962 for <dbi-users@fugue.com>;
          Wed, 6 Nov 1996 04:08:22 -0800 (PST)
Received: from p133 (194.224.202.13) by quad.es (EMWAC SMTPRS 0.80) with SMTP 
          id <B0000003960@quad.es>; Wed, 06 Nov 1996 13:08:25 +0100
Date: Wed, 06 Nov 1996 13:08:25 +0100
Message-ID: <B0000003960@quad.es>
X-Sender: pedro@quad.es
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: pedro@quad.es (Pedro Agudo)
Subject: orapel for MsDos


          
        Hi out there!

        Has anybody attempt to compile oraperl on MsDos?
        Any suggestion?



                  Pedro Agudo.

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-4@oink>;
          Wed, 6 Nov 1996 18:01:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847295381:20797:70; Wed, 06 Nov 96 15:49:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21087; 6 Nov 96 15:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA01036 for dbi-users-real; Wed, 6 Nov 1996 04:45:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sluggo.rochgrp.com ([204.249.122.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA01032 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 04:45:45 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id EAA00213; Wed, 6 Nov 1996 04:42:29 -0500
Message-ID: <32736962.1DDD@rochgrp.com>
Date: Sun, 27 Oct 1996 05:53:38 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: pedro@quad.es, dbi-users@fugue.com
Subject: Re: Oraperl
References: <B0000003931@quad.es>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Pedro Agudo wrote:
> 
>          Hi out there!
> 
>          Sorry for disturbing you but I am in a nervous breakdown:I've been
> trying to construct the oraperl for the last two weeks but I have not be
> able yet.I have oraperl v2 and perl 4.036 .I'm working on msdos and I don't
> understand the
> function of the makefile and how to make it run.I have heard something about
> using
> "pdmake" but ...
>          I would be infinitely pleasant if you could help me on this.
> 
>                 Thanks in advance.
> 
>                               Pedro Agudo.

Pedro, include the versions of Oracle, the OS, and system that you are 
working on, so everyone gets a better idea what your up against. 
I had some problems installing the original oraperl, also.
I found out later that I didn't need the libocic.a and libora.a files 
oraperl wanted, that weren't in my Oracle 7.3.2.
Before I found that out, I had already switched to Perl5.003 with the 
oraperl emulation that's in DBD::Oracle, which I have just installed.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc.
600 Park Avenue
Rochester,NY 14607
USA

"Some people dream of doing great things...
 the rest of us just stay awake and get on with it"
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-32@oink>;
          Wed, 6 Nov 1996 18:05:26 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847298579:12909:39; Wed, 06 Nov 96 16:42:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12672; 6 Nov 96 16:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA01189 for dbi-users-real; Wed, 6 Nov 1996 05:49:57 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from DGS.dgsys.com (root@dgs.dgsys.com [204.97.64.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA01185 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 05:49:55 -0800 (PST)
Received: from DGS (dgs.dgsys.com) by DGS.dgsys.com (5.0/SMI-SVR4) id AA21663;
          Wed, 6 Nov 1996 08:47:00 -0500
Date: Wed, 6 Nov 1996 08:47:00 -0500 (EST)
From: Robert Nicholson <steffi@DGS.dgsys.com>
X-Sender: steffi@DGS
To: Terry Dixon <tdixon@rochgrp.com>
Cc: dbi-users@fugue.com, steffi@DGS.dgsys.com
Subject: Re: cursor support?
In-Reply-To: <32736657.4A20@rochgrp.com>
Message-Id: <Pine.SOL.3.94.961106084637.21588A-100000@DGS>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hmm. How can cursors be supported if you can't pass a cursor var to 
your stored proc?

On Sun, 27 Oct 1996, Terry Dixon wrote:

> Robert Nicholson wrote:
> > 
> > I would like to get some idea as to wether DBI supports cursors or cursor
> > variables?
> > 
> > I'm particularly interested in the oraperl interface..
> 
> Yes cursors are supported.
> The oraperl emulation in DBD::Oracle is your best bet.
> I have just started working with it myself.
> 
> -- 
> Terry Dixon              mailto:tdixon@rochgrp.com
> The Rochester Group Inc.
> 600 Park Avenue
> Rochester,NY 14607
> USA
> 

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-34@oink>;
          Wed, 6 Nov 1996 18:05:37 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847298592:12909:75; Wed, 06 Nov 96 16:43:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12718; 6 Nov 96 16:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA01150 for dbi-users-real; Wed, 6 Nov 1996 05:38:35 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from isgate.is (isgate.is [193.4.58.51]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id FAA01146 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 05:38:33 -0800 (PST)
Received: from njala.saga.is by isgate.is (8.7.5-M/ISnet/14-10-91);
          Wed, 6 Nov 1996 13:38:29 GMT
Received: from adal.hagkaup.is by njala.saga.is (8.7.5/ISnet/10-08-95);
          Wed, 6 Nov 1996 13:38:27 GMT
Received: from sun5.hagkaup.is by adal.hagkaup.is (8.7.5/ISnet/25-02-95);
          Wed, 6 Nov 1996 13:38:27 GMT
Received: from sib(6.12.94) by sun5.hagkaup.is (8.7.5/) id NAA10920;
          Wed, 6 Nov 1996 13:35:22 GMT
From: Yngvi Thor Sigurjonsson <yngvi@hagkaup.is>
Message-Id: <199611061335.NAA10920@sun5.hagkaup.is>
Subject: Apache mod_perl(Was: perl and Oracle WebServer 3 cartridge)
To: dbi-users@fugue.com
Date: Wed, 6 Nov 1996 13:35:21 +0000 (GMT)
In-Reply-To: <199611060735.XAA11657@voro.lbl.gov> from Mark Dedlow at "Nov 5, 96 11:35:30 pm"
X-Mailer: ELM [version 2.4ME+ PL22 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


First of all thanks for the info on the Perl Cartridge. And thanks to
Tim and everyone else on the DBI project. And to Doug MacEachern 
for the perl_mod.

Although propably slghtly off topic, as we are on the subject of CGI
response times. I would like to advice those who are suffering losses
on the perl startup and lda connect time. To check out the Apache httpd
server + mod_perl which embeds a perl interpreter into the httpd
server. (httpd://www.apache.org/ should guide you to it) With some
minor (major if you are using write) adjustments it can run valid CGI
scripts at the speed of light. There is one more thing you will need if
you like your CGI to run unaltered and that is a new'ish perl, compiled
with sfio. I am using  perl 5.003_07, I am not sure what version is
needed for sfio.

To get maximum benefits you will have of course have to rethink your
strategy a bit, look out for that old data from the previous query, and
reuse cursor and lda, where feasable.
I use $main::lda ||= &ora_login(....) to login, in some cases adding ||
is the only thing I needed to migrate, this applies to cursors as well.

Here are the results of timing 20 fetches using the CGI
133.420s real  2.770s user  0.710s system  2% test_http.pl 
and FPL(fast perl)
21.788s real  2.550s user  0.790s system  13% test_http.pl 
In both cases it is running exactly the same program(a symbolic link in
fact) to answer the query.

Upgrading to  DBD::Oracle 0.43 also gave speed improvements

One of the smart things available in mod_perl's Apache::Registry module
is using the wrapping the fpl script in a function and only 'evaling'
the file if it has changed.

It is perl 5, my understanding of the WebServer Perl Cartridge is that
it is perl 4, that might my misunderstanding.

info on Webserver Perl Cartridge cut
> 
> It may be worth noting that Oracle has modified the perl source.
> You can't run a stock perl.  The main change is to allow functions
> that write to STDOUT to hand off back to Oracle's ORB instead.
> Perhaps necessary, but surely less than desirable.  I suspect it
> could raise compatibility questions with some modules.

In perl5 there are some provisions for using different IO than  stdio,
as stated earlier, to use have the fast perl programs run unaltered you
have to compile perl with sfio package.

I have not sterilized a fpl program yet to be able to post as an
example, but I will if the public demands.

Regards
	yngvi@hagkaup.is
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-38@oink>;
          Wed, 6 Nov 1996 18:06:04 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847298696:12902:163; Wed, 06 Nov 96 16:44:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13718; 6 Nov 96 16:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA01123 for dbi-users-real; Wed, 6 Nov 1996 05:25:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA01119 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 05:25:46 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa617601; 6 Nov 96 12:50 GMT
Received: from toad by oink with SMTP (PP) id <26813-0@oink>;
          Wed, 6 Nov 1996 12:50:09 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA06535;
          Wed, 6 Nov 1996 12:50:02 +0000
Date: Wed, 6 Nov 1996 12:50:02 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611061250.AA06535@toad.ig.co.uk>
To: dbi-users@fugue.com, pedro@quad.es
Subject: Re: Oraperl
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: pedro@quad.es (Pedro Agudo)
> 
>          Hi out there!
> 
>          Sorry for disturbing you but I am in a nervous breakdown:I've been
> trying to construct the oraperl for the last two weeks but I have not be
> able yet.I have oraperl v2 and perl 4.036 .I'm working on msdos and I don't
> understand the
> function of the makefile and how to make it run.I have heard something about
> using
> "pdmake" but ...
>          I would be infinitely pleasant if you could help me on this.

I'm not surprised you're having a nervous breakdown. I wouldn't even try.

This list doesn't cover oraperl v2 or perl 4.036 or DOS. Sorry.
Perhaps someone else here might be able to help but I can't.

Perhaps you should rethink what you're trying to achieve. I suspect you'd
get further with the HIP port of Perl5 and the Win32::ODBC extension.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-53@oink>;
          Wed, 6 Nov 1996 18:07:46 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847302472:08304:94; Wed, 06 Nov 96 17:47:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09016; 6 Nov 96 17:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA01239 for dbi-users-real; Wed, 6 Nov 1996 06:20:35 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sluggo.rochgrp.com ([204.249.122.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA01235 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 06:20:32 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id GAA00721; Wed, 6 Nov 1996 06:17:11 -0500
Message-ID: <32737F91.6923@rochgrp.com>
Date: Sun, 27 Oct 1996 07:28:17 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: steffi@DGS.dgsys.com, dbi-users@fugue.com
Subject: Re: cursor support?
References: <Pine.SOL.3.94.961106084637.21588A-100000@DGS>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am reaching unfamiliar territory...
I think I will hold off a bit until I dry behind the ears!

Robert Nicholson wrote:
> 
> Hmm. How can cursors be supported if you can't pass a cursor var to
> your stored proc?
> 
> On Sun, 27 Oct 1996, Terry Dixon wrote:
> 
> > Robert Nicholson wrote:
> > >
> > > I would like to get some idea as to wether DBI supports cursors or cursor
> > > variables?
> > >
> > > I'm particularly interested in the oraperl interface..
> >
> > Yes cursors are supported.
> > The oraperl emulation in DBD::Oracle is your best bet.
> > I have just started working with it myself.
> >

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc.
600 Park Avenue
Rochester,NY 14607
USA
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29956-5@oink>;
          Wed, 6 Nov 1996 22:50:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847308554:26399:1333; Wed, 06 Nov 96 19:29:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19002; 6 Nov 96 19:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA01480 for dbi-users-real; Wed, 6 Nov 1996 08:21:05 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gatekeeper.hcc.com (GATEKEEPER.HCC.COM [148.163.104.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA01476 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 08:20:53 -0800 (PST)
Received: by gatekeeper.hcc.com (5.65/jj-092193); id AA15692;
          Wed, 6 Nov 1996 11:20:51 -0500
Received: by mailgate.bridgewater.ne.hcc.com (5.65/mdf-110895<...pronounced 'Herkst Sel-a-neez'>) 
          id AA12888; Wed, 6 Nov 1996 11:20:50 -0500
Message-Id: <3280E5FA.66A9@BRWHCC3.HCC.COM>
Date: Wed, 06 Nov 1996 11:24:42 -0800
From: Anna Elbaum <ELBAUM1@BRWHCC3.HCC.COM>
Organization: Hoechst Marion Roussel
X-Mailer: Mozilla 2.02 (Win16; I)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: (no subject)
X-Url: http://www.hermetica.com/technologia/DBI/index.html
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Please cancel subscription for all mailing lists
for Anna Elbaum - elbaum1@brwhcc3.hcc.com and ELBAUM1@BRWHCC3.HCC.COM

Thanks
Anna.
--
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29956-9@oink>;
          Wed, 6 Nov 1996 22:50:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847309058:26400:1520; Wed, 06 Nov 96 19:37:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20225; 6 Nov 96 19:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA01456 for dbi-users-real; Wed, 6 Nov 1996 08:13:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from llbean.com (llbean.com [199.95.60.20]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA01452 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 08:13:45 -0800 (PST)
Message-ID: <n1364840011.83276@llbean.com>
Date: 6 Nov 1996 11:13:26 U
From: Randy Dyer <randy.dyer@llbean.com>
Subject: bind_params with DBD::DB2
To: dbi-users <dbi-users@fugue.com>
X-Mailer: Mail*Link SMTP-QM 3.0.2

I'm trying to use placeholders in a select and keep getting the message:
[IBM][CLI Driver][DB2/6000] SQL0301N  The value of a host variable in
the EXECUTE or OPEN statement cannot be used because of its data type. 
SQLSTATE= 07006

The column in the where clause is defined as INTEGER NOT NULL.
Below is an (generalized) example script that I've been trying to get
working.

#!/usr/local/bin/perl5 -w

use DBI;
use DBD::DB2 qw( $attrib_int $attrib_int_nullok );

$drh = DBI->install_driver( 'DB2' );

$dbh = $drh->connect( 'myinst', 'myid', 'mypw' ) ||
		die "Can't open connection\n";

$cursor = $dbh->prepare( "SELECT col1, col2, col3 FROM mytable where
col1 = ?" );
$myval = 187;
$cursor->bind_param(1, $myval, $attrib_int);
$rc = $cursor->execute( $myval );
if ($rc eq '0E0') {
	print "err = $DBI::err\n";
	print "errstr = $DBI::errstr\n";
                exit;
}

while ( @row = $cursor->fetchrow ) {
	print @row, "\n";
}

$cursor->finish;

$dbh->disconnect;

exit;

I'm using perl5.003, DBI 0.73, and DBD::DB2 0.61.
Any help or examples would be greatly appreciated.
Randy Dyer



---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29956-12@oink>;
          Wed, 6 Nov 1996 22:51:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847309858:26399:2123; Wed, 06 Nov 96 19:50:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22114; 6 Nov 96 19:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA01344 for dbi-users-real; Wed, 6 Nov 1996 07:36:38 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from dicsmss1.jrc.it (dicsmss1.jrc.it [139.191.1.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA01340 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 07:36:32 -0800 (PST)
Received: from ei.jrc.it (gaia.ei.jrc.it) by dicsmss1.jrc.it (4.1/EB-950131-C) 
          id AA04358; Wed, 6 Nov 96 16:41:00 +0100
Received: from java by ei.jrc.it (4.1/EI-3.1m) id AA07755;
          Wed, 6 Nov 96 16:36:09 +0100
Posted-Date: Wed, 06 Nov 1996 16:32:20 +0100
Message-Id: <3280AF84.643A@jrc.it>
Date: Wed, 06 Nov 1996 16:32:20 +0100
From: Lothar Breitenbach <lothar.breitenbach@jrc.it>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: unsubscribe
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe

Lothar Breitenbach
Commission of the European Community, Joint Research Centre
Environment Institute, 21021 Ispra, Italy
Voice: (39)0332/789520, Fax: (39)0332/785466
Email: lothar.breitenbach@jrc.it
Internet: http://java.ei.jrc.it/
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29956-29@oink>;
          Wed, 6 Nov 1996 22:52:12 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847316516:04631:1071; Wed, 06 Nov 96 21:41:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02809; 6 Nov 96 21:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA01781 for dbi-users-real; Wed, 6 Nov 1996 09:50:11 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from lbl.gov (lbl.gov [128.3.254.23]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA01777 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 09:50:10 -0800 (PST)
Received: from voro.lbl.gov by lbl.gov (SMI-8.6/SMI-SVR4) id JAA02576;
          Wed, 6 Nov 1996 09:49:49 -0800
Received: from voro by voro.lbl.gov (SMI-8.6/SMI-SVR4) id JAA12454;
          Wed, 6 Nov 1996 09:49:50 -0800
Message-Id: <199611061749.JAA12454@voro.lbl.gov>
To: Yngvi Thor Sigurjonsson <yngvi@hagkaup.is>
cc: dbi-users@fugue.com
Subject: Re: Apache mod_perl(Was: perl and Oracle WebServer 3 cartridge)
In-reply-to: Your message of "Wed, 06 Nov 1996 13:35:21 GMT." <199611061335.NAA10920@sun5.hagkaup.is>
Date: Wed, 06 Nov 1996 09:49:50 -0800
From: Mark Dedlow <dedlow@voro.lbl.gov>

>From: Yngvi Thor Sigurjonsson <yngvi@hagkaup.is>
> 
[...]
> 
> It is perl 5, my understanding of the WebServer Perl Cartridge is that
> it is perl 4, that might my misunderstanding.

The Oracle WS3.0 cartridge is perl 5 (only).

Mark
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29956-33@oink>;
          Wed, 6 Nov 1996 22:52:27 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847317635:15079:713; Wed, 06 Nov 96 22:00:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19261; 6 Nov 96 21:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA01874 for dbi-users-real; Wed, 6 Nov 1996 10:26:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from smtp-gw01.ny.us.ibm.net (smtp-gw01.ny.us.ibm.net [165.87.194.252]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA01870 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 10:26:38 -0800 (PST)
Received: (from uucp@localhost) by smtp-gw01.ny.us.ibm.net (8.6.9/8.6.9) 
          id SAA43862; Wed, 6 Nov 1996 18:26:36 GMT
Received: from unknown(206.104.8.12) by smtp-gw01.ny.us.ibm.net 
          via smap (V1.3mjr) id smatioDFW; Wed Nov 6 18:26:23 1996
Message-Id: <1.5.4.32.19961106172940.0067d60c@mail.utexas.edu>
X-Sender: jcbodnar@mail.utexas.edu
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 06 Nov 1996 12:29:40 -0500
To: dbi-users@fugue.com
From: Jason Bodnar <jcbodnar@mail.utexas.edu>
Subject: problem with Makefile.PL for DBD-mSQL-0.60pl9
Cc: descarte@hermetica.com

$ perl Makefile.PL                                          
"%att" is not exported by the ExtUtils::MakeMaker module at
/usr/local/lib/perl5/Exporter.pm line 95
        Exporter::export called at /usr/local/lib/perl5/Exporter.pm line 149
        Exporter::import called at Makefile.PL line 12
        main::BEGIN called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
        eval {...} called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
Can't continue after import errors at Makefile.PL line 12
BEGIN failed--compilation aborted at Makefile.PL line 12.

$ msqladmin version                                            
 
Version Details :-
 
        msqladmin version       1.0.16
        mSQL connection         Localhost via UNIX socket
        mSQL server version     1.0.16
        mSQL protocol version   6
        mSQL TCP socket         4333
        mSQL UNIX socket        /tmp/msql.sock
        mSQL root user          jason
        Host Architecture       Solaris-2.5.1-Sparc

$ perl -V                                            
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos taz 5.5.1 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=2.5.6
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'
 
@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/
perl5/site_perl .

Thanks for any and all help.

Jason Bodnar
Internet Programmer
Cox Interactive Media
jasonb@onr.com

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00127-0@oink>;
          Wed, 6 Nov 1996 22:59:09 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847321008:09231:365; Wed, 06 Nov 96 22:56:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07789; 6 Nov 96 22:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA02139 for dbi-users-real; Wed, 6 Nov 1996 11:37:32 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from noc.cerf.net (nbt@noc.cerf.net [192.153.156.22]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA02135 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 11:37:30 -0800 (PST)
Received: (from nbt@localhost) by noc.cerf.net (10.2.90/8.6.9) id LAA05609;
          Wed, 6 Nov 1996 11:31:44 -0800 (PST)
From: Binh Thanh Nguyen <nbt@cerf.net>
Message-Id: <199611061931.LAA05609@noc.cerf.net>
Subject: Re: Using Insert with char(n) with n > 256 and Perl
To: descarte@hermetica.com
Date: Wed, 6 Nov 1996 11:31:43 -0800 (PST)
Cc: nbt@cerf.net, marc@bienlogic.com, dbi-users@fugue.com
In-Reply-To: <199611060210.CAA15885@chewbacca.hermetica.com> from "descarte@hermetica.com" at Nov 6, 96 02:09:12 am
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

> 
> 
> > One kludge -- You can embeded ESQL/C routine within PERL scripts.
> > That's the easiest way.  Perl5-Informix-DBD is at it early stage, 
> > There are lot of bugs and limitation.
> 
> I wouldn't say a lot of bugs or limitations. There are one or two. Of course,
> if people actually provided sensible test scripts to exercise bugs, or even
> reported the damn things in the first place including error output, we might
> be more inclined to prioritise fixes.
> 
> Just my 2p.
> 
> > Binh Nguyen 
> 
> A.

Dear Descartes,

You are absolutely right.  I should not comment the way I did without support
evidences.  I should avoid using careless words such as bugs/limitation in public 
forum esp. for free softwares which I and many others enjoys very much.  For that, 
I would like to apologize to all who have been actively contributing on this group.  

With respect, I would like to state my views.  First of all, my reply to Marc 
(the originator's of the question) was carelessly forwarded to public forum causing
lot of confusion.  I'm working with Marc on his project and I know Perl5-Informix
interface is not the only solution.  The project requires managing Text field and 
probably BLOBS using Informix 7.2 ONLINE which InformixDBD can not handle at this
stage.

Anyhow, it was my mistake to send a supposedly private reply email to public forum.
I apologize for all the confusion that it might have caused you all.

Regards,

Binh Nguyen

====================================================================================

Platform

Sun Sparc 20
Solaris 2.5.1
Informix 7.2 Online

Strange behavior:

Informix-DBD-23 seems to have problem returning rows from a simple select 
statement which works on earlier release (Informix-DBD-20pl).

Request future release: 

- Can't do Text
- Can't do Blobs

----------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00157-0@oink>;
          Wed, 6 Nov 1996 23:04:12 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847321329:28616:1681; Wed, 06 Nov 96 23:02:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07594; 6 Nov 96 22:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA02075 for dbi-users-real; Wed, 6 Nov 1996 11:18:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA02071 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 11:18:27 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.2/8.8.2) 
          id LAA17036 for dbi-users@fugue.com;
          Wed, 6 Nov 1996 11:17:01 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199611061917.LAA17036@abyss.ecst.csuchico.edu>
Subject: Where to install DBD, DBI
To: dbi-users@fugue.com
Date: Wed, 6 Nov 1996 11:17:00 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Greetings,
Where shoud I launch DBI .73, DBD .43 for Oracle? I'm launching them
from my user accnt ( /users/my_acct/DBI..etc) When I run the makes and
tests, all works, but I noticed many subdirectories and lib files
are installed under my user account. For example Oraperl.pm is put into
/users/my_acct/DBD-Oracle-0.43/blib/lib, not into /opt/perl5/lib..etc.
I tried a little script  

	eval 'use Oraperl' || die "where is Oraperl?";

I get 'where is...'
SO, is make installing files and libs in the correct directory? or
should I modify something to point to per5 directory?
I have perl5 in /opt/perl5, and Oracle libs, including Pro*C as a NFS

Any advice greatly appreciated.

Kal.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00199-5@oink>;
          Wed, 6 Nov 1996 23:19:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847322139:16634:352; Wed, 06 Nov 96 23:15:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07549; 6 Nov 96 22:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA01993 for dbi-users-real; Wed, 6 Nov 1996 10:58:19 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA01989 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 10:58:17 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [129.35.148.59]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id MAA130732;
          Wed, 6 Nov 1996 12:58:15 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id MAA21464;
          Wed, 6 Nov 1996 12:58:11 -0600 (CST)
Message-Id: <199611061858.MAA21464@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: Randy Dyer <randy.dyer@llbean.com>
cc: dbi-users <dbi-users@fugue.com>
Subject: Re: bind_params with DBD::DB2
In-reply-to: Your message of 06 Nov 96 11:13:26 +0800. <n1364840011.83276@llbean.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 06 Nov 96 12:58:11 -0600


"Randy Dyer" <randy.dyer@llbean.com>  writes:
> I'm trying to use placeholders in a select and keep getting the message:
> [IBM][CLI Driver][DB2/6000] SQL0301N  The value of a host variable in
> the EXECUTE or OPEN statement cannot be used because of its data type. 
> SQLSTATE= 07006
> 
> The column in the where clause is defined as INTEGER NOT NULL.
> Below is an (generalized) example script that I've been trying to get
> working.
> 
> #!/usr/local/bin/perl5 -w
> 
> use DBI;
> use DBD::DB2 qw( $attrib_int $attrib_int_nullok );
> 
> $drh = DBI->install_driver( 'DB2' );
> 
> $dbh = $drh->connect( 'myinst', 'myid', 'mypw' ) ||
> 		die "Can't open connection\n";
> 
> $cursor = $dbh->prepare( "SELECT col1, col2, col3 FROM mytable where
> col1 = ?" );
> $myval = 187;
> $cursor->bind_param(1, $myval, $attrib_int);
> $rc = $cursor->execute( $myval );

At this point, providing $myval is unnecessary and off the top of my head,
the cause of your problem.  I believe executing the statement as

$rc = $cursor->execute();

should take care of the problem.  Effectively, the call to 
$cursor->bind_param() has done all the work necessary for the execution to
succeed.  

This is a side effect of the nature of DB2 and what it doesn't retain
about prepared statements.

Mike
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00347-0@oink>;
          Thu, 7 Nov 1996 00:09:03 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847325169:06618:22; Thu, 07 Nov 96 00:06:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06447; 7 Nov 96 0:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA02211 for dbi-users-real; Wed, 6 Nov 1996 11:57:00 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA02207 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 11:56:56 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id LAA16360;
          Wed, 6 Nov 1996 11:55:52 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id LAA20654;
          Wed, 6 Nov 1996 11:56:52 -0800
Date: Wed, 6 Nov 1996 11:56:52 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611061956.LAA20654@anubis.informix.com>
To: dbi-users@fugue.com
Cc: pixel@organic.com
Subject: Proposed changes for DBD::Informix 0.25

Proposed Changes for DBD::Informix 0.25
=======================================

The following changes seem to me desirable for the next release of
DBD::Informix, tentatively called version 0.25.  If anybody has any
fundamental objections to any of them, you had better let me know
ASAP.

Externally Visible Changes
--------------------------

1.  Makefile.PL will not ask questions but will determine the ESQL/C
    version in use by running the esql command.  It will know a little
    about versions 5.0x, 6.0x, 7.1x and 7.2x.  If there is a demand for it,
    then it may be briefed on 4.1x too, though that will be very similar,
    if not identical, to the 5.0x version.

2.  The connect call will be brought into line with the standards
    documented in the DBI Spec version 0.6.  It will take 3 parameters: the
    database, the user and the password (no host information).  If the
    database is remote, then the database name needs to include the
    necessary information to find it.  If the ESQL/C is version 6.00 or
    greater, then the CONNECT statement will be used; otherwise, the
    DATABASE statement will be used and the user and password completely
    ignored.  With CONNECT, providing the user but not the password will
    generate an error.  To satisfy other requirement, the WITH CONCURRENT
    TRANSACTION option will be needed.  The connection will be given a
    name, but it will not be known by the user.  There may be a way to find
    out what the name is...  Multiple connections will not be available in
    5.0x or earlier versions -- the second connection attempt will fail if
    the first has not been disconnected.

3.  The prepare call will be brought into line with the standards too.
    Specifically, it will not execute the statement.

4.  The commit and rollback calls will be implemented.  Databases with
    transactions which are not MODE ANSI databases will simulate MODE ANSI
    by calling BEGIN WORK immediately after the COMMIT or ROLLBACK.  The
    disconnect function will do an explicit ROLLBACK before closing the
    database (or closing the connection).

5.  I will probably implement some internal function (_release maybe) to
    release the resources used by a statement handle.  It will CLOSE the
    cursor (as will the finish call) and will free the statement, cursor
    and descriptor.

6.  The error message I get about destroying a statement handle with using
    finish() will be eliminated somehow...

    Statement handle DBI::st=HASH(0x164a30) destroyed without finish() at
    test.pl line 103.

7.  As far as possible, the other code will be brought into line with the
    DBI Spec v0.6 too.  This probably means fetchrow goes and fetch is used
    instead.

8.  Blobs will be returned as monstrous strings (if they are monstrous
    blobs).  Maybe an option will be required to allow blobs to be handled
    in files, in which case retrievals will return a filename where the
    data is and insert or update will expect to be given a filename.  There
    will be no special treatment for them otherwise, because there doesn't
    seem to be any need for it.  The readblob function will either be
    removed or be stubbed to return an undef value.

Internal Changes
----------------

1.  I'd like to get attribution information from those who made the changes
    to handle multiple concurrent cursors.

2.  However, I am going to revise all that code because the PREPARE,
    DECLARE and the DESCRIPTOR operations all accept a string variable as
    the name.  So, the structures associated with a statement will contain
    a statement name, a cursor name if needed, and a descriptor name.

3.  Where feasible, the Oracle information will be removed (nothing
    personal about Oracle; I don't understand it and it doesn't seem to
    help the Informix drivers).  The necessary Informix information will be
    stored.  In particular, the database attributes (Online/SE,
    Transactions, MODE ANSI) will be recorded for use.

---------------------------------------------------------------------------

Jonathan Leffler (johnl@informix.com)
@(#)Proposed.Changes	1.1 96/11/06

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01737-13@oink>;
          Thu, 7 Nov 1996 02:29:17 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847329527:26149:10; Thu, 07 Nov 96 01:18:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25967; 7 Nov 96 1:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id OAA02533 for dbi-users-real; Wed, 6 Nov 1996 14:06:42 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gw.intuit.com (fw.intuit.com [199.2.32.4]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id OAA02529 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 14:06:40 -0800 (PST)
Received: by gw.intuit.com (4.1/SMI-4.1) id AG15458; Wed, 6 Nov 96 14:05:50 PST
Received: from intugate.intuit.com(199.2.34.88) by gw.intuit.com 
          via smap (V1.3) id smam13507; Wed Nov 6 13:58:03 1996
Received: from ccMail 
          by intugate.intuit.com (IMA Internet Exchange 2.03 (Beta 1) Enterprise) 
          id 000519D7; Wed, 6 Nov 96 14:01:28 -0800
Mime-Version: 1.0
Date: Wed, 6 Nov 1996 13:40:15 -0800
Message-Id: <000519D7.1826@intuit.com>
From: Hong_Nguyen@intuit.com (Hong Nguyen)
Subject: More on DBD::Informix
To: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     Hi,
     
     I just obtained DBD-Informix 0.24 & DBI 0.73 and worked on for about a 
     week.  So far, it's been great.  However, the DBI spec. (version 0.6 
     draft) that I have is not up-to-date, so I've been learning the 
     function syntax based on the examples that come with the DBD.  I 
     wonder if there is a more updated DBI spec or more examples of using 
     all the functions as well as error handling.  Also, I wonder if I can 
     execute a stored procedure.
     
     Thanks.
     hong_nguyen@intuit.com
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02869-3@oink>;
          Thu, 7 Nov 1996 07:37:25 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847336420:13480:9; Thu, 07 Nov 96 03:13:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13301; 7 Nov 96 3:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA02940 for dbi-users-real; Wed, 6 Nov 1996 17:06:45 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id RAA02936 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 17:06:44 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.7.5/8.6.12) with SMTP id RAA19292 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 17:06:59 -0800 (PST)
Date: Wed, 6 Nov 1996 17:06:59 -0800 (PST)
From: James Cooper <pixel@organic.com>
To: dbi-users@fugue.com
Subject: Re: Proposed changes for DBD::Informix 0.25
In-Reply-To: <199611061956.LAA20654@anubis.informix.com>
Message-ID: <Pine.SOL.3.93.961106170225.11071X-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

> The following changes seem to me desirable for the next release of
> DBD::Informix, tentatively called version 0.25.  If anybody has any
> fundamental objections to any of them, you had better let me know
> ASAP.

Hi Jonathan.

I don't know if this is already possible, but it would be nice to be able
to retrieve the value of the serial of the last record inserted.

With Oracle you can query the value of the sequence that generated the
primary key value, but from my understanding of Informix, this information
is stored in the sqlca structure returned from the INSERT call.  Does
DBD::Informix provide a way to look at this value?  If not, would it be
hard to add?

Thanks

-- James

---------------------
James Paul Cooper
Organic Online
pixel@organic.com

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02869-5@oink>;
          Thu, 7 Nov 1996 07:37:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847336420:13484:10; Thu, 07 Nov 96 03:13:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13311; 7 Nov 96 3:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA02946 for dbi-users-real; Wed, 6 Nov 1996 17:09:10 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id RAA02942 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 17:09:09 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id RAA00459;
          Wed, 6 Nov 1996 17:08:37 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id RAA23095;
          Wed, 6 Nov 1996 17:09:36 -0800
Date: Wed, 6 Nov 1996 17:09:36 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611070109.RAA23095@anubis.informix.com>
To: Hong_Nguyen@intuit.com, dbi-users@fugue.com
Subject: Re: More on DBD::Informix

>Date: Wed, 6 Nov 1996 13:40:15 -0800
>From: Hong_Nguyen@intuit.com (Hong Nguyen)
>
>     I just obtained DBD-Informix 0.24 & DBI 0.73 and worked on for about a
>     week.  So far, it's been great.  However, the DBI spec. (version 0.6
>     draft) that I have is not up-to-date, so I've been learning the
>     function syntax based on the examples that come with the DBD.  I
>     wonder if there is a more updated DBI spec or more examples of using
>     all the functions as well as error handling.

Me too.  

>     Also, I wonder if I can execute a stored procedure.

Yes, funnily enough.  Obviously, you can execute an SP as a side-effect
of any other SQL statement.  If you have an SP which returns values, then
you can treat it as you would a SELECT statement.  If you have an SP which
doesn't return anything, then you will get an empty data set returned, the
same was as a SELECT on an empty table works.  There may be other problems
with this -- I haven't checked.  I have tested the cursory SP.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

Adaptation of tail of DBD::Informix test script
-----------------------------------------------

print "Re-testing: \$cursor = \$dbh->prepare('EXECUTE PROCEDURE ndelta_eq(23.00, 23)'): ";
($cursor = $dbh->prepare("EXECUTE PROCEDURE ndelta_eq(23.00, 23)"))
    and print( "ok\n")
    or die "not ok: $DBI::errstr\n";

print "Re-testing: \$cursor->execute: ";
($cursor->execute)
    and print( "ok\n" )
    or die "not ok: $DBI::errstr\n";

print "Re-testing: \$cursor->fetchrow: ";
(@row = $cursor->fetchrow)
    and print( "ok\n" )
    or die "not ok: $DBI::errstr\n";

print "Values returned: ", $#row + 1, "\n";
for ($i = 0; $i <= $#row; $i++) {
                print "Row value $i: $row[$i]\n";
}

print "Re-testing: \$cursor->finish: ";
( $cursor->finish )
    and print( "ok\n" )
    or die "not ok: $DBI::errstr\n";

# Temporary bug-plug
# @(#)KLUDGE: this undef must go!
undef $cursor;

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04242-8@oink>;
          Thu, 7 Nov 1996 12:36:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847356364:05333:29; Thu, 07 Nov 96 08:46:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05320; 7 Nov 96 8:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA03862 for dbi-users-real; Thu, 7 Nov 1996 00:03:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id AAA03857; Thu, 7 Nov 1996 00:03:34 -0800 (PST)
Message-Id: <199611070803.AAA03857@toccata.fugue.com>
To: dbi-users@fugue.com, dbi-dev@fugue.com
Subject: Mailing list manager bug fixed...
Date: Thu, 07 Nov 1996 00:03:33 -0800
From: Ted Lemon <mellon@fugue.com>


There has been a bug in the mailing list manager for the past few
months that prevented users who were subscribed to dbi-users or
dbi-dev but not dbi-announce from receiving any mail.   I have just
fixed this bug, and as a consequence, some of you may suddenly have
begun receiving mail that you no longer want.

If that is the case, please go to http://www.fugue.com/dbi to
unsubscribe.   If (and only if) you do not have any way to access the
web, you may send mail to dbi-request@fugue.com to unsubscribe.

			       _MelloN_
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04242-19@oink>;
          Thu, 7 Nov 1996 12:37:09 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847360702:25563:26; Thu, 07 Nov 96 09:58:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25462; 7 Nov 96 9:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA03924 for dbi-dev-real; Thu, 7 Nov 1996 00:16:30 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id AAA03857; Thu, 7 Nov 1996 00:03:34 -0800 (PST)
Message-Id: <199611070803.AAA03857@toccata.fugue.com>
To: dbi-users@fugue.com, dbi-dev@fugue.com
Subject: Mailing list manager bug fixed...
Date: Thu, 07 Nov 1996 00:03:33 -0800
From: Ted Lemon <mellon@fugue.com>


There has been a bug in the mailing list manager for the past few
months that prevented users who were subscribed to dbi-users or
dbi-dev but not dbi-announce from receiving any mail.   I have just
fixed this bug, and as a consequence, some of you may suddenly have
begun receiving mail that you no longer want.

If that is the case, please go to http://www.fugue.com/dbi to
unsubscribe.   If (and only if) you do not have any way to access the
web, you may send mail to dbi-request@fugue.com to unsubscribe.

			       _MelloN_
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04242-32@oink>;
          Thu, 7 Nov 1996 12:37:56 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847362298:03201:17; Thu, 07 Nov 96 10:24:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03083; 7 Nov 96 10:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id XAA03653 for dbi-users-real; Wed, 6 Nov 1996 23:36:41 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from infn.ge.infn.it (infn.ge.infn.it [131.154.128.21]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id XAA03646 
          for <dbi-users@fugue.com>; Wed, 6 Nov 1996 23:36:26 -0800 (PST)
Received: from rita03.ge.infn.it by infn.ge.infn.it with SMTP;
          Thu, 7 Nov 1996 8:35:54 +0100 (CET)
Message-ID: <32819ED0.7118@ge.infn.it>
Date: Thu, 07 Nov 1996 09:33:20 +0100
From: Pietro Risso <risso@ge.infn.it>
Organization: INFN
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: unsubscribe
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04242-34@oink>;
          Thu, 7 Nov 1996 12:38:01 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847363369:08313:14; Thu, 07 Nov 96 10:42:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08064; 7 Nov 96 10:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA04073 for dbi-users-real; Thu, 7 Nov 1996 01:37:33 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from dicsmss1.jrc.it (dicsmss1.jrc.it [139.191.1.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA04069 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 01:37:28 -0800 (PST)
Received: from ei.jrc.it (gaia.ei.jrc.it) by dicsmss1.jrc.it (4.1/EB-950131-C) 
          id AA17808; Thu, 7 Nov 96 10:42:24 +0100
Received: from java by ei.jrc.it (4.1/EI-3.1m) id AA27846;
          Thu, 7 Nov 96 10:37:30 +0100
Posted-Date: Thu, 07 Nov 1996 10:33:41 +0100
Message-Id: <3281ACF5.4FA6@jrc.it>
Date: Thu, 07 Nov 1996 10:33:41 +0100
From: Lothar Breitenbach <lothar.breitenbach@jrc.it>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: unsubscribe
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05163-2@oink>;
          Thu, 7 Nov 1996 14:00:33 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847373319:25344:27; Thu, 07 Nov 96 13:28:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25199; 7 Nov 96 13:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA04367 for dbi-users-real; Thu, 7 Nov 1996 04:37:53 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fu-manchu.pindar.co.uk (root@fu-manchu.pindar.co.uk [194.193.96.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA04363 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 04:37:47 -0800 (PST)
Received: from [193.123.165.57] (york-ip57.pindar.co.uk [193.123.165.57]) 
          by fu-manchu.pindar.co.uk (8.6.11/8.6.9) with SMTP id MAA14806 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 12:36:08 GMT
Message-Id: <199611071236.MAA14806@fu-manchu.pindar.co.uk>
X-Sender: bw@fu-manchu.pindar.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 7 Nov 1996 12:35:44 -0500
To: dbi-users@fugue.com
From: bwilkinson@pindar.co.uk (Bob Wilkinson)
Subject: Re: problem with Makefile.PL for DBD-mSQL-0.60pl9

Jason Bodnar <jcbodnar@mail.utexas.edu> wrote
>$ perl Makefile.PL                                          
>"%att" is not exported by the ExtUtils::MakeMaker module at
>/usr/local/lib/perl5/Exporter.pm line 95
>        Exporter::export called at /usr/local/lib/perl5/Exporter.pm line 149
>        Exporter::import called at Makefile.PL line 12
>        main::BEGIN called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
>        eval {...} called at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm line 0
>Can't continue after import errors at Makefile.PL line 12
>BEGIN failed--compilation aborted at Makefile.PL line 12.
>
>$ msqladmin version                                            
> 
>Version Details :-
> 
>        msqladmin version       1.0.16
>        mSQL connection         Localhost via UNIX socket
>        mSQL server version     1.0.16
>        mSQL protocol version   6
>        mSQL TCP socket         4333
>        mSQL UNIX socket        /tmp/msql.sock
>        mSQL root user          jason
>        Host Architecture       Solaris-2.5.1-Sparc
>
>$ perl -V                                            
>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=solaris, osver=2.5.1, archname=sun4-solaris
>    uname='sunos taz 5.5.1 generic sun4u sparc sunw,ultra-1 '
>    hint=recommended, useposix=true, d_sigaction=define
>  Compiler:
>    cc='cc', optimize='-O', gccversion=2.5.6
>    cppflags='-I/usr/local/include'
>    ccflags ='-I/usr/local/include'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>  Linker and Libraries:
>    ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
>    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>    libc=/lib/libc.so, so=so
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'
> 
>@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5
>/usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/
>perl5/site_perl .
>
>Thanks for any and all help.
>
>Jason Bodnar
>Internet Programmer
>Cox Interactive Media
>jasonb@onr.com

This is documented at http://www.hermetica.com/technologia/DBI/ in the part
about mSQL. Just remove the "%att" string at the top of the Makefile, and try
again. You should read the docs, too.

Bob

________________________________________________________________
          Bob Wilkinson, Perl Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email: B.Wilkinson@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.connection.co.uk/bob
________________________________________________________________
  I don't speak for my employer - er, they made me say that..
________________________________________________________________


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05163-7@oink>;
          Thu, 7 Nov 1996 14:00:52 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847373787:27447:35; Thu, 07 Nov 96 13:36:27 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa27384; 7 Nov 96 13:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA04399 for dbi-users-real; Thu, 7 Nov 1996 04:47:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fu-manchu.pindar.co.uk (root@fu-manchu.pindar.co.uk [194.193.96.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA04395 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 04:47:13 -0800 (PST)
Received: from [193.123.165.57] (york-ip57.pindar.co.uk [193.123.165.57]) 
          by fu-manchu.pindar.co.uk (8.6.11/8.6.9) with SMTP id MAA14933 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 12:45:43 GMT
Message-Id: <199611071245.MAA14933@fu-manchu.pindar.co.uk>
X-Sender: bw@fu-manchu.pindar.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 7 Nov 1996 12:45:17 -0500
To: dbi-users@fugue.com
From: bwilkinson@pindar.co.uk (Bob Wilkinson)
Subject: Re: Where to install DBD, DBI

Simplicist <kal@ecst.csuchico.edu> wrote
>Greetings,
>Where shoud I launch DBI .73, DBD .43 for Oracle? I'm launching them
>from my user accnt ( /users/my_acct/DBI..etc) When I run the makes and
>tests, all works, but I noticed many subdirectories and lib files
>are installed under my user account. For example Oraperl.pm is put into
>/users/my_acct/DBD-Oracle-0.43/blib/lib, not into /opt/perl5/lib..etc.
>I tried a little script  
>
>        eval 'use Oraperl' || die "where is Oraperl?";
>
>I get 'where is...'
>SO, is make installing files and libs in the correct directory? or
>should I modify something to point to per5 directory?
>I have perl5 in /opt/perl5, and Oracle libs, including Pro*C as a NFS
>
>Any advice greatly appreciated.
>
>Kal.

You can modify the path Perl searches for libraries by :

1. BEGIN{push @INC,/users/my_acct/DBD-Oracle-0.43/blib/lib;}

though this is deprecated as a method.

2. A newer way to achieve the same is via

use lib /path/to/my/lib

However, I've not used this construct yet - not sure whether you name the lib
you want to use or just the generic term "lib". 

Bob

P.S. If you perform the installation as root it puts it in "the right place".

________________________________________________________________
          Bob Wilkinson, Perl Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email: B.Wilkinson@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.connection.co.uk/bob
________________________________________________________________
  I don't speak for my employer - er, they made me say that..
________________________________________________________________


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05163-9@oink>;
          Thu, 7 Nov 1996 14:01:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847374297:00128:9; Thu, 07 Nov 96 13:44:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29833; 7 Nov 96 13:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA04426 for dbi-users-real; Thu, 7 Nov 1996 04:54:58 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id EAA04422 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 04:54:56 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa623558; 7 Nov 96 12:42 GMT
Received: from toad by oink with SMTP (PP) id <04316-0@oink>;
          Thu, 7 Nov 1996 12:41:47 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA12056;
          Thu, 7 Nov 1996 12:41:39 +0000
Date: Thu, 7 Nov 1996 12:41:39 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611071241.AA12056@toad.ig.co.uk>
To: dbi-users@fugue.com, johnl@informix.com
Subject: Re: Proposed changes for DBD::Informix 0.25
Cc: pixel@organic.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: johnl@informix.com (Jonathan Leffler)
> 
> 4.  The commit and rollback calls will be implemented.  Databases with
>     transactions which are not MODE ANSI databases will simulate MODE ANSI
>     by calling BEGIN WORK immediately after the COMMIT or ROLLBACK.  The
>     disconnect function will do an explicit ROLLBACK before closing the
>     database (or closing the connection).

While this is a very good idea (as per the spec) I have to admit that
DBD::Oracle does not do this and probably should. The Oracle OCI ologof()
call does an implicit commit and some old Oraperl apps may depend on that.

Last time this topic came up I decided the best way forward in the short
term was to define the behaviour as implementation-defined. Thus the
application should not assume any particular behaviour but should
explicitly call commit or rollback as needed.

> 5.  I will probably implement some internal function (_release maybe) to
>     release the resources used by a statement handle.  It will CLOSE the
>     cursor (as will the finish call) and will free the statement, cursor
>     and descriptor.

finish should not close the cursor. finish simply says you won't be fetching
any more data from that cursor before either closing it or re-executing it.
Could you explain what you mean by _release in relation to finish and close?

> 6.  The error message I get about destroying a statement handle with using
>     finish() will be eliminated somehow...

See DBD::Oracle.

> 7.  As far as possible, the other code will be brought into line with the
>     DBI Spec v0.6 too.  This probably means fetchrow goes and fetch is used
>     instead.

I *urge* you strongly to pay less attention to "the (very old) spec" and more
to how DBD::Oracle (the 'Reference DBD Implementation') goes about things.
Specifically you should base your .xs file on DBD::Oracle's almost exactly
(just s/Oracle/Informix/g and you should be there).

> 8.  Blobs will be returned as monstrous strings (if they are monstrous blobs).

Not a good idea in general. See previous discussion about this in the archives.
I plan to migrate the effective Oracle mechanism (ora_long, ora_trunc) up to
DBI and make it 'standard'.

>     Maybe an option will be required to allow blobs to be handled
>     in files, in which case retrievals will return a filename where the
>     data is and insert or update will expect to be given a filename.  There
>     will be no special treatment for them otherwise, because there doesn't
>     seem to be any need for it.  The readblob function will either be
>     removed or be stubbed to return an undef value.

Don't do that. readblob should be working for DBD::Informix to `conform'.
I'm happy to discuss any ideas for additional file handle interface for blobs.

> 3.  Where feasible, the Oracle information will be removed (nothing
>     personal about Oracle; I don't understand it and it doesn't seem to
>     help the Informix drivers).

No problem. I guess it was a case of 'minimal changes' to get it working.
But note that DBD::Oracle has moved on and probably contains more useful
and/or important changes (especially in the .xs code).

Thanks for taking on this work.

Anyone inspired to implement DBD::Ingres?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06022-4@oink>;
          Thu, 7 Nov 1996 16:32:03 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847378356:23135:29; Thu, 07 Nov 96 14:52:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23068; 7 Nov 96 14:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA04505 for dbi-users-real; Thu, 7 Nov 1996 05:45:25 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA04501 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 05:45:23 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa622349; 7 Nov 96 12:35 GMT
Received: from toad by oink with SMTP (PP) id <04106-0@oink>;
          Thu, 7 Nov 1996 11:51:30 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11757;
          Thu, 7 Nov 1996 11:51:22 +0000
Date: Thu, 7 Nov 1996 11:51:22 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611071151.AA11757@toad.ig.co.uk>
To: dbi-users@fugue.com, kal@ecst.csuchico.edu
Subject: Re: Where to install DBD, DBI
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Simplicist <kal@ecst.csuchico.edu>
> 
> 	eval 'use Oraperl' || die "where is Oraperl?";
> 
> I get 'where is...'

        eval 'use Oraperl; 1' || die "where is Oraperl?";
                         ^^^

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06022-12@oink>;
          Thu, 7 Nov 1996 16:32:44 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847379919:28821:367; Thu, 07 Nov 96 15:18:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa01793; 7 Nov 96 15:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA04664 for dbi-users-real; Thu, 7 Nov 1996 06:31:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from merganser.mcit.med.umich.edu (merganser.mcit.med.umich.edu [141.214.251.151]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id GAA04660 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 06:31:18 -0800 (PST)
Received: from localhost (mlaw@localhost) 
          by merganser.mcit.med.umich.edu (8.7.1/8.7.1) with SMTP id JAA10390 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 09:31:44 -0500 (EST)
Date: Thu, 7 Nov 1996 09:31:43 -0500 (EST)
From: Mark Law <mlaw@umich.edu>
X-Sender: mlaw@merganser.mcit.med.umich.edu
To: dbi-users <dbi-users@fugue.com>
Subject: HELP please on getting me off this list!
In-Reply-To: <199611061858.MAA21464@dax.austin.ibm.com>
Message-ID: <Pine.SOL.3.93.961107092619.10312D-100000@merganser.mcit.med.umich.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Although this is not the correct use of this list....I'll ask anyway. 
Could someone (please) email me with the proper incantation to send to the
list server to remove my name from this distribution!  Thanks in advance.

===========================================================================
Mark Law, MCIT, University of Michigan Medical Center, 4251 Plymouth Rd.
Ann Arbor, MI 48015-2785; (313) 998-6800 - mlaw@umich.edu


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06022-19@oink>;
          Thu, 7 Nov 1996 16:33:17 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847382879:21055:123; Thu, 07 Nov 96 16:07:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22652; 7 Nov 96 16:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA04879 for dbi-users-real; Thu, 7 Nov 1996 07:16:15 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from stortek.com (stortek.com [129.80.22.249]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA04875 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 07:16:13 -0800 (PST)
Received: from hp7013.ecae.stortek.com by stortek.com with SMTP 
          id AA12195 (5.65c/IDA-1.4.4 for <dbi-users@fugue.com>);
          Thu, 7 Nov 1996 08:15:39 -0700
Received: from hp7028 (hp7028.ecae.stortek.com) by hp7013.ecae.stortek.com 
          with SMTP (1.37.109.14/16.2) id AA283009742;
          Thu, 7 Nov 1996 08:15:42 -0700
Message-Id: <3281FD13.618C@hp7013.ecae.stortek.com>
Date: Thu, 07 Nov 1996 08:15:32 -0700
From: "Sarah Kennedy (skennedy)" <skennedy@hp7013.ecae.StorTek.COM>
X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.01 9000/730)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Oraperl
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I statically loaded DBD Oracle 43 into perl5.003 on HP-UX. When I
execute the following program from the command line, it works fine. When
I try to execute it within netscape it times out the server. In fact,
just the 
      eval 'use Oraperl; 1' || die $@ if $] >= 5;
statement itself in any program will time out the server. Any ideas on
how to fix this? Thanks.

#!/project/perl5003_test/perl

eval '$Oraperl::safe = 1'       if $] >= 5;
eval 'use Oraperl; 1' || die $@ if $] >= 5;

$ENV{ORACLE_HOME} = '/net/hp7123/users/oraprod';
$lda = &ora_login('', 'forum/abc@t:hp7029:xyz', '') || die $ora_errstr;

$csr = &ora_open($lda, 'select * from forum_keywords', 20) || die
$ora_errstr;

print "Content-type: text/plain\n\n";

while (($kwd) = &ora_fetch($csr))
{
    print "$kwd\n";
}
die $ora_errstr if $ora_errno;

&ora_close($csr);
&ora_logoff($lda);
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06022-21@oink>;
          Thu, 7 Nov 1996 16:33:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847383329:18917:561; Thu, 07 Nov 96 16:15:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21893; 7 Nov 96 16:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA04814 for dbi-users-real; Thu, 7 Nov 1996 07:03:13 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA04810 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 07:03:09 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa611589; 7 Nov 96 14:14 GMT
Received: from toad by oink with SMTP (PP) id <05495-0@oink>;
          Thu, 7 Nov 1996 14:14:23 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA12268;
          Thu, 7 Nov 1996 14:14:13 +0000
Date: Thu, 7 Nov 1996 14:14:13 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611071414.AA12268@toad.ig.co.uk>
To: dbi-users@fugue.com, kal@ecst.csuchico.edu
Subject: Re: Where to install DBD, DBI
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: bwilkinson@pindar.co.uk (Bob Wilkinson)
> 
> Simplicist <kal@ecst.csuchico.edu> wrote
> >Greetings,
> >Where shoud I launch DBI .73, DBD .43 for Oracle? I'm launching them
> >from my user accnt ( /users/my_acct/DBI..etc) When I run the makes and
> >tests, all works, but I noticed many subdirectories and lib files
> >are installed under my user account. For example Oraperl.pm is put into
> >/users/my_acct/DBD-Oracle-0.43/blib/lib, not into /opt/perl5/lib..etc.
> >I tried a little script  
> >
> >        eval 'use Oraperl' || die "where is Oraperl?";
> >
> >I get 'where is...'

Oh yes, I forgot to say

	*ALWAYS* INCLUDE THE ACTUAL ERROR IN YOUR ERROR MESSAGES!

So the correct approach is

	eval 'use Oraperl; 1' || die "use Oraperl failed: $@";
	                 ^^^                              ^^

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06672-5@oink>;
          Thu, 7 Nov 1996 17:34:46 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847385315:06520:196; Thu, 07 Nov 96 16:48:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29776; 7 Nov 96 16:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA04930 for dbi-users-real; Thu, 7 Nov 1996 07:34:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from stortek.com (stortek.com [129.80.22.249]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA04926 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 07:33:59 -0800 (PST)
Received: from hp7013.ecae.stortek.com by stortek.com with SMTP 
          id AA14760 (5.65c/IDA-1.4.4 for <dbi-users@fugue.com>);
          Thu, 7 Nov 1996 08:33:24 -0700
Received: from hp7028 (hp7028.ecae.stortek.com) by hp7013.ecae.stortek.com 
          with SMTP (1.37.109.14/16.2) id AA283990806;
          Thu, 7 Nov 1996 08:33:26 -0700
Message-Id: <3282013B.5D4@hp7013.ecae.stortek.com>
Date: Thu, 07 Nov 1996 08:33:15 -0700
From: "Sarah Kennedy (skennedy)" <skennedy@hp7013.ecae.StorTek.COM>
X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.01 9000/730)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Oraperl
References: <3281FD13.618C@hp7013.ecae.stortek.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

My mistake. I needed to have TWO_TASK and ORACLE_SID defined also. I did
that and all is OK now.

Sarah Kennedy (skennedy) wrote:
> 
> I statically loaded DBD Oracle 43 into perl5.003 on HP-UX. When I
> execute the following program from the command line, it works fine. When
> I try to execute it within netscape it times out the server. In fact,
> just the
>       eval 'use Oraperl; 1' || die $@ if $] >= 5;
> statement itself in any program will time out the server. Any ideas on
> how to fix this? Thanks.
> 
> #!/project/perl5003_test/perl
> 
> eval '$Oraperl::safe = 1'       if $] >= 5;
> eval 'use Oraperl; 1' || die $@ if $] >= 5;
> 
> $ENV{ORACLE_HOME} = '/net/hp7123/users/oraprod';
> $lda = &ora_login('', 'forum/abc@t:hp7029:xyz', '') || die $ora_errstr;
> 
> $csr = &ora_open($lda, 'select * from forum_keywords', 20) || die
> $ora_errstr;
> 
> print "Content-type: text/plain\n\n";
> 
> while (($kwd) = &ora_fetch($csr))
> {
>     print "$kwd\n";
> }
> die $ora_errstr if $ora_errno;
> 
> &ora_close($csr);
> &ora_logoff($lda);
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06672-11@oink>;
          Thu, 7 Nov 1996 17:35:11 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847387419:24350:2; Thu, 07 Nov 96 17:23:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20607; 7 Nov 96 17:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA05150 for dbi-users-real; Thu, 7 Nov 1996 08:33:46 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from swissbank.swissbank.com (swissbank.swissbank.com [146.180.1.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA05146 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 08:33:45 -0800 (PST)
Received: by swissbank.swissbank.com with UUCP (4.1/BK-1.9) id AA24295;
          Thu, 7 Nov 96 10:33:44 CST
Received: from il.us.swissbank.com by keymaster.swissbank.com 
          with SMTP (8.6.12/BK-1.12) id JAA18675;
          Thu, 7 Nov 1996 09:13:05 -0600
Received: from shuriken by il.us.swissbank.com (4.1/SBCW oconnor v1.7 96/10/15) 
          id AA01806; Thu, 7 Nov 96 09:13:52 CST
Received: by shuriken (NX5.67d/NX3.0S) id AA01697; Thu, 7 Nov 96 09:14:05 -0600
Message-Id: <9611071514.AA01697@shuriken>
Mime-Version: 1.0 (NeXT Mail 3.3risc v124.8483.5)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Original-Received: by NeXT.Mailer (1.124.8483.5)
PP-warning: Illegal Received field on preceding line
From: Eric Kristoff <eric_kristoff@il.us.swissbank.com>
Date: Thu, 7 Nov 96 09:13:58 -0600
To: dbi-users@fugue.com
Subject: unsubscribe

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07058-0@oink>;
          Thu, 7 Nov 1996 18:00:47 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847388444:20552:747; Thu, 07 Nov 96 17:40:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28918; 7 Nov 96 16:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA04925 for dbi-users-real; Thu, 7 Nov 1996 07:33:53 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from cc00ms.unity.ncsu.edu (cc00ms.unity.ncsu.edu [152.1.1.35]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id HAA04921 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 07:33:52 -0800 (PST)
Received: from wolfnet.ncsu.edu by cc00ms.unity.ncsu.edu (8.7.3/US20May96) 
          id KAA14054; Thu, 7 Nov 1996 10:33:50 -0500 (EST)
Message-ID: <32820136.7358@eos.ncsu.edu>
Date: Thu, 07 Nov 1996 10:33:10 -0500
From: Matt Nikkari <mjnikkar@eos.ncsu.edu>
Reply-To: mjnikkar@eos.ncsu.edu
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: unsubscribe
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07058-2@oink>;
          Thu, 7 Nov 1996 18:00:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847389551:20552:1189; Thu, 07 Nov 96 17:59:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22409; 7 Nov 96 17:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA05060 for dbi-users-real; Thu, 7 Nov 1996 08:16:10 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bbnplanet.com (mail.bbnplanet.com [198.114.157.21]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA05054 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 08:16:04 -0800 (PST)
Received: from pasilla.bbnplanet.com by mail.bbnplanet.com id aa16711;
          7 Nov 96 11:17 EST
X-Mailer: exmh version 1.6.9 8/22/96
To: Bob Wilkinson <bwilkinson@pindar.co.uk>
cc: dbi-users@fugue.com, jpurinto@bbnplanet.com
Subject: Re: Where to install DBD, DBI
In-reply-to: Your message of "Thu, 07 Nov 1996 12:45:17 EST." <199611071245.MAA14933@fu-manchu.pindar.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 07 Nov 1996 11:15:31 -0500
From: Josh Purinton <jpurinto@bbnplanet.com>
Message-ID: <9611071117.aa16711@mail.bbnplanet.com>

> use lib /path/to/my/lib

> However, I've not used this construct yet - not sure whether you name the lib
> you want to use or just the generic term "lib".

You use the generic term 'lib' in all cases. The above example would be:

use lib '/users/my_acct/DBD-Oracle-0.43/blib/lib';

--josh
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <07060-0@oink>;
          Thu, 7 Nov 1996 18:00:57 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847389354:6:20729:53; Thu, 07 Nov 96 17:55:54 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa502294; 7 Nov 96 17:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA05247 for dbi-users-real; Thu, 7 Nov 1996 09:00:32 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from postman.osf.org (postman.osf.org [130.105.1.152]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA05243 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 09:00:30 -0800 (PST)
Received: from danton.gr.osf.org (danton.gr.osf.org [130.105.64.11]) 
          by postman.osf.org (8.7.6/8.7.3) with SMTP id LAA10595 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 11:59:56 -0500 (EST)
Message-Id: <199611071659.LAA10595@postman.osf.org>
Received: from venom.gr.osf.org by danton.gr.osf.org with SMTP (15.11/15.6) 
          id AA10654; Thu, 7 Nov 96 18:10:49 -0100
X-Mailer: exmh version 1.6.2 7/18/95
To: dbi-users@fugue.com
Subject: unsubscribe
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 07 Nov 1996 17:59:54 +0100
From: Caroline Burrer-Hoog <caroline@gr.osf.org>



---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09082-2@oink>;
          Fri, 8 Nov 1996 07:36:06 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847391937:6:18519:0; Thu, 07 Nov 96 18:38:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa617978; 7 Nov 96 18:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA05659 for dbi-users-real; Thu, 7 Nov 1996 10:04:38 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from owlsnest.com ([206.112.60.212]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA05649 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 10:04:33 -0800 (PST)
Received: (from root@localhost) by owlsnest.com (8.7.5/8.7.3) id NAA14244;
          Thu, 7 Nov 1996 13:07:51 -0500 (EST)
Date: Thu, 7 Nov 1996 13:07:51 -0500 (EST)
Message-Id: <199611071807.NAA14244@owlsnest.com>
From: owl@owlsnest.com
To: dbi-users@fugue.com
Reply-To: owl@owlsnest.com
Subject: Is Your Web Site A Secret?

Is your web site the best kept secret on the Internet?

We'll post your site to 50 search engines/indexes for $85
and complete the job in two business days.

Please respond for details or call 914-278-4933.

-Julie

===Web Promotions=====Press Releases=====Link Exchanges=========
                 Owl's Eye Productions, Inc.
                   260 E. Main Street
                   Brewster, NY 10509
Ph: 914-278-4933  Fx: 914-278-4507  E-mail: owlseye@owlsnest.com
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09082-4@oink>;
          Fri, 8 Nov 1996 07:36:11 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847392007:6:19184:0; Thu, 07 Nov 96 18:40:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa502739; 7 Nov 96 18:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA05535 for dbi-users-real; Thu, 7 Nov 1996 09:43:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA05531 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 09:43:41 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa610767; 7 Nov 96 17:34 GMT
Received: from toad by oink with SMTP (PP) id <06552-0@oink>;
          Thu, 7 Nov 1996 16:51:04 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA12564;
          Thu, 7 Nov 1996 16:50:57 +0000
Date: Thu, 7 Nov 1996 16:50:57 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611071650.AA12564@toad.ig.co.uk>
To: dbi-users@fugue.com, skennedy@hp7013.ecae.stortek.com
Subject: Re: Oraperl
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: "Sarah Kennedy (skennedy)" <skennedy@hp7013.ecae.StorTek.COM>
> 
> I statically loaded DBD Oracle 43 into perl5.003 on HP-UX. When I
> execute the following program from the command line, it works fine. When
> I try to execute it within netscape it times out the server. In fact,
> just the 
>       eval 'use Oraperl; 1' || die $@ if $] >= 5;
> statement itself in any program will time out the server. Any ideas on
> how to fix this? Thanks.

"time out the server" isn't very helpful.

Have you looked at the server logs?

Always always always force the output (and flushing of)

	print "Content-type: text/plain\n\n";

as soon as possible and certainly before doing anything complex.
Try putting

	BEGIN { $|=1; print "Content-type: text/plain\n\n"; }

at the top of your code.

Then go and read the CGI related FAQ's and use the CGI::* modules
(especially CGI::ErrorWrap)

Tim.

p.s. If you're only using Perl5 then remove the eval wrapping.
p.p.s. The safe=1 is no longer needed. It's the default.
p.p.p.s. I'm only answering this CGI FAQ 'cause I'm feeling generous today.
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09082-6@oink>;
          Fri, 8 Nov 1996 07:36:19 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847392620:6:25866:0; Thu, 07 Nov 96 18:50:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa625498; 7 Nov 96 18:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA05616 for dbi-users-real; Thu, 7 Nov 1996 09:58:05 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA05612 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 09:58:01 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA01481;
          Thu, 7 Nov 1996 09:56:42 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA27732;
          Thu, 7 Nov 1996 09:57:40 -0800
Date: Thu, 7 Nov 1996 09:57:40 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611071757.JAA27732@anubis.informix.com>
To: Tim.Bunce@ig.co.uk, dbi-users@fugue.com, johnl@informix.com
Cc: pixel@organic.com
Subject: Re: Proposed changes for DBD::Informix 0.25

Tim,

Thanks for the response.

>From Tim.Bunce@ig.co.uk Thu Nov  7 04:56 PST 1996
>
>> From: johnl@informix.com (Jonathan Leffler)
>> 
>> 4.  The commit and rollback calls will be implemented.  Databases with
>>     transactions which are not MODE ANSI databases will simulate MODE ANSI
>>     by calling BEGIN WORK immediately after the COMMIT or ROLLBACK.  The
>>     disconnect function will do an explicit ROLLBACK before closing the
>>     database (or closing the connection).
>
>While this is a very good idea (as per the spec) I have to admit that
>DBD::Oracle does not do this and probably should. The Oracle OCI ologof()
>call does an implicit commit and some old Oraperl apps may depend on that.
>
>Last time this topic came up I decided the best way forward in the short
>term was to define the behaviour as implementation-defined. Thus the
>application should not assume any particular behaviour but should
>explicitly call commit or rollback as needed.

OK: implementation defined suits me.  In which case, Informix unlogged
databases (with no transactions) will have no transactions.  Informix MODE
ANSI databases are always in a transaction, and require an explicit COMMIT
or ROLLBACK before closing the database -- if the close fails because it is
in a transaction, then the close code will do a rollback before reclosing
the database, per spec and because I think its the right thing to do.

BUT: for Informix logged databases, we need to add a BEGIN WORK operation.
By default, each statement is its own transaction unless you put in an
explicit transaction start.  Although I could still run with the "always in
a transaction a la SQL92" mode, it isn't natural for Informix database users.
On any system where BEGIN does nothing useful, the statement can simply
succeed; on Informix logged non-MODE-ANSI systems, it is necessary.

>> 5.  I will probably implement some internal function (_release maybe) to
>>     release the resources used by a statement handle.  It will CLOSE the
>>     cursor (as will the finish call) and will free the statement, cursor
>>     and descriptor.
>
>finish should not close the cursor. finish simply says you won't be fetching
>any more data from that cursor before either closing it or re-executing it.
>Could you explain what you mean by _release in relation to finish and close?

What does finish do then -- nothing?  On Informix systems, closing a cursor
is what you do to say you won't be fetching any more data from it.  This
allows the engine to free up the resources associated with the current
OPEN.  To release all the information associated with the cursor, you FREE
it.

Why doesn't finish close the cursor?  (Or, on which system does closing a
cursor cause problems?)

>> 6.  The error message I get about destroying a statement handle with using
>>     finish() will be eliminated somehow...
>
>See DBD::Oracle.

I've managed to collect DBD::Oracle v0.43 after some problems locating a
copy, and will use that as a reference.

>> 7.  As far as possible, the other code will be brought into line with the
>>     DBI Spec v0.6 too.  This probably means fetchrow goes and fetch is used
>>     instead.
>
>I *urge* you strongly to pay less attention to "the (very old) spec" and more
>to how DBD::Oracle (the 'Reference DBD Implementation') goes about things.
>Specifically you should base your .xs file on DBD::Oracle's almost exactly
>(just s/Oracle/Informix/g and you should be there).

Will do.

>> 8.  Blobs will be returned as monstrous strings (if they are monstrous blobs).
>
>Not a good idea in general. See previous discussion about this in the archives.
>I plan to migrate the effective Oracle mechanism (ora_long, ora_trunc) up to
>DBI and make it 'standard'.

Why?  Oh well, off to the archives...  But which ones?  And how are they
accessible.  I don't like the sound of ora_long and ora_trunc.

In any case, data is data is data.  If the users don't want the data, they
shouldn't select it.  I dislike the idea of making different datatypes
behave fundamentally differently.

>>     Maybe an option will be required to allow blobs to be handled
>>     in files, in which case retrievals will return a filename where the
>>     data is and insert or update will expect to be given a filename.  There
>>     will be no special treatment for them otherwise, because there doesn't
>>     seem to be any need for it.  The readblob function will either be
>>     removed or be stubbed to return an undef value.
>
>Don't do that. readblob should be working for DBD::Informix to `conform'.
>I'm happy to discuss any ideas for additional file handle interface for blobs.

I need to find out the rationale behind the Oracle implementation before
commenting further.  Assume for the time being that readblob will continue
to exist, and may even do something useful.  However, I am concerned that
maybe the DBD::Oracle reference implementation is too Oracle-centric for
comfort.  I don't have clear grounds for that (yet), but readblob and
ora_long and ora_trunc feel that way.

>[...]
>Anyone inspired to implement DBD::Ingres?

Please?  Pretty please?  If we have (at least) three good current
implementations, then we can avoid XYZ-centrism in the basic design.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-10@oink>;
          Fri, 8 Nov 1996 07:37:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847395160:20552:3215; Thu, 07 Nov 96 19:32:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09741; 7 Nov 96 19:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA06040 for dbi-users-real; Thu, 7 Nov 1996 10:56:53 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id KAA06035; Thu, 7 Nov 1996 10:56:38 -0800 (PST)
Message-Id: <199611071856.KAA06035@toccata.fugue.com>
To: Mark Law <mlaw@umich.edu>
cc: dbi-users <dbi-users@fugue.com>
Subject: Re: HELP please on getting me off this list!
In-reply-to: Your message of "Thu, 07 Nov 1996 09:31:43 EST." <Pine.SOL.3.93.961107092619.10312D-100000@merganser.mcit.med.umich.edu>
Date: Thu, 07 Nov 1996 10:56:33 -0800
From: Ted Lemon <mellon@fugue.com>


> Although this is not the correct use of this list....I'll ask anyway. 
> Could someone (please) email me with the proper incantation to send to the
> list server to remove my name from this distribution!  Thanks in advance.

If you had tried *any* incantation rather than first asking the list,
you would already know the answer to this question.  Mail sent to
listserv@fugue.com, listproc@fugue.com, majordomo@fugue.com,
help@fugue.com, info@fugue.com, dbi-request@fugue.com,
dbi-users-request@fugue.com, or dbi-announce-request@fugue.com would
have gotten you instructions on how to unsubscribe.

Pretty much the only place you don't get automatic instructions on how
to unsubscrube is the mailing list itself - if you send mail to the
mailing list, we all have to read it and decide whether or not to
respond manually.

Of course, you could also have read the message I sent out last night
with instructions on how to unsubscribe.   Sigh.   Sometimes I feel
like I'm talking to a brick wall.

			       _MelloN_
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-12@oink>;
          Fri, 8 Nov 1996 07:37:49 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847395166:06523:4032; Thu, 07 Nov 96 19:32:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09769; 7 Nov 96 19:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA05972 for dbi-users-real; Thu, 7 Nov 1996 10:47:27 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mediaonline.it ([194.166.24.206]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA05965 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 10:47:13 -0800 (PST)
Received: (from enzo@localhost) by mediaonline.it (8.7.6/8.7.3) id TAA04980 
          for dbi-users@fugue.com; Thu, 7 Nov 1996 19:44:40 +0100 (MET)
From: Enzo Marraro <enzo@mediaonline.it>
Message-Id: <199611071844.TAA04980@mediaonline.it>
Subject: unsubscribe
To: dbi-users@fugue.com
Date: Thu, 7 Nov 1996 19:44:40 +0100 (MET)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-20@oink>;
          Fri, 8 Nov 1996 07:38:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847399202:13313:5351; Thu, 07 Nov 96 20:40:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18331; 7 Nov 96 19:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA06227 for dbi-users-real; Thu, 7 Nov 1996 11:16:12 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ns (ns.ny.poppe.com [204.33.62.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA06222 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 11:16:08 -0800 (PST)
Received: from smtplink.ny.poppe.com by ns with SMTP (SMI-8.6/GNP:1.02) 
          id OAA05913; Thu, 7 Nov 1996 14:15:25 -0500
Received: from ccMail by smtplink.ny.poppe.com (IMA Internet Exchange 1.04b) 
          id 282600b0; Thu, 7 Nov 96 14:17:47 -0800
Mime-Version: 1.0
Date: Thu, 7 Nov 1996 14:13:45 -0800
Message-ID: <282600b0@ny.poppe.com>
From: spaparge@ny.poppe.com (Stella Papargeris)
Subject: Re: unsubscribe
To: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-25@oink>;
          Fri, 8 Nov 1996 07:39:22 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847399700:06523:5923; Thu, 07 Nov 96 20:48:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa19658; 7 Nov 96 19:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA06231 for dbi-users-real; Thu, 7 Nov 1996 11:16:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from paaltjens.si.hhs.nl (pp@paaltjens.si.hhs.nl [145.52.10.8]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA06226 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 11:16:11 -0800 (PST)
From: v912438@si.hhs.nl
Received: from si.hhs.nl by paaltjens.si.hhs.nl 
          id <23136-0@paaltjens.si.hhs.nl>; Thu, 7 Nov 1996 20:15:37 +0100
Received: by faverey.si.hhs.nl (SMI-8.6/SMI-SVR4) id UAA15925;
          Thu, 7 Nov 1996 20:15:14 +0100
Date: Thu, 7 Nov 1996 20:15:14 +0100
Message-Id: <199611071915.UAA15925@faverey.si.hhs.nl>
To: dbi-users@fugue.com
Subject: unsubscribe
X-Sun-Charset: US-ASCII

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-41@oink>;
          Fri, 8 Nov 1996 07:41:03 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847404183:06523:7820; Thu, 07 Nov 96 22:03:03 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04004; 7 Nov 96 21:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA07013 for dbi-users-real; Thu, 7 Nov 1996 13:08:22 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bkinis1-1.morgan.com (bkinis.ms.com [204.254.196.6]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA07009 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 13:08:21 -0800 (PST)
Received: (from mail@localhost) 
          by bkinis1-1.morgan.com (8.6.12/sendmail.cf.firewall v1.21) 
          id QAA26756 for <dbi-users@fugue.com>; Thu, 7 Nov 1996 16:08:19 -0500
Received: from bkadm1.morgan.com(138.20.76.11) by bkinis1-1.morgan.com 
          via smap (V1.3) id sma026671; Thu Nov 7 16:08:12 1996
Received: from bkis113.morgan.com (bkis113.morgan.com [138.20.77.91]) 
          by bkadm1.morgan.com (8.6.12/sendmail.cf.hub v1.28) with ESMTP 
          id QAA24203 for <dbi-users@fugue.com>; Thu, 7 Nov 1996 16:08:11 -0500
From: Long Wong <lwong@morgan.com>
Received: (lwong@localhost) 
          by bkis113.morgan.com (8.6.12/sendmail.cf.client v1.05) id QAA06818 
          for dbi-users@fugue.com; Thu, 7 Nov 1996 16:08:10 -0500
Date: Thu, 7 Nov 1996 16:08:10 -0500
Message-Id: <9611071608.ZM6816@morgan.com>
X-Mailer: Z-Mail (3.2.1 10oct95)
To: dbi-users@fugue.com
Subject: unsubscribe
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-54@oink>;
          Fri, 8 Nov 1996 07:42:27 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847409269:24350:9141; Thu, 07 Nov 96 23:27:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07310; 7 Nov 96 23:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id OAA07643 for dbi-users-real; Thu, 7 Nov 1996 14:35:30 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id OAA07639 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 14:35:28 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id OAA25369 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 14:34:55 -0800
Received: from ctoad.Eng.Sun.COM by Eng.Sun.COM (SMI-8.6/SMI-5.3) id OAA02759;
          Thu, 7 Nov 1996 14:34:53 -0800
Received: by ctoad.Eng.Sun.COM (5.x/SMI-SVR4) id AA00733;
          Thu, 7 Nov 1996 14:36:03 -0800
Date: Thu, 7 Nov 1996 14:36:03 -0800
From: raymond.smith@Eng.Sun.COM (Raymond Smith)
Message-Id: <9611072236.AA00733@ctoad.Eng.Sun.COM>
To: dbi-users@fugue.com
Subject: unsubscribe
X-Sun-Charset: US-ASCII


unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-56@oink>;
          Fri, 8 Nov 1996 07:42:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847409363:06781:855; Thu, 07 Nov 96 23:29:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab23447; 7 Nov 96 18:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA05678 for dbi-users-real; Thu, 7 Nov 1996 10:06:26 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from private-relay.PCWorld.com (private-relay.pcworld.com [204.160.191.11]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA05674 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 10:06:24 -0800 (PST)
From: matt_turner@PCWORLD.COM
Received: from smtplink.pcworld.com 
          by private-relay.PCWorld.com (8.7.1/PCWorld-Internal-Relay.1) 
          id SAA29321; Thu, 7 Nov 1996 18:05:26 GMT
Received: from cc:Mail by smtplink.pcworld.com id AA847389671;
          Thu, 07 Nov 96 09:50:50 PST
Date: Thu, 07 Nov 96 09:50:50 PST
Message-Id: <9610078473.AA847389671@smtplink.pcworld.com>
To: dbi-users@fugue.com
Subject: unsubscribe

unsubscribe

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-68@oink>;
          Fri, 8 Nov 1996 07:43:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847411923:06795:2837; Fri, 08 Nov 96 00:12:03 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab09285; 7 Nov 96 19:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA05990 for dbi-users-real; Thu, 7 Nov 1996 10:49:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from mediaonline.it ([194.166.24.206]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA05960 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 10:47:02 -0800 (PST)
Received: (from enzo@localhost) by mediaonline.it (8.7.6/8.7.3) id TAA04990 
          for dbi-users@fugue.com; Thu, 7 Nov 1996 19:45:09 +0100 (MET)
From: Enzo Marraro <enzo@mediaonline.it>
Message-Id: <199611071845.TAA04990@mediaonline.it>
To: dbi-users@fugue.com
Date: Thu, 7 Nov 1996 19:45:09 +0100 (MET)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

unsubcsribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-76@oink>;
          Fri, 8 Nov 1996 07:44:47 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847413102:06781:4067; Fri, 08 Nov 96 00:31:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab15448; 7 Nov 96 19:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA05967 for dbi-users-real; Thu, 7 Nov 1996 10:47:21 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from dorbh.cmc.ec.gc.ca (dorbh.cmc.ec.gc.ca [199.212.17.43]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA05962 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 10:47:05 -0800 (PST)
Received: from fors731.ice.ncr.doe.ca (fors731.ice.ncr.doe.ca [131.235.105.17]) 
          by dorbh with ESMTP (DuhMail/3.0) id NAA29726;
          Thu, 7 Nov 1996 13:38:34 -0500
X-Authentication-Warning: dorbh: Host fors731.ice.ncr.doe.ca claimed to be 
                          unknown
Received: from emerald (devw719.cis.ec.gc.ca) by unknown 
          with SMTP (1.37.109.20/16.2) id AA112311860;
          Thu, 7 Nov 1996 13:37:40 -0500
Message-Id: <32822E0D.6692@ice.ncr.doe.ca>
Date: Thu, 07 Nov 1996 13:44:29 -0500
From: Chris Howell <howellc@ice.ncr.doe.ca>
Organization: Canadian Ice Service
X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.05 9000/712)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: unsubscribe
References: <9610078473.AA847389671@smtplink.pcworld.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-99@oink>;
          Fri, 8 Nov 1996 07:47:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847415942:08870:4407; Fri, 08 Nov 96 01:19:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17426; 7 Nov 96 22:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA07209 for dbi-users-real; Thu, 7 Nov 1996 13:44:52 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sun.silverline.com (sun.silverline.com [38.254.82.6]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA07205 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 13:44:47 -0800 (PST)
Received: from sii-chicago.il.silverline.com 
          by sun.silverline.com (SMI-8.6/SMI-SVR4) id QAA19082;
          Thu, 7 Nov 1996 16:44:50 -0500
Received: from SII-CHICAGO/MAIL by sii-chicago.il.silverline.com (Mercury 1.21);
          7 Nov 96 16:36:51 +0600
Received: from MAIL by SII-CHICAGO (Mercury 1.21); 7 Nov 96 16:36:46 +0600
From: Mandar Paranjape <mandarp@sii-chicago.il.silverline.com>
Organization: Silverline Industries Inc.
To: dbi-users@fugue.com
Date: Thu, 7 Nov 1996 16:36:38 CST
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: unsubscribe
Reply-to: mandarp@silverline.com
X-Confirm-Reading-To: mandarp@silverline.com
X-pmrqc: 1
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <196CD385D1D@sii-chicago.il.silverline.com>

unsubscribe


-------------------------------------------------------
Mandar Paranjape        
Email: mandarp@silverline.com  
-------------------------------------------------------

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-118@oink>;
          Fri, 8 Nov 1996 07:49:32 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847420902:11114:13; Fri, 08 Nov 96 02:41:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa10957; 8 Nov 96 2:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id SAA08497 for dbi-users-real; Thu, 7 Nov 1996 18:10:36 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id SAA08493 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 18:10:32 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id SAA22317;
          Thu, 7 Nov 1996 18:09:54 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id SAA00953;
          Thu, 7 Nov 1996 18:10:53 -0800
Date: Thu, 7 Nov 1996 18:10:53 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611080210.SAA00953@anubis.informix.com>
To: cckathy@cypress.mcsr.olemiss.edu, descarte@hermetica.com
Cc: dbi-users@fugue.com
Subject: Re: DBD Informix v0.24 compile problems

You need to add some declarations to dbdimp.h and dbdimp.ec.

In dbdimp.ec:

static void free_cursor _((int sqc));
static void iqfree _((int sqc));
static void iqclose _((int sqc));

In dbdimp.h:

extern SV *dbd_st_FETCH _((SV *sth, SV *keysv));
extern SV *dbd_st_readblob _((SV *sth, int field, long offset, long len, SV *destsv));
extern SV *dbd_db_FETCH _((SV *dbh, SV *keysv));

If you are using 7.1x, you should be OK with the sysliblist derived by
Makefile.PL.

If you are using 7.2x, you need to add both -lgls and
$INFORMIXDIR/lib/esql/checkapi.o to sysliblist, or rig the system to use
the ESQL/C compiler to control the linking.

I attach my latest working version of Makefile.PL which doesn't ask you questions
and which does use the ESQL/C compilation script and which does work for 7.2x.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>Date: Thu, 7 Nov 1996 14:25:12 -0600
>From: cckathy@cypress.mcsr.olemiss.edu (Kathy Gates)
>To: descarte@hermetica.com
>Subject: DBD Informix compile problems
>
>Any ideas on what might fix the following =>
>cypress> ~appl/perl5.003/install/bin/perl Makefile.PL
>
>Configuring DBD::Informix version 0.24...
>Remember to actually read the README file!
>
>What version of Informix are you using? [5/6/7] 7
>Using Informix version 7 in /usr/informix
>Informix sysliblist: -L/usr/informix/lib -L/usr/informix/lib/esql -L/usr/informix/lib/tools -lsql -lasf -lgen -los -lm
>System: perl5.003 irix64 cypress 6.2 03131015 ip21  IP21-irix dl_dlopen.xs
>Compiler: cc -32 -O 
>
>Writing Makefile for DBD::Informix
>cypress> make
>        cc -32 -c -I/usr/informix/incl/esql -I/usr/local/appl/perl5.003/install/lib/IP21-irix/5.003/DBI -I/usr/local/appl/perl5.003/install/lib/site_perl/IP21-irix/DBI  -O     -DVERSION=\"0.24\"  -DXS_VERSION=\"0.24\"  -I/usr/local/appl/perl5.003/install/
>cfe: Warning 712: Informix.c, line 167: illegal combination of pointer and integer
>     SV *valuesv = dbd_db_FETCH(dbh, keysv);
> --------^
>cfe: Warning 712: Informix.c, line 358: illegal combination of pointer and integer
>     Perl_stack_base [ax + (0)]  = dbd_st_readblob(sth, field, offset, len, destsv);
> --------------------------------^
>cfe: Warning 712: Informix.c, line 390: illegal combination of pointer and integer
>     SV *valuesv = dbd_st_FETCH(sth, keysv);
> --------^
>        cc -32 -c -I/usr/informix/incl/esql -I/usr/local/appl/perl5.003/install/lib/IP21-irix/5.003/DBI -I/usr/local/appl/perl5.003/install/lib/site_perl/IP21-irix/DBI  -O     -DVERSION=\"0.24\"  -DXS_VERSION=\"0.24\"  -I/usr/local/appl/perl5.003/install/
>cfe: Warning 709: dbdimp.ec, line 1080: Incompatible pointer type assignment
>       strcpy( cbuf_ptr, result );
> --------------^
>cfe: Warning 709: dbdimp.ec, line 1292: Incompatible pointer type assignment
>               Perl_av_store (av, i, Perl_newSVpv (imp_sth->fbh[i].cbuf,0));
> -----------------------------------------------------------------^
>cfe: Error: dbdimp.ec, line 1314: redeclaration of 'free_cursor'; previous declaration at line 1216 in file 'dbdimp.ec'
> static void free_cursor(sqc)
> ------------^
>cfe: Error: dbdimp.ec, line 1314: Incompatible function return type for this function.
> static void free_cursor(sqc)
> -----------------------^
>cfe: Warning 771: dbdimp.ec, line 1317: local function declarations cannot be 'static'
> static void iqfree();
> ------------^
>cfe: Error: dbdimp.ec, line 1347: redeclaration of 'iqclose'; previous declaration at line 1321 in file 'dbdimp.ec'
> static void iqclose(sqc)
> ------------^
>cfe: Error: dbdimp.ec, line 1347: Incompatible function return type for this function.
> static void iqclose(sqc)
> -------------------^
>cfe: Warning 740: dbdimp.ec, line 1395: conflicting declarations for 'iqfree'
> static void iqfree(sqc)
> ------------^
>cfe: Warning 653: dbdimp.ec, line 1395: (previous declaration of 'iqfree' at line 1317 in file 'dbdimp.ec')
> static void iqfree(sqc)

#!/usr/bin/perl -sw
#
# @(#)Makefile.PL	1.2 96/11/05 14:37:40
#
# Amendments: Jonathan Leffler (johnl@informix.com)
# Portions Copyright (c) 1996 Jonathan Leffler
#
# $Derived-From: Makefile.PL,v 1.1 1996/04/14 17:25:11 descarte Archaic $
# (c) 1996 Hermetica. Written by Alligator Descartes <descarte@hermetica.com>
# From an original by Tim Bunce
#
# Covered by GPL - License to be added!

use ExtUtils::MakeMaker qw(&WriteMakefile $Verbose);
use Getopt::Std;
use Config;

use DBI;	# The DBI must be installed before we can build a DBD

%opts = (
    'NAME'    => 'DBD::Informix',
    'VERSION' => '0.24',
);

print "\nConfiguring DBD::Informix version $opts{VERSION}...\n";
print "Remember to actually read the README file!\n\n";

# --- Where is Informix installed...

unless ($ENV{INFORMIXDIR}){
    warn "\$INFORMIXDIR not defined. Searching for Informix...\n";
    foreach(qw(/usr/informix /opt/informix /usr/soft/informix)){
	$ENV{INFORMIXDIR}=$_,last if -d "$_";
    }
    die "Unable to determine \$INFORMIXDIR!\n" unless $ENV{INFORMIXDIR};
}
my $ID = $ENV{INFORMIXDIR};

open(ESQL, "esql -V|");
$infversion = <ESQL>;	# Line with version information
while(<ESQL>) { }		# Rest of input (1 line) to avoid Broken Pipe messages
close ESQL;

chomp( $infversion );
$infversion =~ s/INFORMIX.* Version (....).*/$1/;
unless ($infversion =~ /[0-9]\.[0-9][0-9]/) {
	die "Unexpected message from esql script $infversion";
}

print "Using Informix version $infversion in $ID\n";

# --- What Informix is installed...

# Validate we have the right stuff installed

if ( $infversion =~ /5\.0[0-9]/ ) {
    warn "Warning: Informix ESQL/C does not appear to be installed.\n"
    	unless -f "$ID/lib/esql/libgen.a"
               and -f "$ID/lib/esql/libos.a"
               and -f "$ID/lib/esql/libsql.a";
  } elsif ( $infversion =~ /6\.0[0-9]/ || $infversion =~ /7\.1[0-9]/ ) {
            warn "Warning: Informix ESQL/C does not appear to be installed.\n"
                unless -f "$ID/lib/esql/libgen.a"
                   and -f "$ID/lib/esql/libos.a"
                   and -f "$ID/lib/esql/libsql.a"
                   and -f "$ID/lib/libasf.a";
  } elsif ( $infversion =~ /7\.2[0-9]/ ) {
            warn "Warning: Informix ESQL/C does not appear to be installed.\n"
                unless -f "$ID/lib/esql/libixgen.a"
                   and -f "$ID/lib/esql/libixos.a"
                   and -f "$ID/lib/esql/libixsql.a"
                   and -f "$ID/lib/esql/libixgls.a"
                   and -f "$ID/lib/libixasf.a";
  }
  else {
	die "Do not know about version $infversion";
  }

$ccflags = "";			# Fudge to get round HP-UX brain-death
$linkwith = "-L$ID/lib";
if ( $Config{osname} eq 'solaris' ) {
    $linkwith = " -R$ID/lib -L$ID/lib/esql -R$ID/lib/esql";
}
elsif ( $Config{osname} eq 'aix' ) {
	$linkwith .= " -lbsd";
}
elsif ( $Config{osname} eq 'hpux' ) {
    $ccflags = $Config{ccflags};
}

$infversion =~ s/^([0-9])\./$1/;
$opts{DEFINE} = " -DESQLC_VERSION=$infversion";

$opts{INC} = "-I$ID/incl/esql -I$Config{archlib}/DBI -I$Config{sitearch}/DBI";
$opts{dynamic_lib} = { OTHERLDFLAGS => '-L$(INFORMIXDIR)/lib ' . $linkwith };
$opts{OBJECT} = '$(O_FILES) dbdimp.o';
$opts{macro} = { 'ESQL_LIB' => '$(INFORMIXDIR)/incl/esql' };
$opts{LD} = 'INFORMIXC="${CC} -G" $(ESQL)';

$opts{DEFINE} = '-Wall -pedantic -Wno-comment -Wpointer-arith -Wcast-align'
	    . ' -Wconversion -Wtraditional -Wpointer-arith'
	    . ' -Wcast-qual'
	if $Config{cc} eq 'gcc';	# Just me asking gcc to be paranoid.

$opts{DEFINE} .= ' -Xa' if $Config{cc} eq 'clcc';	# CenterLine CC

# log key platform information to help me help you quickly
print "System: perl$] @Config{qw(myuname archname dlsrc)}\n";
print "Compiler: @Config{qw(cc optimize ccflags)}\n";

# Assorted hints - these should be move to a hints subdirectory
print "See README notes about SPARCompiler on Solaris\n"
    if -d "/opt/SUNWspro/bin" and $Config{osname} eq 'solaris';

print "\n";

WriteMakefile(%opts);

# Define a postamble for the makefile which briefs MAKE on how to compile
# ESQL/C source code.  It is not ideal -- you should give .ec rules
# precedence over .c files with the same name by zapping and reorganizing
# the entire suffix list, but Rome wasn't built in a day, as they say...
sub MY::postamble {
"
# ESQL/C compilation rules
ESQL = esql
.SUFFIXES: .ec

.ec.o:
	\$(ESQL) -c $ccflags $opts{DEFINE} $opts{INC} -I\$(PERL_INC) \$*.ec
	\$(RM) \$*.c
"
}

# Cleanly exit from the Makefile-build process

exit 0;

__END__

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09085-121@oink>;
          Fri, 8 Nov 1996 08:07:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847423830:21394:18; Fri, 08 Nov 96 03:30:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa21272; 8 Nov 96 3:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id TAA08730 for dbi-users-real; Thu, 7 Nov 1996 19:01:17 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sierra.zyzzyva.com (ppp0.zyzzyva.com [198.183.2.50]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id TAA08726 
          for <dbi-users@fugue.com>; Thu, 7 Nov 1996 19:01:15 -0800 (PST)
Received: from sierra.zyzzyva.com (localhost [127.0.0.1]) 
          by sierra.zyzzyva.com (8.7.5/8.7.3) with ESMTP id VAA01138;
          Thu, 7 Nov 1996 21:01:03 -0600 (CST)
Message-Id: <199611080301.VAA01138@sierra.zyzzyva.com>
To: raymond.smith@Eng.Sun.COM (Raymond Smith)
cc: dbi-users@fugue.com
Subject: Re: unsubscribe
In-reply-to: raymond.smith's message of Thu, 07 Nov 1996 14:36:03 -0800. <9611072236.AA00733@ctoad.Eng.Sun.COM>
X-uri: http://www.zyzzyva.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 07 Nov 1996 21:01:02 -0600
From: Randy Terbush <randy@zyzzyva.com>

> 
> unsubscribe

Wha!!!???

Was Ted's note explaining how to unsubscribe from this list an
open invitation for people to spam the list with their stupidity?

I'm usually pretty good at biting my tongue on these things...

PEOPLE! Every mailing list software known to man handles unsubscribes
through an administrative address.

Repeat after me!

-request -request -request -request -request -request -request -request

Here is Ted's still smoking hot post to the list.....





To: dbi-users@fugue.com, dbi-dev@fugue.com
Subject: Mailing list manager bug fixed...
Date: Thu, 07 Nov 1996 00:03:33 -0800
From: Ted Lemon <mellon@fugue.com>


There has been a bug in the mailing list manager for the past few
months that prevented users who were subscribed to dbi-users or
dbi-dev but not dbi-announce from receiving any mail.   I have just
fixed this bug, and as a consequence, some of you may suddenly have
begun receiving mail that you no longer want.

If that is the case, please go to http://www.fugue.com/dbi to
unsubscribe.   If (and only if) you do not have any way to access the
web, you may send mail to dbi-request@fugue.com to unsubscribe.

                               _MelloN_


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12145-2@oink>;
          Fri, 8 Nov 1996 10:09:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847444669:05801:24; Fri, 08 Nov 96 09:17:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05541; 8 Nov 96 9:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA09585 for dbi-users-real; Fri, 8 Nov 1996 00:37:02 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [192.66.202.17]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id AAA09581 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 00:36:55 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id JAA14196;
          Fri, 8 Nov 1996 09:35:20 +0100 (MET)
Received: (from ht@localhost) by tyr.datani.dk (8.7.2/8.7.2) id KAA09222;
          Fri, 8 Nov 1996 10:34:53 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
Message-Id: <199611080934.KAA09222@tyr.datani.dk>
Subject: DBD::Ingperl
To: dbi-users@fugue.com
Date: Fri, 8 Nov 1996 10:34:52 +0100 (MET)
Cc: johnl@informix.com, Tim.Bunce@ig.co.uk
X-Mailer: ELM [version 2.4 PL21]
Content-Type: text

I was going to wait until I had something ready for distribution, 
but as there seems to be considerable demand for it I'll own up now.

I am currently writing on a DBD::Ingres in my copious spare time
(the train rides to and from work ;-). I hope to have something ready
for debugging in a few (read 2-4) weeks. But dont hold your breath...

I'll need help in debuggeing the thing - my trusy old portable doesn't
have Perl or ingres - just an editor, so the debugging will have to
be pushed in between work-work (and there is just too much of that!)

I have modelled it very closely on the DBD::Oracle-0.43 - but as Ingres
doesn't have blobs (yet) I have removed all that.

Ingres has no bind capability (or at least no usefull one), so there is
no need for reexecution af a statement after close. I modified dbd_st_finish
so that it closes the cursor (yeah I know Tim I shouldn't....).

I'll stick my head out again when The darn thing compiles without too many
errors.

Henrik Tougaard,     ht@datani.dk
Datani A/S, Software Consultants, Copenhagen, Denmark

BTW: what do you call the stage before alpha? The DBD::Oracle is still
alpha but is in production several places (we use it too). This is (will
be) several ligthyears behind - what shall I call it ;-P
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12145-4@oink>;
          Fri, 8 Nov 1996 10:09:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847445319:09115:9; Fri, 08 Nov 96 09:28:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08823; 8 Nov 96 9:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA09554 for dbi-users-real; Fri, 8 Nov 1996 00:26:08 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from dicsmss1.jrc.it (dicsmss1.jrc.it [139.191.1.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id AAA09550 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 00:26:01 -0800 (PST)
Received: from ei.jrc.it (gaia.ei.jrc.it) by dicsmss1.jrc.it (4.1/EB-950131-C) 
          id AA10546; Fri, 8 Nov 96 09:31:00 +0100
Received: from java by ei.jrc.it (4.1/EI-3.1m) id AA29602;
          Fri, 8 Nov 96 09:26:05 +0100
Posted-Date: Fri, 08 Nov 1996 09:22:19 +0100
Message-Id: <3282EDBB.A75@jrc.it>
Date: Fri, 08 Nov 1996 09:22:19 +0100
From: Lothar Breitenbach <lothar.breitenbach@jrc.it>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: (no subject)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12145-8@oink>;
          Fri, 8 Nov 1996 10:09:56 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847445875:12149:32; Fri, 08 Nov 96 09:37:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11620; 8 Nov 96 9:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA09636 for dbi-users-real; Fri, 8 Nov 1996 00:56:35 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from MINESsoft.co.kr ([203.231.192.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id AAA09632 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 00:56:33 -0800 (PST)
Received: from cokedas.minessoft.co.kr by MINESsoft.co.kr (SMI-8.6/SMI-SVR4) 
          id SAA03613; Fri, 8 Nov 1996 18:03:26 +0900
Message-ID: <3282F6DB.D08@demi.minessoft.co.kr>
Date: Fri, 08 Nov 1996 18:01:15 +0900
From: park <byeffort@ns.minessoft.co.kr>
Reply-To: byeffort@ns.minessoft.co.kr
Organization: mines
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: about Microsoft SQL...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi~ I'm korean. 
I found Hermetica today, while I study about perl and Microsoft SQL..
How can I use ODBC to access Microsoft SQL with perl?
Is it possible that your DBI can use ODBC?
I'm waiting for your mail..


ps. Sorry for a short mail. I'm not good at english.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12307-0@oink>;
          Fri, 8 Nov 1996 10:51:50 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847448088:23933:3; Fri, 08 Nov 96 10:14:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23519; 8 Nov 96 10:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id BAA09663 for dbi-users-real; Fri, 8 Nov 1996 01:21:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from itek.norut.no (emma.itek.norut.no [193.156.106.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id BAA09659 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 01:21:37 -0800 (PST)
Received: from embert by itek.norut.no with SMTP id AA10142 (5.65c8+/IDA-1.4.4 
          for <dbi-users@fugue.com>); Fri, 8 Nov 1996 10:21:16 +0100
Received: from sigvart by embert (950413.SGI.8.6.12) id KAA09114;
          Fri, 8 Nov 1996 10:21:26 +0100
Message-Id: <3282FB13.41C6@itek.norut.no>
Date: Fri, 08 Nov 1996 10:19:15 +0100
From: Monika Lie Larsen <Monika.Lie.Larsen@itek.norut.no>
Organization: NORUT IT
X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Informix - What am I missing??
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Charset: LATIN1
X-Char-Esc: 29

Our web server needs to talk to several databases, including Illustra
and Informix - both of which are complete strangers to me. So,
attempting to keep it that way, I've assumed that the perl DBI would do
the talking, given the right DBDs. 

However. Generating the Informix DBD makefile fails with "Unable to
determine $INFORMIXDIR!" Why do I need to know where/if Informix is
installed? Is the implication here that Informix has to be run on the
local host (webserver)??

Any pointers on how I would go about connecting to Illustra and Informix
would be greatly appreciated. HTTPD runs on IRIX 5.3 (Perl 5.003
installed), Illustra on Win NT, Informix I'm not sure about.

Monika Lie Larsen
NORUT IT
9005 Tromso, Norway
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12982-0@oink>;
          Fri, 8 Nov 1996 12:25:19 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847451823:14142:14; Fri, 08 Nov 96 11:17:03 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13871; 8 Nov 96 11:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA09753 for dbi-users-real; Fri, 8 Nov 1996 02:16:34 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from stachus (stachus.muenchen.org [194.95.192.254]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id CAA09749 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 02:16:22 -0800 (PST)
Received: from octopus by stachus (SMI-8.6/SMI-SVR4) id LAA07443;
          Fri, 8 Nov 1996 11:15:42 +0100
Message-ID: <328307EC.54D75030@muenchen.org>
Date: Fri, 08 Nov 1996 11:14:04 +0100
From: Christoph Bernhardt <bm745512@muenchen.org>
Organization: Ich
X-Mailer: Mozilla 3.0Gold (X11; I; Linux 2.0.14 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: DBI conformity of different DBDs
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

And I really hope this is not too much of a FAQ...

When I started a WEB project some time ago I was 'shopping' for a db
access layer for Perl, too. I chose DBI since it promised to be very DB
independant as long as DBDs existed for all DBs in question.

I started with MSql and now the situation arises where more performance
on the DB side is needed. My idea was to just exchange DB and DBD to
increase my application's performance (say by using Oracle). This should
not incurr any (ok, a small) migration effort due to the philosophy of
DBI.

Now, looking at DBD-Oracle, I am not so sure any more since all examples
allways use the Oraperl emulation and never the native DBI interface
that my existing code relies on.

Could somebody enlighten me whether the Oraperl emulation is just what
the name says it is, namely the emulation of a very popular Oracle-Perl
interface on top of the DBI interface; or is Oraperl the only _usable_
interface existing for Oracle, at the moment.

And I know that I don't really know what I am talking about, since I
don't have any Oracle installation handy right now to try it out myself.
But I know that an answer to the above question would make me sleep
better these days (or worse, for that matter).

Thanks for any input

Christoph
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12982-2@oink>;
          Fri, 8 Nov 1996 12:25:27 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847452028:15106:30; Fri, 08 Nov 96 11:20:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15063; 8 Nov 96 11:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA09741 for dbi-users-real; Fri, 8 Nov 1996 02:09:46 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sea.glamm.com (sea.glamm.com [194.20.222.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id CAA09737 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 02:09:38 -0800 (PST)
Received: from unidata.glamm.com (unidata.glamm.com [194.20.222.111]) 
          by sea.glamm.com (8.7.5/8.7.3) with SMTP id LAA16712 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:12:28 +0100 (MET)
Message-Id: <3.0.32.19961108111147.00768fd0@pop.glamm.com>
X-Sender: manu@pop.glamm.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Fri, 08 Nov 1996 11:11:48 +0100
To: dbi-users@fugue.com
From: Vecchia Emanuele <manu@glamm.com>
Subject: unscribe
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

unscribe

porcoilberluska

unscribe !!!!
	
	thx
-+# Emanuele Vecchia     -+#+- Hei Ho Let's To The Most Hi-Tech #+-
-+# Glamm Interactive    -+#+- Italian Contemporary Art Site    #+-
-+# http://www.glamm.com -+#+- <*>>>> HTTP://WWW.UNDO.NET <<<<*>#+-
-+# manu@glamm.com -+#+- webmaster@undo.net -+#+- HCT+<@!@>(A)] #+-
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12982-8@oink>;
          Fri, 8 Nov 1996 12:25:44 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847453102:20953:7; Fri, 08 Nov 96 11:38:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20593; 8 Nov 96 11:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id CAA09808 for dbi-users-real; Fri, 8 Nov 1996 02:50:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sea.glamm.com (sea.glamm.com [194.20.222.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id CAA09804 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 02:50:40 -0800 (PST)
Received: from Enterprise.hynet.it (enterprise.glamm.com [194.20.222.110]) 
          by sea.glamm.com (8.7.5/8.7.3) with SMTP id LAA17244 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:53:42 +0100 (MET)
Date: Fri, 8 Nov 1996 11:53:42 +0100 (MET)
Message-Id: <199611081053.LAA17244@sea.glamm.com>
X-Sender: francesco@glamm.com
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Priority: 1 (Highest)
To: dbi-users@fugue.com
From: Francesco Pasqualini <francesco@glamm.com>
Subject: Re: Informix - What am I missing??

At 10.19 08/11/96 +0100, you wrote:
>Our web server needs to talk to several databases, including Illustra
>and Informix - both of which are complete strangers to me. So,
>attempting to keep it that way, I've assumed that the perl DBI would do
>the talking, given the right DBDs. 
>

I' m also interested to know if there exist a DBD for Illustra.

Thank you.

Francesco Pasqualini


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12982-10@oink>;
          Fri, 8 Nov 1996 12:25:49 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847455549:04070:14; Fri, 08 Nov 96 12:19:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03657; 8 Nov 96 12:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id DAA09889 for dbi-users-real; Fri, 8 Nov 1996 03:28:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id DAA09882 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 03:25:07 -0800 (PST)
Message-Id: <199611081125.DAA09882@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Fri, 8 Nov 1996 12:20:46 +0100
X-Mailer: exmh version 1.6.9 8/22/96
To: robin@igis.se
From: Martin Berli <berli@switch.ch>
Cc: dbi-users@fugue.com
Subject: 8-bit text problem
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 08 Nov 1996 12:20:45 +0100

Hello,

Just read your note in the README of DBD-ORACLE:

> Make sure the following environment vaiables are set:
>         NLS_LANG, ORA_NLS, ORA_NLS32
> Thanks to Robin Langdon <robin@igis.se> for this information.
> Example:
>   $ENV{NLS_LANG}  = "american_america.we8iso8859p1";
>   $ENV{ORA_NLS}   = "/home/oracle/ocommon/nls/admin/data";
>  $ENV{ORA_NLS32} = "/home/oracle/ocommon/nls/admin/data";

I have set this variables, but oraperl still inserts 7 bit values into
the database. When I do it manually with sqlplus, no problem. So it must
have to do with oraperl. Any idea?

Martin

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13372-1@oink>;
          Fri, 8 Nov 1996 13:01:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847457250:12776:0; Fri, 08 Nov 96 12:47:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12750; 8 Nov 96 12:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA09981 for dbi-users-real; Fri, 8 Nov 1996 04:11:56 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA09972 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 04:11:20 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id MAA07415; Fri, 8 Nov 1996 12:57:04 GMT
Message-Id: <199611081257.MAA07415@chewbacca.hermetica.com>
Subject: Re: Informix - What am I missing??
To: Monika.Lie.Larsen@itek.norut.no (Monika Lie Larsen)
Date: Fri, 8 Nov 1996 12:56:26 +0000 (GMT)
Cc: dbi-users@fugue.com
In-Reply-To: <3282FB13.41C6@itek.norut.no> from "Monika Lie Larsen" at Nov 8, 96 10:19:15 am
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> Our web server needs to talk to several databases, including Illustra
> and Informix - both of which are complete strangers to me. So,
> attempting to keep it that way, I've assumed that the perl DBI would do
> the talking, given the right DBDs. 

Yup, there isn't a DBD for Illustra, though, at the moment.

> However. Generating the Informix DBD makefile fails with "Unable to
> determine $INFORMIXDIR!" Why do I need to know where/if Informix is
> installed? Is the implication here that Informix has to be run on the
> local host (webserver)??

You need to know where Informix is installed so that you can build the
module. The module uses calls provided in the libraries provided by Informix.
Once you've built the library, you can install the module on a host that
doesn't have Informix installed ( apart from the networking layer, I think ).

> Any pointers on how I would go about connecting to Illustra and Informix
> would be greatly appreciated. HTTPD runs on IRIX 5.3 (Perl 5.003
> installed), Illustra on Win NT, Informix I'm not sure about.

Hm, sounds like you're going to have big problems........8-)

> Monika Lie Larsen

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13372-3@oink>;
          Fri, 8 Nov 1996 13:01:38 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847457876:16087:32; Fri, 08 Nov 96 12:57:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15870; 8 Nov 96 12:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA09998 for dbi-users-real; Fri, 8 Nov 1996 04:16:46 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA09977 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 04:11:54 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id NAA07428; Fri, 8 Nov 1996 13:00:38 GMT
Message-Id: <199611081300.NAA07428@chewbacca.hermetica.com>
Subject: Re: DBI conformity of different DBDs
To: bm745512@muenchen.org (Christoph Bernhardt)
Date: Fri, 8 Nov 1996 12:59:48 +0000 (GMT)
Cc: dbi-users@fugue.com
In-Reply-To: <328307EC.54D75030@muenchen.org> from "Christoph Bernhardt" at Nov 8, 96 11:14:04 am
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> And I really hope this is not too much of a FAQ...

It is, but anyway...........

> Could somebody enlighten me whether the Oraperl emulation is just what
> the name says it is, namely the emulation of a very popular Oracle-Perl
> interface on top of the DBI interface; or is Oraperl the only _usable_
> interface existing for Oracle, at the moment.

Oraperl, as bundled with DBD::Oracle is an emulation layer that sits on top
of DBD::Oracle. Therefore, it translates the Oraperl methods into DBI methods.
So, your code should be relatively portable between the two. I've used scripts
that pass data between DBD::mSQL, DBD::Oracle and DBD::Informix quite happily
all the one program.

> Christoph

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13372-5@oink>;
          Fri, 8 Nov 1996 13:01:47 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847458051:17100:0; Fri, 08 Nov 96 13:00:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16842; 8 Nov 96 13:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id EAA09985 for dbi-users-real; Fri, 8 Nov 1996 04:12:57 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id EAA09973 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 04:11:22 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id MAA07423; Fri, 8 Nov 1996 12:58:58 GMT
Message-Id: <199611081258.MAA07423@chewbacca.hermetica.com>
Subject: Re: 8-bit text problem
To: berli@switch.ch (Martin Berli)
Date: Fri, 8 Nov 1996 12:58:06 +0000 (GMT)
Cc: robin@igis.se, dbi-users@fugue.com
In-Reply-To: <199611081125.DAA09882@toccata.fugue.com> from "Martin Berli" at Nov 8, 96 12:20:45 pm
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> > Make sure the following environment vaiables are set:
> >         NLS_LANG, ORA_NLS, ORA_NLS32
> > Thanks to Robin Langdon <robin@igis.se> for this information.
> > Example:
> >   $ENV{NLS_LANG}  = "american_america.we8iso8859p1";
> >   $ENV{ORA_NLS}   = "/home/oracle/ocommon/nls/admin/data";
> >  $ENV{ORA_NLS32} = "/home/oracle/ocommon/nls/admin/data";
> 
> I have set this variables, but oraperl still inserts 7 bit values into
> the database. When I do it manually with sqlplus, no problem. So it must
> have to do with oraperl. Any idea?

It can't have something to do with Oraperl. Oraperl uses exactly the same
connection and client-side code as Oraperl does!

Did you set the variables *correctly*? I've had no problems at all getting
this to work.

> Martin

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13854-5@oink>;
          Fri, 8 Nov 1996 14:24:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847461457:06703:21; Fri, 08 Nov 96 13:57:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06288; 8 Nov 96 13:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10220 for dbi-users-real; Fri, 8 Nov 1996 05:25:04 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from itek.norut.no (emma.itek.norut.no [193.156.106.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10216 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:25:00 -0800 (PST)
Received: from embert by itek.norut.no with SMTP id AA19106 (5.65c8+/IDA-1.4.4 
          for <dbi-users@fugue.com>); Fri, 8 Nov 1996 14:24:58 +0100
Received: from sigvart by embert (950413.SGI.8.6.12) id OAA09473;
          Fri, 8 Nov 1996 14:25:09 +0100
Message-Id: <32833432.446B@itek.norut.no>
Date: Fri, 08 Nov 1996 14:22:58 +0100
From: Monika Lie Larsen <Monika.Lie.Larsen@itek.norut.no>
Organization: NORUT IT
X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22)
Mime-Version: 1.0
To: descarte@hermetica.com
Cc: dbi-users@fugue.com
Subject: Re: Re: Informix - What am I missing??
References: <199611081257.MAA07415@chewbacca.hermetica.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Charset: LATIN1
X-Char-Esc: 29

- And what was that about the networking layer?

descarte@hermetica.com wrote:

> Once you've built the library, you can install the module on a host that
> doesn't have Informix installed ( apart from the networking layer, I think ).

(OK, I'll shut up now)
Monika Lie Larsen
NORUT IT
9005 Tromso, Norway
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13854-7@oink>;
          Fri, 8 Nov 1996 14:24:31 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847461774:08753:23; Fri, 08 Nov 96 14:02:54 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08808; 8 Nov 96 14:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10186 for dbi-users-real; Fri, 8 Nov 1996 05:15:30 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from itek.norut.no (emma.itek.norut.no [193.156.106.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10182 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:15:27 -0800 (PST)
Received: from embert by itek.norut.no with SMTP id AA18850 (5.65c8+/IDA-1.4.4 
          for <dbi-users@fugue.com>); Fri, 8 Nov 1996 14:15:16 +0100
Received: from sigvart by embert (950413.SGI.8.6.12) id OAA09464;
          Fri, 8 Nov 1996 14:15:20 +0100
Message-Id: <328331E4.2781@itek.norut.no>
Date: Fri, 08 Nov 1996 14:13:08 +0100
From: Monika Lie Larsen <Monika.Lie.Larsen@itek.norut.no>
Organization: NORUT IT
X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22)
Mime-Version: 1.0
To: descarte@hermetica.com
Cc: dbi-users@fugue.com
Subject: Re: Informix - What am I missing??
References: <199611081257.MAA07415@chewbacca.hermetica.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Charset: LATIN1
X-Char-Esc: 29

descarte@hermetica.com wrote:

> Hm, sounds like you're going to have big problems........8-)

Dearest Alligator, I was expecting some supportive cheering on here!

Monika,
considering early retirement.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13854-9@oink>;
          Fri, 8 Nov 1996 14:24:38 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847461831:09263:1; Fri, 08 Nov 96 14:03:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08246; 8 Nov 96 14:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10209 for dbi-users-real; Fri, 8 Nov 1996 05:22:44 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from limmat (limmat.switch.ch [130.59.4.30]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id FAA10205 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:22:37 -0800 (PST)
Message-Id: <199611081322.FAA10205@toccata.fugue.com>
Received: from limmat.switch.ch (actually limmat) by limmat with SMTP (PP);
          Fri, 8 Nov 1996 14:15:26 +0100
X-Mailer: exmh version 1.6.9 8/22/96
To: descarte@hermetica.com
cc: robin@igis.se, dbi-users@fugue.com
Subject: Re: 8-bit text problem (solved)
In-reply-to: Message from descarte@hermetica.com of "Fri, 08 Nov 1996 12:58:06 +0000." <199611081258.MAA07423@chewbacca.hermetica.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 08 Nov 1996 14:15:25 +0100
From: Martin Berli <berli@switch.ch>


> > >   $ENV{NLS_LANG}  = "american_america.we8iso8859p1";
> > >   $ENV{ORA_NLS}   = "/home/oracle/ocommon/nls/admin/data";
> > >  $ENV{ORA_NLS32} = "/home/oracle/ocommon/nls/admin/data";
> > 
> > I have set this variables, but oraperl still inserts 7 bit values into
> > the database. When I do it manually with sqlplus, no problem. So it must
> > have to do with oraperl. Any idea?
> 
> It can't have something to do with Oraperl. Oraperl uses exactly the same
> connection and client-side code as Oraperl does!
> 
> Did you set the variables *correctly*? I've had no problems at all getting
> this to work.

I solved the problem: The reason was, that I made DBD-Oracle with Oracle 7.2.3
libraries, because 'make test' never succeded with *7.3.2*. The files under
$ORACLE_HOME/ocommon/nls/admin/data have different extensions:

  7.2.3 :  *.d

  7.3.2 :  *.nlb

With a 'truss testscript' and a grep for nls I found

access("/opt/oracle/mp/app/oracle/product/7.3.2/ocommon/nls/admin/data/lx1boot.d
", 0) Err#2 ENOENT

Now I knew that I had to set the nls variables to 7.2.3., and, yes, it worked.

Martin

P.S. Anyone succeeded to make and 'make test' DBD-Oracle-0.43 with
     Oracle 7.3.* on Solaris 2.5? I'd prefer not to have this mixture of
     libraries (client uses 7.2.3, server is 7.3.2).

  

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13854-11@oink>;
          Fri, 8 Nov 1996 14:24:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847462006:09930:76; Fri, 08 Nov 96 14:06:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08960; 8 Nov 96 14:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10198 for dbi-users-real; Fri, 8 Nov 1996 05:17:35 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-5.mail.demon.net (punt2.demon.co.uk [194.217.242.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10194 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:17:32 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id ad608734; 8 Nov 96 13:01 GMT
Received: from toad by oink with SMTP (PP) id <12855-0@oink>;
          Fri, 8 Nov 1996 12:04:33 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14617;
          Fri, 8 Nov 1996 12:04:26 +0000
Date: Fri, 8 Nov 1996 12:04:26 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081204.AA14617@toad.ig.co.uk>
To: dbi-users@fugue.com, byeffort@ns.minessoft.co.kr
Subject: Re: about Microsoft SQL...
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: park <byeffort@ns.minessoft.co.kr>
> 
> Hi~ I'm korean. 
> I found Hermetica today, while I study about perl and Microsoft SQL..
> How can I use ODBC to access Microsoft SQL with perl?
> Is it possible that your DBI can use ODBC?

You don't mention what operating system you are using.

If it's windows then try the Win32::ODBC module (use a web search to
find it).

If using unix then try the Sybase modules (available on CPAN ftp sites).

Neither of these are supported on this mailing list.

I hope that helps.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13854-14@oink>;
          Fri, 8 Nov 1996 14:24:57 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847462567:13753:11; Fri, 08 Nov 96 14:16:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13796; 8 Nov 96 14:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10226 for dbi-users-real; Fri, 8 Nov 1996 05:25:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-5.mail.demon.net (punt2.demon.co.uk [194.217.242.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10222 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:25:46 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id al608734; 8 Nov 96 13:04 GMT
Received: from toad by oink with SMTP (PP) id <13214-0@oink>;
          Fri, 8 Nov 1996 12:32:58 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14883;
          Fri, 8 Nov 1996 12:32:51 +0000
Date: Fri, 8 Nov 1996 12:32:51 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081232.AA14883@toad.ig.co.uk>
To: dbi-users@fugue.com, bm745512@muenchen.org
Subject: Re: DBI conformity of different DBDs
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Christoph Bernhardt <bm745512@muenchen.org>
> 
> I started with MSql and now the situation arises where more performance
> on the DB side is needed. My idea was to just exchange DB and DBD to
> increase my application's performance (say by using Oracle). This should
> not incurr any (ok, a small) migration effort due to the philosophy of
> DBI.
> 
> Now, looking at DBD-Oracle, I am not so sure any more since all examples
> allways use the Oraperl emulation and never the native DBI interface
> that my existing code relies on.
> 
> Could somebody enlighten me whether the Oraperl emulation is just what
> the name says it is, namely the emulation of a very popular Oracle-Perl
> interface on top of the DBI interface; or is Oraperl the only _usable_
> interface existing for Oracle, at the moment.

The DBD::Oracle interface is very usable. The Oraperl emulation uses it!
The issue is more one of stability (in the medium to long term).

> And I know that I don't really know what I am talking about, since I
> don't have any Oracle installation handy right now to try it out myself.
> But I know that an answer to the above question would make me sleep
> better these days (or worse, for that matter).

Sleep easy and we'll fight any fires as the happen. Case by case.

It'll be very interesting to see how this migration goes. (But I know
nothing of DBD::Msql).

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13893-0@oink>;
          Fri, 8 Nov 1996 14:28:20 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847463213:17537:68; Fri, 08 Nov 96 14:26:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17412; 8 Nov 96 14:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10266 for dbi-users-real; Fri, 8 Nov 1996 05:34:48 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10262 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 05:34:44 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id am608734; 8 Nov 96 13:04 GMT
Received: from toad by oink with SMTP (PP) id <13317-0@oink>;
          Fri, 8 Nov 1996 12:55:23 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14966;
          Fri, 8 Nov 1996 12:55:15 +0000
Date: Fri, 8 Nov 1996 12:55:15 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081255.AA14966@toad.ig.co.uk>
To: cckathy@cypress.mcsr.olemiss.edu, descarte@hermetica.com, 
    johnl@informix.com
Subject: Re: DBD Informix v0.24 compile problems
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: johnl@informix.com (Jonathan Leffler)
> 
> extern SV *dbd_st_readblob _((SV *sth, int field, long offset, long len, SV *destsv));

That function was renamed to dbd_st_blob_read in DBD::Oracle some time ago.
It has a destoffset arg as well. It now looks like:

int     dbd_st_blob_read _((SV *sth, int field, long offset, long len,
            SV *destrv, long destoffset));

> I attach my latest working version of Makefile.PL which doesn't ask
> you questions

It is well worth automating the config. It'll save you many hours
of answering the same questions over and over in email :-)

I've probably put as much work into DBD::Oracle's Makefile.PL as I
have into the main code but it's been worth it. (DBD::Oracle's Makefile.PL
is _way_ more complex than you're likely to need but the code above
the WriteMakefile() call should show you how to make most changes.)

> print "Remember to actually read the README file!\n\n";

I hope this works better for you than it has for me :-)

> $opts{DEFINE} = '-Wall -pedantic -Wno-comment -Wpointer-arith -Wcast-align'
> 	    . ' -Wconversion -Wtraditional -Wpointer-arith'
> 	    . ' -Wcast-qual'
> 	if $Config{cc} eq 'gcc';	# Just me asking gcc to be paranoid.

If some of those cause warnings that are not relevant then it might be
best to only enable them when 'you' execute the Makefile.PL.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14228-0@oink>;
          Fri, 8 Nov 1996 14:36:24 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847463595:19413:77; Fri, 08 Nov 96 14:33:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa20036; 8 Nov 96 14:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id FAA10337 for dbi-users-real; Fri, 8 Nov 1996 05:50:24 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id FAA10329;
          Fri, 8 Nov 1996 05:50:21 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa608734; 8 Nov 96 13:01 GMT
Received: from toad by oink with SMTP (PP) id <12745-0@oink>;
          Fri, 8 Nov 1996 11:27:06 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14355;
          Fri, 8 Nov 1996 11:26:58 +0000
Date: Fri, 8 Nov 1996 11:26:58 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081126.AA14355@toad.ig.co.uk>
To: mlaw@umich.edu, mellon@fugue.com
Subject: Re: HELP please on getting me off this list!
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Ted Lemon <mellon@fugue.com>
> 
> Of course, you could also have read the message I sent out last night
> with instructions on how to unsubscribe.   Sigh.   Sometimes I feel
> like I'm talking to a brick wall.

Ah yes, that'll be the one I know well.

:-(

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14504-1@oink>;
          Fri, 8 Nov 1996 15:11:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847465479:01622:65; Fri, 08 Nov 96 15:04:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa01486; 8 Nov 96 15:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10424 for dbi-users-real; Fri, 8 Nov 1996 06:12:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA10408;
          Fri, 8 Nov 1996 06:07:58 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id af608734; 8 Nov 96 13:01 GMT
Received: from toad by oink with SMTP (PP) id <12920-0@oink>;
          Fri, 8 Nov 1996 12:20:29 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14802;
          Fri, 8 Nov 1996 12:20:20 +0000
Date: Fri, 8 Nov 1996 12:20:20 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081220.AA14802@toad.ig.co.uk>
To: dbi-users@fugue.com, ht@datani.dk
Subject: Re: DBD::Ingperl
Cc: dbi-dev@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Henrik Tougaard <ht@datani.dk>
> 
> I was going to wait until I had something ready for distribution,

Generally a bad idea. Discussion early save many, possibly expensive
blind alleys.

> but as there seems to be considerable demand for it I'll own up now.

Thanks. It's also avoids duplication of effort.

> I am currently writing on a DBD::Ingres in my copious spare time
> (the train rides to and from work ;-). I hope to have something ready
> for debugging in a few (read 2-4) weeks. But dont hold your breath...

:-)

> I have modelled it very closely on the DBD::Oracle-0.43 - but as Ingres
> doesn't have blobs (yet) I have removed all that.

Best to #ifdef out the core of the code and return an error rather
than delete it.

> Ingres has no bind capability (or at least no usefull one),

Care to explain?

> so there is no need for reexecution af a statement after close.
> I modified dbd_st_finish so that it closes the cursor (yeah I know Tim
> I shouldn't....).

It depends on the definition of 'close'.

Are you working on Ingres 6.4 (or OpenIngres or 'University Ingres')?

> I'll stick my head out again when The darn thing compiles without too many
> errors.

Thanks.
 
> Henrik Tougaard,     ht@datani.dk
> Datani A/S, Software Consultants, Copenhagen, Denmark
> 
> BTW: what do you call the stage before alpha? The DBD::Oracle is still
> alpha but is in production several places (we use it too). This is (will
> be) several ligthyears behind - what shall I call it ;-P

Alpha. I think I called DBD::Oracle 'alpha' from it's first build.

All DBD developments should be discussed on the dbi-dev mailing list.
I look forward to your reply there.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14504-3@oink>;
          Fri, 8 Nov 1996 15:12:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847465808:03940:49; Fri, 08 Nov 96 15:10:08 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03948; 8 Nov 96 15:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10436 for dbi-users-real; Fri, 8 Nov 1996 06:17:58 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from berk.mail.netforce.net (berk.mail.netforce.net [194.73.237.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id GAA10432 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:17:54 -0800 (PST)
Received: from jim.i.netforce.net (gateway-1-e0.route.netforce.net [194.73.236.7]) 
          by berk.mail.netforce.net (8.7.5/8.7.3) with SMTP id OAA05224;
          Fri, 8 Nov 1996 14:22:57 GMT
Date: Fri, 8 Nov 1996 14:16:25 +0000 (GMT)
From: Mathew Booth <mbooth@netforce.net>
Reply-To: Mathew Booth <mbooth@netforce.net>
Subject: UNSUBSCRIBE
To: descarte@hermetica.com
cc: dbi-users@fugue.com
In-Reply-To: <199611081258.MAA07423@chewbacca.hermetica.com>
Message-ID: <ML-2.2.847462585.1109.mbooth@jim.i.netforce.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

PLEASE PLEASE PLEASE PLEASE PLEASE

COULD YOU MAKE IT CLEARER HOW TO TERMINATE YOUR SUBSCRIPTION TO THIS MAILING
LIST! PLEASE HELP! MAKE IT MUCH CLEARER PERHAPS A HEADER ON EACH eMAIL WOULD DO
THE JOB?!!


THANKYOU!!
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-0@oink>;
          Fri, 8 Nov 1996 18:00:52 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847465924:03925:122; Fri, 08 Nov 96 15:12:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa04374; 8 Nov 96 15:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10512 for dbi-users-real; Fri, 8 Nov 1996 06:28:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-6.mail.demon.net (punt2.demon.co.uk [194.217.242.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA10508 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:28:29 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id ak608734; 8 Nov 96 13:04 GMT
Received: from toad by oink with SMTP (PP) id <13017-0@oink>;
          Fri, 8 Nov 1996 12:30:15 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14877;
          Fri, 8 Nov 1996 12:29:59 +0000
Date: Fri, 8 Nov 1996 12:29:59 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081229.AA14877@toad.ig.co.uk>
To: dbi-users@fugue.com, francesco@glamm.com
Subject: Re: Informix - What am I missing??
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Francesco Pasqualini <francesco@glamm.com>
> Subject: Re: Informix - What am I missing??
> 
> At 10.19 08/11/96 +0100, you wrote:
> >Our web server needs to talk to several databases, including Illustra
> >and Informix - both of which are complete strangers to me. So,
> >attempting to keep it that way, I've assumed that the perl DBI would do
> >the talking, given the right DBDs. 
> 
> I' m also interested to know if there exist a DBD for Illustra.

Not that I know of.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-2@oink>;
          Fri, 8 Nov 1996 18:00:59 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847466120:06321:18; Fri, 08 Nov 96 15:15:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03000; 8 Nov 96 15:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10504 for dbi-users-real; Fri, 8 Nov 1996 06:27:08 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from nontri.ku.ac.th (root@nontri.ku.ac.th [158.108.2.71]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id GAA10498 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:27:02 -0800 (PST)
Received: from consyl211.cpe.ku.ac.th (consyl211.cpe.ku.ac.th [158.108.32.211]) 
          by nontri.ku.ac.th (8.8.2/8.7.3) with ESMTP id VAA09564 
          for <<dbi-users@fugue.com>>; Fri, 8 Nov 1996 21:30:19 -0700 (GMT)
Message-Id: <199611090430.VAA09564@nontri.ku.ac.th>
From: Poon Rojanasoonthon <b36prs@ku.ac.th>
To: "<" <dbi-users@fugue.com>
Subject: Make a temp ?
Date: Fri, 8 Nov 1996 21:25:40 +0700
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=Windows-874
Content-Transfer-Encoding: 7bit

Dear all,
	I'm using Informix DBD. I wanted to optimize my query using 'temp' table.
	I used command
	dbh->do("select * from regs where stdid="36051449" into temp t");

	Why it report about the CURSOR not on SELECT statement ?

Regards,
Poon Rojanasoonthon
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-6@oink>;
          Fri, 8 Nov 1996 18:01:18 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847466893:11389:33; Fri, 08 Nov 96 15:28:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08306; 8 Nov 96 15:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10558 for dbi-users-real; Fri, 8 Nov 1996 06:34:11 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ns (ns.ny.poppe.com [204.33.62.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA10554 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:34:09 -0800 (PST)
Received: from smtplink.ny.poppe.com by ns with SMTP (SMI-8.6/GNP:1.02) 
          id JAA07747; Fri, 8 Nov 1996 09:33:27 -0500
Received: from ccMail by smtplink.ny.poppe.com (IMA Internet Exchange 1.04b) 
          id 2836f9f0; Fri, 8 Nov 96 09:36:31 -0800
Mime-Version: 1.0
Date: Fri, 8 Nov 1996 09:34:26 -0800
Message-ID: <2836f9f0@ny.poppe.com>
From: spaparge@ny.poppe.com (Stella Papargeris)
Subject: UNSUBSCRIBE
Cc: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

     
How can I unsunscribe?
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-9@oink>;
          Fri, 8 Nov 1996 18:01:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847467411:14446:46; Fri, 08 Nov 96 15:36:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14097; 8 Nov 96 15:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10610 for dbi-users-real; Fri, 8 Nov 1996 06:48:08 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from Teapot06.onaustralia.com.au (mail.onaustralia.com.au [139.134.5.225]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA10605 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:47:41 -0800 (PST)
Received: from Teapot06.onaustralia.com.au 
          by Teapot06.onaustralia.com.au (NTMail 3.02.10) with ESMTP 
          id ia064904 for <dbi-users@fugue.com>; Sat, 9 Nov 1996 01:47:48 +1100
Received: by sy-a02-pool-168.tmns.net.au with Microsoft Mail 
          id <01BBCDDE.F81E7500@sy-a02-pool-168.tmns.net.au>;
          Sat, 9 Nov 1996 01:40:21 +-1100
Message-ID: <01BBCDDE.F81E7500@sy-a02-pool-168.tmns.net.au>
From: Marcel Davis <mdavis@onaustralia.com.au>
To: "dbi-users@fugue.com" <dbi-users@fugue.com>
Subject: unsubscribe
Date: Sat, 9 Nov 1996 01:39:47 +-1100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

unsubscribe

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-11@oink>;
          Fri, 8 Nov 1996 18:01:49 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847467878:17759:8; Fri, 08 Nov 96 15:44:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa15617; 8 Nov 96 15:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10518 for dbi-users-real; Fri, 8 Nov 1996 06:28:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bnl.gov (bnl.gov [130.199.128.163]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id GAA10514 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 06:28:38 -0800 (PST)
Received: from sun10.sep.bnl.gov.sep (sun10.sep.bnl.gov [130.199.50.6]) 
          by bnl.gov (8.7.5/8.7.1) with SMTP id JAA01463;
          Fri, 8 Nov 1996 09:28:35 -0500 (EST)
Received: by sun10.sep.bnl.gov.sep (4.1/SMI-4.1) id AA17167;
          Fri, 8 Nov 96 09:31:00 EST
From: sailer@sun10.sep.bnl.gov (Tim Sailer)
Message-Id: <9611081431.AA17167@sun10.sep.bnl.gov.sep>
Subject: Re: DBI conformity of different DBDs
To: bm745512@muenchen.org (Christoph Bernhardt)
Date: Fri, 8 Nov 1996 09:31:00 -0500 (EST)
Cc: dbi-users@fugue.com
In-Reply-To: <328307EC.54D75030@muenchen.org> from "Christoph Bernhardt" at Nov 8, 96 11:14:04 am
X-Mailer: ELM [version 2.4 PL22]
Content-Type: text

In your email to me, Christoph Bernhardt, you wrote:
> 
> Hi!
> 
> And I really hope this is not too much of a FAQ...
> 
> When I started a WEB project some time ago I was 'shopping' for a db
> access layer for Perl, too. I chose DBI since it promised to be very DB
> independant as long as DBDs existed for all DBs in question.
> 
> I started with MSql and now the situation arises where more performance
> on the DB side is needed. My idea was to just exchange DB and DBD to

There is another free db (mysql) based in concept on msql, but
much faster and richer. There is a sparc port available from
 http://www.tcx.se/, with a threaded linux port within a week or so.

From the authors announcement:

Short description of features:
 
- Multithreaded (one thread/connections)
- Uses little memory. Uses a per query memory management with is freed
  after every query. Typical dynamic use is 8K/running query.
  (+ record cache / key cache / sort cache if you have the memory and want more speed)
  Tested with purify.
- multi join optimisation (almost all queries are done in one phase)
- Constant table propagation
- distinct optimisation with is of O(1) speed.
- Count(*) optimisation.
- B tree (ISAM) keys with keys on one file and records in another
  file. Alpha keys may be packed (space compression and incremental store)
- Very fast file index sort (doesn't sort tables, only keys and pointers to
  records, which minimizes disk usage. Uses temporary files if needed)
- alias for fields and tables
  'select table.date as "Current date" from customer_table as table
   group by "Current date"'
- Uses HEAP tables for intermediate tables. (In memory tables with
  TRUE dynamic hashing)
- UNIREG compatible tables (Only important for our customers)
- Written in C and C++. Compiled with gcc 2.7.2
- Supports like on any field.
- Fixed or dynamic strings. (Fixed records are much quicker).
- BLOB support (very large objects).
- Overlayed .MRG tables  (one can define a index file of tables with
  the same record layout with are treated as one file in msql. For
  example we save transactions in one table / month but use all tables
  (or a set of tables)  as one in mysql.
- Very easy to add new functions. 
- Extensive protection per user/table/host with possible password and understanding of
  local hosts.
- Possible logging of all queries and all ISAM updates.
- Can be configured to use file locking (for use with unireg or when
  using multiple mysqld processes),
- thread process list support
- Timestamp fields which are automaticly updated.
- Null fields.
- Default values for fields.
- Automatic conversion between char and num (ala perl) . For example
  the following works:
  select concat("this is version",3.9,"of mysql") from one_record_table;
- ODBC core level 1 (almost) with all major SQL functions and much
  more. For example the current works fine:
 
select 1+1,1-1,1+1*2,8/5,8%5,mod(8,5),-(1+1)*-2,abs(-1),floor(5.2),sign(-5) from one_record_tab
le ;
select concat("monty"," was here ","again"),length("hello"),locate("hello","he"),locate("hello"
,"he",2),locate("hello","lo",2) from one_record_table ;
select left("hello",2),right("hello",2),substring("hello",2,2),mid("hello",3,2) from one_record
_table;
select concat(left(right(concat("what ",concat("is ","happening")),9),4),substring("monty",5,1)
) from one_record_table;
select min(1,2),max(3,4,5) from one_record_table;
select NULL=NULL,0=0,1>0,1>=1,1<0,1<=0,strcmp("abc","abcd"),strcmp("b","a"),strcmp("a","a") fro
m one_record_table;
select !0,NOT 0=1,!(0=0),1 AND 1,1 && 0,0 OR 1,1 || NULL from one_record_table;
select period_add(one_record_table.period,-12),period_diff(199505,"9404") from one_record_table
;
select from_days(to_days("960101")),to_days(960201)-to_days("19960101"),to_days(curdate()+1)-to
_days(curdate()),weekday(to_days("1996-01-01")) from one_record_table;
 
 
- The following field types are supported:
  - one, two, three, four and eight bytes int  (signed and unsigned)
  - float, double
  - timestamp
  - BLOB (0-255, 0-65535 or 0-16777216 lengths)
  - CHAR and VARCHAR
 
  (If one uses a VARCHAR or BLOB type then mysql uses dynamic records,
  else fixed length records)
 
- mysql supports the following sql commands:
  create, select, drop, insert, update, delete
  Here select is the only one that works on multiple tables.
 

> increase my application's performance (say by using Oracle). This should
> not incurr any (ok, a small) migration effort due to the philosophy of
> DBI.
> 
> Now, looking at DBD-Oracle, I am not so sure any more since all examples
> allways use the Oraperl emulation and never the native DBI interface
> that my existing code relies on.
> 
> Could somebody enlighten me whether the Oraperl emulation is just what
> the name says it is, namely the emulation of a very popular Oracle-Perl
> interface on top of the DBI interface; or is Oraperl the only _usable_
> interface existing for Oracle, at the moment.


I mix the Oraperl stuff and the DBI stuff in the same script. You 
shouldn't have a problem.

Tim

PS: Sorry about the length. The author is writing a DBD-mysql

-- 
 (work) sailer@bnl.gov / (home) tps@buoy.com - http://www.buoy.com/~tps
		 "The squeaky wheel gets the grease,
  but gets changed at the next opportunity if it squeaks habitually."
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-19@oink>;
          Fri, 8 Nov 1996 18:04:11 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847469836:27675:230; Fri, 08 Nov 96 16:17:16 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00843; 8 Nov 96 16:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA10688 for dbi-users-real; Fri, 8 Nov 1996 07:03:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from fu-manchu.pindar.co.uk (root@fu-manchu.pindar.co.uk [194.193.96.10]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA10684 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 07:03:16 -0800 (PST)
Received: from [193.123.165.57] (york-ip57.pindar.co.uk [193.123.165.57]) 
          by fu-manchu.pindar.co.uk (8.6.11/8.6.9) with SMTP id PAA09039 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 15:01:36 GMT
Message-Id: <199611081501.PAA09039@fu-manchu.pindar.co.uk>
X-Sender: bw@fu-manchu.pindar.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 8 Nov 1996 15:01:16 -0500
To: dbi-users@fugue.com
From: bwilkinson@pindar.co.uk (Bob Wilkinson)
Subject: Re: DBI conformity of different DBDs

Tim Bunce wrote
>> From: Christoph Bernhardt <bm745512@muenchen.org>
>> 
>> I started with MSql and now the situation arises where more performance
>> on the DB side is needed. My idea was to just exchange DB and DBD to
>> increase my application's performance (say by using Oracle). This should
>> not incurr any (ok, a small) migration effort due to the philosophy of
>> DBI.
>> 
>> Now, looking at DBD-Oracle, I am not so sure any more since all examples
>> allways use the Oraperl emulation and never the native DBI interface
>> that my existing code relies on.
>> 
>> Could somebody enlighten me whether the Oraperl emulation is just what
>> the name says it is, namely the emulation of a very popular Oracle-Perl
>> interface on top of the DBI interface; or is Oraperl the only _usable_
>> interface existing for Oracle, at the moment.
>
>The DBD::Oracle interface is very usable. The Oraperl emulation uses it!
>The issue is more one of stability (in the medium to long term).
>
>> And I know that I don't really know what I am talking about, since I
>> don't have any Oracle installation handy right now to try it out myself.
>> But I know that an answer to the above question would make me sleep
>> better these days (or worse, for that matter).
>
>Sleep easy and we'll fight any fires as the happen. Case by case.
>
>It'll be very interesting to see how this migration goes. (But I know
>nothing of DBD::Msql).
>
>Tim.

Please note that Alligator Descartes has written a script to facilitate porting
data between database engines (Oracle,mSQL, and Informix) called dbmv. This
will help you move your data. Apologies if you already knew this.

Bob

________________________________________________________________
          Bob Wilkinson, Perl Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email: B.Wilkinson@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.connection.co.uk/bob
________________________________________________________________
  I don't speak for my employer - er, they made me say that..
________________________________________________________________


---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-23@oink>;
          Fri, 8 Nov 1996 18:04:43 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847469994:20533:892; Fri, 08 Nov 96 16:19:54 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29797; 8 Nov 96 16:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA10816 for dbi-users-real; Fri, 8 Nov 1996 07:30:15 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from asterix.danosi.dk (asterix.danosi.dk [193.88.50.70]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA10805 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 07:30:04 -0800 (PST)
Received: from flamenco. by asterix.danosi.dk (SMI-8.6/SMI-SVR4) id QAA01928;
          Fri, 8 Nov 1996 16:28:06 +0100
Received: from localhost by flamenco. (SMI-8.6/SMI-SVR4) id QAA02208;
          Fri, 8 Nov 1996 16:32:11 +0100
Date: Fri, 8 Nov 1996 16:32:10 +0100 (MET)
From: Soren Juul Moller <sjm@danosi.dk>
X-Sender: sjm@flamenco
To: Martin Berli <berli@switch.ch>
cc: robin@igis.se, dbi-users@fugue.com
Subject: Re: 8-bit text problem
In-Reply-To: <199611081125.DAA09882@toccata.fugue.com>
Message-ID: <Pine.GSO.3.94.961108162845.2190A-100000@flamenco>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 8 Nov 1996, Martin Berli wrote:

> > Make sure the following environment vaiables are set:
> >         NLS_LANG, ORA_NLS, ORA_NLS32
> > Thanks to Robin Langdon <robin@igis.se> for this information.
> > Example:
> >   $ENV{NLS_LANG}  = "american_america.we8iso8859p1";
> >   $ENV{ORA_NLS}   = "/home/oracle/ocommon/nls/admin/data";
> >  $ENV{ORA_NLS32} = "/home/oracle/ocommon/nls/admin/data";
> 
> I have set this variables, but oraperl still inserts 7 bit values into
> the database. When I do it manually with sqlplus, no problem. So it must
> have to do with oraperl. Any idea?

You have to create the database with
   create database SOMESID
     character set "WE8ISO8859P1"         <===  NB!
     datafile .....

The default is 7 bit ASCII

/sjm
--
Soren Juul Moller                          Danosi A/S
sjm@danosi.dk                              Lautrupbjerg 5
(+45) 4489 4959                            DK-2750 Ballerup

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-25@oink>;
          Fri, 8 Nov 1996 18:04:59 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847470035:27690:305; Fri, 08 Nov 96 16:20:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28922; 8 Nov 96 16:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA10799 for dbi-users-real; Fri, 8 Nov 1996 07:29:40 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from conrad.cbi.tamucc.edu (duff@conrad.cbi.tamucc.edu [165.95.1.129]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA10794 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 07:29:28 -0800 (PST)
Message-Id: <199611081529.HAA10794@toccata.fugue.com>
Received: by conrad.cbi.tamucc.edu (1.38.193.4/16.2) id AA18151;
          Fri, 8 Nov 1996 09:29:04 -0600
From: Jonathan Scott Duff <duff@cbi.tamucc.edu>
Subject: Re: Where to install DBD, DBI
To: bwilkinson@pindar.co.uk (Bob Wilkinson) (Bob Wilkinson)
Date: Fri, 8 Nov 96 9:29:04 CST
Cc: dbi-users@fugue.com
In-Reply-To: <199611071245.MAA14933@fu-manchu.pindar.co.uk>; from "Bob Wilkinson" at Nov 7, 96 12:45 (noon)
Mailer: Elm [revision: 70.85]

> You can modify the path Perl searches for libraries by :
> 
> 1. BEGIN{push @INC,/users/my_acct/DBD-Oracle-0.43/blib/lib;}
> 
> though this is deprecated as a method.
> 
> 2. A newer way to achieve the same is via
> 
> use lib /path/to/my/lib
> 
> However, I've not used this construct yet - not sure whether you name the lib
> you want to use or just the generic term "lib". 

Um... not to be pedantic or anything but 

   use lib '/path/to/my/lib';

really does

   BEGIN { unshift @INC, '/path/to/my/lib'; }

instead of push.

-Scott
--
Jonathan Scott Duff                     EMAIL: duff@cbi.tamucc.edu
Systems Programmer                      URL: http://www.cbi.tamucc.edu/~duff
Texas Coastal Ocean Observation Network
Conrad Blucher Institute for Surveying and Science      TEL: 512-994-2733
Texas A&M University-Corpus Christi                     FAX: 512-994-5704
6300 Ocean Drive, Corpus Christi  TX 78412-5503
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-27@oink>;
          Fri, 8 Nov 1996 18:05:15 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847470831:05108:209; Fri, 08 Nov 96 16:33:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa01251; 8 Nov 96 16:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA10697 for dbi-users-real; Fri, 8 Nov 1996 07:05:21 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from shark.amtrak.co.uk (shark.amtrak.co.uk [193.132.100.3]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id HAA10693 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 07:05:17 -0800 (PST)
Received: from lion.amtrak.co.uk (root@[192.9.201.1]) 
          by shark.amtrak.co.uk (8.7.3/8.7.3) with SMTP id PAA17372;
          Fri, 8 Nov 1996 15:07:53 GMT
Received: from redwood by lion.amtrak.co.uk (5.x/SMI-SVR4) id AA19396;
          Fri, 8 Nov 1996 15:07:36 GMT
Message-Id: <32834EAA.77BB@amtrak.co.uk>
Date: Fri, 08 Nov 1996 15:15:54 +0000
From: Simon Windsor <simon.windsor@amtrak.co.uk>
Organization: Amtrak Express Parcels
X-Mailer: Mozilla 3.0 (WinNT; I)
Mime-Version: 1.0
To: Christoph Bernhardt <bm745512@muenchen.org>
Cc: DBI Users Mail List <dbi-users@fugue.com>
Subject: Re: DBI conformity of different DBDs
References: <328307EC.54D75030@muenchen.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christoph Bernhardt wrote:
> 
> Hi!
> 
> And I really hope this is not too much of a FAQ...
> 
> When I started a WEB project some time ago I was 'shopping' for a db
> access layer for Perl, too. I chose DBI since it promised to be very DB
> independant as long as DBDs existed for all DBs in question.
> 
> I started with MSql and now the situation arises where more performance
> on the DB side is needed. My idea was to just exchange DB and DBD to
> increase my application's performance (say by using Oracle). This should
> not incurr any (ok, a small) migration effort due to the philosophy of
> DBI.
> 
> Now, looking at DBD-Oracle, I am not so sure any more since all examples
> allways use the Oraperl emulation and never the native DBI interface
> that my existing code relies on.
> 
> Could somebody enlighten me whether the Oraperl emulation is just what
> the name says it is, namely the emulation of a very popular Oracle-Perl
> interface on top of the DBI interface; or is Oraperl the only _usable_
> interface existing for Oracle, at the moment.
> 
> And I know that I don't really know what I am talking about, since I
> don't have any Oracle installation handy right now to try it out myself.
> But I know that an answer to the above question would make me sleep
> better these days (or worse, for that matter).
> 
> Thanks for any input
> 
> Christoph

Don't panic.

We currently use the DBI(0.73) and DBD-Oracle(0.43) using the standard
DBI syntax without any problems. Whilst currently we have only used
the Oracle driver, there is a strong possibility that we will need to
access data held in an Informix database, hence are choice to use the
DBI
syntax only.

Simon


-- 
+------------------+---------------+-----------------------------------+
! Simon Windsor    !               ! Email: simon.windsor@amtrak.co.uk !
!                  ! Company House !                                   !
! Software Analyst ! Tower Hill    ! Tel:   44 (0)117 927 2002 xt 448  !
!   Developer      ! Bristol       ! Fax:   44 (0)117 925 0013         !
!                  ! England       !                                   !
! Amtrak Express   ! BS2 0AZ       !                                   !
!     Parcels      !               !                                   !
!                  !               !                                   !
+------------------+---------------+-----------------------------------+
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-29@oink>;
          Fri, 8 Nov 1996 18:05:33 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847471050:05107:307; Fri, 08 Nov 96 16:37:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07091; 8 Nov 96 16:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id HAA10828 for dbi-users-real; Fri, 8 Nov 1996 07:31:11 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gate.moeninc.com (gate.moen.com [158.62.197.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id HAA10823 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 07:31:04 -0800 (PST)
Received: by gate.moeninc.com; id KAA01291; Fri, 8 Nov 1996 10:19:03 -0500
Received: from legend.hq_rde.moen.com(158.62.4.10) by gate.moeninc.com 
          via smap (V3.1) id xma001289; Fri, 8 Nov 96 10:18:55 -0500
Received: from i2xz17 by legend.hq_rde.moen.com 
          via ESMTP (950215.SGI.8.6.10/940406.SGI) 
          for <@legend.hq_rde.moen.com:dbi-users@fugue.com> id KAA27834;
          Fri, 8 Nov 1996 10:30:39 -0500
Received: by i2xz17 (940816.SGI.8.6.9/940406.SGI) for dbi-users@fugue.com 
          id KAA01489; Fri, 8 Nov 1996 10:30:39 -0500
From: jamon@moeninc.com (Jennifer R. Amon)
Message-Id: <9611081030.ZM1487@i2xz17>
Date: Fri, 8 Nov 1996 10:30:39 -0500
X-Mailer: Z-Mail (3.2.2 10apr95 MediaMail)
To: dbi-users@fugue.com
Subject: DBD::Oracle
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

>> Now, looking at DBD-Oracle, I am not so sure any more since all examples
>> allways use the Oraperl emulation and never the native DBI interface
>> that my existing code relies on.
>>
>> Could somebody enlighten me whether the Oraperl emulation is just what
>> the name says it is, namely the emulation of a very popular Oracle-Perl
>> interface on top of the DBI interface; or is Oraperl the only _usable_
>> interface existing for Oracle, at the moment.
>
>The DBD::Oracle interface is very usable. The Oraperl emulation uses it!
>The issue is more one of stability (in the medium to long term).

I'm glad someone else mentioned it. I'm relatively new to perl and very
new to Oraperl and DBD::Oracle. I have the latest versions loaded, ran the
tests, worked to so a few simple selects from my own database using
DBD::Oracle, and discovered it was difficult to locate code samples
of anything but the Oraperl syntax.

BTW, I'm not new to Oracle.

Since I'm starting out with perl5 and DBD::Oracle, it made sense to me to
use the DBD::Oracle directly, rather than the Oraperl emulation. Is that
not the case? Should I just use the emulation and be happy?

Also, I can get at my database from the same machine, but I'm having
trouble getting at it from a remote machine. I can use sqlplus from
the remote machine. I just specify the instance name in my username/
password string, and it finds the connect string in my tnsnames file.
The tnsnames file is accessible, as is the sqlplus executable because
ORACLE_HOME is nfs mounted onto the remote machine.

Will someone please point me to the part of the doc which will clarify
what I need to do here.

Thanks, and sorry for the newbie questions. All flames cheerfully ignored.

Jennifer Amon

-- 
_______________________________________________________________________
Jennifer R. Amon                Phone: 216-962-2000 ext. 2471
Sr. Programmer/Analyst            FAX: 216-962-2739
Moen Incorporated            Personal: jamon@apk.net           
25300 Al Moen Drive          Business: jamon@moeninc.com
North Olmsted, OH  44070          Web: http://junior.apk.net/~jamon/
_______________________________________________________________________
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-39@oink>;
          Fri, 8 Nov 1996 18:06:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847472677:20647:22; Fri, 08 Nov 96 17:04:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05169; 8 Nov 96 16:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id GAA10412 for dbi-dev-real; Fri, 8 Nov 1996 06:08:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id GAA10408;
          Fri, 8 Nov 1996 06:07:58 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id af608734; 8 Nov 96 13:01 GMT
Received: from toad by oink with SMTP (PP) id <12920-0@oink>;
          Fri, 8 Nov 1996 12:20:29 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA14802;
          Fri, 8 Nov 1996 12:20:20 +0000
Date: Fri, 8 Nov 1996 12:20:20 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081220.AA14802@toad.ig.co.uk>
To: dbi-users@fugue.com, ht@datani.dk
Subject: Re: DBD::Ingperl
Cc: dbi-dev@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Henrik Tougaard <ht@datani.dk>
> 
> I was going to wait until I had something ready for distribution,

Generally a bad idea. Discussion early save many, possibly expensive
blind alleys.

> but as there seems to be considerable demand for it I'll own up now.

Thanks. It's also avoids duplication of effort.

> I am currently writing on a DBD::Ingres in my copious spare time
> (the train rides to and from work ;-). I hope to have something ready
> for debugging in a few (read 2-4) weeks. But dont hold your breath...

:-)

> I have modelled it very closely on the DBD::Oracle-0.43 - but as Ingres
> doesn't have blobs (yet) I have removed all that.

Best to #ifdef out the core of the code and return an error rather
than delete it.

> Ingres has no bind capability (or at least no usefull one),

Care to explain?

> so there is no need for reexecution af a statement after close.
> I modified dbd_st_finish so that it closes the cursor (yeah I know Tim
> I shouldn't....).

It depends on the definition of 'close'.

Are you working on Ingres 6.4 (or OpenIngres or 'University Ingres')?

> I'll stick my head out again when The darn thing compiles without too many
> errors.

Thanks.
 
> Henrik Tougaard,     ht@datani.dk
> Datani A/S, Software Consultants, Copenhagen, Denmark
> 
> BTW: what do you call the stage before alpha? The DBD::Oracle is still
> alpha but is in production several places (we use it too). This is (will
> be) several ligthyears behind - what shall I call it ;-P

Alpha. I think I called DBD::Oracle 'alpha' from it's first build.

All DBD developments should be discussed on the dbi-dev mailing list.
I look forward to your reply there.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15037-48@oink>;
          Fri, 8 Nov 1996 18:08:41 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847475146:28554:666; Fri, 08 Nov 96 17:45:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23784; 8 Nov 96 17:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA11106 for dbi-users-real; Fri, 8 Nov 1996 08:29:14 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id IAA11087; Fri, 8 Nov 1996 08:28:51 -0800 (PST)
Message-Id: <199611081628.IAA11087@toccata.fugue.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: mlaw@umich.edu, dbi-users@fugue.com
Subject: Re: HELP please on getting me off this list!
In-reply-to: Your message of "Fri, 08 Nov 1996 11:26:58 GMT." <9611081126.AA14355@toad.ig.co.uk>
Date: Fri, 08 Nov 1996 08:28:47 -0800
From: Ted Lemon <mellon@fugue.com>


> Ah yes, that'll be the one I know well.

Sigh.   This is getting ridiculous.   I'm going to have to make time
to fix it.   Stay tuned - hopefully I'll get it done this weekend.

			       _MelloN_
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <15388-1@oink>;
          Fri, 8 Nov 1996 18:25:05 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847477460:5:15959:1; Fri, 08 Nov 96 18:24:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa621491; 8 Nov 96 18:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11423 for dbi-users-real; Fri, 8 Nov 1996 09:27:59 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA11402;
          Fri, 8 Nov 1996 09:24:51 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id RAA08079; Fri, 8 Nov 1996 17:37:06 GMT
Message-Id: <199611081737.RAA08079@chewbacca.hermetica.com>
Subject: READ THIS! DBD drivers
To: dbi-users@fugue.com
Date: Fri, 8 Nov 1996 17:35:50 +0000 (GMT)
Cc: Tim.Bunce@ig.co.uk, dbi-dev@fugue.com
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Would any people that are quietly beavering away on DBD drivers please own up?
I can do without any further shocks today, and narrowly avoided a 
complete duplication in effort regarding the mysql driver.

So, so far today, we've got DBD::Ingres and DBD::mysql. Any others? 

Thanks!

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15417-0@oink>;
          Fri, 8 Nov 1996 18:26:04 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847477376:28548:1518; Fri, 08 Nov 96 18:22:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14296; 8 Nov 96 18:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11356 for dbi-users-real; Fri, 8 Nov 1996 09:15:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from isurus.marinelab.sarasota.fl.us (root@isurus.marinelab.sarasota.fl.us [204.199.126.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id JAA11346 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 09:15:11 -0800 (PST)
Received: from mycteria.marinelab.sarasota.fl.us 
          by isurus.marinelab.sarasota.fl.us with smtp (Linux Smail3.2 #1) 
          id m0vLuWS-0011V5C; Fri, 8 Nov 1996 12:15:16 -0500 (EST)
Date: Fri, 8 Nov 1996 12:38:36 -0500 (EST)
From: Don Hayward <don@marinelab.sarasota.fl.us>
To: dbi-users@fugue.com
Subject: DBI install problem
Message-ID: <Pine.LNX.3.95.961108122848.19914B-100000@mycteria.marinelab.sarasota.fl.us>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Built, tested and installed perl5.003 -- OK 
perl -V tells me this is true.

Built and tested DBI-0.73 -- things seem ok.

make install returns:

Perl lib version (5.001) doesn't match executable version (5.003)
BEGIN failed--compilation aborted at /usr/lib/perl5/ExtUtils/Install.pm line 8.
BEGIN failed--compilation aborted.
make: *** [pure_site_install] Error 2

Did my jaw drop?  Can someone tell me how to get rid of the reference
to 5.001?  It is quite strange as I have been happily running 5.002
for several months and installed DBI with it.  Your time and help are
appreciated.  Thanks.

don

p.s.

I'm running linux-2.0.18 -- gcc-2.7.2.1 

Meanwhile I'll keep looking for traces of 5.001, myself. 

Don Hayward			don@marinelab.sarasota.fl.us
Mote Marine Laboratory		Voice: 941.388.4441
1600 Ken Thompson Parkway	Fax: 941.388.4312
Sarasota, FL 34236		See: http://www.marinelab.sarasota.fl.us/
Independent, non-profit, marine and estuarine research and education facility. 
require "disclaimer.pl"; # We run Linux

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <15507-0@oink>;
          Fri, 8 Nov 1996 18:34:57 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847478057:5:18600:4; Fri, 08 Nov 96 18:34:17 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa518626; 8 Nov 96 18:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11573 for dbi-users-real; Fri, 8 Nov 1996 09:48:54 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA11569 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 09:48:48 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.7.5/8.6.12) with SMTP id JAA21407;
          Fri, 8 Nov 1996 09:48:59 -0800 (PST)
Date: Fri, 8 Nov 1996 09:48:59 -0800 (PST)
From: James Cooper <pixel@organic.com>
To: "Jennifer R. Amon" <jamon@moeninc.com>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle
In-Reply-To: <9611081030.ZM1487@i2xz17>
Message-ID: <Pine.SOL.3.93.961108094412.21280B-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

> I'm glad someone else mentioned it. I'm relatively new to perl and very
> new to Oraperl and DBD::Oracle. I have the latest versions loaded, ran the
> tests, worked to so a few simple selects from my own database using
> DBD::Oracle, and discovered it was difficult to locate code samples
> of anything but the Oraperl syntax.

How about the example on the web site:
http://www.hermetica.com/technologia/DBI/examples/ex2.html

One note: if you're writing CGI scripts, make sure to set ORACLE_HOME and
ORACLE_SID environment variables.

> Also, I can get at my database from the same machine, but I'm having
> trouble getting at it from a remote machine. I can use sqlplus from
> the remote machine. I just specify the instance name in my username/
> password string, and it finds the connect string in my tnsnames file.
> The tnsnames file is accessible, as is the sqlplus executable because
> ORACLE_HOME is nfs mounted onto the remote machine.

Sure, this is definately possible.  The trick is the connection call:

$drh = DBI->install_driver('Oracle');
$dbh = $drh->connect('@tns_alias_here', 'scott', 'tiger');

That should do it....btw, you *do* need the @ sign (Tim, pounce on me if
I'm wrong...this is how I've done it)

You'll definately need ORACLE_HOME set (which you have done)...

...

Cheers,

-- James

---------------------
James Paul Cooper
Organic Online
pixel@organic.com

---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16727-0@oink>;
          Fri, 8 Nov 1996 19:55:28 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847479015:6:28099:2; Fri, 08 Nov 96 18:50:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa628066; 8 Nov 96 18:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA11656 for dbi-users-real; Fri, 8 Nov 1996 10:10:53 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from isurus.marinelab.sarasota.fl.us (root@isurus.marinelab.sarasota.fl.us [204.199.126.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA11652 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 10:10:48 -0800 (PST)
Received: from mycteria.marinelab.sarasota.fl.us 
          by isurus.marinelab.sarasota.fl.us with smtp (Linux Smail3.2 #1) 
          id m0vLvOH-0011V9C; Fri, 8 Nov 1996 13:10:53 -0500 (EST)
Date: Fri, 8 Nov 1996 13:34:13 -0500 (EST)
From: Don Hayward <don@marinelab.sarasota.fl.us>
To: dbi-users@fugue.com
Subject: DBI Install OK
Message-ID: <Pine.LNX.3.95.961108132926.19914C-100000@mycteria.marinelab.sarasota.fl.us>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Please ignore the previous post.  I found the problem -- Config.pm in
/usr/lib/perl5 had read-only permissions and hadn't been overwritten
in the perl install.  Installed it by hand and things are OK.
Sorry to trouble.  Thanks.

don


Don Hayward			don@marinelab.sarasota.fl.us
Mote Marine Laboratory		Voice: 941.388.4441
1600 Ken Thompson Parkway	Fax: 941.388.4312
Sarasota, FL 34236		See: http://www.marinelab.sarasota.fl.us/
Independent, non-profit, marine and estuarine research and education facility. 
require "disclaimer.pl"; # We run Linux

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16729-0@oink>;
          Fri, 8 Nov 1996 19:55:42 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847478892:28218:281; Fri, 08 Nov 96 18:48:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa24289; 8 Nov 96 17:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id IAA11037 for dbi-users-real; Fri, 8 Nov 1996 08:20:12 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from sun.silverline.com (sun.silverline.com [38.254.82.6]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id IAA11033 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 08:20:05 -0800 (PST)
Received: from sii-chicago.il.silverline.com 
          by sun.silverline.com (SMI-8.6/SMI-SVR4) id LAA20867;
          Fri, 8 Nov 1996 11:20:04 -0500
Received: from SII-CHICAGO/MAIL by sii-chicago.il.silverline.com (Mercury 1.21);
          8 Nov 96 11:12:04 +0600
Received: from MAIL by SII-CHICAGO (Mercury 1.21); 8 Nov 96 11:11:57 +0600
From: Mandar Paranjape <mandarp@sii-chicago.il.silverline.com>
Organization: Silverline Industries Inc.
To: dbi-users@fugue.com
Date: Fri, 8 Nov 1996 11:11:53 CST
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: unsubscribe
Reply-to: mandarp@silverline.com
X-Confirm-Reading-To: mandarp@silverline.com
X-pmrqc: 1
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <1A963CC239D@sii-chicago.il.silverline.com>



-------------------------------------------------------
Mandar Paranjape        
Email: mandarp@silverline.com  
-------------------------------------------------------

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16729-9@oink>;
          Fri, 8 Nov 1996 19:56:19 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847480574:09539:345; Fri, 08 Nov 96 19:16:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa12642; 8 Nov 96 19:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA11766 for dbi-users-real; Fri, 8 Nov 1996 10:35:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id KAA11759; Fri, 8 Nov 1996 10:35:16 -0800 (PST)
Message-Id: <199611081835.KAA11759@toccata.fugue.com>
To: Mathew Booth <mbooth@netforce.net>
cc: descarte@hermetica.com, dbi-users@fugue.com
Subject: HOW TO UNSUBSCRIBE!!!!!!!@#!@#!@$@!@@!@!@#@@!!
In-reply-to: Your message of "Fri, 08 Nov 1996 14:16:25 GMT." <ML-2.2.847462585.1109.mbooth@jim.i.netforce.net>
Date: Fri, 08 Nov 1996 10:35:12 -0800
From: Ted Lemon <mellon@fugue.com>


> COULD YOU MAKE IT CLEARER HOW TO TERMINATE YOUR SUBSCRIPTION TO THIS
> MAILING LIST! PLEASE HELP! MAKE IT MUCH CLEARER PERHAPS A HEADER ON
> EACH eMAIL WOULD DO THE JOB?!!

*Flame On*

I am sick and tired of all the lamebrains who can't be bothered to pay
attention to the unbelievably many messages that have been sent to
this list telling them how to unsubscribe, and also can't be bothered
to even *try* to figure it out on their own.  You figured out how to
subscribe - why is it too much trouble to figure out how to
unsubscribe?

I would very much like to have infinite time to hack features into the
mailing list manager that would help lamebrains to figure out how to
unsubscribe.  My time is at a very high premium, so I don't have time
to do that.  I'm probably going to make time this weekend anyway,
instead of spending time with my girlfriend, who is feeling somewhat
neglected right now, or working on the house, which desperately needs
it.  Thanks very much for forcing me to do this.

Duh.   If you see a message from somebody asking to unsubscribe,
obviously it didn't get to the right person - if it had, you wouldn't
have seen it, since you're *NOT* the right person.   So chiming in
with a message of your own asking to unsubscribe isn't going to do you
any good, is it?

If you don't know how to use your computer, *ASK SOMEBODY*!   You're
paying somebody for your Internet Connection.   If you ask them how to
unsubscribe from a mailing list, they'll probably be so amazed at your
conscientiousness that they'll practically kill themselves trying to
help you.   If you are at a company and your company is paying for
your connection, they're also probably paying somebody to support it.
ASK THEM FOR HELP!

If you feel that asking somebody for help would cause you to lose
face, then do some research.   Hunt the web looking for information
about mailing lists.   Buy a book on internet mail.   There are many
good books on this topic out there.

The Internet is a useful tool.  But it's not your servant.  People on
the net are not paid to help you, and often have other things to do
that more important for the common good than explaining things to you.
If we seem pissy, it's because we're providing service for free, and
you're expecting to be treated like royalty.

There's no magic here.  If you make *any* effort to figure out how to
unsubscribe, you will probably succeed, and if you don't succeed, you
will at least be treated with courtesy, having met us halfway.  If you
make no effort to do the right thing, you can expect to be flamed,
vilified, spurned and rejected.  This is the net's self-protection
mechanism.  Do your part, or get flamed.  That's the deal.

*Flame off*

			       _MelloN_
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16750-0@oink>;
          Fri, 8 Nov 1996 19:59:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847482980:12250:1665; Fri, 08 Nov 96 19:56:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14023; 8 Nov 96 19:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA11864 for dbi-users-real; Fri, 8 Nov 1996 10:46:33 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bnl.gov (bnl.gov [130.199.128.163]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id KAA11859 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 10:46:23 -0800 (PST)
Received: from sun10.sep.bnl.gov.sep (sun10.sep.bnl.gov [130.199.50.6]) 
          by bnl.gov (8.7.5/8.7.1) with SMTP id NAA18443;
          Fri, 8 Nov 1996 13:46:21 -0500 (EST)
Received: by sun10.sep.bnl.gov.sep (4.1/SMI-4.1) id AA05445;
          Fri, 8 Nov 96 13:48:45 EST
From: sailer@sun10.sep.bnl.gov (Tim Sailer)
Message-Id: <9611081848.AA05445@sun10.sep.bnl.gov.sep>
Subject: Re: DBI conformity of different DBDs
To: sailer@sun10.sep.bnl.gov (Tim Sailer)
Date: Fri, 8 Nov 1996 13:48:44 -0500 (EST)
Cc: bm745512@muenchen.org, dbi-users@fugue.com
In-Reply-To: <9611081431.AA17167@sun10.sep.bnl.gov.sep> from "Tim Sailer" at Nov 8, 96 09:31:00 am
X-Mailer: ELM [version 2.4 PL22]
Content-Type: text

In your email to me, Tim Sailer, you wrote:
> 
> In your email to me, Christoph Bernhardt, you wrote:
> > 
> > Hi!
> > 
> > And I really hope this is not too much of a FAQ...
> > 
> > When I started a WEB project some time ago I was 'shopping' for a db
> > access layer for Perl, too. I chose DBI since it promised to be very DB
> > independant as long as DBDs existed for all DBs in question.
> > 
> > I started with MSql and now the situation arises where more performance
> > on the DB side is needed. My idea was to just exchange DB and DBD to
> 
> There is another free db (mysql) based in concept on msql, but
> much faster and richer. There is a sparc port available from
>  http://www.tcx.se/, with a threaded linux port within a week or so.

To save answering all 100-odd emails, the address it:

http://192.58.197.26/

They seem to have some DNS problems..

Tim

-- 
 (work) sailer@bnl.gov / (home) tps@buoy.com - http://www.buoy.com/~tps
            "Very Pete Townshendish." "Who?" "Exactly."
 -- Anon
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-0@oink>;
          Sat, 9 Nov 1996 00:24:04 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847484739:09006:2884; Fri, 08 Nov 96 20:25:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05176; 8 Nov 96 20:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12120 for dbi-users-real; Fri, 8 Nov 1996 11:32:19 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ns1.computek.net (ns1.computek.net [204.96.11.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA12116 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:32:14 -0800 (PST)
Received: from bambam.computek.net (bambam.computek.net [207.13.21.250]) 
          by ns1.computek.net (8.7.6/8.6.9) with SMTP id NAA03368 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 13:32:01 -0600
Date: Fri, 8 Nov 1996 13:34:38 -0600 (CST)
From: M Bailey <bailey@computek.net>
To: dbi-users@fugue.com
Message-ID: <Pine.SUN.3.91.961108133415.1841B-100000@bambam.computek.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

unsubscribe
 
-Mike
	     My email, my opinions, nothing more nothing less 
**********************************************************************
*     Mike Bailey                    email bailey@computek.net       *
* pgp key server www-swiss.ai.mit.edu/~bal/pks-commands.html#extract *
* PGP fingerprint =  C3 3B 63 E9 57 4F D6 93  35 0D 66 16 47 28 05 22*
**********************************************************************

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-2@oink>;
          Sat, 9 Nov 1996 00:24:11 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847485148:09539:2945; Fri, 08 Nov 96 20:32:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11482; 8 Nov 96 20:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12209 for dbi-users-real; Fri, 8 Nov 1996 11:49:57 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from conrad.cbi.tamucc.edu (duff@conrad.cbi.tamucc.edu [165.95.1.129]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12205 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:49:50 -0800 (PST)
Message-Id: <199611081949.LAA12205@toccata.fugue.com>
Received: by conrad.cbi.tamucc.edu (1.38.193.4/16.2) id AA22656;
          Fri, 8 Nov 1996 13:49:44 -0600
From: Jonathan Scott Duff <duff@cbi.tamucc.edu>
Subject: Re: DBI conformity of different DBDs
To: sailer@sun10.sep.bnl.gov
Date: Fri, 8 Nov 96 13:49:42 CST
Cc: dbi-users@fugue.com
In-Reply-To: <9611081431.AA17167@sun10.sep.bnl.gov.sep>; from "Tim Sailer" at Nov 8, 96 9:31 am
Mailer: Elm [revision: 70.85]

> There is another free db (mysql) based in concept on msql, but
> much faster and richer. There is a sparc port available from
>  http://www.tcx.se/, with a threaded linux port within a week or so.

Umm... where can I get more info on mysql?  The above URL didn't work
for me, Alta Vista was less than helpful and archie just says "No matches"

thanks,

-Scott
--
Jonathan Scott Duff                     EMAIL: duff@cbi.tamucc.edu
Systems Programmer                      URL: http://www.cbi.tamucc.edu/~duff
Texas Coastal Ocean Observation Network
Conrad Blucher Institute for Surveying and Science      TEL: 512-994-2733
Texas A&M University-Corpus Christi                     FAX: 512-994-5704
6300 Ocean Drive, Corpus Christi  TX 78412-5503
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-8@oink>;
          Sat, 9 Nov 1996 00:24:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847486305:28214:4508; Fri, 08 Nov 96 20:51:45 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16971; 8 Nov 96 19:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id JAA11406 for dbi-dev-real; Fri, 8 Nov 1996 09:24:58 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id JAA11402;
          Fri, 8 Nov 1996 09:24:51 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id RAA08079; Fri, 8 Nov 1996 17:37:06 GMT
Message-Id: <199611081737.RAA08079@chewbacca.hermetica.com>
Subject: READ THIS! DBD drivers
To: dbi-users@fugue.com
Date: Fri, 8 Nov 1996 17:35:50 +0000 (GMT)
Cc: Tim.Bunce@ig.co.uk, dbi-dev@fugue.com
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Would any people that are quietly beavering away on DBD drivers please own up?
I can do without any further shocks today, and narrowly avoided a 
complete duplication in effort regarding the mysql driver.

So, so far today, we've got DBD::Ingres and DBD::mysql. Any others? 

Thanks!

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-10@oink>;
          Sat, 9 Nov 1996 00:24:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847486698:28214:4814; Fri, 08 Nov 96 20:58:18 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab19603; 8 Nov 96 19:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA11958 for dbi-users-real; Fri, 8 Nov 1996 11:00:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA11954 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:00:19 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa515469; 8 Nov 96 18:22 GMT
Received: from toad by oink with SMTP (PP) id <15361-0@oink>;
          Fri, 8 Nov 1996 18:22:16 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA15974;
          Fri, 8 Nov 1996 18:22:04 +0000
Date: Fri, 8 Nov 1996 18:22:04 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081822.AA15974@toad.ig.co.uk>
To: dbi-users@fugue.com, jamon@moeninc.com
Subject: Re: DBD::Oracle
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: jamon@moeninc.com (Jennifer R. Amon)
> 
> Since I'm starting out with perl5 and DBD::Oracle, it made sense to me to
> use the DBD::Oracle directly, rather than the Oraperl emulation. Is that
> not the case? Should I just use the emulation and be happy?

Depends on your definition of happiness. You can use either. It really
depends on how likely you are to be upset if I decide the interface
needs changing at some point down the road. Just don't shoot me!

As the DBD::* momentum appeasr to be building it's more likely that
I'll get pushed into adding ODBC concepts and support into the DBI.
At that point things may start chaning (but the core prepare,bind,
execute,fetch methods are very unlikely to change significantly).

> Also, I can get at my database from the same machine, but I'm having
> trouble getting at it from a remote machine. I can use sqlplus from
> the remote machine. I just specify the instance name in my username/
> password string, and it finds the connect string in my tnsnames file.
> The tnsnames file is accessible, as is the sqlplus executable because
> ORACLE_HOME is nfs mounted onto the remote machine.
> 
> Will someone please point me to the part of the doc which will clarify
> what I need to do here.

If you find one (beyond README.login) let me know!

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-15@oink>;
          Sat, 9 Nov 1996 00:24:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847487521:09006:5014; Fri, 08 Nov 96 21:12:01 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17532; 8 Nov 96 20:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12346 for dbi-users-real; Fri, 8 Nov 1996 12:02:20 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA12342 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:02:14 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id VAA08646; Fri, 8 Nov 1996 21:00:06 GMT
Message-Id: <199611082100.VAA08646@chewbacca.hermetica.com>
Subject: Re: Informix - What am I missing - Read this
To: lane@bienlogic.com (Lane Sharman)
Date: Fri, 8 Nov 1996 21:00:04 +0000 (GMT)
Cc: dbi-users@fugue.com
In-Reply-To: <1.5.4.32.19961108193526.0085e87c@199.106.143.65> from "Lane Sharman" at Nov 8, 96 11:35:26 am
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> The DBI/DBD does not support text/blob types!!!!

Uh-huh, as clearly stated on the WWW pages.

> How in the world can anyone implement a DBI and not support text fields > 255???

Simple. No time. You want BLOB support faster than my free time allows? You
pay.

But, as I said, the WWW pages warned you.

> -Lane

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-22@oink>;
          Sat, 9 Nov 1996 00:25:21 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847487865:09006:5269; Fri, 08 Nov 96 21:17:45 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa18309; 8 Nov 96 20:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12340 for dbi-users-real; Fri, 8 Nov 1996 12:01:31 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id MAA12336 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:01:28 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa624961; 8 Nov 96 18:37 GMT
Received: from toad by oink with SMTP (PP) id <15585-0@oink>;
          Fri, 8 Nov 1996 18:36:54 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16023;
          Fri, 8 Nov 1996 18:36:44 +0000
Date: Fri, 8 Nov 1996 18:36:44 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081836.AA16023@toad.ig.co.uk>
To: bm745512@muenchen.org, sailer@sun10.sep.bnl.gov
Subject: Re: DBI conformity of different DBDs
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: sailer@sun10.sep.bnl.gov (Tim Sailer)
> 
> There is another free db (mysql) based in concept on msql, but
> much faster and richer. There is a sparc port available from
>  http://www.tcx.se/, with a threaded linux port within a week or so.

I get domain name lookup failure. Is that address right?

> >From the authors announcement:
> 
> Short description of features:

They missed out "yet another new non-standard SQL syntax and function set"

:-|

What are the licence terms?

> PS: Sorry about the length. The author is writing a DBD-mysql

Who is the author?

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-25@oink>;
          Sat, 9 Nov 1996 00:25:31 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847488031:24969:661; Fri, 08 Nov 96 21:20:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab07754; 8 Nov 96 19:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id KAA11628 for dbi-users-real; Fri, 8 Nov 1996 10:07:28 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gateway.aromat.com ([158.118.51.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id KAA11623 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 10:07:23 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          8 Nov 1996 18:06:58 UT
Received: from wangj.nj.mew.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP 
          id AAA13318 for <dbi-users@fugue.com>; Fri, 8 Nov 1996 13:06:41 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: John Wang <wangj@aromat.com>
Subject: Re: Install DBD-Informix-0.24 on HP-UX
Date: Fri, 8 Nov 1996 13:06:41 -0400
Message-ID: <19961108180641.AAA13318@wangj.nj.mew.com>

>
>>Hi, there
>>
>>I'm trying to install DBD-Informix(.24) on my HP box, but I kept getting
following
>>error message:
>>        esql -e -I/usr/informix/dev/include -I/usr/local/perl5/lib
-I/usr/local/
>>perl5/lib/PA-RISC1.1/5.003 -I/usr/local/perl5/lib/site_perl/PA-RISC1.1/DBI
-I/us
>>r/local/perl5/lib/PA-RISC1.1/5.003/CORE dbdimp.ec
>>fgcl2: file "dbdimp.ec", line 580: type 'allocate' is unknown
>>fgcl2: file "dbdimp.ec", line 580: Syntax error on keyword or symbol
'demodesc0'
>>.(ccdeclare.y)
>>2 error(s) found
>>*** Error code 1
>>
>>Stop.
>>
>>I'm using Informix Online 5.0, esql/c 5.0, HP9.04.
>>Thanks in advance
>>
>>-john
>
>Humph.  Well, given what I see, it appears to me that you are using the
>I4GL program fglc2 as a surrogate for the ESQL/C compiler -- otherwise,
>fgcl2 makes no sense to me.  This suggests that if you run 'esql -V', you
>will see an Informix-4GL 4.1x version number.  The reason you are then
>seeing problems is that the 4.1x software does not understand ALLOCATE
>DESCRIPTOR etc.
>
>If you really have 5.0x ESQL/C on the system (you should be able to
>run $INFORMIXDIR/lib/esql/esqlc with the -V option if you have), then
>you need to get rid of the surrogate esql script, or at least make it
>non-executable.
>
> ....
>Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

Johnathan,

Thanks for your reply, I used $INFORMIXDIR/lib/esql/esqlc as the ESQL/C
compiler, and it
worked. Now I got another error message when I linked them(Sorry):
...
 LD_RUN_PATH="/usr/informix/dev/lib/esql:/lib/pa1.1" ld -o ./blib/arch/au
to/DBD/Informix/Informix.sl -b -L/usr/local/lib Informix.o dbdimp.o -L/usr/infor
mix/dev/lib -L/usr/informix/dev/lib   -L/usr/informix/dev/lib/esql -lsql -lgen -
los -lm 
ld: DP-Relative Code in file /usr/informix/dev/lib/esql/libsql.a(iqcursor.o) - S
hared Library must be Position-Independent 
*** Error code 1
...

Help, Please.

-John
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.	http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-29@oink>;
          Sat, 9 Nov 1996 00:25:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847488681:09006:6245; Fri, 08 Nov 96 21:31:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23628; 8 Nov 96 21:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12571 for dbi-users-real; Fri, 8 Nov 1996 12:28:51 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from toaster.quadravision.com (qvfw.quadravision.com [205.189.39.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA12562 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:28:40 -0800 (PST)
Received: from wintermute ([10.1.1.60]) 
          by toaster.quadravision.com (Netscape Mail Server v2.0) with SMTP 
          id AAA981 for <dbi-users@fugue.com>; Fri, 8 Nov 1996 15:29:03 -0400
Message-ID: <328397BC.43CB@quadravision.com>
Date: Fri, 08 Nov 1996 15:27:40 -0500
From: jchristensen@quadravision.com (Jordan Christensen)
Organization: Quadravision Communications
X-Mailer: Mozilla 3.0Gold (WinNT; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD::Oracle and Solaris 2.51
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I've just installed the DBI and DBD::Oracle packages on one of my
Sparc-20's, running Solaris 2.51. I had no problem running the tests,
but haven't had a chance to use it yet.

I looked at the DBD::Oracle page, and noticed that 2.51 wasn't listed as
a 'Known Working Platform'. Is this becuase it hadn't been tested, or
because there was a known problem?

Thanks,
Jordan Christensen
Quadravision Communications
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-31@oink>;
          Sat, 9 Nov 1996 00:25:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847488726:24970:1477; Fri, 08 Nov 96 21:32:06 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13161; 8 Nov 96 20:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12218 for dbi-users-real; Fri, 8 Nov 1996 11:50:21 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-5.mail.demon.net (punt2.demon.co.uk [194.217.242.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12214 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:50:16 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa623730; 8 Nov 96 18:32 GMT
Received: from toad by oink with SMTP (PP) id <15456-0@oink>;
          Fri, 8 Nov 1996 18:32:02 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16002;
          Fri, 8 Nov 1996 18:31:49 +0000
Date: Fri, 8 Nov 1996 18:31:49 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081831.AA16002@toad.ig.co.uk>
To: dbi-users@fugue.com, don@marinelab.sarasota.fl.us
Subject: Re: DBI install problem
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Don Hayward <don@marinelab.sarasota.fl.us>
> 
> Built, tested and installed perl5.003 -- OK 
> perl -V tells me this is true.
> 
> Built and tested DBI-0.73 -- things seem ok.
> 
> make install returns:
> 
> Perl lib version (5.001) doesn't match executable version (5.003)
> BEGIN failed--compilation aborted at /usr/lib/perl5/ExtUtils/Install.pm line 8.
> BEGIN failed--compilation aborted.
> make: *** [pure_site_install] Error 2
> 
> Did my jaw drop?  Can someone tell me how to get rid of the reference
> to 5.001?  It is quite strange as I have been happily running 5.002
> for several months and installed DBI with it.  Your time and help are
> appreciated.  Thanks.

> Meanwhile I'll keep looking for traces of 5.001, myself. 

Look for all the Config.pm's in your @INC path (or use find).

You've probably got one out of place. I seem to recall that Perl5.001
(sometimes?) installed it into the wrong place. Look inside it to
check the version. Delete it if you don't use 5.001 now.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-35@oink>;
          Sat, 9 Nov 1996 00:26:37 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847488986:24969:1708; Fri, 08 Nov 96 21:36:26 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id ab01716; 8 Nov 96 20:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12078 for dbi-users-real; Fri, 8 Nov 1996 11:26:32 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id LAA12074 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:26:27 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id LAA04139;
          Fri, 8 Nov 1996 11:26:06 -0800 (PST)
Message-Id: <1.5.4.32.19961108193526.0085e87c@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 08 Nov 1996 11:35:26 -0800
To: Francesco Pasqualini <francesco@glamm.com>, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Informix - What am I missing - Read this

We are right in the middle of a crisis conversion to Informix.

The DBI/DBD does not support text/blob types!!!!

How in the world can anyone implement a DBI and not support text fields > 255???

-Lane


At 11:53 AM 11/8/96 +0100, Francesco Pasqualini wrote:
>At 10.19 08/11/96 +0100, you wrote:
>>Our web server needs to talk to several databases, including Illustra
>>and Informix - both of which are complete strangers to me. So,
>>attempting to keep it that way, I've assumed that the perl DBI would do
>>the talking, given the right DBDs. 
>>
>
>I' m also interested to know if there exist a DBD for Illustra.
>
>Thank you.
>
>Francesco Pasqualini
>
>
>
>

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-38@oink>;
          Sat, 9 Nov 1996 00:26:48 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847489549:24970:2191; Fri, 08 Nov 96 21:45:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa29458; 8 Nov 96 19:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12087 for dbi-users-real; Fri, 8 Nov 1996 11:28:39 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from ns1.data-line.com ([206.27.240.35]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12083 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:28:35 -0800 (PST)
Received: by ns1.data-line.com; (5.65/1.1.8.2/23Aug95-0216PM) id AA30885;
          Fri, 8 Nov 1996 14:32:06 -0500
Date: Fri, 8 Nov 1996 14:32:05 -0500 (EST)
From: Mike Green <mgreen@NS1.data-line.com>
To: dbi-users@fugue.com
Subject: unsubscribe
Message-Id: <Pine.OSF.3.91.961108143127.30792A-100000@ns1.data-line.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-40@oink>;
          Sat, 9 Nov 1996 00:26:53 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847489737:24970:2390; Fri, 08 Nov 96 21:48:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa03534; 8 Nov 96 20:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12139 for dbi-users-real; Fri, 8 Nov 1996 11:33:55 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from gate.moeninc.com (gate.moen.com [158.62.197.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12134 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:33:41 -0800 (PST)
Received: by gate.moeninc.com; id OAA04091; Fri, 8 Nov 1996 14:21:33 -0500
Received: from legend.hq_rde.moen.com(158.62.4.10) by gate.moeninc.com 
          via smap (V3.1) id xma004081; Fri, 8 Nov 96 14:21:23 -0500
Received: from i2xz17 by legend.hq_rde.moen.com 
          via ESMTP (950215.SGI.8.6.10/940406.SGI) id OAA06320;
          Fri, 8 Nov 1996 14:33:07 -0500
Received: by i2xz17 (940816.SGI.8.6.9/940406.SGI) id OAA02414;
          Fri, 8 Nov 1996 14:33:05 -0500
From: jamon@moeninc.com (Jennifer R. Amon)
Message-Id: <9611081433.ZM2412@i2xz17>
Date: Fri, 8 Nov 1996 14:33:05 -0500
In-Reply-To: James Cooper <pixel@organic.com> "Re: DBD::Oracle" (Nov 8, 9:48)
References: <Pine.SOL.3.93.961108094412.21280B-100000@caustik.organic.com>
X-Mailer: Z-Mail (3.2.2 10apr95 MediaMail)
To: James Cooper <pixel@organic.com>, "Jennifer R. Amon" <jamon@moeninc.com>
Subject: Re: DBD::Oracle
Cc: dbi-users@fugue.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Thanks, I had tried each of the following:

  $drh = DBI->install_driver( 'Oracle' );
  $dbh = $drh->connect('tns_instance','scott/tiger@tns_instance','');

  $drh = DBI->install_driver( 'Oracle' );
  $dbh = $drh->connect('tns_alias','scott','tiger');

When what I needed was either of the following:

  $drh = DBI->install_driver( 'Oracle' );
  $dbh = $drh->connect('','scott/tiger@tns_instance','');

  $drh = DBI->install_driver( 'Oracle' );
  $dbh = $drh->connect('@tns_alias','scott','tiger');

> Sure, this is definately possible.  The trick is the connection call:
>
> $drh = DBI->install_driver('Oracle');
> $dbh = $drh->connect('@tns_alias_here', 'scott', 'tiger');
>
> That should do it....btw, you *do* need the @ sign (Tim, pounce on me if
> I'm wrong...this is how I've done it)

Now it works fine.
Actually, of course, it worked fine before, I just didn't know how to
use it. :-)

-- 
_______________________________________________________________________
Jennifer R. Amon                Phone: 216-962-2000 ext. 2471
Sr. Programmer/Analyst            FAX: 216-962-2739
Moen Incorporated            Personal: jamon@apk.net           
25300 Al Moen Drive          Business: jamon@moeninc.com
North Olmsted, OH  44070          Web: http://junior.apk.net/~jamon/
_______________________________________________________________________
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-43@oink>;
          Sat, 9 Nov 1996 00:27:05 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847489893:00632:1729; Fri, 08 Nov 96 21:51:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa14667; 8 Nov 96 20:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id LAA12311 for dbi-users-real; Fri, 8 Nov 1996 11:59:43 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id LAA12306 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 11:59:35 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id ae508103; 8 Nov 96 19:55 GMT
Received: from toad by oink with SMTP (PP) id <16639-0@oink>;
          Fri, 8 Nov 1996 19:21:08 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16039;
          Fri, 8 Nov 1996 19:21:01 +0000
Date: Fri, 8 Nov 1996 19:21:01 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081921.AA16039@toad.ig.co.uk>
To: descarte@hermetica.com, berli@switch.ch
Subject: Re: 8-bit text problem (solved)
Cc: robin@igis.se, dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Martin Berli <berli@switch.ch>
> 
> Now I knew that I had to set the nls variables to 7.2.3., and, yes, it worked.

What does that mean? (I'm updating the README)

> Martin
> 
> P.S. Anyone succeeded to make and 'make test' DBD-Oracle-0.43 with
>      Oracle 7.3.* on Solaris 2.5? I'd prefer not to have this mixture of
>      libraries (client uses 7.2.3, server is 7.3.2).

Me. That's my main platform right now.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-46@oink>;
          Sat, 9 Nov 1996 00:27:14 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847490054:00632:1931; Fri, 08 Nov 96 21:54:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa25647; 8 Nov 96 21:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12567 for dbi-users-real; Fri, 8 Nov 1996 12:28:47 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id MAA12558 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:27:47 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id MAA04575;
          Fri, 8 Nov 1996 12:27:21 -0800 (PST)
Message-Id: <1.5.4.32.19961108203646.0085bdf4@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 08 Nov 1996 12:36:46 -0800
To: descarte@hermetica.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Informix - What am I missing - Read this
Cc: dbi-users@fugue.com

Hi Alligator,

First, as a software engineer, I understand the process from the inside out.
Secondly, I am very grateful to anyone who adds to the body of perl because
it is a really fantastic movement. Third, I think a major incompletion point
like this is so debilitating that, were it me, I would not release the driver.

-Lane
VP, Engineering
Bien Logic
http://bienlogic.com

At 09:00 PM 11/8/96 +0000, descarte@hermetica.com wrote:
>
>> The DBI/DBD does not support text/blob types!!!!
>
>Uh-huh, as clearly stated on the WWW pages.
>
>> How in the world can anyone implement a DBI and not support text fields >
255???
>
>Simple. No time. You want BLOB support faster than my free time allows? You
>pay.
>
>But, as I said, the WWW pages warned you.
>
>> -Lane
>
>A.
>
>-- 
>Alligator Descartes       |
>descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
>http://www.hermetica.com  |
>
>

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-48@oink>;
          Sat, 9 Nov 1996 00:27:22 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847490152:06661:999; Fri, 08 Nov 96 21:55:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa28926; 8 Nov 96 21:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12636 for dbi-users-real; Fri, 8 Nov 1996 12:36:27 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-5.mail.demon.net (punt2.demon.co.uk [194.217.242.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id MAA12632 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:36:22 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa511744; 8 Nov 96 20:09 GMT
Received: from toad by oink with SMTP (PP) id <16793-0@oink>;
          Fri, 8 Nov 1996 20:09:20 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16092;
          Fri, 8 Nov 1996 20:09:14 +0000
Date: Fri, 8 Nov 1996 20:09:14 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611082009.AA16092@toad.ig.co.uk>
To: dbi-users@fugue.com, hamilton@uplanet.com
Subject: Re: Patch for connection problem with DBD::Oracle
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: hamilton@uplanet.com (Hamilton H.)
> 
> Folks,
> 
> I have a bug fix for a problem I recently encountered in DBD::Oracle .39.
> When connecting my test case would only work for databases on remote machines.
> The reason is that on remote machines an @remote_database was appended
> to the end of the UID.  By appending @remote_database to the UID even
> for local machines it fixed the problem.  Below is my version of the bug 
> fix which belongs in Oracle.pm in the connect method, however, it may already 
> have been fixed in a subsequent version or be deemed not necessary by
> Tim who has a much better understanding of all this stuff.

Actually I've never professed to understanding Sql*NET (v1 or v2 :-)

> By the way,
> I could not have tracked down this problem without the source code.
> Thanks.
> 
> Hamilton Hitchings
> 
> PS:  Below is the patch:
> 
> if ($orahome) { # is in oratab == is local
> 	if ($ENV{ORACLE_HOME} and $orahome ne $ENV{ORACLE_HOME})
> 	{
> 		$ENV{ORACLE_HOME} = $orahome;
> 		$ENV{ORACLE_SID}  = $dbname;
> 		delete $ENV{TWO_TASK};
> 	} else {
> 		$user .= '@'.$dbname;	# BUG FIX
> 	}
> }
> else {
> 	$user .= '@'.$dbname;	# assume it's an alias
> }

I'd be very grateful if others who know more about the issues could
advise me on the general validity and approch of this fix.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-54@oink>;
          Sat, 9 Nov 1996 00:27:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847490661:24969:3322; Fri, 08 Nov 96 22:04:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23811; 8 Nov 96 21:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12529 for dbi-users-real; Fri, 8 Nov 1996 12:23:03 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id MAA12525 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 12:22:59 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id ab508103; 8 Nov 96 19:55 GMT
Received: from toad by oink with SMTP (PP) id <16388-0@oink>;
          Fri, 8 Nov 1996 18:45:07 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16030;
          Fri, 8 Nov 1996 18:44:24 +0000
Date: Fri, 8 Nov 1996 18:44:24 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081844.AA16030@toad.ig.co.uk>
To: bwilkinson@pindar.co.uk, jpurinto@bbnplanet.com
Subject: Re: Where to install DBD, DBI
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Josh Purinton <jpurinto@bbnplanet.com>
> 
> > use lib /path/to/my/lib
> 
> > However, I've not used this construct yet - not sure whether you name the lib
> > you want to use or just the generic term "lib".
> 
> You use the generic term 'lib' in all cases. The above example would be:
> 
> use lib '/users/my_acct/DBD-Oracle-0.43/blib/lib';

Perhaps but please do _not_ address the 'blib' build directory
in this way. That's a special MakeMaker build sub directory and
it's 'shape' can change from version to version.

If you _need_ to 'use' it directly (rather than through 'make test')
you should

	use ExtUtils::testlib;

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-57@oink>;
          Sat, 9 Nov 1996 00:27:55 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847491374:16532:239; Fri, 08 Nov 96 22:16:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13729; 8 Nov 96 22:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA12982 for dbi-users-real; Fri, 8 Nov 1996 13:27:46 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA12978 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 13:27:38 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa508103; 8 Nov 96 19:55 GMT
Received: from toad by oink with SMTP (PP) id <15612-0@oink>;
          Fri, 8 Nov 1996 18:41:18 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16026;
          Fri, 8 Nov 1996 18:41:11 +0000
Date: Fri, 8 Nov 1996 18:41:11 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081841.AA16026@toad.ig.co.uk>
To: jamon@moeninc.com, pixel@organic.com
Subject: Re: DBD::Oracle
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: James Cooper <pixel@organic.com>
> 
> > Also, I can get at my database from the same machine, but I'm having
> > trouble getting at it from a remote machine. I can use sqlplus from
> > the remote machine. I just specify the instance name in my username/
> > password string, and it finds the connect string in my tnsnames file.
> > The tnsnames file is accessible, as is the sqlplus executable because
> > ORACLE_HOME is nfs mounted onto the remote machine.
> 
> Sure, this is definately possible.  The trick is the connection call:
> 
> $drh = DBI->install_driver('Oracle');
> $dbh = $drh->connect('@tns_alias_here', 'scott', 'tiger');
> 
> That should do it....btw, you *do* need the @ sign (Tim, pounce on me if
> I'm wrong...this is how I've done it)

It's not wrong but it's not ideal on two counts.

Firstly I *urge* everyone to use

	$dbh = DBI->connect(..., 'Oracle');

(or ora_login) and _not_ install_driver.

Secondly, I'd tend to use

	('', 'scott/tiger@tns_alias_here', '')
or
	('', 'scott@tns_alias_here', 'tiger')

As per the README.login file.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-59@oink>;
          Sat, 9 Nov 1996 00:28:02 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847491875:16533:893; Fri, 08 Nov 96 22:24:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09183; 8 Nov 96 21:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id NAA12862 for dbi-users-real; Fri, 8 Nov 1996 13:07:16 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from beaker.prc.com (ns2.prc.com [140.188.128.25]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id NAA12858 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 13:07:10 -0800 (PST)
Received: from po.gis.prc.com (po.gis.prc.com [140.188.82.245]) 
          by beaker.prc.com (8.6.12/8.6.12) with SMTP id QAA13057 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 16:07:54 GMT
Message-ID: <n1364653335.47932@po.gis.prc.com>
Date: 8 Nov 1996 16:03:09 U
From: Metzger Karen <metzger_karen@po.gis.prc.com>
Subject: 
To: dbi-users@fugue.com
X-Mailer: Mail*Link SMTP-MS 3.0.2

help
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-81@oink>;
          Sat, 9 Nov 1996 00:29:46 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847495186:07857:10; Fri, 08 Nov 96 23:19:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa07432; 8 Nov 96 23:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id MAA12704 for dbi-dev-real; Fri, 8 Nov 1996 12:44:04 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id MAA12700 
          for <dbi-dev@fugue.com>; Fri, 8 Nov 1996 12:43:59 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id af508103; 8 Nov 96 19:55 GMT
Received: from toad by oink with SMTP (PP) id <16696-0@oink>;
          Fri, 8 Nov 1996 19:53:05 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16043;
          Fri, 8 Nov 1996 19:52:59 +0000
Date: Fri, 8 Nov 1996 19:52:59 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611081952.AA16043@toad.ig.co.uk>
To: dbi-dev@fugue.com, johnl@informix.com
Subject: Re: Proposed changes for DBD::Informix 0.25
Cc: pixel@organic.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: johnl@informix.com (Jonathan Leffler)

Thread moved to dbi-dev (please make sure you're subscribed).

> BUT: for Informix logged databases, we need to add a BEGIN WORK operation.
> By default, each statement is its own transaction unless you put in an
> explicit transaction start.  Although I could still run with the "always in
> a transaction a la SQL92" mode, it isn't natural for Informix database users.
> On any system where BEGIN does nothing useful, the statement can simply
> succeed; on Informix logged non-MODE-ANSI systems, it is necessary.

But consider application portability from, say, Oracle to Informix.
I suggest make full transactions the default and, since statement level
transactions are the same as autocommit, you recommend informix users
who want to work that way (for some reason) do:

  $dbh->{AutoCommit} = 1;

That way Informix applications will be more portable to other databases
where DBD's have implemented the AutoCommit attribute (like DBD::Oracle).


> >> 5.  I will probably implement some internal function (_release maybe) to
> >>     release the resources used by a statement handle.  It will CLOSE the
> >>     cursor (as will the finish call) and will free the statement, cursor
> >>     and descriptor.
> >
> >finish should not close the cursor. finish simply says you won't be fetching
> >any more data from that cursor before either closing it or re-executing it.
> >Could you explain what you mean by _release in relation to finish and close?
> 
> What does finish do then -- nothing?  On Informix systems, closing a cursor
> is what you do to say you won't be fetching any more data from it.  This
> allows the engine to free up the resources associated with the current
> OPEN.  To release all the information associated with the cursor, you FREE
> it.
> 
> Why doesn't finish close the cursor?  (Or, on which system does closing a
> cursor cause problems?)

It seems that Oracle's finish (ocan) == Informix's close and
Oracle's close == Informix's free. It's a terminology issue.
Having looked at the X/Open CLI spec again finish corresponds to
CloseCursor(). It looks like finish should really have been called
close. Umm. I can't recall the lineage of finish as a DBI func name.

> >> 8.  Blobs will be returned as monstrous strings (if they are monstrous blobs).
> >
> >Not a good idea in general. See previous discussion about this in the archives.
> >I plan to migrate the effective Oracle mechanism (ora_long, ora_trunc) up to
> >DBI and make it 'standard'.
> 
> Why?  Oh well, off to the archives...

Mainly the memory effects of reading large blobs upfront (e.g., video clips!) 

> But which ones?  And how are they accessible.  I don't like the sound
> of ora_long and ora_trunc.

The DBI will have it's own 'DBI standard' names. Off the top of my head
it'll probably be $dbh->{BlobAutoGetLen} and $dbh->{BlobTruncOk}.
They don't trip off the tounge but they're reasonably descriptive.
Other suggestions welcome (soon please).

> In any case, data is data is data.  If the users don't want the data, they
> shouldn't select it.

That's a little daft. Consider database browser applications for example.

> I dislike the idea of making different datatypes
> behave fundamentally differently.

I want to be able to 'stream' a large audio clip blob out to an audio
device while still servicing Tk events. That's what read_blob is for.
It's simply not practical to handle _really_ large blobs with a single
read into memory. A filehandle interface would be a useful addition.

> >>     Maybe an option will be required to allow blobs to be handled
> >>     in files, in which case retrievals will return a filename where the
> >>     data is and insert or update will expect to be given a filename.  There
> >>     will be no special treatment for them otherwise, because there doesn't
> >>     seem to be any need for it.  The readblob function will either be
> >>     removed or be stubbed to return an undef value.
> >
> >Don't do that. readblob should be working for DBD::Informix to `conform'.
> >I'm happy to discuss any ideas for additional file handle interface for blobs.
> 
> I need to find out the rationale behind the Oracle implementation before
> commenting further.

Hopefully the above helps. Just think about gigabyte video clips! :-)

> Assume for the time being that readblob will continue
> to exist, and may even do something useful.  However, I am concerned that
> maybe the DBD::Oracle reference implementation is too Oracle-centric for
> comfort.

Me too. I'm always happy to listen to good ideas.

> I don't have clear grounds for that (yet), but readblob and
> ora_long and ora_trunc feel that way.

readblob isn't at all, which is why it's a DBI method.

The ora_* attributes (by definition) are. That's why they begin
with ora_ and are lower case (see "the (old) spec" :-)

The semantics of ora_long and ora_trunc have proven to be effective
over a long period. That's why I want to adopt the concept (not the
names) into the DBI.

> Please?  Pretty please?  If we have (at least) three good current
> implementations, then we can avoid XYZ-centrism in the basic design.

Seconded.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-84@oink>;
          Sat, 9 Nov 1996 00:30:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847495481:09251:34; Fri, 08 Nov 96 23:24:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09196; 8 Nov 96 23:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id OAA13521 for dbi-users-real; Fri, 8 Nov 1996 14:48:55 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from halsp.hitachi.com (unknown-112-2.halsp.hitachi.com [198.70.112.2]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id OAA13517 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 14:48:53 -0800 (PST)
Received: from itsic.halsp.hitachi.com ([137.168.6.111]) 
          by halsp.hitachi.com (5.x/SMI-4.1) id AA18968;
          Fri, 8 Nov 1996 14:54:16 -0800
Received: from hummin (hummin.itsic.halsp.hitachi.com) 
          by itsic.halsp.hitachi.com (4.1/SMI-4.1) id AA23059;
          Fri, 8 Nov 96 15:51:54 PPE
Message-Id: <3283B7BF.3438@halsp.hitachi.com>
Date: Fri, 08 Nov 1996 14:44:15 -0800
From: Roy Pillay <roy.pillay@halsp.hitachi.com>
Organization: Hitachi America Limited
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: (no subject)
References: <Pine.SUN.3.91.961108133415.1841B-100000@bambam.computek.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

unsubscribe
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17950-91@oink>;
          Sat, 9 Nov 1996 00:30:41 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847498526:23908:42; Sat, 09 Nov 96 00:15:26 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa23847; 9 Nov 96 0:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id PAA14053 for dbi-users-real; Fri, 8 Nov 1996 15:48:10 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id PAA14049 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 15:48:09 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.7.5/8.6.12) with SMTP id PAA23404;
          Fri, 8 Nov 1996 15:47:56 -0800 (PST)
Date: Fri, 8 Nov 1996 15:47:55 -0800 (PST)
From: James Cooper <pixel@organic.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: jamon@moeninc.com, dbi-users@fugue.com
Subject: Re: DBD::Oracle
In-Reply-To: <9611081841.AA16026@toad.ig.co.uk>
Message-ID: <Pine.SOL.3.93.961108154435.21280N-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

> 
> Firstly I *urge* everyone to use
> 
> 	$dbh = DBI->connect(..., 'Oracle');
> 
> (or ora_login) and _not_ install_driver.

Could the web pages on Hermetica be updated to reflect this?  Both
examples on: http://www.hermetica.com/technologia/DBI/examples/index.html
use DBI->install_driver()

Cheers,

-- James

---------------------
James Paul Cooper
Organic Online
pixel@organic.com

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19909-2@oink>;
          Sat, 9 Nov 1996 01:03:30 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847501254:05598:36; Sat, 09 Nov 96 01:00:54 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa05747; 9 Nov 96 1:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA14337 for dbi-users-real; Fri, 8 Nov 1996 16:35:52 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from chewbacca.hermetica.com (descarte@istellar.demon.co.uk [158.152.33.215]) 
          by toccata.fugue.com (8.8.0/8.6.11) with ESMTP id QAA14333 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 16:35:48 -0800 (PST)
From: descarte@hermetica.com
Received: (from descarte@localhost) by chewbacca.hermetica.com (8.7.5/8.6.12) 
          id BAA09581; Sat, 9 Nov 1996 01:33:46 GMT
Message-Id: <199611090133.BAA09581@chewbacca.hermetica.com>
Subject: Re: DBD::Oracle
To: pixel@organic.com (James Cooper)
Date: Sat, 9 Nov 1996 01:33:45 +0000 (GMT)
Cc: dbi-users@fugue.com
In-Reply-To: <Pine.SOL.3.93.961108154435.21280N-100000@caustik.organic.com> from "James Cooper" at Nov 8, 96 03:47:55 pm
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> > (or ora_login) and _not_ install_driver.
> 
> Could the web pages on Hermetica be updated to reflect this?  Both
> examples on: http://www.hermetica.com/technologia/DBI/examples/index.html
> use DBI->install_driver()

They've been re-written in the last week or so. I haven't had time to upload
the new pages yet. Possibly in the next <insert favourite time quantum> or
so.

> -- James

A.

-- 
Alligator Descartes       |
descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
http://www.hermetica.com  |
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20427-0@oink>;
          Sat, 9 Nov 1996 03:14:36 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847502037:08779:12; Sat, 09 Nov 96 01:13:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa08596; 9 Nov 96 1:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id QAA14399 for dbi-users-real; Fri, 8 Nov 1996 16:52:23 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id QAA14395 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 16:52:21 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa502493; 9 Nov 96 0:38 GMT
Received: from toad by oink with SMTP (PP) id <18205-0@oink>;
          Sat, 9 Nov 1996 00:38:35 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16307;
          Sat, 9 Nov 1996 00:38:28 +0000
Date: Sat, 9 Nov 1996 00:38:28 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611090038.AA16307@toad.ig.co.uk>
To: usfmdbsl@ibmmail.com
Subject: Calling stored procedures
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424

Forwarded to dbi-users. Please don't mail me directly.
See the README file that came with DBD::Oracle.

----- Begin Included Message -----

From usfmdbsl@ibmmail.com  Sat Nov  9 00:33:23 1996
Date: Fri, 08 Nov 1996 16:01:20 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: Tim.Bunce@ig.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Subject: Calling stored procedures


Tim,                                                                            
     Hello, my name is Greg Pellegrom, and I am calling Oracle Stored           
Procedures from the web.  I have successfully called procedures without any     
arguments passed to/received from the database.  I have also passed varchar(2)  
and integers to stored procedures successfully.  I only use &ora_open and       
&ora_close.  I do not use &ora_bind.                                            
     My question is how do I pass a single dimention array to a stored          
procedure?  I have everthing including &ora_bind.  When I use &ora_bind I do    
not get any errors, but when I don't use &ora_bind then I get an open error     
when I use &ora_open.  I am also trying to get values returned back to me.      
     I appreciate your help and I hope you don't mind me asking you these       
questions.  I got your address from one of the FAQ's on the web.  Thank you.    

Thanks,                                                                         
Greg Pellegrom                                                                  

----- End Included Message -----

You can't currently bind arrays. I plan to support that sometime but
I can't say when.

See the test.pl file for examples of what is possible.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20427-4@oink>;
          Sat, 9 Nov 1996 03:14:50 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847502750:11313:1; Sat, 09 Nov 96 01:25:50 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11100; 9 Nov 96 1:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA14455 for dbi-users-real; Fri, 8 Nov 1996 17:06:01 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id RAA14451 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 17:05:59 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-6.mail.demon.net 
          id aa604573; 9 Nov 96 0:54 GMT
Received: from toad by oink with SMTP (PP) id <18904-0@oink>;
          Sat, 9 Nov 1996 00:54:23 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16447;
          Sat, 9 Nov 1996 00:54:14 +0000
Date: Sat, 9 Nov 1996 00:54:14 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611090054.AA16447@toad.ig.co.uk>
To: pixel@organic.com
Subject: Re: DBD::Oracle
Cc: jamon@moeninc.com, dbi-users@fugue.com, descarte@hermetica.com
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: James Cooper <pixel@organic.com>
> 
> > Firstly I *urge* everyone to use
> > 
> > 	$dbh = DBI->connect(..., 'Oracle');
> > 
> > (or ora_login) and _not_ install_driver.
> 
> Could the web pages on Hermetica be updated to reflect this?  Both
> examples on: http://www.hermetica.com/technologia/DBI/examples/index.html
> use DBI->install_driver()

Thay should be. Alligator's spare time is as short as mine.

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20427-6@oink>;
          Sat, 9 Nov 1996 03:14:56 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847502822:11617:7; Sat, 09 Nov 96 01:27:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11341; 9 Nov 96 1:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA14445 for dbi-users-real; Fri, 8 Nov 1996 17:03:39 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-6.mail.demon.net (punt2.demon.co.uk [194.217.242.5]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id RAA14441 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 17:03:37 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa504479; 9 Nov 96 0:51 GMT
Received: from toad by oink with SMTP (PP) id <18259-0@oink>;
          Sat, 9 Nov 1996 00:48:08 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16441;
          Sat, 9 Nov 1996 00:47:47 +0000
Date: Sat, 9 Nov 1996 00:47:47 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611090047.AA16441@toad.ig.co.uk>
To: francesco@glamm.com, dbi-users@fugue.com, lane@bienlogic.com
Subject: Re: Informix - What am I missing - Read this
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: Lane Sharman <lane@bienlogic.com>
> 
> We are right in the middle of a crisis conversion to Informix.
> 
> The DBI/DBD does not support text/blob types!!!!
> 
> How in the world can anyone implement a DBI and not support text fields > 255???

Firstly should take care to distinguish the DBI from any particular
DBD::* driver. The DBI does support text fields > 255 in as much as
it doesn't stand in the way of any drivers supporting.

Secondly you should consider how much you paid for the software
before complaining that the author didn't spend enough of his own
free time implementing some feature you would like.

Thirdy you could contribute back to the community by assisting
in the development of the driver rather than attacking it.

In answer to the question in the Subject line: all of the above.

Tim.

---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20427-14@oink>;
          Sat, 9 Nov 1996 03:15:25 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847504180:16265:7; Sat, 09 Nov 96 01:49:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa16130; 9 Nov 96 1:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id RAA14555 for dbi-users-real; Fri, 8 Nov 1996 17:30:49 -0800 (PST)
Precedence: junk
Sender: owner-perldb-interest@fugue.com
Received: from relay-5.mail.demon.net (punt2.demon.co.uk [194.217.242.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id RAA14551 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 17:30:47 -0800 (PST)
Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-5.mail.demon.net 
          id aa502665; 9 Nov 96 0:39 GMT
Received: from toad by oink with SMTP (PP) id <18215-0@oink>;
          Sat, 9 Nov 1996 00:39:38 +0000
Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA16310;
          Sat, 9 Nov 1996 00:39:31 +0000
Date: Sat, 9 Nov 1996 00:39:31 +0000
From: Tim Bunce <Tim.Bunce@ig.co.uk>
Message-Id: <9611090039.AA16310@toad.ig.co.uk>
To: dbi-users@fugue.com, jchristensen@quadravision.com
Subject: Re: DBD::Oracle and Solaris 2.51
X-Sun-Charset: US-ASCII
Organization: Paul Ingram Group, Software Systems, +44 1 483 424424


> From: jchristensen@quadravision.com (Jordan Christensen)
> 
> Hi,
> 
> I've just installed the DBI and DBD::Oracle packages on one of my
> Sparc-20's, running Solaris 2.51. I had no problem running the tests,
> but haven't had a chance to use it yet.
> 
> I looked at the DBD::Oracle page, and noticed that 2.51 wasn't listed as
> a 'Known Working Platform'. Is this becuase it hadn't been tested, or
> because there was a known problem?

I gave up keeping track of 'Known Working Platform' ages ago.

There are so many of them :-)

Tim.
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26739-0@oink>;
          Mon, 11 Nov 1996 07:36:06 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847532560:02994:5; Sat, 09 Nov 96 09:42:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02883; 9 Nov 96 9:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id XAA17034 for dbi-users-real; Fri, 8 Nov 1996 23:58:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from athena.romoidoy.com (athena.romoidoy.com [208.193.64.15]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id XAA17030 
          for <dbi-users@fugue.com>; Fri, 8 Nov 1996 23:58:11 -0800 (PST)
Received: from aurora (sabat@aurora.zoom.com [208.193.64.6]) 
          by athena.romoidoy.com (8.6.12/Romoidoy-Hub-022896) with SMTP 
          id AAA20786; Sat, 9 Nov 1996 00:58:17 -0700
Date: Fri, 8 Nov 1996 23:58:11 -0800 (PST)
From: Sabat <sabat@zoom.com>
X-Sender: sabat@aurora
To: David McCabe <David.McCabe@videotron.net>
cc: dbi-users@fugue.com
Subject: RE: Oracle WebServer 3.0: Perl Cartridge
In-Reply-To: <199611030158.UAA18134@bach.videotron.net>
Message-ID: <Pine.SUN.3.91.961108231630.8791B-100000@aurora>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

             *** To unsubscribe, see the end of this message. ***

On Sat, 2 Nov 1996, David McCabe wrote:

> Oracle USA (by email from the address on their website), and was told by
> both that wile they had made a kit available at one time, (that was really
> just oraperl with lots of web sample code), that it is now part of their
> WebServer, and you only get it by buying that product. Then came the press
...
> servers, but you still need to buy their webserver, at around 4000 Canadian.
> And they know of no plans to make it available as a seperate product. Thankx
> Oracle, but no thanks.

Ok, here's the deal: you guys are thinking of WOW, the web connection
kit for Oracle. It's obsolete for a few reasons:

1] the DBI project
2] Oracle WebServer
3] bundling

Although WOW did work, it's not exactly an elegant solution. Oracle
WebServer is. So is the DBI project, with one exception in this case:
far as I know, a Perl/DBI program can't keep a persistent connection
in place, as WebServer does. This isn't the same thing as a persistent
login, btw.

Generally speaking, Oracle isn't in the business of giving away free
software. You can download many products for free, try them out, see
if they work for you. *This is true for Oracle WebServer.*

The thing is, Oracle WebServer is now bundled with Oracle7.3. So if you
have one, you should have the other.

If *that* doesn't work for you, you can use DBD::Oracle to your heart's
content. Sure, it's not in full release yet, but in practice its db
access is as fast as Pro*C's, and seems plenty stable.

Forget WOW. That's 2-years-go's technology. And you don't have to put
out $$$$$$$ to access Oracle from the web.

[These views are mine and do not necessarily reflect those of my
employer, Oracle Corporation.]

Steve


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26739-3@oink>;
          Mon, 11 Nov 1996 07:36:20 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847511775:09692:15; Sat, 09 Nov 96 03:56:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09626; 9 Nov 96 3:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id TAA15691 for dbi-users-real; Fri, 8 Nov 1996 19:34:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from localhost (mellon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          with SMTP id TAA15686 for <dbi-users@toccata.fugue.com>;
          Fri, 8 Nov 1996 19:34:27 -0800 (PST)
Message-Id: <199611090334.TAA15686@toccata.fugue.com>
To: dbi-users@toccata.fugue.com
Subject: New dbi-users mail filter installed...
Date: Fri, 08 Nov 1996 19:34:27 -0800
From: Ted Lemon <mellon@fugue.com>

*** to unsubscribe, see the end of this message ***

I have installed a filter which should filter out most bogus
unsubscribe messages.   It also adds instructions to each incoming
message telling people how to unsubscribe.   If anybody is still
dumb enough not to be able to figure out what to do, at least we won't
see their messages, and they'll get a nasty bounce message.
The one unfortunate thing about this bouncer is that people with bogus
outgoing email addresses will no longer be able to send mail to the
list - your mail will not go through unless you're subscribed and
unless the address from which your mail came comes pretty close to
matching the address to which your mail is being sent.   If you have
trouble with it, let me know, and I'll see if I can hack around it.
			       _MelloN_


------------------------------------------------------------------------------
To unsubscribe from this mailing list, please visit http://www.fugue.com/dbi.
If you do not have web access, or if you are having trouble with the web
page, please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26739-30@oink>;
          Mon, 11 Nov 1996 07:39:45 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847532560:02998:4; Sat, 09 Nov 96 09:42:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa02882; 9 Nov 96 9:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.0/8.6.11) 
          id AAA17266 for dbi-users-real; Sat, 9 Nov 1996 00:08:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.0/8.6.11) with SMTP id AAA17260 
          for <dbi-users@fugue.com>; Sat, 9 Nov 1996 00:08:53 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id RAA20863 for dbi-users@fugue.com; Sat, 9 Nov 1996 17:06:03 +0900
Date: Sat, 9 Nov 1996 17:06:03 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611090806.RAA20863@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: How do I login the DB through the network(tcp/ip)?

             *** To unsubscribe, see the end of this message. ***

Hi Folks!

I use the OraPerl on the following environment;
      OS SVR4.2
      This is perl, version 5.003 with EMBED
      built under svr4 at Jul 12 1996 23:18:05
      DBI-0.73
      DBD-Oracle-0.43

I can use "&ora_login($system_id,$name,$password)"
to logon my local DB successfully.

I use LAN at my office, and set up the SQL*Net v2.1.
I'd like to login the remote DB through it.

When I use SQL*Plus on my local machine, I can logon the remote
DB by referencing listener name whithin the "tnsnames.ora"
without any problem.

Please tell me how I call "&ora_login" to logon the remote DB?

Thanks in advance.

---------------
Takami Keiichi
(takami@paris-miki.co.jp)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26739-69@oink>;
          Mon, 11 Nov 1996 07:44:21 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847584033:13205:18; Sun, 10 Nov 96 00:00:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa13067; 9 Nov 96 23:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA18910 for dbi-users-real; Sat, 9 Nov 1996 13:25:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id NAA18906 
          for <dbi-users@fugue.com>; Sat, 9 Nov 1996 13:25:11 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id NAA00084;
          Sat, 9 Nov 1996 13:24:37 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id NAA07448;
          Sat, 9 Nov 1996 13:25:34 -0800
Date: Sat, 9 Nov 1996 13:25:34 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611092125.NAA07448@anubis.informix.com>
To: dbi-users@fugue.com, wangj@aromat.com
Subject: Re: Install DBD-Informix-0.24 on HP-UX

             *** To unsubscribe, see the end of this message. ***

Hi,

>From: "John Wang" <wangj@aromat.com>
>Date: Fri, 8 Nov 1996 13:06:41 -0400
>
>>>I'm trying to install DBD-Informix(.24) on my HP box, but I kept getting
>>>following error message:
>>>        esql -e [...] dbdimp.ec
>>>fgcl2: file "dbdimp.ec", line 580: type 'allocate' is unknown
>>>fgcl2: file "dbdimp.ec", line 580: Syntax error on keyword or symbol
>'demodesc0'
>>>
>>>I'm using Informix Online 5.0, esql/c 5.0, HP9.04.
>>
>>Humph.  Well, given what I see, it appears to me that you are using the
>>I4GL program fglc2 as a surrogate for the ESQL/C compiler -- otherwise,
>>fgcl2 makes no sense to me.  This suggests that if you run 'esql -V', you
>>will see an Informix-4GL 4.1x version number.  The reason you are then
>>seeing problems is that the 4.1x software does not understand ALLOCATE
>>DESCRIPTOR etc.
>>
>>If you really have 5.0x ESQL/C on the system (you should be able to
>>run $INFORMIXDIR/lib/esql/esqlc with the -V option if you have), then
>>you need to get rid of the surrogate esql script, or at least make it
>>non-executable.
>>
>> ....
>>Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
>
>Jonathan,
>
>Thanks for your reply, I used $INFORMIXDIR/lib/esql/esqlc as the ESQL/C
>compiler, and it worked.

Good.  Now you need to revisit your installation and get it straightened
out so that the $INFORMIXDIR/bin/esql script (the primary ESQL/C
compilation script) works correctly for ESQL/C 5.0x, and then use that in
the build process.

>Now I got another error message when I linked them (Sorry):
>...
> LD_RUN_PATH="/usr/informix/dev/lib/esql:/lib/pa1.1" ld -o ./blib/arch/au
>to/DBD/Informix/Informix.sl -b -L/usr/local/lib Informix.o dbdimp.o -L/usr/infor
>mix/dev/lib -L/usr/informix/dev/lib   -L/usr/informix/dev/lib/esql -lsql -lgen -
>los -lm
>ld: DP-Relative Code in file /usr/informix/dev/lib/esql/libsql.a(iqcursor.o) - S
>hared Library must be Position-Independent

This is telling you that the 5.0x ESQL/C libraries are not compiled as
shared libraries.  I've not yet worked out the complete solution to this
sort of problem, but maybe you cannot use dynamic linking (and loading) of
DBD::Informix in this case -- in fact, I think this is probably the problem.
The nominal solution is to create a version of Perl with the DBD::Informix
software linked in -- use 'make perl' and 'make static_test' if the output
of 'perldoc perlxstut' is to be believed.  I've not had time to investigate
5.0x ESQL/C yet -- I'm fixing issues using 7.21 and don't want to be
deflected from those just yet.  In a month or three, perhaps...

If you find anything useful, please let me know.  Also, if you have any
insight into the options in Makefile.PL referring to HP-UX, please let me
know.  Does LD_RUN_PATH do anything on HP-UX?

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02691-17@oink>;
          Mon, 11 Nov 1996 14:15:00 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847714384:27994:27; Mon, 11 Nov 96 12:13:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa27597; 11 Nov 96 12:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id AAA21899 for dbi-users-real; Mon, 11 Nov 1996 00:31:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from stachus (stachus.muenchen.org [194.95.192.254]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id AAA21895 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 00:31:30 -0800 (PST)
Received: from octopus by stachus (SMI-8.6/SMI-SVR4) id JAA12749;
          Mon, 11 Nov 1996 09:31:40 +0100
Message-ID: <3286E3E5.6F43488@muenchen.org>
Date: Mon, 11 Nov 1996 09:29:54 +0100
From: Christoph Bernhardt <bm745512@muenchen.org>
Organization: Ich
X-Mailer: Mozilla 3.0Gold (X11; I; Linux 2.0.14 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Memory leak ...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

             *** To unsubscribe, see the end of this message. ***

Hi all (again),

now that I sleep easy (thanks, Tim), I encountered my first real problem
while trying to tune my WEB application. Instead of using the normal CGI
mechanisms, I converted part of the application to the FastCGI method,
which is, in short words, a way to have persistent CGI processes (c.f.
www.fastcgi.com). Thus, one saves the overhead for starting a process
for each CGI invocation and in the Perl-case the overhead for compiling
the script for each invocation.

This worked fine as far as performance was concerned, but it came as it
had to come: the process leaks memory. This is a completely new
experience to somebody who is normally only writing CGI scripts that
terminate after doing whatever they are supposed to do and then die.

My question to the list: before I start taking all the blame for my own
code I would like to know if there are known memory leaks within the DBI
configuration I am using (DBI 0.69, DBD-Msql-0.60pl10). I did not
upgrade to a newer DBI yet since they require perl5.003 and the FastCGI
patches are for Perl5.002. Could upgrading help in my situation (from
the DBI point of view)?

Thanks for any hints (emphasis is on any; hints as to how to find memory
leaks in Perl in general are very welcome, too).

Christoph


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04233-7@oink>;
          Mon, 11 Nov 1996 17:57:16 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847733335:25762:729; Mon, 11 Nov 96 17:28:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa00915; 11 Nov 96 17:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id FAA22292 for dbi-users-real; Mon, 11 Nov 1996 05:42:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ind42.industry.net (mail.industry.net [206.150.196.42]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id FAA22288 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 05:42:41 -0800 (PST)
Received: from wooden ([198.112.131.220]) 
          by ind42.industry.net (Netscape Mail Server v1.1) with SMTP 
          id AAA12185; Mon, 11 Nov 1996 08:39:08 -0400
Message-ID: <32872C66.252@industry.net>
Date: Mon, 11 Nov 1996 08:38:46 -0500
From: "Rujith S. de Silva" <desilva@industry.net>
Organization: Industry.Net
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: Christoph Bernhardt <bm745512@muenchen.org>
CC: dbi-users@fugue.com
Subject: Re: Memory leak ...
References: <3286E3E5.6F43488@muenchen.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

             *** To unsubscribe, see the end of this message. ***

Christoph Bernhardt wrote:
> My question to the list: before I start taking all the blame for my own
> code I would like to know if there are known memory leaks within the DBI
> configuration I am using (DBI 0.69, DBD-Msql-0.60pl10). I did not
> upgrade to a newer DBI yet since they require perl5.003 and the FastCGI
> patches are for Perl5.002. Could upgrading help in my situation (from
> the DBI point of view)?

Two comments:

* It's not difficult to compile FastCGI for Perl5.003.  I'll post
details if you want, but basically, doing the `obvious' thing works.

* Notwithstanding the above, it's probably a good idea to not have
FastCGI processes that exist indefinitely.  I wrote a package that lets
me do:

FCGI_call (\&handle_one_http_request, $number_of_requests,
$oracle_connect_string);

This opens a DB connection into $main::lda and then calls
&handle_one_http_request() at most $number_of_requests times.  One
useful thing it does is check each time whether the connection in
$main::lda is still alive, and re-open it if not.

I wrote this at work, and I'll see if I can release the package to the
public domain.  However, implementing the above functionality should be
pretty easy.

Later,
Rujith.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05191-0@oink>;
          Mon, 11 Nov 1996 21:36:05 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847736462:05572:1104; Mon, 11 Nov 96 18:21:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa17814; 11 Nov 96 18:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id GAA22397 for dbi-users-real; Mon, 11 Nov 1996 06:49:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com ([204.249.122.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id GAA22393 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 06:49:21 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id JAA00936 for <dbi-users@fugue.com>;
          Mon, 11 Nov 1996 09:30:45 -0500
Message-ID: <32876782.3552@rochgrp.com>
Date: Mon, 11 Nov 1996 09:50:58 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD::Oracle path problems
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

             *** To unsubscribe, see the end of this message. ***

I've been trying to solve this for a week. I have a but a few months 
experience with Oracle, Perl *and* Unix.
I installed DBI-0.73, then DBD::Oracle, with Perl 5.003 with EMBED, 
and  Oracle 7.3.2, on Solaris 2.5x86.
I don't want to waste space posting code, if my mistakes are in the way I 
set it all up. 
Perl can't find Perl.pm or Gnu.pm, and neither file is present on my 
machine, even though I installed Perl5 before I did anything else. I've 
been searching the CPAN stuff for these 2 mods, I imagine they are 
supposed to be part of the original Perl5 install.
 
I would be very grateful for any help!


-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc.
600 Park Avenue
Rochester,NY 14607
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06762-12@oink>;
          Tue, 12 Nov 1996 03:11:34 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847753118:06168:79; Mon, 11 Nov 96 22:58:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06363; 11 Nov 96 22:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id LAA23219 for dbi-users-real; Mon, 11 Nov 1996 11:38:39 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cypress.mcsr.olemiss.edu (cypress.mcsr.olemiss.edu [130.74.110.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id LAA23215 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 11:38:26 -0800 (PST)
Received: (from cckathy@localhost) 
          by cypress.mcsr.olemiss.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF) 
          id NAA14754 for dbi-users@fugue.com; Mon, 11 Nov 1996 13:37:02 -0600
Date: Mon, 11 Nov 1996 13:37:02 -0600
From: cckathy@cypress.mcsr.olemiss.edu (Kathy Gates)
Message-Id: <199611111937.NAA14754@cypress.mcsr.olemiss.edu>
To: dbi-users@fugue.com
Subject: Informix DBD Help Needed

             *** To unsubscribe, see the end of this message. ***

I have installed DBI and Informix DBD on an SGI system.
When I try to run the test.pl in DBD I get the following error:

Testing: DBI->install_driver( 'Informix' ): ok
14734:/users3/local/appl/perl5.003/install/bin/perl: rld: Fatal Error: attempted access to unresolvable symbol in /usr/local/appl/perl5.003/install/lib/site_perl/IP21-irix/auto/DBD/Informix/Informix.so: gl_cache_registry


Any suggestions on what might be the problem?


---
Kathy Gates
cckathy@cypress.mcsr.olemiss.edu

Telephone: (601) 232-7280      Mississippi Center for Supercomputing Research
FAX: (601) 232-7180            105 Powers Hall
Office Hours: 8:00am-2:00pm    University, MS 38677


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06762-15@oink>;
          Tue, 12 Nov 1996 03:11:52 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847753949:11764:9; Mon, 11 Nov 96 23:12:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa11454; 11 Nov 96 23:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id IAA22666 for dbi-users-real; Mon, 11 Nov 1996 08:48:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from uswgco2.uswc.uswest.com (uswgco2.uswest.com [206.196.133.74]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id IAA22662 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 08:48:32 -0800 (PST)
Received: (from smap@localhost) by uswgco2.uswc.uswest.com (8.7.6/8.7.1) 
          id JAA05348 for <dbi-users@fugue.com>;
          Mon, 11 Nov 1996 09:47:57 -0700 (MST)
Received: from egate.mnet.uswest.com(151.116.23.138) by uswgco2.uswc.uswest.com 
          via smap (V1.3) id sma005253; Mon Nov 11 09:44:22 1996
Received: from smokey.ecte.uswc.uswest.com (smokey.ecte.uswc.uswest.com [151.116.109.68]) 
          by egate.mnet.uswest.com (8.7.1/8.7.1) with ESMTP id JAA19492 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 09:44:30 -0700 (MST)
Received: from avanti.ecte.uswc.uswest.com (avanti.ecte.uswc.uswest.com [151.116.137.100]) 
          by smokey.ecte.uswc.uswest.com (8.6.11/uswc-hub.950320) with ESMTP 
          id JAA13411 for <dbi-users@fugue.com>;
          Mon, 11 Nov 1996 09:44:20 -0700
Received: (from wschere@localhost) 
          by avanti.ecte.uswc.uswest.com (8.6.11/uswc-server.950313) 
          id JAA20727; Mon, 11 Nov 1996 09:44:16 -0700
Date: Mon, 11 Nov 1996 09:44:16 -0700
Message-Id: <199611111644.JAA20727@avanti.ecte.uswc.uswest.com>
From: Wade Scherer <wschere@uswest.com>
To: dbi-users@fugue.com
Subject: bus error from test.pl trying to build DBD::Oracle

             *** To unsubscribe, see the end of this message. ***

Hi, 

I've been trying to build the DBD::Oracle with some success.  make test makes through the DBI, DBD tests, but fails in test.pl.  I have tried all combinations of userid, password, and database name with each combination bus erroring at the ora_login.  I have include a file called build log with as much of the information requested in the README as possible.  Thanks in advance for any help you can provide.

We are using perl5.003, DBI-0.73, DBD::Oracle-0.43, and Oracle 7.3.2.

Wade Scherer


++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++ build_log ++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++

Before getting to all of the debug output, I had a problem with the command 
perl Makefile.PL -g and had to make the following changes to get rid of it.

I had to take the opt_g out of the OTHERLDFLAGS because it caused ld to fail.

127c127
< $opts{dynamic_lib} = { OTHERLDFLAGS => "@linkwith_o \$(COMPOBJS)" };
---
> $opts{dynamic_lib} = { OTHERLDFLAGS => "$::opt_g @linkwith_o \$(COMPOBJS)" };


Then I appended it to $opts{DEFINE} (and I only figured that out because I
recognized the gcc options) to make sure it made it into the gcc invokation.  

143,147c143,144
< if ($Config{cc} eq 'gcc')
< {
<     $opts{DEFINE} = '-Wall -pedantic -Wno-comment -Wtraditional';
<     $opts{DEFINE} .= " $::opt_g" if $::opt_g;
< }
---
> $opts{DEFINE} = '-Wall -pedantic -Wno-comment -Wtraditional'
>       if $Config{cc} eq 'gcc';



make realclean

================================================================================

perl Makefile.PL 
 
 Configuring DBD::Oracle ...
 
>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.
 
Using Oracle in /dbms/ora732
Reading /dbms/ora732/precomp/demo/proc/proc.mk.
Reading /dbms/ora732/precomp/env_precomp.mk.
System: perl5.003 hp-ux gehrig b.10.01 a 9000816 1964378211 two-user license 
Compiler: gcc -O -D_HPUX_SOURCE -I/usr/local/include
Linker:   /bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -Wl,-adefault -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME)
Linking with   -lxa -lsql -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 
 
Checking if your kit is complete...
Looks good
 
Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.
 
Writing Makefile for DBD::Oracle

================================================================================

make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        /bin/perl -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib /opt/perl5.003/lib/ExtUtils/xsubpp  -typemap /opt/perl5.003/lib/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
        gcc -c -I. -I/dbms/ora732/precomp/public -I/dbms/ora732/rdbms/demo -I/opt/perl5.003/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5.003/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" -fpic -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE -Wall -pedantic -Wno-comment -Wtraditional Oracle.c
Oracle.c: In function `XS_DBD__Oracle__db_disconnect':
Oracle.c:148: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_execute':
Oracle.c:285: warning: ANSI C forbids braced-groups within expressions
Oracle.c:294: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow':
Oracle.c:335: warning: ANSI C forbids braced-groups within expressions
Oracle.c:336: warning: ANSI C forbids braced-groups within expressions
Oracle.c:342: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_finish':
Oracle.c:431: warning: ANSI C forbids braced-groups within expressions
Oracle.c:435: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:475: warning: ANSI C forbids braced-groups within expressions
        gcc -c -I. -I/dbms/ora732/precomp/public -I/dbms/ora732/rdbms/demo -I/opt/perl5.003/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5.003/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" -fpic -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE -Wall -pedantic -Wno-comment -Wtraditional dbdimp.c
dbdimp.c: In function `dbd_db_FETCH':
dbdimp.c:299: warning: value computed is not used
dbdimp.c: In function `dbd_bind_ph':
dbdimp.c:707: warning: value computed is not used
dbdimp.c:719: warning: value computed is not used
dbdimp.c: In function `dbd_st_blob_read':
dbdimp.c:1030: warning: ANSI C forbids braced-groups within expressions
dbdimp.c: In function `dbd_st_FETCH':
dbdimp.c:1197: warning: value computed is not used
dbdimp.c: At top level:
dbdimp.c:161: warning: `dump_error_status' defined but not used
as: "/var/tmp/cca14924.s", line 436: warning 36: Use of %fr9R is incorrect for the current LEVEL of 1.0
as: "/var/tmp/cca14924.s", line 437: warning 36: Use of %fr9R is incorrect for the current LEVEL of 1.0
as: "/var/tmp/cca14924.s", line 437: warning 36: Use of XMPYU is incorrect for the current LEVEL of 1.0
as: "/var/tmp/cca14924.s", line 438: warning 36: Use of %fr8R is incorrect for the current LEVEL of 1.0
as: "/var/tmp/cca14924.s", line 3338: warning 36: Use of XMPYU is incorrect for the current LEVEL of 1.0
as: "/var/tmp/cca14924.s", line 3343: warning 36: Use of %fr8R is incorrect for the current LEVEL of 1.0
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/dbms/ora732/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/dbms/ora732/lib -lxa -lsql -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

================================================================================

make test
        LD_RUN_PATH="/dbms/ora732/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/dbms/ora732/lib -lxa -lsql -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
        PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  3 secs ( 0.57 cusr  0.44 csys =  1.01 cpu)
        PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib test.pl
Identifier "Oraperl::debugdbi" used only once: possible typo at blib/lib/Oraperl.pm line 40.
Oraperl test application $Revision: 1.28 $
 
Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73
 
 
Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'ops$wschere/ops$wschere' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='UHOMQ000')
sh: 14991 Bus error(coredump)
*** Error exit code 138
 
Stop.

================================================================================

make test TEST_VERBOSE=1
        LD_RUN_PATH="/dbms/ora732/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/dbms/ora732/lib -lxa -lsql -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -L/dbms/ora732/lib -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
        PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
All tests successful.
Files=1,  Tests=5,  3 secs ( 0.60 cusr  0.40 csys =  1.00 cpu)
        PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib test.pl
Identifier "Oraperl::debugdbi" used only once: possible typo at blib/lib/Oraperl.pm line 40.
Oraperl test application $Revision: 1.28 $
 
Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73
 
 
Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'ops$wschere/ops$wschere' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='UHOMQ000')
sh: 15495 Bus error(coredump)
*** Error exit code 138
 
Stop.

================================================================================

perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux gehrig b.10.01 a 9000816 1964378211 two-user license '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags='-D_HPUX_SOURCE -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'
 
@INC: /opt/perl5.003/lib/PA-RISC1.1/5.003 /opt/perl5.003/lib /opt/perl5.003/lib/site_perl/PA-RISC1.1 /opt/perl5.003/lib/site_perl .

================================================================================



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for me to process your request by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06762-29@oink>;
          Tue, 12 Nov 1996 03:13:23 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847763019:22638:19; Tue, 12 Nov 96 01:43:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22587; 12 Nov 96 1:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id OAA24036 for dbi-users-real; Mon, 11 Nov 1996 14:57:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id OAA24032 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 14:57:03 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id OAA25223;
          Mon, 11 Nov 1996 14:56:11 -0800 (PST)
Message-Id: <1.5.4.32.19961111230621.0073e1e0@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 11 Nov 1996 15:06:21 -0800
To: descarte@hermetica.com, Monika.Lie.Larsen@itek.norut.no (Monika Lie Larsen)
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Informix - What am I missing??
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello Monika,

Don't despair. Both Illustra and Informix have tools/libraries to interface
to their data sources. There is no law saying "thou shalt use dbi/dbd to
talk to a data base". If you layer your db interface calls within a separate
class all the better!

-Lane

At 12:56 PM 11/8/96 +0000, descarte@hermetica.com wrote:
>
>> Our web server needs to talk to several databases, including Illustra
>> and Informix - both of which are complete strangers to me. So,
>> attempting to keep it that way, I've assumed that the perl DBI would do
>> the talking, given the right DBDs. 
>
>Yup, there isn't a DBD for Illustra, though, at the moment.
>
>> However. Generating the Informix DBD makefile fails with "Unable to
>> determine $INFORMIXDIR!" Why do I need to know where/if Informix is
>> installed? Is the implication here that Informix has to be run on the
>> local host (webserver)??
>
>You need to know where Informix is installed so that you can build the
>module. The module uses calls provided in the libraries provided by Informix.
>Once you've built the library, you can install the module on a host that
>doesn't have Informix installed ( apart from the networking layer, I think ).
>
>> Any pointers on how I would go about connecting to Illustra and Informix
>> would be greatly appreciated. HTTPD runs on IRIX 5.3 (Perl 5.003
>> installed), Illustra on Win NT, Informix I'm not sure about.
>
>Hm, sounds like you're going to have big problems........8-)
>
>> Monika Lie Larsen
>
>A.
>
>-- 
>Alligator Descartes       |
>descarte@hermetica.com    |   "Lobey's the Wee Boy!" -- Bud Neill
>http://www.hermetica.com  |
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06762-31@oink>;
          Tue, 12 Nov 1996 03:13:35 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847763090:22848:15; Tue, 12 Nov 96 01:44:50 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa22777; 12 Nov 96 1:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id PAA24279 for dbi-dev-real; Mon, 11 Nov 1996 15:51:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from online.tmx.com.au (online.tmx.com.au [192.150.129.1]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id PAA24275 
          for <dbi-dev@fugue.com>; Mon, 11 Nov 1996 15:51:19 -0800 (PST)
Received: from localhost (daemon@localhost) by online.tmx.com.au (8.6.5/8.6.5) 
          id KAA29617; Tue, 12 Nov 1996 10:51:15 +1100
Received: from unknown(192.147.246.102) by online.tmx.com.au via smap (V1.3mjr) 
          id sma029597; Tue Nov 12 10:51:08 1996
Received: from rabbit.bha.oz.au by sparrow.bha.oz.au (8.6.12/4.03) id IAA00826;
          Mon, 11 Nov 1996 08:48:32 +1000
Received: from petrel.bha.oz.au by rabbit.bha.oz.au (AIX 3.2/UCB 5.64/4.03) 
          id AA24031; Tue, 12 Nov 1996 09:45:40 +1000
Message-Id: <1.5.4.32.19961111234558.0068c4dc@rabbit>
X-Sender: abr@rabbit
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 12 Nov 1996 09:45:58 +1000
To: dbi-dev@fugue.com
From: Andrew Brown <abr@bha.oz.au>
Subject: Supporting multiple DB versions

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I have been trying to get multiple versions of a database to work "under the
covers" so that perl scripts require no modification to work with any
version.  This is necessary as the DBI interface is statically linked with
an api interface into the database which is only garaunteed to be valid for
the current version.

The following .pm file allows me to go:
        $dbh = DBI->connect( 'dbname', 'dbuser', 'dbpasswd', 'DBQ' );

and use the correct DBQ interface for the database.  The DBQ version and
release are stored in environment variables and are used to determine the
actual DBI interface to use.  The following script does the mapping for me
from DBD::DBQ to (for example) DBD::DBQ20504 or DBD::DBQ30000 as required.
These interfaces are very standard and based on DBD::Oracle ver 0.38

#   Copyright (c) 1996 BHA Computer
#
#   You may distribute under the terms of either the GNU General Public
#   License or the Artistic License, as specified in the Perl README file.
#
# DESCRIPTION:
#	general interface into any DBQ version.
#	Allows us to work with the staticly linked libraries that come
#	with DBQ while not sacrificing DBQ version independance.
#
#
# REVISION HISTORY:
#
#  1.1      abr 28-Oct-96 created
#  1.2      abr 28-Oct-96 Initial working version
#       --@@--

{
    package DBD::DBQ;

    require DBI;

    require DynaLoader;
    @ISA = qw(DynaLoader);

    $DBQVERSION = $ENV{DBQVERSION};
    $DBQRELEASE = $ENV{DBQRELEASE};
    $VERSION = "1.00";

    # Install the REAL DBQ driver from the correct version
    DBI->install_driver( "DBQ$DBQVERSION$DBQRELEASE" );

    $drh = undef;       # holds driver handle once initialised

    sub driver{
        return $drh if $drh;
        my($class, $attr) = @_;

        $class .= $DBQVERSION;
	$class .= $DBQRELEASE;
	$class .= "::dr";

        # not a 'my' since we use it above to prevent multiple drivers

        $drh = DBI::_new_drh($class, {
             'Name' => 'DBQ',
             'Version' => $VERSION,
             'Attribution' => 'DBD::DBQ by BHA Computer',
             });

        $drh;
    }

    1;
}

1;




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06838-0@oink>;
          Tue, 12 Nov 1996 03:19:03 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847768240:09580:34; Tue, 12 Nov 96 03:10:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa09579; 12 Nov 96 3:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id OAA23975 for dbi-users-real; Mon, 11 Nov 1996 14:27:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id OAA23971 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 14:27:19 -0800 (PST)
Received: from localhost (kal@localhost) 
          by abyss.ecst.csuchico.edu (8.8.2/8.8.2) with SMTP id OAA08596 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 14:25:42 -0800 (PST)
X-Authentication-Warning: abyss.ecst.csuchico.edu: kal owned process doing -bs
Date: Mon, 11 Nov 1996 14:25:41 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
To: dbi-users@fugue.com
Subject: static linking stii doesn't wor
Message-ID: <Pine.HPP.3.95.961111141039.8348A-300000@abyss.ecst.csuchico.edu>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="2002238499-1804928587-847751141=:8348"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--2002238499-1804928587-847751141=:8348
Content-Type: TEXT/PLAIN; charset=US-ASCII


I'm still trying to get DBI .73 and DBD-Oracle .43 to run on
HPUX 9.05. I do static linking then I try to run the following script

#!/usr/bin/perl
eval 'use Oraperl; 1' || die "where is Oraperl.pm: $@";

I get :
where is Oraperl.pm: install_driver(Oracle) failed: Can't find loadable
object for module DBD::Oracle in @INC (/opt
/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib
/opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .) at /opt/
perl5/lib/site_perl/DBD/Oracle.pm line 24
        DBI::install_driver called at /opt/perl5/lib/site_perl/Oraperl.pm
line 57
        require Oraperl.pm called at (eval 1) line 1
        main::BEGIN called at /opt/perl5/lib/site_perl/Oraperl.pm line 0
        eval {...} called at /opt/perl5/lib/site_perl/Oraperl.pm line 0
        eval 'use Oraperl; 1
;' called at test1.pl line 2
BEGIN failed--compilation aborted at (eval 1) line 1.


I've attached logs for both DBI and DBD installation.
Could someone please take a look and advise?

I can't dedicate much time to resolve this at work. So I'm willing to
offer money for anyone willing to help me on-line, by calling me
at 408-565-2097. I have to attend to other projects at work since this
DBI, DBD is informal and less important to management. I really would
appreciate any help though.

I want to make it worth your while
Please feel free to call Kal at 408-565-2097, and we'll
negotiate.

Thanks.

--2002238499-1804928587-847751141=:8348
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="DBI.install.log"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.95.961111142541.8348B@abyss.ecst.csuchico.edu>
Content-Description: 

bWFrZSByZWFsY2xlYW4NCg0KICAgICAgICBybSAtcmYgREJJLmMgREJJLTAu
NzMvIC4vYmxpYiBNYWtlZmlsZS5hcGVybCAuL2JsaWIvYXJjaC9hdXRvL0RC
SS9leHRyYWxpYnMuYWxsIHBlcmxtYWluLmMgbW9uLm91dCBjb3JlIHNvXw0K
bG9jYXRpb25zIHBtX3RvX2JsaWIgKn4gKi8qfiAqLyovKn4gKi5vICouYSBw
ZXJsLmV4ZSBEQkkuYnMgREJJLmJzbyBEQkkuZGVmIERCSS5leHANCiAgICAg
ICAgbXYgTWFrZWZpbGUgTWFrZWZpbGUub2xkIDI+L2Rldi9udWxsDQogICAg
ICAgIHJtIC1yZiAuL2JsaWIvbGliL2F1dG8vREJJIC4vYmxpYi9hcmNoL2F1
dG8vREJJDQogICAgICAgIHJtIC1mIC4vYmxpYi9hcmNoL2F1dG8vREJJL0RC
SS5zbCAuL2JsaWIvYXJjaC9hdXRvL0RCSS9EQkkuYnMNCiAgICAgICAgcm0g
LWYgLi9ibGliL2FyY2gvYXV0by9EQkkvREJJLmENCiAgICAgICAgcm0gLWYg
Li9ibGliL2FyY2gvREJJL0RCSVhTLmggLi9ibGliL2xpYi9EQkkucG0gLi9i
bGliL2xpYi9EQkQvTnVsbFAucG0gLi9ibGliL2xpYi9EQkQvRXhhbXBsZVAu
cG0gLi9ibGliL2wNCmliL0RCRC9TcG9uZ2UucG0NCiAgICAgICAgcm0gLXJm
IE1ha2VmaWxlIE1ha2VmaWxlLm9sZA0KDQpfX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KDQpwZXJsIE1ha2VmaWxl
LlBMIExJTktUWVBFPXN0YXRpYw0KDQpNYWtlTWFrZXIgKHY1LjM0KQ0KQ2hl
Y2tpbmcgaWYgeW91ciBraXQgaXMgY29tcGxldGUuLi4NCkxvb2tzIGdvb2QN
CiAgICAgICAgTElOS1RZUEUgPT4gcVtzdGF0aWNdDQogICAgICAgIE5BTUUg
PT4gcVtEQkldDQogICAgICAgIFBSRVJFUV9QTSA9PiB7ICB9DQogICAgICAg
IFZFUlNJT05fRlJPTSA9PiBxW0RCSS5wbV0NCiAgICAgICAgY2xlYW4gPT4g
eyBGSUxFUz0+cVskKERJU1RWTkFNRSkvXSB9DQogICAgICAgIGRpc3QgPT4g
eyBESVNUX0RFRkFVTFQ9PnFbY2xlYW4gZGlzdGNoZWNrIGRpc3R0ZXN0IGNp
IHRhcmRpc3RdLCBQUkVPUD0+cVskKE1BS0UpIC1mIE1ha2VmaWxlLm9sZCBk
aXN0ZGlyXSB9DQpVc2luZyBQRVJMPS91c3IvYmluL3BlcmwNCldyaXRpbmcg
TWFrZWZpbGUgZm9yIERCSQ0KDQpfX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fXw0KDQptYWtlDQoNCg0KY3AgREJJWFMu
aCAuL2JsaWIvYXJjaC9EQkkvREJJWFMuaA0KY3AgREJJLnBtIC4vYmxpYi9s
aWIvREJJLnBtDQpjcCBsaWIvREJEL051bGxQLnBtIC4vYmxpYi9saWIvREJE
L051bGxQLnBtDQpjcCBsaWIvREJEL1Nwb25nZS5wbSAuL2JsaWIvbGliL0RC
RC9TcG9uZ2UucG0NCmNwIGxpYi9EQkQvRXhhbXBsZVAucG0gLi9ibGliL2xp
Yi9EQkQvRXhhbXBsZVAucG0NCiAgICAgICAgL3Vzci9iaW4vcGVybCAtSS9v
cHQvcGVybDUvbGliL1BBLVJJU0MxLjEvNS4wMDMgLUkvb3B0L3Blcmw1L2xp
YiAvb3B0L3Blcmw1L2xpYi9FeHRVdGlscy94c3VicHAgIC10eXBlbWFwIC8N
Cm9wdC9wZXJsNS9saWIvRXh0VXRpbHMvdHlwZW1hcCBEQkkueHMgPkRCSS50
YyAmJiBtdiBEQkkudGMgREJJLmMNCiAgICAgICAgY2MgLWMgIC1EX0hQVVhf
U09VUkNFIC1BYSAtTyAgICAgLURWRVJTSU9OPVwiMC43M1wiICAtRFhTX1ZF
UlNJT049XCIwLjczXCIgK3ogLUkvb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4x
LzUNCi4wMDMvQ09SRSAgREJJLmMNCiAgICAgICAgcm0gLXJmIC4vYmxpYi9h
cmNoL2F1dG8vREJJL0RCSS5hDQogICAgICAgIGFyIGNyIC4vYmxpYi9hcmNo
L2F1dG8vREJJL0RCSS5hIERCSS5vICYmIDogLi9ibGliL2FyY2gvYXV0by9E
QkkvREJJLmENCiAgICAgICAgY2htb2QgNzU1IC4vYmxpYi9hcmNoL2F1dG8v
REJJL0RCSS5hDQoNCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX18NCm1ha2UgdGVzdA0KICAgICAgICBybSAtcmYg
Li9ibGliL2FyY2gvYXV0by9EQkkvREJJLmENCiAgICAgICAgYXIgY3IgLi9i
bGliL2FyY2gvYXV0by9EQkkvREJJLmEgREJJLm8gJiYgOiAuL2JsaWIvYXJj
aC9hdXRvL0RCSS9EQkkuYQ0KICAgICAgICBjaG1vZCA3NTUgLi9ibGliL2Fy
Y2gvYXV0by9EQkkvREJJLmENCldyaXRpbmcgIk1ha2VmaWxlLmFwZXJsIiBm
b3IgdGhpcyBwZXJsDQpNYWtlTWFrZXIgKHY1LjM0KQ0KICAgICAgICBDQ0NE
TEZMQUdTID0+IHFbXQ0KICAgICAgICBESVIgPT4gW10NCiAgICAgICAgTElO
S1RZUEUgPT4gcVtzdGF0aWNdDQogICAgICAgIE1BS0VBUEVSTCA9PiBxWzFd
DQogICAgICAgIE1BS0VGSUxFID0+IHFbTWFrZWZpbGUuYXBlcmxdDQogICAg
ICAgIE5BTUUgPT4gcVtEQkldDQogICAgICAgIE5PUkVDVVJTID0+IHFbMV0N
CiAgICAgICAgUFJFUkVRX1BNID0+IHsgIH0NCiAgICAgICAgVkVSU0lPTl9G
Uk9NID0+IHFbREJJLnBtXQ0KICAgICAgICBjbGVhbiA9PiB7IEZJTEVTPT5x
WyQoRElTVFZOQU1FKS9dIH0NCiAgICAgICAgZGlzdCA9PiB7IERJU1RfREVG
QVVMVD0+cVtjbGVhbiBkaXN0Y2hlY2sgZGlzdHRlc3QgY2kgdGFyZGlzdF0s
IFBSRU9QPT5xWyQoTUFLRSkgLWYgTWFrZWZpbGUub2xkIGRpc3RkaXJdIH0N
ClVzaW5nIFBFUkw9L3Vzci9iaW4vcGVybA0KV3JpdGluZyBNYWtlZmlsZS5h
cGVybCBmb3IgREJJDQogICAgICAgIG1ha2UgLWYgTWFrZWZpbGUuYXBlcmwg
cGVybA0KV3JpdGluZyAuL3BlcmxtYWluLmMNCiAgICAgICAgY2QgLiAmJiBj
YyAtYyAgLUkvb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4xLzUuMDAzL0NPUkUg
IC1EX0hQVVhfU09VUkNFIC1BYSAtTyBcDQogICAgICAgICAgIC1EVkVSU0lP
Tj1cIjAuNzNcIiBcDQogICAgICAgIC1EWFNfVkVSU0lPTj1cIjAuNzNcIiAt
SS9vcHQvcGVybDUvbGliL1BBLVJJU0MxLjEvNS4wMDMvQ09SRSBwZXJsbWFp
bi5jDQogICAgICAgIGNhdCAuL2JsaWIvYXJjaC9hdXRvL0RCSS9leHRyYWxp
YnMubGQgPj4gLi9ibGliL2FyY2gvYXV0by9EQkkvZXh0cmFsaWJzLmFsbA0K
ICAgICAgICBjYXQgL29wdC9wZXJsNS9saWIvUEEtUklTQzEuMS81LjAwMy9h
dXRvL0R5bmFMb2FkZXIvZXh0cmFsaWJzLmxkID4+IC4vYmxpYi9hcmNoL2F1
dG8vREJJL2V4dHJhbGlicy5hbGwNCiAgICAgICAgY2F0IC9vcHQvcHRzICR2
ZXJib3NlKTsgJHZlcmJvc2U9MDsgcnVudGVzdHMgQEFSR1Y7JyB0LyoudA0K
dC9taW4uLi4uLi4uLi4uLi4uLi5vaw0KQWxsIHRlc3RzIHN1Y2Nlc3NmdWwu
DQpGaWxlcz0xLCAgVGVzdHM9MTIsICAwIHNlY3MgKCAwLjMyIGN1c3IgIDAu
MDkgY3N5cyA9ICAwLjQxIGNwdSkNCiAgICAgICAgUEVSTF9ETF9OT05MQVpZ
PTEgLi9wZXJsIC1JLi9ibGliL2FyY2ggLUkuL2JsaWIvbGliIC1JL29wdC9w
ZXJsNS9saWIvUEEtUklTQzEuMS81LjAwMyAtSS9vcHQvcGVybDUvbGliIHRl
c3QNCi5wbA0KdGVzdC5wbA0KREJJIHRlc3QgYXBwbGljYXRpb24gJFJldmlz
aW9uOiAxLjE2ICQNClN3aXRjaDogREJJLTAuNzMgU3dpdGNoIGJ5IFRpbSBC
dW5jZSwgMC43Mw0KRGVidWdEaXNwYXRjaDogMA0KQXZhaWxhYmxlIERyaXZl
cnM6IEV4YW1wbGVQLCBOdWxsUCwgU3BvbmdlLCBPcmFjbGUNClJlYWQgREJJ
IHNwZWNpYWwgdmFyaWFibGVzIChleHBlY3Q6IGVtcHR5IHN0cmluZywgOTks
IDk5KToNCmVycjoNCmVycjogICAgOTkNCmVycnN0cjogOTkNCkF0dGVtcHQg
dG8gbW9kaWZ5IERCSSBzcGVjaWFsIHZhcmlhYmxlcy4NCkV4cGVjdCBhICdD
YW4ndCBtb2RpZnknIGVycm9yIG1lc3NhZ2U6DQoNCkNvbm5lY3RlZCBhcyBE
Qkk6OmRiPUhBU0goMHg0MDEwODkxYykNCg0KVGVzdCBlcnJvciBoYW5kbGlu
ZzogcHJlcGFyZSgpJ2luZyBhbiBpbnZhbGlkIHF1ZXJ5Lg0KRXhwZWN0IHBy
ZXBhcmUgdG8gcmV0dXJuIFVOREVGIGFuZCBhbiBlcnJvciBtZXNzYWdlOg0K
cHJlcGFyZSByZXR1cm5lZCBVTkRFRi4gJERCSTo6ZXJyPVVua25vd24gZmll
bGQgbmFtZXM6IHVua25vd25fZmllbGRfbmFtZQ0KDQpDdXJzb3IgcHJlcGFy
ZSdkIGFzIERCSTo6c3Q9SEFTSCgweDQwMTA4YTNjKQ0KUHJlcGFyZWQgYXMg
REJJOjpzdD1IQVNIKDB4NDAxMDhhZjApDQpOdW1iZXIgb2YgZmllbGRzOiAz
DQpEYXRhIHR5cGUgb2YgZmlyc3QgZmllbGQ6IDENCkRyaXZlciBuYW1lOiBF
eGFtcGxlUA0KDQpGZXRjaGluZyBkYXRhIGZyb20gYm90aCBjdXJzb3JzLg0K
RXhwZWN0IHNldmVyYWwgcm93cyBvZiBkYXRhOg0KMTY3NDkgMjA0ODAgLiwg
MSAxMDI0IC4NCjE2ODc3IDIgLi4sIDEgMTAyNCAuLg0KMTY3NDkgMjI1Mjgg
bGliLCAxIDI0IHJleGQNCjE2NzQ5IDI2NjI0IGJpbiwgMSAxMDI0IGNyb24N
CjE2ODk1IDQ1MDU2IHRtcCwgMSAxMDI0IHNvY2tldHMNCjE2NzQ5IDQ5MTUy
IG1hbiwgMSAyNCByd2hvDQoxNjc0OSA1NzM0NCBuZXRkZW1vLCAxIDEwMjQg
bXF1ZXVlDQoxNjc0OSA2OTYzMiBpbmNsdWRlLCAxIDEwMjQgbHANCjE2NzQ5
IDEwODU0NCBuZXR0ZXN0LCAxIDI0IHV1Y3BwdWJsaWMNCjE2NzQ5IDE0MTMx
MiBzcG9vbCwgMSAxMDI0IHV1Y3ANCjE2NzQ5IDE0NTQwOCBldGMsIDEgMjQg
cHBsDQoNCkF1dG9tYXRpYyBtZXRob2QgcGFyYW1ldGVyIHVzYWdlIGNoZWNr
Lg0KRXhwZWN0IGEgJ0RCSSAuLi4gaW52YWxpZCcgZXJyb3IgYW5kIGEgJ1Vz
YWdlOiAuLi4nIG1lc3NhZ2U6DQpQcmVwYXJpbmcgbmV3ICRjdXJzb3JfYSB0
byByZXBsYWNlIGN1cnJlbnQgJGN1cnNvcl9hLg0KV2UgZW5hYmxlIGRlYnVn
Z2luZyBvbiBjdXJyZW50IHRvIHdhdGNoIGl0J3MgZGVzdHJ1Y3Rpb24uDQpF
eHBlY3Qgc2V2ZXJhbCBsaW5lcyBvZiBEQkkgdHJhY2UgaW5mb3JtYXRpb246
DQoNCkV4ZWN1dGluZyB2aWEgZnVuYyByZWRpcmVjdDogJGgtPmZ1bmMoLi4u
LCAnZXhlY3V0ZScpDQoNCkJpbmRpbmcgY29sdW1ucyBvZiAkY3Vyc29yX2Eg
dG8gdmFyaWFibGVzLg0KDQpGZXRjaGluZyBvbmUgcm93IGZyb20gbmV3ICRj
dXJzb3JfYSB3aXRoIGEgYm91bmQgY29sdW1uLg0KRXhwZWN0IGEgbGFyZ2Ug
bnVtYmVyIGZvbGx3ZWQgYnkgYSBkb3Q6DQo4NDc3NDkzMDcgLg0KYmluZF9j
b2wgd29ya2VkDQoNCkN1cnNvciB0ZXN0cyBkb25lIChzY29wZWQgb2JqZWN0
cyB3aWxsIGJlIGRlc3Ryb3llZCBub3cpDQp0ZXN0LnBsIGRvbmUgKGdsb2Jh
bCBkZXN0cnVjdGlvbiB3aWxsIGZvbGxvdykNCg0KX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KDQptYWtlIGluc3Rh
bGwNCg0KSW5zdGFsbGluZyAvb3B0L3Blcmw1L2xpYi9zaXRlX3BlcmwvUEEt
UklTQzEuMS8uL2F1dG8vREJJL0RCSS5hDQpTa2lwcGluZyAvb3B0L3Blcmw1
L2xpYi9zaXRlX3BlcmwvUEEtUklTQzEuMS8uL2F1dG8vREJJL2V4dHJhbGli
cy5sZCAodW5jaGFuZ2VkKQ0KU2tpcHBpbmcgL29wdC9wZXJsNS9saWIvc2l0
ZV9wZXJsL1BBLVJJU0MxLjEvLi9hdXRvL0RCSS9leHRyYWxpYnMuYWxsICh1
bmNoYW5nZWQpDQpTa2lwcGluZyAvb3B0L3Blcmw1L2xpYi9zaXRlX3Blcmwv
UEEtUklTQzEuMS8uL0RCSS9EQklYUy5oICh1bmNoYW5nZWQpDQpTa2lwcGlu
ZyAvb3B0L3Blcmw1L2xpYi9zaXRlX3BlcmwvLi9EQkkucG0gKHVuY2hhbmdl
ZCkNClNraXBwaW5nIC9vcHQvcGVybDUvbGliL3NpdGVfcGVybC8uL0RCRC9O
dWxsUC5wbSAodW5jaGFuZ2VkKQ0KU2tpcHBpbmcgL29wdC9wZXJsNS9saWIv
c2l0ZV9wZXJsLy4vREJEL1Nwb25nZS5wbSAodW5jaGFuZ2VkKQ0KU2tpcHBp
bmcgL29wdC9wZXJsNS9saWIvc2l0ZV9wZXJsLy4vREJEL0V4YW1wbGVQLnBt
ICh1bmNoYW5nZWQpDQpXcml0aW5nIC9vcHQvcGVybDUvbGliL3NpdGVfcGVy
bC9QQS1SSVNDMS4xL2F1dG8vREJJLy5wYWNrbGlzdA0KQXBwZW5kaW5nIGlu
c3RhbGxhdGlvbiBpbmZvIHRvIC9vcHQvcGVybDUvbGliL1BBLVJJU0MxLjEv
NS4wMDMvcGVybGxvY2FsLnBvZA0KDQoNCg==
--2002238499-1804928587-847751141=:8348
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="DBD.install.log"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.95.961111142541.8348C@abyss.ecst.csuchico.edu>
Content-Description: 

bWFrZSByZWFsY2xlYW4NCg0KCXJtIC1yZiBPcmFjbGUuYyAuL2JsaWIgTWFr
ZWZpbGUuYXBlcmwgPQ0KLi9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xlL2V4
dHJhbGlicy5hbGwgcGVybG1haW4uYyBtb24ub3V0IGNvcmUgPQ0Kc29fbG9j
YXRpb25zIHBtX3RvX2JsaWIgKn4gKi8qfiAqLyovKn4gKi5vICouYSBwZXJs
LmV4ZSBPcmFjbGUuYnMgPQ0KT3JhY2xlLmJzbyBPcmFjbGUuZGVmIE9yYWNs
ZS5leHANCgltdiBNYWtlZmlsZSBNYWtlZmlsZS5vbGQgMj4vZGV2L251bGwN
CglybSAtcmYgLi9ibGliL2xpYi9hdXRvL0RCRC9PcmFjbGUgLi9ibGliL2Fy
Y2gvYXV0by9EQkQvT3JhY2xlDQoJcm0gLWYgLi9ibGliL2FyY2gvYXV0by9E
QkQvT3JhY2xlL09yYWNsZS5zbCA9DQouL2JsaWIvYXJjaC9hdXRvL0RCRC9P
cmFjbGUvT3JhY2xlLmJzDQoJcm0gLWYgLi9ibGliL2FyY2gvYXV0by9EQkQv
T3JhY2xlL09yYWNsZS5hDQoJcm0gLWYgLi9ibGliL2xpYi9PcmFwZXJsLnBt
IC4vYmxpYi9saWIvREJEL09yYWNsZS5wbSA9DQouL2JsaWIvbGliL29yYXBl
cmwucGgNCglybSAtcmYgTWFrZWZpbGUgTWFrZWZpbGUub2xkDQoNCl9fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX18NCg0KcGVybCBNYWtlZmlsZS5Q
TCBMSU5LVFlQRT0zRHN0YXRpYw0KDQoNCg0KIENvbmZpZ3VyaW5nIERCRDo6
T3JhY2xlIC4uLg0KDQo+Pj4JUmVtZW1iZXIgdG8gYWN0dWFsbHkgKlJFQUQq
IHRoZSBSRUFETUUgZmlsZSENCiAgIAlFc3BlY2lhbGx5IGlmIHlvdSBoYXZl
IGFueSBwcm9ibGVtcy4NCg0KVXNpbmcgT3JhY2xlIGluIC9vcHQvb3JhY2xl
L2Rpc3QvNy4yLjMNClJlYWRpbmcgL29wdC9vcmFjbGUvZGlzdC83LjIuMy9w
cm9jL2xpYi9wcm9jLm1rLg0KV2FybmluZzogZm9yY2VkIHRvIGJ1aWxkIHN0
YXRpYyBub3QgZHluYW1pYyBvbiBocHV4IDkNCiAgICAgICAgIFNlZSBSRUFE
TUUgYW5kIE1ha2VmaWxlLlBMIGZvciBtb3JlIGluZm9ybWF0aW9uLg0KU3lz
dGVtOiBwZXJsNS4wMDMgaHAtdXggbnNjbGhmNG0gYS4wOS4wNSBhIDkwMDA3
MTIgMjAwNDY5MTE1OCB0d28tdXNlciA9DQpsaWNlbnNlIA0KQ29tcGlsZXI6
IGNjIC1PIC1EX0hQVVhfU09VUkNFIC1BYQ0KTGlua2VyOiAgIC9iaW4vbGQN
Ck9yYWNsZSBwcm9jLm1rIHdvdWxkIGhhdmUgdXNlZCB0aGVzZSB2YWx1ZXMg
YnV0IHdlIG92ZXJyaWRlIHRoZW06DQogIENDOiAgICAgICBjYw0KICBDRkxB
R1M6ICAgLUkuIC1PIC1BYSAtRF9IUFVYX1NPVVJDRSArRVNzZmMgK0VTbGl0
DQogIExERkxBR1M6ICAtV2wsLWFhcmNoaXZlIC1MJChMSUJIT01FKQ0KTGlu
a2luZyB3aXRoIC9vcHQvb3JhY2xlL2Rpc3QvNy4yLjMvbGliL29zbnRhYi5v
IC1sb2NpYyAgLWxzcWxuZXQgLWxvcmEgPQ0KLWxzcWxuZXQgLWxvcmEgLWxu
bHNydGwzIC1sYzN2NiAtbGNvcmUzIC1sbmxzcnRsMyAtbGNvcmUzIC1sY2wg
LWxtIA0KDQpDaGVja2luZyBpZiB5b3VyIGtpdCBpcyBjb21wbGV0ZS4uLg0K
TG9va3MgZ29vZA0KV3JpdGluZyBNYWtlZmlsZSBmb3IgREJEOjpPcmFjbGUN
Cg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoNCm1ha2UNCg0K
DQpjcCBPcmFwZXJsLnBtIC4vYmxpYi9saWIvT3JhcGVybC5wbQ0KY3AgT3Jh
Y2xlLnBtIC4vYmxpYi9saWIvREJEL09yYWNsZS5wbQ0KY3Agb3JhcGVybC5w
aCAuL2JsaWIvbGliL29yYXBlcmwucGgNCgkvdXNyL2Jpbi9wZXJsIC1JL29w
dC9wZXJsNS9saWIvUEEtUklTQzEuMS81LjAwMyAtSS9vcHQvcGVybDUvbGli
ID0NCi9vcHQvcGVybDUvbGliL0V4dFV0aWxzL3hzdWJwcCAgLXR5cGVtYXAg
L29wdC9wZXJsNS9saWIvRXh0VXRpbHMvdHlwZW1hcCA9DQpPcmFjbGUueHMg
Pk9yYWNsZS50YyAmJiBtdiBPcmFjbGUudGMgT3JhY2xlLmMNCgljYyAtYyAt
SS9vcHQvb3JhY2xlL2Rpc3QvNy4yLjMvcmRibXMvZGVtbyA9DQotSS9vcHQv
cGVybDUvbGliL3NpdGVfcGVybC9QQS1SSVNDMS4xL0RCSSA9DQotSS9vcHQv
cGVybDUvbGliL1BBLVJJU0MxLjEvNS4wMDMvREJJIC1EX0hQVVhfU09VUkNF
IC1BYSAtTyAgICAgPQ0KLURWRVJTSU9OPTNEXCIwLjQzXCIgIC1EWFNfVkVS
U0lPTj0zRFwiMC40M1wiICt6ID0NCi1JL29wdC9wZXJsNS9saWIvUEEtUklT
QzEuMS81LjAwMy9DT1JFICBPcmFjbGUuYw0KCWNjIC1jIC1JL29wdC9vcmFj
bGUvZGlzdC83LjIuMy9yZGJtcy9kZW1vID0NCi1JL29wdC9wZXJsNS9saWIv
c2l0ZV9wZXJsL1BBLVJJU0MxLjEvREJJID0NCi1JL29wdC9wZXJsNS9saWIv
UEEtUklTQzEuMS81LjAwMy9EQkkgLURfSFBVWF9TT1VSQ0UgLUFhIC1PICAg
ICA9DQotRFZFUlNJT049M0RcIjAuNDNcIiAgLURYU19WRVJTSU9OPTNEXCIw
LjQzXCIgK3ogPQ0KLUkvb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4xLzUuMDAz
L0NPUkUgIGRiZGltcC5jDQoJcm0gLXJmIC4vYmxpYi9hcmNoL2F1dG8vREJE
L09yYWNsZS9PcmFjbGUuYQ0KCWFyIGNyIC4vYmxpYi9hcmNoL2F1dG8vREJE
L09yYWNsZS9PcmFjbGUuYSBPcmFjbGUubyAgZGJkaW1wLm8gJiYgOiA9DQou
L2JsaWIvYXJjaC9hdXRvL0RCRC9PcmFjbGUvT3JhY2xlLmENCgljaG1vZCA3
NTUgLi9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xlL09yYWNsZS5hDQpNYW5p
ZnlpbmcgLi9ibGliL21hbjMvREJEOjpPcmFwZXJsLjMNCg0KX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX18NCg0KbWFrZSBwZXJsDQoNCgly
bSAtcmYgLi9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xlL09yYWNsZS5hDQoJ
YXIgY3IgLi9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xlL09yYWNsZS5hIE9y
YWNsZS5vICBkYmRpbXAubyAmJiA6ID0NCi4vYmxpYi9hcmNoL2F1dG8vREJE
L09yYWNsZS9PcmFjbGUuYQ0KCWNobW9kIDc1NSAuL2JsaWIvYXJjaC9hdXRv
L0RCRC9PcmFjbGUvT3JhY2xlLmENCldyaXRpbmcgIk1ha2VmaWxlLmFwZXJs
IiBmb3IgdGhpcyBwZXJsDQoNCiBDb25maWd1cmluZyBEQkQ6Ok9yYWNsZSAu
Li4NCg0KPj4+CVJlbWVtYmVyIHRvIGFjdHVhbGx5ICpSRUFEKiB0aGUgUkVB
RE1FIGZpbGUhDQogICAJRXNwZWNpYWxseSBpZiB5b3UgaGF2ZSBhbnkgcHJv
YmxlbXMuDQoNClVzaW5nIE9yYWNsZSBpbiAvb3B0L29yYWNsZS9kaXN0Lzcu
Mi4zDQpSZWFkaW5nIC9vcHQvb3JhY2xlL2Rpc3QvNy4yLjMvcHJvYy9saWIv
cHJvYy5tay4NCldhcm5pbmc6IGZvcmNlZCB0byBidWlsZCBzdGF0aWMgbm90
IGR5bmFtaWMgb24gaHB1eCA5DQogICAgICAgICBTZWUgUkVBRE1FIGFuZCBN
YWtlZmlsZS5QTCBmb3IgbW9yZSBpbmZvcm1hdGlvbi4NClN5c3RlbTogcGVy
bDUuMDAzIGhwLXV4IG5zY2xoZjRtIGEuMDkuMDUgYSA5MDAwNzEyIDIwMDQ2
OTExNTggdHdvLXVzZXIgPQ0KbGljZW5zZSANCkNvbXBpbGVyOiBjYyAtTyAt
RF9IUFVYX1NPVVJDRSAtQWENCkxpbmtlcjogICAvYmluL2xkDQpPcmFjbGUg
cHJvYy5tayB3b3VsZCBoYXZlIHVzZWQgdGhlc2UgdmFsdWVzIGJ1dCB3ZSBv
dmVycmlkZSB0aGVtOg0KICBDQzogICAgICAgY2MNCiAgQ0ZMQUdTOiAgIC1J
LiAtTyAtQWEgLURfSFBVWF9TT1VSQ0UgK0VTc2ZjICtFU2xpdA0KICBMREZM
QUdTOiAgLVdsLC1hYXJjaGl2ZSAtTCQoTElCSE9NRSkNCkxpbmtpbmcgd2l0
aCAvb3B0L29yYWNsZS9kaXN0LzcuMi4zL2xpYi9vc250YWIubyAtbG9jaWMg
IC1sc3FsbmV0IC1sb3JhID0NCi1sc3FsbmV0IC1sb3JhIC1sbmxzcnRsMyAt
bGMzdjYgLWxjb3JlMyAtbG5sc3J0bDMgLWxjb3JlMyAtbGNsIC1sbSANCg0K
V3JpdGluZyBNYWtlZmlsZS5hcGVybCBmb3IgREJEOjpPcmFjbGUNCgltYWtl
IC1mIE1ha2VmaWxlLmFwZXJsIHBlcmwNCldyaXRpbmcgLi9wZXJsbWFpbi5j
DQoJY2QgLiAmJiBjYyAtYyAgLUkvb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4x
LzUuMDAzL0NPUkUgIC1EX0hQVVhfU09VUkNFID0NCi1BYSAtTyBcDQoJICAg
LURWRVJTSU9OPTNEXCIwLjQzXCIgXA0KCS1EWFNfVkVSU0lPTj0zRFwiMC40
M1wiIC1JL29wdC9wZXJsNS9saWIvUEEtUklTQzEuMS81LjAwMy9DT1JFID0N
CnBlcmxtYWluLmMNCgljYXQgLi9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xl
L2V4dHJhbGlicy5sZCA+PiA9DQouL2JsaWIvYXJjaC9hdXRvL0RCRC9PcmFj
bGUvZXh0cmFsaWJzLmFsbA0KCWNhdCAvb3B0L3Blcmw1L2xpYi9QQS1SSVND
MS4xLzUuMDAzL2F1dG8vRHluYUxvYWRlci9leHRyYWxpYnMubGQgPj4gPQ0K
Li9ibGliL2FyY2gvYXV0by9EQkQvT3JhY2xlL2V4dHJhbGlicy5hbGwNCglj
YXQgL29wdC9wZXJsNS9saWIvc2l0ZV9wZXJsL1BBLVJJU0MxLjEvYXV0by9E
QkkvZXh0cmFsaWJzLmxkID4+ID0NCi4vYmxpYi9hcmNoL2F1dG8vREJEL09y
YWNsZS9leHRyYWxpYnMuYWxsDQoJY2MgLUwvdXNyL2xvY2FsL2xpYiAtV2ws
LUUgLVdsLC1CLGRlZmVycmVkICAtbyBwZXJsIC1PIC4vcGVybG1haW4ubyA9
DQovb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4xLzUuMDAzL0NPUkUvbGlicGVy
bC5hID0NCi9vcHQvcGVybDUvbGliL3NpdGVfcGVybC9QQS1SSVNDMS4xL2F1
dG8vREJJL0RCSS5hICA9DQovb3B0L3Blcmw1L2xpYi9QQS1SSVNDMS4xLzUu
MDAzL2F1dG8vRHluYUxvYWRlci9EeW5hTG9hZGVyLmEgID0NCi4vYmxpYi9h
cmNoL2F1dG8vREJEL09yYWNsZS9PcmFjbGUuYSBgY2F0ID0NCi4vYmxpYi9h
cmNoL2F1dG8vREJEL09yYWNsZS9leHRyYWxpYnMuYWxsYCAtbG5ldCAtbG5z
bF9zIC1sbmRibSAtbGRsZCAtbG0gPQ0KLWxjIC1sbmRpciAtbGNyeXB0IA0K
VG8gaW5zdGFsbCB0aGUgbmV3ICJwZXJsIiBiaW5hcnksIGNhbGwNCiAgICBt
YWtlIC1mIE1ha2VmaWxlLmFwZXJsIGluc3RfcGVybCBNQVBfVEFSR0VUPTNE
cGVybA0KVG8gcmVtb3ZlIHRoZSBpbnRlcm1lZGlhdGUgZmlsZXMgc2F5DQog
ICAgbWFrZSAtZiBNYWtlZmlsZS5hcGVybCBtYXBfY2xlYW4NCg0KX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoNCm1ha2UgdGVzdCBG
VUxMUEVSTD0zRC4vcGVybA0KDQoJbWFrZSAtZiBNYWtlZmlsZS5hcGVybCBw
ZXJsDQpgcGVybCcgaXMgdXAgdG8gZGF0ZS4NCglQRVJMX0RMX05PTkxBWlk9
M0QxIC4vcGVybCAtSS4vYmxpYi9hcmNoIC1JLi9ibGliL2xpYiA9DQotSS9v
cHQvcGVybDUvbGliL1BBLVJJU0MxLjEvNS4wMDMgLUkvb3B0L3Blcmw1L2xp
YiAtZSAndXNlIFRlc3Q6Okhhcm5lc3MgPQ0KcXcoJnJ1bnRlc3RzICR2ZXJi
b3NlKTsgJHZlcmJvc2U9M0QwOyBydW50ZXN0cyBAQVJHVjsnIHQvKi50DQp0
L2Jhc2UuLi4uLi4uLi4uLi4uLm9rDQpBbGwgdGVzdHMgc3VjY2Vzc2Z1bC4N
CkZpbGVzPTNEMSwgIFRlc3RzPTNENSwgIDEgc2VjcyAoIDAuMzggY3VzciAg
MC4wNiBjc3lzID0zRCAgMC40NCBjcHUpDQoJUEVSTF9ETF9OT05MQVpZPTNE
MSAuL3BlcmwgLUkuL2JsaWIvYXJjaCAtSS4vYmxpYi9saWIgPQ0KLUkvb3B0
L3Blcmw1L2xpYi9QQS1SSVNDMS4xLzUuMDAzIC1JL29wdC9wZXJsNS9saWIg
dGVzdC5wbA0KT3JhcGVybCB0ZXN0IGFwcGxpY2F0aW9uICRSZXZpc2lvbjog
MS4yOCAkDQoNCk9yYXBlcmwgRW11bGF0aW9uIEludGVyZmFjZSB2ZXJzaW9u
IDEuMzEgDQpPcmFjbGUgRHJpdmVyIDAuNDMNCkRCSS0wLjczIFN3aXRjaCBi
eSBUaW0gQnVuY2UsIHZlcnNpb24gMC43Mw0KDQoNCkNvbm5lY3RpbmcNCiB0
byAnJyAoZnJvbSBjb21tYW5kIGxpbmUsIGVsc2UgdXNlcyBPUkFDTEVfU0lE
IG9yIFRXT19UQVNLIC0gPQ0KcmVjb21tZW5kZWQpDQogYXMgJ2ltZGIvaW1k
YicgKHZpYSBPUkFDTEVfVVNFUklEIGVudiB2YXIgb3IgZGVmYXVsdCAtIHJl
Y29tbWVuZCA9DQpuYW1lL3Bhc3N3ZEBkYm5hbWUpDQooT1JBQ0xFX1NJRD0z
RCdzY2NhbWVuZycsIFRXT19UQVNLPTNEJ3RuczpJTURCJykNCkZpZWxkczog
IDQNCk5hbWVzOiAgICdOVU1fVCcsCSdEQVRFX1QnLAknQ0hBUl9UJywJJ05V
TExfVCcNCkxlbmd0aHM6ICc0MCcsCSc3NScsCSczMCcsCScwJw0KVHlwZXM6
ICAgJzInLAknMTInLAknMScsCScxJw0KRGF0YSByb3dzOg0KICAgIGZldGNo
OiA3OS4yIDExLU5PVi05NiBJTURCIE5VTEwNCg0KY3NyIHJlYXNzaWduZWQg
KGZvcmNlcyBkZXN0cnVjdGlvbikuLi4NCkZldGNoIGxpc3Qgb2YgdGFibGVz
Og0KRmV0Y2hlZDogQVVEJA0KRmV0Y2hlZDogRFVBTA0KRmV0Y2hlZDogU1lT
VEVNX1BSSVZJTEVHRV9NQVANCkZldGNoZWQ6IFRBQkxFX1BSSVZJTEVHRV9N
QVANClRlc3Qgb3JhX2RvIHdpdGggaGFybWxlc3Mgbm9uLXNlbGVjdCBzdGF0
ZW1lbnQgKHNldCB0cmFuc2FjdGlvbiByZWFkID0NCm9ubHkpDQpFeHBlY3Qg
ZXJyb3IgbWVzc2FnZToNCmNzciBvdXQgb2Ygc2NvcGUuLi4NCm9yYV9sb2dv
ZmYuLi4NCmxkYSBvdXQgb2Ygc2NvcGUuLi4NCg0KVGVzdGluZyByZXBldGl0
aXZlIGNvbm5lY3Qvb3Blbi9jbG9zZS9kaXNjb25uZWN0Og0KRXhwZWN0IHNl
cXVlbmNlIG9mIGRpZ2l0cywgbm8gb3RoZXIgbWVzc2FnZXM6DQoxIDIgMyA0
IDUgDQoNClRlc3QgaW50ZXJhY3Rpb24gb2YgZXhwbGljaXQgY2xvc2UvbG9n
b2ZmIGFuZCBpbXBsaWNpdCBERVNUUk9Zcw0KRXhwZWN0IGp1c3QgJ2RvbmUu
Jywgbm8gb3RoZXIgbWVzc2FnZXM6DQpkb25lLg0KDQpUZXN0aW5nIHJvdyBj
YWNoZSAoNSkuDQpUZXN0IGNvbXBsZXRlZCBpbiAxIHNlY29uZHMuDQoNClRl
c3RpbmcgUEwvU1FMIGludGVyYWN0aW9uLg0KVGVzdGluZyBiaW5kX3BhcmFt
X2lub3V0LiBFeHBlY3QgJzIwMCcsICczODAwJywgJzc1ODAwJzoNCnBhcmFt
PTNEJzIwMCcNCnBhcmFtPTNEJzM4MDAnDQpwYXJhbT0zRCc3NTgwMCcNCg0K
VGVzdCBjb21wbGV0ZSAoOCBzZWNvbmRzKS4NCklmIHRoZSB0ZXN0cyBhYm92
ZSBoYXZlIHByb2R1Y2VkIHRoZSAnZXhwZWN0ZWQnIG91dHB1dCB0aGVuIHRo
ZXkgaGF2ZSA9DQpwYXNzZWQuDQoNCl9fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fXw0KDQptYWtlIGluc3RhbGwNCg0KSW5zdGFsbGluZyAvb3B0
L3Blcmw1L2xpYi9zaXRlX3BlcmwvUEEtUklTQzEuMS8uL2F1dG8vREJEL09y
YWNsZS9PcmFjbGUuYQ0KU2tpcHBpbmcgPQ0KL29wdC9wZXJsNS9saWIvc2l0
ZV9wZXJsL1BBLVJJU0MxLjEvLi9hdXRvL0RCRC9PcmFjbGUvZXh0cmFsaWJz
LmxkID0NCih1bmNoYW5nZWQpDQpTa2lwcGluZyA9DQovb3B0L3Blcmw1L2xp
Yi9zaXRlX3BlcmwvUEEtUklTQzEuMS8uL2F1dG8vREJEL09yYWNsZS9leHRy
YWxpYnMuYWxsID0NCih1bmNoYW5nZWQpDQpTa2lwcGluZyAvb3B0L3Blcmw1
L2xpYi9zaXRlX3BlcmwvLi9EQkQvT3JhY2xlLnBtICh1bmNoYW5nZWQpDQpT
a2lwcGluZyAvb3B0L3Blcmw1L2xpYi9zaXRlX3BlcmwvLi9PcmFwZXJsLnBt
ICh1bmNoYW5nZWQpDQpTa2lwcGluZyAvb3B0L3Blcmw1L2xpYi9zaXRlX3Bl
cmwvLi9vcmFwZXJsLnBoICh1bmNoYW5nZWQpDQpTa2lwcGluZyAvb3B0L3Bl
cmw1L21hbi9tYW4zLy4vREJEOjpPcmFwZXJsLjMgKHVuY2hhbmdlZCkNCldy
aXRpbmcgL29wdC9wZXJsNS9saWIvc2l0ZV9wZXJsL1BBLVJJU0MxLjEvYXV0
by9EQkQvT3JhY2xlLy5wYWNrbGlzdA0KQXBwZW5kaW5nIGluc3RhbGxhdGlv
biBpbmZvIHRvID0NCi9vcHQvcGVybDUvbGliL1BBLVJJU0MxLjEvNS4wMDMv
cGVybGxvY2FsLnBvZA0KDQotLS0tPV9Nb25kYXksIE5vdmVtYmVyIDExLCAx
OTk2IDE6NDkgUE0NCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNl
dD0iSVNPLTg4NTktMSI7IE5hbWU9ImthbCINCkNvbnRlbnQtVHJhbnNmZXIt
RW5jb2Rpbmc6IHF1b3RlZC1wcmludGFibGUNCg0K
--2002238499-1804928587-847751141=:8348--


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09118-8@oink>;
          Tue, 12 Nov 1996 11:39:51 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847791511:26607:4; Tue, 12 Nov 96 09:38:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa26311; 12 Nov 96 9:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id TAA24866 for dbi-users-real; Mon, 11 Nov 1996 19:10:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ferret (ferret.slip.net [204.160.88.6]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id TAA24862 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 19:10:45 -0800 (PST)
Received: from jeff.ssg1.com [204.119.124.78] by ferret 
          with smtp (Exim 0.57 #1) id 0vN9FI-0000np-00;
          Mon, 11 Nov 1996 19:10:40 -0800
Message-ID: <3287C11F.2D5D@ssg1.com>
Date: Mon, 11 Nov 1996 19:13:19 -0500
From: Jeff Barbieri <jbarbieri@ssg1.com>
Reply-To: jbarbieri@ssg1.com
Organization: Systems Solutions Group
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Oracle DBI/DBD on NT?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Here is my situation:

I have an Intel machine running Windows NT and contains PERL, and I have
an HP machine which contains the Oracle DB.  I want the PERL on the NT
machine to talk to the Oracle DB on the HP.  Where does the Oracle
DBI/DBD go?  Does it belong with the machine with the PERL on it?  Or,
does it belong with the machine with the database on it?

Any quick assistance to answer this question would be greatly
appreciated!

Thanks.
-- 
Jeff Barbieri 
Systems Solutions Group, Inc.	
Pier 9, Suite 109		
San Francisco, CA  94111

Phone:  510-867-2900 x111
Email:  jbarbieri@ssg1.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09118-17@oink>;
          Tue, 12 Nov 1996 11:40:17 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847793655:06828:16; Tue, 12 Nov 96 10:14:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa06743; 12 Nov 96 10:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id XAA25279 for dbi-users-real; Mon, 11 Nov 1996 23:46:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id XAA25275 
          for <dbi-users@fugue.com>; Mon, 11 Nov 1996 23:46:08 -0800 (PST)
Received: from raju.ncs.com.sg (thunder.ncs.com.sg [203.116.16.66]) 
          by elm.ncs.com.sg (8.7.3/8.7.3) with SMTP id PAA03507 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 15:37:30 +0800 (SGT)
Received: by raju.ncs.com.sg with Microsoft Mail 
          id <01BBD0B1.01C07700@raju.ncs.com.sg>;
          Tue, 12 Nov 1996 15:48:54 +-800
Message-ID: <01BBD0B1.01C07700@raju.ncs.com.sg>
From: S V S Raju <svsraju@ncs.com.sg>
To: "dbi-users@fugue.com" <dbi-users@fugue.com>
Subject: DBI for NT?
Date: Tue, 12 Nov 1996 15:48:47 +-800
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello everyone,

We are looking at porting a few applications developed 
in Perl on Sun solaris with DBI/Oracle
to Windows NT.

Is there any DBI/Oracle driver for Windows NT environment ?

Thanx in advance,
Raj.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <12595-2@oink>;
          Wed, 13 Nov 1996 07:35:56 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847831566:6:16649:0; Tue, 12 Nov 96 20:46:06 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa519030; 12 Nov 96 20:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id JAA26201 for dbi-users-real; Tue, 12 Nov 1996 09:18:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cypress.mcsr.olemiss.edu (cypress.mcsr.olemiss.edu [130.74.110.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id JAA26197 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 09:18:38 -0800 (PST)
Received: (from cckathy@localhost) 
          by cypress.mcsr.olemiss.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF) 
          id LAA05682 for dbi-users@fugue.com; Tue, 12 Nov 1996 11:17:13 -0600
Date: Tue, 12 Nov 1996 11:17:13 -0600
From: cckathy@cypress.mcsr.olemiss.edu (Kathy Gates)
Message-Id: <199611121717.LAA05682@cypress.mcsr.olemiss.edu>
To: dbi-users@fugue.com
Subject: Help needed with Informix DBD build on SGI system

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On the advice of Jonathan Leffler, I added -lgls and
/usr/informix/lib/esql/checkapi.o to the load line.  That eliminated one
problem, but I still have an unresolved symbol: gl_full_mbsnext.

Any ideas on what else needs to be loaded?  Following is my load line:

	LD_RUN_PATH="/usr/informix/lib/esql:/usr/informix/lib:/usr/lib" ld -o ./blib/arch/auto/DBD/Informix/Informix.so -32 -shared -L/usr/local/lib Informix.o dbdimp.o /usr/informix/lib/esql/checkapi.o -L/usr/informix/lib -L/usr/informix/lib   -L/usr/informix/lib -L/usr/informix/lib/esql -lgls -lsql -lasf -lgen -los -lm 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <12595-22@oink>;
          Wed, 13 Nov 1996 07:37:36 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847836923:5:16319:1; Tue, 12 Nov 96 22:15:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa613113; 12 Nov 96 22:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id JAA26282 for dbi-users-real; Tue, 12 Nov 1996 09:47:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from hq.caci.com (user@cissco.hq.caci.com [204.177.212.111]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id JAA26278 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 09:47:29 -0800 (PST)
Received: by hq.caci.com; id MAA04609; Tue, 12 Nov 1996 12:52:48 -0500 (EST)
Received: from link.hq.caci.com(198.135.9.13) by cissco.hq.caci.com 
          via smap (V3.1.1) id xma004565; Tue, 12 Nov 96 12:52:30 -0500
Received: from ccMail by link.hq.caci.com (SMTPLINK V2.11.01) id AA847835630;
          Tue, 12 Nov 96 12:34:00 EST
Date: Tue, 12 Nov 96 12:34:00 EST
From: "Jeffrey L. Urlwin" <jurlwin@hq.caci.com>
Encoding: 75 Text
Message-Id: <9610128478.AA847835630@link.hq.caci.com>
To: dbi-users <dbi-users@fugue.com>
Subject: Re: Oracle DBI/DBD on NT?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

    The perl that is already ported to NT is version 5.001, not 5.003.  You
    will have some work to do to get it there, from what I understand.

    What I ended up doing, in the mean time is using the Win32::ODBC
    extensions to the Perl 5 for NT.  That has worked fairly well for me,
    but I ran into two issues:
       1) No transactions.
       2) the Oracle ODBC driver has a HUGE memory leak.

    I ended up getting away without 1, but had to purchase Intersolv's ODBC
    driver for NT.  ($100 as the single Oracle 7 driver).  You can also
    download a 30 day eval of the Intersolv ODBC driver from their web
    site.

    Jeff

    -- ----
Hi, jeff

In your case, the oracle DBI/DBD should go with the PERL on NT.

Regards,
-John

At 07:13 PM 11/11/96 -0500, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Here is my situation:
>
>I have an Intel machine running Windows NT and contains PERL, and I have
>an HP machine which contains the Oracle DB.  I want the PERL on the NT
>machine to talk to the Oracle DB on the HP.  Where does the Oracle
>DBI/DBD go?  Does it belong with the machine with the PERL on it?  Or,
>does it belong with the machine with the database on it?
>
>Any quick assistance to answer this question would be greatly
>appreciated!
>
>Thanks.
>--
>Jeff Barbieri
>Systems Solutions Group, Inc.
>Pier 9, Suite 109
>San Francisco, CA  94111
>
>Phone:  510-867-2900 x111
>Email:  jbarbieri@ssg1.com
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
page, >please send mail to dbi-request@fugue.com.   Please try to use the
web >page first - it will take a long time for your request to be processed
by hand.
>------------------------------------------------------------------------------
>
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp. http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web
page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-39@oink>;
          Wed, 13 Nov 1996 07:41:26 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847821178:1:24751:54; Tue, 12 Nov 96 17:52:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa125402; 12 Nov 96 17:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id GAA25779 for dbi-users-real; Tue, 12 Nov 1996 06:06:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com ([158.118.51.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id GAA25775 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 06:06:10 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          12 Nov 1996 14:05:46 UT
Received: from wangj.nj.mew.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP id AAA4279;
          Tue, 12 Nov 1996 09:05:27 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: jbarbieri@ssg1.com
From: John Wang <wangj@aromat.com>
Subject: Re: Oracle DBI/DBD on NT?
Cc: dbi-users@fugue.com
Date: Tue, 12 Nov 1996 09:05:27 -0400
Message-ID: <19961112140527.AAA4279@wangj.nj.mew.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi, jeff

In your case, the oracle DBI/DBD should go with the PERL on NT.

Regards,
-John

At 07:13 PM 11/11/96 -0500, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Here is my situation:
>
>I have an Intel machine running Windows NT and contains PERL, and I have
>an HP machine which contains the Oracle DB.  I want the PERL on the NT
>machine to talk to the Oracle DB on the HP.  Where does the Oracle
>DBI/DBD go?  Does it belong with the machine with the PERL on it?  Or,
>does it belong with the machine with the database on it?
>
>Any quick assistance to answer this question would be greatly
>appreciated!
>
>Thanks.
>-- 
>Jeff Barbieri 
>Systems Solutions Group, Inc.	
>Pier 9, Suite 109		
>San Francisco, CA  94111
>
>Phone:  510-867-2900 x111
>Email:  jbarbieri@ssg1.com
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.	http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-43@oink>;
          Wed, 13 Nov 1996 07:41:51 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847821571:1:18820:784; Tue, 12 Nov 96 17:59:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa124820; 12 Nov 96 17:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id GAA25864 for dbi-users-real; Tue, 12 Nov 1996 06:51:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bkinis1-1.morgan.com (bkinis.ms.com [204.254.196.6]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id GAA25860 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 06:50:59 -0800 (PST)
Received: (from mail@localhost) 
          by bkinis1-1.morgan.com (8.6.12/sendmail.cf.firewall v1.21) 
          id JAA04111 for <dbi-users@fugue.com>;
          Tue, 12 Nov 1996 09:50:52 -0500
Received: from unknown(144.14.25.151) by bkinis1-1.morgan.com via smap (V1.3) 
          id sma003990; Tue Nov 12 09:50:32 1996
Received: from sait216.morgan.com (sait216.morgan.com [144.14.24.183]) 
          by samail2.morgan.com (8.8.2/8.8.2/sendmail.cf.imap v1.40) 
          with ESMTP id JAA27985 for <dbi-users@fugue.com>;
          Tue, 12 Nov 1996 09:50:31 -0500 (EST)
From: Manoj Gupte <manoj@morgan.com>
Received: (manoj@localhost) 
          by sait216.morgan.com (8.6.12/sendmail.cf.client v1.05) id JAA03845 
          for dbi-users@fugue.com; Tue, 12 Nov 1996 09:50:31 -0500
Date: Tue, 12 Nov 1996 09:50:31 -0500
Message-Id: <9611120950.ZM3843@morgan.com>
X-Mailer: Z-Mail (3.2.1 10oct95)
To: dbi-users@fugue.com
Subject: DBD::Informix
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
	I am a new user of DBI and DBD::Informix. Could someone please point me
towards the best web-site to get information regarding this ? I am particularly
interested in

1) Syntax for DBD::Informix
2) Sample code
3) Any other information necessary

Are there any books in the market on DBI ?

Best regards,

Manoj

P.S. Have already visited the Hermetica site, but couldn't find much there.
Have also visited the CPAN site , but no luck there either (maybe I wasn't
looking in the right place).

-- 
Manoj Gupte					    Email     : manoj@morgan.com
Morgan Stanley Inc.				    Telephone : 908-985-7376
750 , 7th Avenue,
New York.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-91@oink>;
          Wed, 13 Nov 1996 07:47:31 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847831297:1:27954:52; Tue, 12 Nov 96 20:41:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa128177; 12 Nov 96 20:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id JAA26115 for dbi-users-real; Tue, 12 Nov 1996 09:00:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com ([158.118.51.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id JAA26111 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 09:00:07 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          12 Nov 1996 16:59:45 UT
Received: from wangj.nj.mew.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP id AAA7243;
          Tue, 12 Nov 1996 11:59:25 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Manoj Gupte <manoj@morgan.com>
From: John Wang <wangj@aromat.com>
Subject: Re: DBD::Informix
Cc: dbi-users@fugue.com
Date: Tue, 12 Nov 1996 11:59:25 -0400
Message-ID: <19961112165925.AAA7243@wangj.nj.mew.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 09:50 AM 11/12/96 -0500, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Hi,
>	I am a new user of DBI and DBD::Informix. Could someone please point me
>towards the best web-site to get information regarding this ? I am particularly
>interested in
>
>1) Syntax for DBD::Informix
>2) Sample code
>3) Any other information necessary
>
>Are there any books in the market on DBI ?
>
>Best regards,
>
>Manoj

Take a look at the sample codes in DBD-Informix-0.24/extratests and test.pl,
they are very helpful.

Good Luck,
-John 
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.	http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-142@oink>;
          Wed, 13 Nov 1996 07:53:39 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847851156:1:00842:22; Wed, 13 Nov 96 02:12:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa100481; 13 Nov 96 2:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id PAA28847 for dbi-users-real; Tue, 12 Nov 1996 15:24:30 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mako.netlink.co.nz (mako.netlink.co.nz [202.37.60.47]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id PAA28843 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 15:24:26 -0800 (PST)
Received: from ANDREWS (nickl.ak.netlink.net.nz [202.27.93.28]) 
          by mako.netlink.co.nz (8.7.5/8.7.3) with SMTP id MAA07651 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 12:11:41 +1300 (NZDT)
Received: by ANDREWS with Microsoft Mail id <01BBD15C.3D4C5630@ANDREWS>;
          Wed, 13 Nov 1996 12:14:37 +1300
Message-ID: <01BBD15C.3D4C5630@ANDREWS>
From: Andrew Holman <akdh@ihug.co.nz>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: DB2 DBI/DBD Stored procedures
Date: Wed, 13 Nov 1996 12:14:36 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi

I want to use DBI/DBD with stored procedures with DB2 on AIX. Does anyone have any info on how I can do this.

Regards Andrew Holman


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-144@oink>;
          Wed, 13 Nov 1996 07:53:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847851157:1:00843:22; Wed, 13 Nov 96 02:12:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa100483; 13 Nov 96 2:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id PAA28794 for dbi-users-real; Tue, 12 Nov 1996 15:09:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com ([158.118.51.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id PAA28790 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 15:09:49 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          12 Nov 1996 23:09:25 UT
Received: from wangj.nj.mew.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP 
          id AAA12374; Tue, 12 Nov 1996 18:09:05 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: johnl@informix.com
From: John Wang <wangj@aromat.com>
Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03
Cc: dbi-users@fugue.com
Date: Tue, 12 Nov 1996 18:09:05 -0400
Message-ID: <19961112230904.AAA12374@wangj.nj.mew.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

....<More deleted>

>>Now I got another error message when I linked them (Sorry):
>>...
>> LD_RUN_PATH="/usr/informix/dev/lib/esql:/lib/pa1.1" ld -o ./blib/arch/au
>>to/DBD/Informix/Informix.sl -b -L/usr/local/lib Informix.o dbdimp.o
-L/usr/infor
>>mix/dev/lib -L/usr/informix/dev/lib   -L/usr/informix/dev/lib/esql -lsql
-lgen -
>>los -lm
>>ld: DP-Relative Code in file
/usr/informix/dev/lib/esql/libsql.a(iqcursor.o) - S
>>hared Library must be Position-Independent
>
>This is telling you that the 5.0x ESQL/C libraries are not compiled as
>shared libraries.  I've not yet worked out the complete solution to this
>sort of problem, but maybe you cannot use dynamic linking (and loading) of
>DBD::Informix in this case -- in fact, I think this is probably the problem.
>The nominal solution is to create a version of Perl with the DBD::Informix
>software linked in -- use 'make perl' and 'make static_test' if the output
>of 'perldoc perlxstut' is to be believed.  I've not had time to investigate

There is no target 'static_test' in PERL makefile. I used 'make test' and it
seemed to be working fine. 

OK. I created another version of perl5 and DBI-0.73, and staticly linked
DBD-Informix0.24 with it, I tested test.pl and a couple of other scripts that 
I wrote, they all worked great except one thing: I can't disconnect a database 
and re-connect it again in the same program, the error mesage is:

>not ok: Must close current database before using a new database.

This's ESQL error message 917. 

>If you find anything useful, please let me know.  Also, if you have any
>insight into the options in Makefile.PL referring to HP-UX, please let me
>know.  Does LD_RUN_PATH do anything on HP-UX?
>
>Yours,
>Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

When I installed PERL5, I specified paths like "~wangj", Makefile.PL doesn't
expand it to full path, so I need to manually edit Makefile because 'cc' 
doesn't recognize path like this.

Also, be careful with 'varchar' and 'char' data type, I tried following query:

...
$tcur = $mydb->prepare("select t1 from mytest where t1=\"test\"");
$tcur->execute;
while ( ( $t1 ) = $tcur->fetchrow ) { print "Row: $t1", length($t1), "\n";}
...

when mytest.t1 is varchar(20), the value of length($t1) is 4, when mytest.t1 is
char(20), length($t1) is 4. This may cause confusion when comparing strings.

It looks like LD_RUN_PATH doesn't do anything for me.

Regards,

-John Wangj
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.	http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-148@oink>;
          Wed, 13 Nov 1996 07:54:25 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847853553:1:12986:10; Wed, 13 Nov 96 02:52:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa112698; 13 Nov 96 2:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id QAA29046 for dbi-users-real; Tue, 12 Nov 1996 16:14:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id QAA29042 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 16:14:32 -0800 (PST)
Received: from [199.106.143.102] (smokey.bienlogic.com [199.106.143.102]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id QAA29831 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 16:14:17 -0800 (PST)
Date: Tue, 12 Nov 1996 16:14:17 -0800 (PST)
X-Sender: marc@miles.bienlogic.com
Message-Id: <v01540b02aeae52632d03@[199.106.143.102]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: marc@bienlogic.com (Marc Northover)
Subject: perl and oracle and nt

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Can anyone tell me what my options are for using perl for cgi,
Oracle for the database, and NT for the server.  I have been to
www.hermetica.com, where the DBI, DBD::Oracle requires perl
5.003, and also the NT is not on the known platform list

Is there anything out there that I can use!!

Help!

Marc Northover
marc@bienlogic.com




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-164@oink>;
          Wed, 13 Nov 1996 07:55:54 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847858453:1:02642:12; Wed, 13 Nov 96 04:14:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa102593; 13 Nov 96 4:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id RAA29312 for dbi-users-real; Tue, 12 Nov 1996 17:58:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from scapa.cs.ualberta.ca (root@scapa.cs.ualberta.ca [129.128.4.44]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id RAA29308 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 17:58:40 -0800 (PST)
Received: from sawnlk.cs.ualberta.ca by scapa.cs.ualberta.ca id <13079-6252>;
          Tue, 12 Nov 1996 18:58:36 -0700
Subject: oracle
From: Yoo-Shin Lee <yoosh@cs.ualberta.ca>
To: dbi-users@fugue.com
Date: Tue, 12 Nov 1996 18:58:32 -0700 (MST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Message-Id: <96Nov12.185836-0700_mst.13079-6252+173@scapa.cs.ualberta.ca>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi, I'm trying to do this:

	HTTPD server/cgi scripts/Perl 4 on a sunos 4.1
			||
		     NETWORK
		        ||
	Oracle Server / Oraperl etc..
			

Any suggestions?

-- 
			Yoo-Shin Lee
			yoosh@cs.ualberta.ca
			http://www.cs.ualberta.ca/~yoosh



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-168@oink>;
          Wed, 13 Nov 1996 07:56:12 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847859151:1:05397:21; Wed, 13 Nov 96 04:25:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa105268; 13 Nov 96 4:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id RAA29251 for dbi-users-real; Tue, 12 Nov 1996 17:49:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from uswgmn1.uswc.uswest.com (uswgmn1.uswest.com [204.147.87.74]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id RAA29247 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 17:49:39 -0800 (PST)
Received: (from smap@localhost) by uswgmn1.uswc.uswest.com (8.7.1/8.7.1) 
          id TAA21277; Tue, 12 Nov 1996 19:49:02 -0600 (CST)
Received: from egate.mnet.uswest.com(151.116.23.138) by uswgmn1.uswc.uswest.com 
          via smap (V1.3) id sma021275; Tue Nov 12 19:48:57 1996
Received: from smokey.ecte.uswc.uswest.com (smokey.ecte.uswc.uswest.com [151.116.109.68]) 
          by egate.mnet.uswest.com (8.7.1/8.7.1) with ESMTP id SAA27561;
          Tue, 12 Nov 1996 18:49:04 -0700 (MST)
Received: from avanti.ecte.uswc.uswest.com (avanti.ecte.uswc.uswest.com [151.116.137.100]) 
          by smokey.ecte.uswc.uswest.com (8.6.11/uswc-hub.950320) with ESMTP 
          id SAA05807; Tue, 12 Nov 1996 18:48:55 -0700
Received: (from wschere@localhost) 
          by avanti.ecte.uswc.uswest.com (8.6.11/uswc-server.950313) 
          id SAA03532; Tue, 12 Nov 1996 18:48:52 -0700
Date: Tue, 12 Nov 1996 18:48:52 -0700
Message-Id: <199611130148.SAA03532@avanti.ecte.uswc.uswest.com>
From: Wade Scherer <wschere@uswest.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-users@fugue.com
Subject: Re: bus error from test.pl trying to build DBD::Oracle
In-Reply-To: <9611121804.AA22811@toad.ig.co.uk>
References: <9611121804.AA22811@toad.ig.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce writes:
 > 
 > > From: Wade Scherer <wschere@uswest.com>
 > > 
 > > I've been trying to build the DBD::Oracle with some success.  make test makes through the DBI, DBD tests, but fails in test.pl.  I have tried all combinations of userid, password, and database name with each combination bus erroring at the ora_login.  I have include a file called build log with as much of the information requested in the README as possible.  Thanks in advance for any help you can provide.
 > 
 > HP dynamic loading is generally flawed. Try
 > 
 > 	perl Makefile.PL LINKTYPE=static
 > 
 > and follow the instructions for building a static perl in the README.
 > 
 > > I had to take the opt_g out of the OTHERLDFLAGS because it caused ld to fail.
 > 
 > What option does your linker need to preserve debug info in the excutable?
 >  
 > Tim.
 > 
 > 

Thanks for the quick response.  

I was hoping that dynamic linking would work since we had success
installing tkperl.  Oh well.  

This may be a naive questions, but will LINKTYPE=static cause any
problems with other extensions that are installed dynamically?

The LINKTYPE=static flag seems to have worked.  
I'm including the results of the make test FYI.

I did get bad free errors and installed the SIG WARN in the readme.

That seems to be working.  When I get some time I will rerun this test
with the code to dump on the bad free and get a stack trace to you.

Thanks again for the help.

Wade Scherer





make test
        make -f Makefile.aperl perl
`perl' is up to date.
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.57 cusr  0.06 csys =  0.63 cpu)
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib test.pl
Identifier "Oraperl::debugdbi" used only once: possible typo at blib/lib/Oraperl.pm line 40.
Oraperl test application $Revision: 1.28 $
 
Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73
 
 
Connecting
 to 'UHOMQ000' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as '/' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='UHOMQ000', TWO_TASK='')
Made it past login
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 12-NOV-96 username NULL
 
csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error)
csr out of scope...
ora_logoff...
lda out of scope...
 
Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5 
 
Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.
 
Testing row cache (5).
Test completed in 1 seconds.
 
Testing PL/SQL interaction.
Testing bind_param_inout. Expect '200', '3800', '75800':
param='200'
param='3800'
param='75800'
 
Test complete (4 seconds).
If the tests above have produced the 'expected' output then they have passed.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-174@oink>;
          Wed, 13 Nov 1996 07:56:44 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847860794:1:11189:22; Wed, 13 Nov 96 04:53:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa111204; 13 Nov 96 4:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id TAA29529 for dbi-users-real; Tue, 12 Nov 1996 19:10:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ny.engin.umich.edu (root@ny.engin.umich.edu [141.212.106.70]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id TAA29523 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 19:10:14 -0800 (PST)
Received: from perfect (pm1-17.eecs.umich.edu [141.213.6.242]) 
          by ny.engin.umich.edu (8.7.5/8.7.3/a1) with SMTP id WAA21025;
          Tue, 12 Nov 1996 22:09:20 -0500 (EST)
Message-ID: <32893DDA.5BFD@umich.edu>
Date: Tue, 12 Nov 1996 22:17:46 -0500
From: Dan DeMaggio <dmag@umich.edu>
X-Mailer: Mozilla 3.0Gold (WinNT; I)
MIME-Version: 1.0
To: Marc Northover <marc@bienlogic.com>, 
    Alligator Descartes <descarte@hermetica.com>
CC: dbi-users@fugue.com
Subject: Re: perl and oracle and nt
References: <v01540b02aeae52632d03@[199.106.143.102]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Marc Northover wrote:
>  [ Wants to use DBI on Windows NT ]

DBI does not work under NT currently. For an interm solution, check out
the official Win32::ODBC Home Page at http://www.roth.net/odbc/ (thanks
Dave.)

Alligator, how about mentioning this in the DBI FAQ? (Not like you
haven't already updated it today ;)

-- 
------------------------------\ "I don't believe in Truth,
Dan DeMaggio, UM EE, AA, MI   |  I don't believe in Justice,
dmag@umich.edu  [Space 4 Rent]|  But I BELIEVE in the American Way."
------------------------------/   -Me, in a brief moment of optimism


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-176@oink>;
          Wed, 13 Nov 1996 07:56:52 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847861064:1:12003:23; Wed, 13 Nov 96 04:57:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa111855; 13 Nov 96 4:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id SAA29450 for dbi-users-real; Tue, 12 Nov 1996 18:46:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com ([158.118.51.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id SAA29446 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 18:46:17 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          13 Nov 1996 02:45:54 UT
Received: from thewall1.aromat.com ([192.168.1.2]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP 
          id AAA13292; Tue, 12 Nov 1996 21:45:33 -0400
Received: from [192.168.2.134] by thewall1.aromat.com 
          via smtpd (for [158.118.16.12]) with SMTP; 13 Nov 1996 02:45:46 UT
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: johnl@informix.com
From: John Wang <wangj@aromat.com>
Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03
Cc: dbi-users@fugue.com
Date: Tue, 12 Nov 1996 21:45:33 -0400
Message-ID: <19961113024528.AAA13292@thewall1.aromat.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Return-Path: <owner-dbi-users@fugue.com>
>Sender: owner-dbi-users@fugue.com
>X-Sender: wangj@158.118.16.12
>To: johnl@informix.com
>From: "John Wang" <wangj@aromat.com>
>Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03
>Cc: dbi-users@fugue.com
>Date: Tue, 12 Nov 1996 18:09:05 -0400

>....<More deleted>
>
>>>Now I got another error message when I linked them (Sorry):
>>>...
>>> LD_RUN_PATH="/usr/informix/dev/lib/esql:/lib/pa1.1" ld -o ./blib/arch/au
>>>to/DBD/Informix/Informix.sl -b -L/usr/local/lib Informix.o dbdimp.o
>-L/usr/infor
>>>mix/dev/lib -L/usr/informix/dev/lib   -L/usr/informix/dev/lib/esql -lsql
>-lgen -
>>>los -lm
>>>ld: DP-Relative Code in file
>/usr/informix/dev/lib/esql/libsql.a(iqcursor.o) - S
>>>hared Library must be Position-Independent
>>
>>This is telling you that the 5.0x ESQL/C libraries are not compiled as
>>shared libraries.  I've not yet worked out the complete solution to this
>>sort of problem, but maybe you cannot use dynamic linking (and loading) of
>>DBD::Informix in this case -- in fact, I think this is probably the problem.
>>The nominal solution is to create a version of Perl with the DBD::Informix
>>software linked in -- use 'make perl' and 'make static_test' if the output
>>of 'perldoc perlxstut' is to be believed.  I've not had time to investigate
>
>There is no target 'static_test' in PERL makefile. I used 'make test' and it
>seemed to be working fine. 
>
>OK. I created another version of perl5 and DBI-0.73, and staticly linked
>DBD-Informix0.24 with it, I tested test.pl and a couple of other scripts that 
>I wrote, they all worked great except one thing: I can't disconnect a database 
>and re-connect it again in the same program, the error mesage is:
>
>>not ok: Must close current database before using a new database.
>
>This's ESQL error message 917. 
>
>>If you find anything useful, please let me know.  Also, if you have any
>>insight into the options in Makefile.PL referring to HP-UX, please let me
>>know.  Does LD_RUN_PATH do anything on HP-UX?
>>
>>Yours,
>>Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
>
>When I installed PERL5, I specified paths like "~wangj", Makefile.PL doesn't
>expand it to full path, so I need to manually edit Makefile because 'cc' 
>doesn't recognize path like this.
>
>Also, be careful with 'varchar' and 'char' data type, I tried following query:
>
>...
>$tcur = $mydb->prepare("select t1 from mytest where t1=\"test\"");
>$tcur->execute;
>while ( ( $t1 ) = $tcur->fetchrow ) { print "Row: $t1", length($t1), "\n";}
>...
>
>when mytest.t1 is varchar(20), the value of length($t1) is 4, when mytest.t1 is
>char(20), length($t1) is 4. This may cause confusion when comparing strings.
                         ^^^ 
Sorry, it's 20.
-John
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12599-187@oink>;
          Wed, 13 Nov 1996 07:57:50 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847868115:1:07145:4; Wed, 13 Nov 96 06:55:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa106925; 13 Nov 96 6:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id UAA29799 for dbi-users-real; Tue, 12 Nov 1996 20:51:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id UAA29795 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 20:51:37 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [129.35.148.59]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id WAA28335;
          Tue, 12 Nov 1996 22:51:35 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id WAA15146;
          Tue, 12 Nov 1996 22:51:34 -0600 (CST)
Message-Id: <199611130451.WAA15146@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: Andrew Holman <akdh@ihug.co.nz>
cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: Re: DB2 DBI/DBD Stored procedures
In-reply-to: Your message of Wed, 13 Nov 96 12:14:36 +1300. <01BBD15C.3D4C5630@ANDREWS>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 12 Nov 96 22:51:33 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Andrew Holman <akdh@ihug.co.nz>  writes:
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hi
> 
> I want to use DBI/DBD with stored procedures with DB2 on AIX. 
>Does anyone have any info on how I can do this.

At the moment, DBD::DB2 only supports input stored procedures.  That
is you can pass data to be placed into the database but can not
return data sets.

Simply prepare a call statment

$stmt = $dbh->prepare("Call function(?,?)");
$stmt->bind_param($index,$var,$attribute_type);
$stmt->bind_param($index+1,$var2,$attribute_type);
$stmt->execute();


Returning result sets is a little bit more tricky and will take some
free time on my part on some other (slightly insane) other party.  
Precursorary examination seems to indicate that by restructuring the
$attribute hash refs, it might be possible to support input, output
and input/output stored procedures, with the overhead of an addition
hv_fetch.

Mike



----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17760-22@oink>;
          Wed, 13 Nov 1996 13:44:29 +0000
Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847880584:1:04385:8; Wed, 13 Nov 96 10:23:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net 
          id aa103936; 13 Nov 96 10:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id XAA00410 for dbi-users-real; Tue, 12 Nov 1996 23:48:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id XAA00405 
          for <dbi-users@fugue.com>; Tue, 12 Nov 1996 23:48:02 -0800 (PST)
Received: from ncsgw.ncs.com.sg ([203.116.16.23]) 
          by elm.ncs.com.sg (8.7.3/8.7.3) with SMTP id PAA02907;
          Wed, 13 Nov 1996 15:39:10 +0800 (SGT)
Received: by ncsgw.ncs.com.sg with Microsoft Mail 
          id <328A6076@ncsgw.ncs.com.sg>; Wed, 13 Nov 96 15:57:42 PST
From: APPAT RAMESH ADC NCS <appatr@ncspo2.ncs.com.sg>
To: "'marc@bienlogic.com (Marc Northover)'" <marc@bienlogic.com (Marc Northover)>
Cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: perl and oracle and nt
Date: Wed, 13 Nov 96 15:49:00 PST
Message-ID: <328A6076@ncsgw.ncs.com.sg>
Encoding: 12 TEXT
X-Mailer: Microsoft Mail V3.0

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

Can any one please send me the URL where the DBI/DBD module for Windows   
NT is available for download?

Thank you very much.

Additional information on the same is always welcome.

Regards,
Ramesh  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-119@oink>;
          Thu, 14 Nov 1996 11:23:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847924195:9:01412:0; Wed, 13 Nov 96 22:29:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa901389; 13 Nov 96 22:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id JAA01485 for dbi-users-real; Wed, 13 Nov 1996 09:56:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id JAA01481 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 09:56:16 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.2/8.8.2) 
          id JAA17754 for dbi-users@fugue.com;
          Wed, 13 Nov 1996 09:54:30 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199611131754.JAA17754@abyss.ecst.csuchico.edu>
Subject: Still doesn't work
To: dbi-users@fugue.com
Date: Wed, 13 Nov 1996 09:54:29 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Trying to install statically on HPUX 9.05
here are the steps I took. 
I tried all permutations with and without things inside []

----DBI .73-----
make realclean
perl Makefile.PL [LINKTYPE=static]
make
[make perl]
[make -f Makefile.aperl inst_perl MAP_TARGET=3Dperl]
make test [FULLPERL=./perl]
make install



----DBD-Oracle .43----
make realclean
perl Makefile.PL [LINKTYPE=static]
make
[make perl]
[make -f Makefile.aperl inst_perl MAP_TARGET=3Dperl]
make test [FULLPERL=./perl]
make install


Then I run:
eval 'use Oraperl; 1' || die "where is Oraperl.pm: $@";

I get the same error:
where is Oraperl.pm: install_driver(Oracle) failed: Can't find loadable object f
or module DBD::Oracle in @INC (/opt/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib /o
pt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .) at /opt/perl5/lib/
site_perl/DBD/Oracle.pm line 24
        DBI::install_driver called at /opt/perl5/lib/site_perl/Oraperl.pm line 5
7
        require Oraperl.pm called at (eval 1) line 1
        main::BEGIN called at /opt/perl5/lib/site_perl/Oraperl.pm line 0
        eval {...} called at /opt/perl5/lib/site_perl/Oraperl.pm line 0
        eval 'use Oraperl; 1
;' called at ./test1.pl line 2
BEGIN failed--compilation aborted at (eval 1) line 1.


What am I doing wrong?
what grossly silly assumptions am I making?
EXPLICIT directions most appreciated.
Kal
408-565-20977


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-130@oink>;
          Thu, 14 Nov 1996 11:24:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847927052:1:11889:3; Wed, 13 Nov 96 23:17:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa111899; 13 Nov 96 23:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA01936 for dbi-dev-real; Wed, 13 Nov 1996 12:57:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id MAA01931 
          for <dbi-dev@fugue.com>; Wed, 13 Nov 1996 12:57:31 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id MAA07692 
          for <dbi-dev@fugue.com>; Wed, 13 Nov 1996 12:56:59 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id MAA13501;
          Wed, 13 Nov 1996 12:50:34 -0800
Date: Wed, 13 Nov 1996 12:50:34 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611132050.MAA13501@anubis.informix.com>
To: dbi-dev@fugue.com
Subject: Multiple DBD Modules loaded simultaneously?

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

Can you load two DBD modules simultaneously?

I ask because the code in the Informix.xs file requests the DBD::Informix
driver calls dbd_st_prepare(), but so does DBD::Oracle.  What happens if
I try to have two concurrent connections, one to Informix and one to
Oracle?  Does the Informix call get routed to the Oracle driver if the
Oracle driver is loaded first (and vice versa), or is there some magic in
the way shared libraries work such that the code in the DBD::Informix
shared object calls the dbd_st_prepare() inside that shared object, and
the code in DBD::Oracle calls the equivalent function in the DBD::Oracle
shared object, so that in fact we get away with having two definitions of
the same function in different shared objects?

Or should the names in fact be encoded with the driver name:

dbd_st_or_prepare()
dbd_st_ix_prepare()

I cannot test this -- I don't have a second database type to play with.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-133@oink>;
          Thu, 14 Nov 1996 11:24:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847928001:1:14769:0; Wed, 13 Nov 96 23:33:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa912501; 13 Nov 96 23:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id LAA01738 for dbi-users-real; Wed, 13 Nov 1996 11:34:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id LAA01734 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 11:34:55 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [129.35.148.59]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id NAA46979;
          Wed, 13 Nov 1996 13:33:39 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id NAA19058;
          Wed, 13 Nov 1996 13:33:38 -0600 (CST)
Message-Id: <199611131933.NAA19058@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: akdh@ihug.co.nz, mhm@austin.ibm.com, dbi-users@fugue.com
Subject: Re: DB2 DBI/DBD Stored procedures
In-reply-to: Your message of Wed, 13 Nov 96 11:40:13 +0000. <9611131140.AA25493@toad.ig.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 13 Nov 96 13:33:37 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
> 
> > From: mhm@austin.ibm.com
> > 
> > At the moment, DBD::DB2 only supports input stored procedures.  That
> > is you can pass data to be placed into the database but can not
> > return data sets.
> > 
> > Simply prepare a call statment
> > 
> > $stmt = $dbh->prepare("Call function(?,?)");
> > $stmt->bind_param($index,$var,$attribute_type);
> > $stmt->bind_param($index+1,$var2,$attribute_type);
> > $stmt->execute();
> > 
> > Returning result sets is a little bit more tricky and will take some
> > free time on my part on some other (slightly insane) other party.  
> > Precursorary examination seems to indicate that by restructuring the
> > $attribute hash refs, it might be possible to support input, output
> > and input/output stored procedures, with the overhead of an addition
> > hv_fetch.
> 
> The DBD::Oracle 'reference driver' does it this way:
> 
>   $stmt->bind_param_inout($index, \$var, $maxlen, \%attribs)
> 
> for in/out parameters. I think that'll be the 'standard' way.
> 

I'm so buried that I haven't even looked at the last 3 releases of
DBD::Oracle.  The fact that input only stored procedures work is
an artifact of the way I implemented bind_param, not any new development.

Which brings up an interesting question, from the ODBC/CLI perspective
you will be making the same call under the covers whether your are
binding parameters to markers in an SQL statement or binding variables
to markers in a stored procedure call, so why clutter the DBD name space
for redundant functionality?

Of the arguments you list for bind_param_inout, numbers 0,1 and 3 are 
already used by bind_param and in the DBD::DB2 case argument 2 comes
in as part of \%attribs as it is always needed under ODBC/CLI.


Mike

----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-148@oink>;
          Thu, 14 Nov 1996 11:26:01 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847930414:9:19299:0; Thu, 14 Nov 96 00:13:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919263; 14 Nov 96 0:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA01940 for dbi-users-real; Wed, 13 Nov 1996 12:57:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id MAA01935 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 12:57:32 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id MAA07700;
          Wed, 13 Nov 1996 12:57:01 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id MAA13477;
          Wed, 13 Nov 1996 12:41:23 -0800
Date: Wed, 13 Nov 1996 12:41:23 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611132041.MAA13477@anubis.informix.com>
To: b36prs@ku.ac.th, dbi-users@fugue.com
Subject: Re: Make a temp ?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The 0.24 version of DBD::Informix scans the statement it is presented and
looks for a small set of leading keywords to decide what to do with the
statement.  If it doesn't find one of those, it assumes it is a SELECT and
needs a cursor.

Well, if you look in sqlstype.h, you'll find that there as SQ_SELINTO
statements, which represents "SELECT ...  INTO TEMP" statements, and
these need to be executed as any other statement -- not having a cursor
declared for it.

The code I have for 0.25 already has this fixed -- you simply prepare the
statement and then describe it, and the describe statement tells you
whether you are going to need to execute it or not.  However, the changes
are not really ready for release yet, and I'm going to need some help
finding out how to make the material available on the web sites, etc,
anyway.

I might manage a release of some sort later this week, but it wouldn't be
the full set of changes I outlined last week.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

PS: I was out of the office Monday and Tuesday, so if you sent me email and
didn't get a response, that's why.

>From: "Poon Rojanasoonthon" <b36prs@ku.ac.th>
>Date: Fri, 8 Nov 1996 21:25:40 +0700
>
>Dear all,
>	I'm using Informix DBD. I wanted to optimize my query using 'temp' table.
>	I used command
>	dbh->do("select * from regs where stdid="36051449" into temp t");
>
>	Why it report about the CURSOR not on SELECT statement ?
>
>Regards,
>Poon Rojanasoonthon


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-152@oink>;
          Thu, 14 Nov 1996 11:26:17 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847930554:1:22287:0; Thu, 14 Nov 96 00:15:54 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa122247; 14 Nov 96 0:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA01890 for dbi-users-real; Wed, 13 Nov 1996 12:32:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dekalb.vf.mmc.com (dekalb.vf.mmc.com [192.35.35.21]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id MAA01886 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 12:31:57 -0800 (PST)
Received: from franklin.vf.lmco.com ([166.17.5.51]) 
          by dekalb.vf.mmc.com (8.7.6/8.7.3) with ESMTP id PAA03482 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 15:31:51 -0500 (EST)
Received: from enterprise.ATL.LMCO.COM (root@enterprise.ATL.LMCO.COM [166.20.244.20]) 
          by franklin.vf.lmco.com (8.7.6/8.7.3) with ESMTP id PAA27686 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 15:31:51 -0500 (EST)
Received: from valerie (valerie [166.20.244.205]) 
          by enterprise.ATL.LMCO.COM (8.8.2/8.8.2) with SMTP id PAA27616 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 15:31:41 -0500 (EST)
Message-ID: <328A3032.4087@atl.lmco.com>
Date: Wed, 13 Nov 1996 15:31:46 -0500
From: Bob Hackenberg <rhackenb@atl.lmco.com>
Organization: Advanced Technology Laboratories
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
MIME-Version: 1.0
To: "DBI mailing list." <dbi-users@fugue.com>
Subject: Combining SET ROLE and SELECT
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am attempting to send a SET ROLE command to the Oracle server and
then send a SELECT request.  When I do this from sqlplus, it works
fine but when I try it via oraperl, it fails to find the table.  

My guess is that the SET ROLE command does not keep the role set when
the SELECT statement hits the Oracle server.  I may very well be doing
this wrong and am looking for hints.  I am wondering if I shouldn't be
sending a BLOCK statement that would combine the SET ROLE and the
SELECT.

Note: in the following example, the SET ROLE command enables the user
to see atl_oasys1 which is an alias or synonym for oasys.oasys1.  

USING ORAPERL

oraperl code:
 $set_role_statement = "set role atl_user identified by atl_user";
 print "SETTING ROLE WITH:  $set_role_statement\n\n";
 ora_do($lda, $set_role_statement_statement)
   || print "COULDN'T EXECUTE $set_role_statement\n\n";
 print "SENDING SELECT: $statement\n\n";
 $csr = ora_open($lda, $statement) || print "COULDN'T EXECUTE:
$statement\n\n";
 print "RESULTING \$csr = $csr\n\n";
 print "PRINTING OUTPUT:\n\n";
  (followed by a routine that fetches and prints output)


Oraperl output:

SETTING ROLE WITH:  set role atl_user identified by atl_user
COULDN'T EXECUTE set role atl_user identified by atl_user
SENDING SELECT: select log_no, open_date from atl_oasys1 where log_no =
10
COULDN'T EXECUTE: select log_no, open_date from atl_oasys1 where log_no
= 10
RESULTING $csr = 1
PRINTING OUTPUT:
Can't use string ("1") as a HASH ref while "strict refs" in use at
           /opt/gnu/lib/perl5/site_perl/Oraperl.pm line 144.


SQLPLUS output for same user:

SQL> set role atl_user identified by atl_user;
Role set.

SQL> select log_no, open_date from atl_oasys1 where log_no = 10;
    LOG_NO OPEN_DATE
---------- ---------
        10 06-JUN-95


-------------------------------------------------------

BTW, my oraperl code works fine if I try to access oasys.oasys1 with
an account that is allowed to see that table.  Here is the output
under those conditions:

SETTING ROLE WITH:  set role atl_user identified by atl_user
COULDN'T EXECUTE set role atl_user identified by atl_user
SENDING SELECT: select log_no, open_date from oasys.oasys1 where log_no
= 10
RESULTING $csr = DBI::st=HASH(0x1a8618)
PRINTING OUTPUT:
 
LOG_NO:  =  10
OPEN_DATE:  =  06-JUN-95

-------------------------------------------------------
Any help would be appreciated.  You can send mail to me directly if you
don't want to clog the mailing list.

Thanks,

bob


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-167@oink>;
          Thu, 14 Nov 1996 11:27:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847934002:9:28435:0; Thu, 14 Nov 96 01:13:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa101427; 14 Nov 96 1:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA02127 for dbi-users-real; Wed, 13 Nov 1996 13:54:23 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id NAA02123 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 13:54:19 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA07423;
          Wed, 13 Nov 96 16:53:36 EST
Received: from localhost by superior (4.1/Sun-Client) id AA27537;
          Wed, 13 Nov 96 16:53:39 EST
Date: Wed, 13 Nov 1996 16:53:38 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: dbi-users@fugue.com
Subject: Stored Procedures: Done! :) (fwd)
Message-Id: <Pine.SUN.3.93.961113165321.23753F-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This didn't send properly

---
Hi Tim (and everybody else),

I've finally successfully figured out how to work with DBD:Oracle and
Stored Procedures.  I had a few problems getting on the mailing list so
Tim and I were discussing things privately.

If anyone needs a small, clearer example, please contact me.  I'd be happy
to help.  I'll be posting a code example soon.

Thanks again!
-Iain

P.S. Some of my messages that I actually sent to the list may actually
come through at a later date.  The corporate e-mail account I have (I'm
now subscribed through my university account) seems to have either bounced
the messages or has told me they will be sent at a later date.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-186@oink>;
          Thu, 14 Nov 1996 11:28:29 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847941642:9:15081:0; Thu, 14 Nov 96 03:20:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa118756; 14 Nov 96 3:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id PAA02489 for dbi-users-real; Wed, 13 Nov 1996 15:59:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id PAA02485 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 15:59:48 -0800 (PST)
Received: by gateway.fcmc.com; id SAA15176; Wed, 13 Nov 1996 18:59:47 -0500
Received: from unknown(192.129.90.50) by vone.fcmc.com via smap (g3.0.3) 
          id xma015174; Wed, 13 Nov 96 18:59:38 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA11826;
          Wed, 13 Nov 96 18:59:44 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA27521; Wed, 13 Nov 96 18:59:42 EST
Date: Wed, 13 Nov 96 18:59:42 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9611132359.AA27521@anderson.fcmc.com>
To: dbi-users@fugue.com
Subject: Re: Combining SET ROLE and SELECT

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

 
There is nothing to do with combination of SET ROLE and SELECT.
Your SET ROLE is failing, because it looks like creators of
DBDs think that there are no other commands in SQL but
create,drop,delete,insert,update, and o.c. select.
Take a look at your DBD implementation code (for Informix it's dbdimp.ec),
function ..._prepare.

FYI, SET ROLE status will be kept by Oracle Server (and other servers)
until your connection is closed. Your experience w/ SQLPLUS demonstrates this.

Good luck.


Serge.
Fuji Capital Markets Corporation (New York)
(212) 898-2936

 
> I am attempting to send a SET ROLE command to the Oracle server and
> then send a SELECT request.  When I do this from sqlplus, it works
> fine but when I try it via oraperl, it fails to find the table.  
> 
> My guess is that the SET ROLE command does not keep the role set when
> the SELECT statement hits the Oracle server.  I may very well be doing
> this wrong and am looking for hints.  I am wondering if I shouldn't be
> sending a BLOCK statement that would combine the SET ROLE and the
> SELECT.
> 
> Note: in the following example, the SET ROLE command enables the user
> to see atl_oasys1 which is an alias or synonym for oasys.oasys1.  
> 
> USING ORAPERL
> 
> oraperl code:
>  $set_role_statement = "set role atl_user identified by atl_user";
>  print "SETTING ROLE WITH:  $set_role_statement\n\n";
>  ora_do($lda, $set_role_statement_statement)
>    || print "COULDN'T EXECUTE $set_role_statement\n\n";
>  print "SENDING SELECT: $statement\n\n";
>  $csr = ora_open($lda, $statement) || print "COULDN'T EXECUTE:
> $statement\n\n";
>  print "RESULTING \$csr = $csr\n\n";
>  print "PRINTING OUTPUT:\n\n";
>   (followed by a routine that fetches and prints output)
> 
> 
> Oraperl output:
> 
> SETTING ROLE WITH:  set role atl_user identified by atl_user
> COULDN'T EXECUTE set role atl_user identified by atl_user
> SENDING SELECT: select log_no, open_date from atl_oasys1 where log_no =
> 10
> COULDN'T EXECUTE: select log_no, open_date from atl_oasys1 where log_no
> = 10
> RESULTING $csr = 1
> PRINTING OUTPUT:
> Can't use string ("1") as a HASH ref while "strict refs" in use at
>            /opt/gnu/lib/perl5/site_perl/Oraperl.pm line 144.
> 
> 
> SQLPLUS output for same user:
> 
> SQL> set role atl_user identified by atl_user;
> Role set.
> 
> SQL> select log_no, open_date from atl_oasys1 where log_no = 10;
>     LOG_NO OPEN_DATE
> ---------- ---------
>         10 06-JUN-95
> 
> 
> -------------------------------------------------------
> 
> BTW, my oraperl code works fine if I try to access oasys.oasys1 with
> an account that is allowed to see that table.  Here is the output
> under those conditions:
> 
> SETTING ROLE WITH:  set role atl_user identified by atl_user
> COULDN'T EXECUTE set role atl_user identified by atl_user
> SENDING SELECT: select log_no, open_date from oasys.oasys1 where log_no
> = 10
> RESULTING $csr = DBI::st=HASH(0x1a8618)
> PRINTING OUTPUT:
>  
> LOG_NO:  =  10
> OPEN_DATE:  =  06-JUN-95
> 
> -------------------------------------------------------
> Any help would be appreciated.  You can send mail to me directly if you
> don't want to clog the mailing list.
> 
> Thanks,
> 
> bob
> 
 


 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-197@oink>;
          Thu, 14 Nov 1996 11:29:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847945338:1:26789:5; Thu, 14 Nov 96 04:22:18 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa126824; 14 Nov 96 4:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id SAA03028 for dbi-users-real; Wed, 13 Nov 1996 18:22:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id SAA03023 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 18:22:34 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id SAA21819;
          Wed, 13 Nov 1996 18:22:00 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id SAA15142;
          Wed, 13 Nov 1996 18:22:56 -0800
Date: Wed, 13 Nov 1996 18:22:56 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611140222.SAA15142@anubis.informix.com>
To: johnl@informix.com, manoj@morgan.com
Cc: dbi-users@fugue.com
Subject: Re: PERL-DBI-DBD::Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: Manoj Gupte <manoj@morgan.com>
>Date: Mon, 11 Nov 1996 15:22:29 -0500
>To: johnl@informix.com
>Subject: PERL-DBI-DBD::Informix
>
>Hi Jonathan,

Please do not mail me direct -- I will probably answer a question about
DBD::Informix anyway, but you'd get an answer quicker from other people,
maybe.  Especially as I was out for Monday and Tuesday.

>I am a new user of DBI, and am specifically interested in DBD::Informix.
>I have visited the CPAN site in an effort to locate some documentation on
>DBI and DBD::Informix, but havent been successful so far.  Can you point
>me towards some documentation?

No; as far as I can tell, there isn't any.

>I am interested in :
>1) Syntax for DBD:Informix
	There are the test cases...
>2) Any example scripts
	There are the test cases...
>3) Absolutely anything else that might be available on DBD:Informix and DBI (in
>   that order)
	There are the test cases...

>P.S. I have visted the Hermetica site too - but havent got anything good.

As yet, I have nothing to offer.  I'm still finding my feet on this work,
to some extent.  I am also about to upgrade my v0.25 work to match the
DBD::Oracle interface.  When that is done, I will probably document it --
that's my intention, anyway.  Of course, there'll be some non-trivial
testing scripts to do as well.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-199@oink>;
          Thu, 14 Nov 1996 11:29:49 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847945497:9:23141:18; Thu, 14 Nov 96 04:24:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa923189; 14 Nov 96 4:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id RAA02749 for dbi-users-real; Wed, 13 Nov 1996 17:44:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id RAA02745 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 17:44:16 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id RAA17035;
          Wed, 13 Nov 1996 17:43:31 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id RAA14816;
          Wed, 13 Nov 1996 17:44:27 -0800
Date: Wed, 13 Nov 1996 17:44:27 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611140144.RAA14816@anubis.informix.com>
To: johnl@informix.com, wangj@aromat.com
Cc: dbi-users@fugue.com
Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>To: johnl@informix.com
>From: "John Wang" <wangj@aromat.com>
>Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03
>Date: Tue, 12 Nov 1996 18:09:05 -0400
>
>....<More deleted>
>
>>>Now I got another error message when I linked them (Sorry):
>>>...
>>> LD_RUN_PATH="/usr/informix/dev/lib/esql:/lib/pa1.1" ld -o ./blib/arch/au
>>>to/DBD/Informix/Informix.sl -b -L/usr/local/lib Informix.o dbdimp.o
>>>-L/usr/informix/dev/lib -L/usr/informix/dev/lib   -L/usr/informix/dev/lib/esql
>>>-lsql -lgen -los -lm
>>>ld: DP-Relative Code in file
>>>/usr/informix/dev/lib/esql/libsql.a(iqcursor.o) - Shared Library must
>>>be Position-Independent
>>
>>This is telling you that the 5.0x ESQL/C libraries are not compiled as
>>shared libraries.  I've not yet worked out the complete solution to this
>>sort of problem, but maybe you cannot use dynamic linking (and loading) of
>>DBD::Informix in this case -- in fact, I think this is probably the problem.
>>The nominal solution is to create a version of Perl with the DBD::Informix
>>software linked in -- use 'make perl' and 'make static_test' if the output
>>of 'perldoc perlxstut' is to be believed.  I've not had time to investigate
>
>There is no target 'static_test' in PERL makefile. I used 'make test' and it
>seemed to be working fine.

OK -- good.  I don't know yet about this, hence the riders in my original comment.

>OK. I created another version of perl5 and DBI-0.73, and staticly linked
>DBD-Informix0.24 with it, I tested test.pl and a couple of other scripts that
>I wrote, they all worked great except one thing: I can't disconnect a database
>and re-connect it again in the same program, the error mesage is:
>
>>not ok: Must close current database before using a new database.

You're using a remote database, or at least a network connection.  The
disconnect code in v0.24 doesn't disconnect, which would lead to this
problem.  Either add EXEC SQL CLOSE DATABASE to the disconnect code, or
wait for the next release.

>This's ESQL error message 917.
>
>>If you find anything useful, please let me know.  Also, if you have any
>>insight into the options in Makefile.PL referring to HP-UX, please let me
>>know.  Does LD_RUN_PATH do anything on HP-UX?

>When I installed PERL5, I specified paths like "~wangj", Makefile.PL doesn't
>expand it to full path, so I need to manually edit Makefile because 'cc'
>doesn't recognize path like this.

I'm not sure about this -- are you using a Bourne shell, rather than Korn
or C Shell?

>Also, be careful with 'varchar' and 'char' data type, I tried following query:
>
>...
>$tcur = $mydb->prepare("select t1 from mytest where t1=\"test\"");
>$tcur->execute;
>while ( ( $t1 ) = $tcur->fetchrow ) { print "Row: $t1", length($t1), "\n";}
>...
>
>when mytest.t1 is varchar(20), the value of length($t1) is 4, when mytest.t1 is
>char(20), length($t1) is 4. This may cause confusion when comparing strings.

I saw a later amendment which said the length of $t1 is 20 when it is
selected from a CHAR(20) column.

The Informix-ESQL/C software does not strip the trailing blanks from a CHAR
field.  We may need to add an option to allow trailing blanks to be
stripped -- maybe it should even be set by default, and the option would
allow it to be unset.

>It looks like LD_RUN_PATH doesn't do anything for me.

I would not expect LD_RUN_PATH to do anything on HP-UX -- it does things on
SVR4.  So does LD_LIBRARY_PATH on SVR4 -- the equivalent on HP-UX is
something like SHLIB_PATH.  Is there an equivalent on HP-UX, do you know?

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-208@oink>;
          Thu, 14 Nov 1996 11:30:27 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847959499:9:18805:0; Thu, 14 Nov 96 08:18:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa918755; 14 Nov 96 8:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id WAA03483 for dbi-users-real; Wed, 13 Nov 1996 22:04:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id WAA03479 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 22:04:19 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id BAA14305;
          Thu, 14 Nov 1996 01:06:22 -0500 (EST)
Message-Id: <199611140606.BAA14305@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Bob Hackenberg <rhackenb@atl.lmco.com>
cc: "DBI mailing list." <dbi-users@fugue.com>
Subject: Re: Combining SET ROLE and SELECT
In-reply-to: Your message of "Wed, 13 Nov 1996 15:31:46 EST." <328A3032.4087@atl.lmco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Nov 1996 01:03:57 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>  $set_role_statement = "set role atl_user identified by atl_user";
>  print "SETTING ROLE WITH:  $set_role_statement\n\n";
>  ora_do($lda, $set_role_statement_statement)
>    || print "COULDN'T EXECUTE $set_role_statement\n\n";

> SETTING ROLE WITH:  set role atl_user identified by atl_user
> COULDN'T EXECUTE set role atl_user identified by atl_user

$ora_errstr may be more helpful, I cannot reproduce your problem with Solaris 2.5, perl5.003, DBI-0.73, DBD-Oracle-0.40, and Oracle 7.2.3.
John



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-210@oink>;
          Thu, 14 Nov 1996 11:30:36 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847959633:1:24859:5; Thu, 14 Nov 96 08:20:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa124906; 14 Nov 96 8:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id WAA03507 for dbi-users-real; Wed, 13 Nov 1996 22:10:30 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id WAA03503 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 22:10:28 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id BAA14346;
          Thu, 14 Nov 1996 01:12:43 -0500 (EST)
Message-Id: <199611140612.BAA14346@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Terry Dixon <tdixon@rochgrp.com>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle path problems
In-reply-to: Your message of "Mon, 11 Nov 1996 09:50:58 PST." <32876782.3552@rochgrp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Nov 1996 01:10:18 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

All I can say is that Perl5.003, DBI-0.73 and DBD-Oracle-0.43 installed easily 
on a Solaris 2.5 x86 with gcc 2.7.2.1 and Oracle 7.1.4.

Did 'make test' run without errors during your Perl install? Never try to install unbundled modules until your Perl is tested.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22976-212@oink>;
          Thu, 14 Nov 1996 11:30:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 847959734:9:19357:2; Thu, 14 Nov 96 08:22:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919348; 14 Nov 96 8:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id WAA03589 for dbi-users-real; Wed, 13 Nov 1996 22:41:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id WAA03585 
          for <dbi-users@fugue.com>; Wed, 13 Nov 1996 22:41:17 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id BAA14684;
          Thu, 14 Nov 1996 01:43:35 -0500 (EST)
Message-Id: <199611140643.BAA14684@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Yoo-Shin Lee <yoosh@cs.ualberta.ca>
cc: dbi-users@fugue.com
Subject: Re: oracle
In-reply-to: Your message of "Tue, 12 Nov 1996 18:58:32 MST." <96Nov12.185836-0700_mst.13079-6252+173@scapa.cs.ualberta.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Nov 1996 01:41:11 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> 	HTTPD server/cgi scripts/Perl 4 on a sunos 4.1
> 			||
> 		     NETWORK
> 		        ||
> 	Oracle Server / Oraperl etc..
httpd/cgi scripts:Perl5 w/ DBI/DBD::Oracle and SQLNet
		||
		Network
		||
Oracle Server with SQLNet



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00534-15@oink>;
          Thu, 14 Nov 1996 22:42:00 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848000092:9:09148:4; Thu, 14 Nov 96 19:34:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa118257; 14 Nov 96 19:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id FAA04213 for dbi-users-real; Thu, 14 Nov 1996 05:46:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dekalb.vf.mmc.com ([192.35.35.21]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id FAA04209 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 05:40:08 -0800 (PST)
Received: from franklin.vf.lmco.com ([166.17.5.51]) 
          by dekalb.vf.mmc.com (8.7.6/8.7.3) with ESMTP id IAA26075 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 08:39:29 -0500 (EST)
Received: from enterprise.ATL.LMCO.COM (root@enterprise.ATL.LMCO.COM [166.20.244.20]) 
          by franklin.vf.lmco.com (8.7.6/8.7.3) with ESMTP id IAA32677 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 08:39:28 -0500 (EST)
Received: from valerie (valerie [166.20.244.205]) 
          by enterprise.ATL.LMCO.COM (8.8.2/8.8.2) with SMTP id IAA07688 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 08:39:19 -0500 (EST)
Message-ID: <328B210B.10B@atl.lmco.com>
Date: Thu, 14 Nov 1996 08:39:23 -0500
From: Bob Hackenberg <rhackenb@atl.lmco.com>
Organization: Advanced Technology Laboratories
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Combining SET ROLE and SELECT
References: <199611140606.BAA14305@cse.psu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

John, thanks for the hint.  

I subsequently ran:

  ora_do($lda, $set_role_statement_statement) ||die $ora_errstr;

and got back:

ORA-01009: missing mandatory parameter (DBD: possibly parse error at
character 1 of 0 in '') at limited.pl line 61.

My sql statement is 

   "set role atl_user identified by atl_user";

I looked more carefully at argument to see why the sql statement was of
zero length and discovered that I had mistyped the variable name for the
statement.  Previously I had been using the "die $ora_errstr" but the
results were going to the web server error log and I didn't notice them.
Running the perl script from the unix prompt sent the error message
right back to me.  

Thanks to everyone for the imput.  Problem solved.


-- bob
 
John D Groenveld wrote:
> 
> >  $set_role_statement = "set role atl_user identified by atl_user";
> >  print "SETTING ROLE WITH:  $set_role_statement\n\n";
> >  ora_do($lda, $set_role_statement_statement)
> >    || print "COULDN'T EXECUTE $set_role_statement\n\n";
> 
> > SETTING ROLE WITH:  set role atl_user identified by atl_user
> > COULDN'T EXECUTE set role atl_user identified by atl_user
> 
> $ora_errstr may be more helpful, I cannot reproduce your problem with Solaris 2.5, perl5.003, DBI-0.73, DBD-Oracle-0.40, and Oracle 7.2.3.
> John


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00534-18@oink>;
          Thu, 14 Nov 1996 22:42:11 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848000434:1:19393:5; Thu, 14 Nov 96 19:40:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa910319; 14 Nov 96 19:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id HAA04378 for dbi-users-real; Thu, 14 Nov 1996 07:36:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lin01.global.co.za ([196.3.164.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id HAA04373 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 07:30:35 -0800 (PST)
Received: from kite.global.co.za (kite.global.co.za [196.3.167.110]) 
          by lin01.global.co.za (8.7.3/8.7.3) with ESMTP id RAA20888 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 17:26:42 -0200 (GMT)
Message-Id: <199611141926.RAA20888@lin01.global.co.za>
From: Herman Scheepers <hermans@global.co.za>
To: oraperl mailing list <dbi-users@fugue.com>
Subject: Exception Handling
Date: Thu, 14 Nov 1996 17:32:55 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi all

I am running a large data conversion using Oraperl. My problem is this:

The legacy system contains some data which transgresses the data integrity
rules of the new system (e.g. unique constraints). 

How can I ensure the Oraperl program does not halt when a violation occurs.
I have tried the following approach:

if(&ora_do($lda, $StrInsert) != 1){
    &o_exception($USERNAME, $ora_errstr);
  }     

The problem is that the program writes the exception, but subsequently
keels over.

Any suggestions?

Regards
Herman



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00534-36@oink>;
          Thu, 14 Nov 1996 22:43:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848003452:9:20607:0; Thu, 14 Nov 96 20:30:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa920587; 14 Nov 96 20:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id GAA04275 for dbi-users-real; Thu, 14 Nov 1996 06:37:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com ([192.5.5.1]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id GAA04270 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 06:30:22 -0800 (PST)
Received: by gw.home.vix.com id GAA12288; Thu, 14 Nov 1996 06:03:30 -0800 (PST)
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: by gateway.fcmc.com; id IAA23341; Thu, 14 Nov 1996 08:52:18 -0500
Received: from unknown(192.129.90.50) by vone.fcmc.com via smap (g3.0.3) 
          id xma023337; Thu, 14 Nov 96 08:52:12 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA15726;
          Thu, 14 Nov 96 08:52:17 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA01962; Thu, 14 Nov 96 08:52:10 EST
Date: Thu, 14 Nov 96 08:52:10 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9611141352.AA01962@anderson.fcmc.com>
To: dedlow@voro.lbl.gov
Subject: Re: Combining SET ROLE and SELECT
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> SET ROLE is not really an SQL command 
> 
> 
> Here is how to do in DBD:
> 
> $stmt = "begin dbms_session.set_role('rolename'); end;";
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I don't think this is SQL code either.
Anyway DBD should be intelligent enough to let SQL (or any other)
commands to go into DBMS w/o filtering them, as long as PL/SQL (Oracle)
or ESQLC (Informix) or whatever else language allows them.
(This doesn't apply to SELECT on which cursor sould be opened).

Serge
Fuji Capital Markets Corporation (New York)
(212) 898-2936




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01496-0@oink>;
          Thu, 14 Nov 1996 23:01:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848011936:9:22070:0; Thu, 14 Nov 96 22:52:16 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa922030; 14 Nov 96 22:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA05429 for dbi-dev-real; Thu, 14 Nov 1996 13:01:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from blake.sharpcomm.com (blake.sharpcomm.com [199.76.0.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id NAA05420;
          Thu, 14 Nov 1996 13:01:24 -0800 (PST)
Received: from darkstar.sharpcomm.com (nobody@portal [199.76.0.12]) 
          by blake.sharpcomm.com (8.7.5/8.6.9) with SMTP id QAA12366;
          Thu, 14 Nov 1996 16:03:24 -0500
Message-ID: <328B889D.3C77@sharpcomm.com>
Date: Thu, 14 Nov 1996 16:01:17 -0500
From: Rodlyn Joseph <bluephi@sharpcomm.com>
Organization: TeleVoice
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>, 
    dbi-announce <dbi-announce@fugue.com>
CC: Descarte <descarte@hermetica.com>
Subject: DBD:INFORMIX on SCO 3.2v4.2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I am trying to compile DBD:INFORMIX-0.24 using
perl5.003 on SCO 3.2v4.2 these are the results.

Any ideas will be greatly appreciated.




<<<<<---------OUTPUT----->>>>>
# perl Makefile.PL

Configuring DBD::Informix version 0.24...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] Using Informix version 5
in /u/informix
Informix sysliblist: -L/u/informix/lib/esql -lsql -lgen -los -lm
System: perl5.003 avix2 avix2 3.2 2 i386  i386-sco dl_none.xs
Compiler: cc -O -W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED

Writing Makefile for DBD::Informix


# make

cp Informix.pm ./blib/lib/DBD/Informix.pm
        ../../perl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp 
-typemap
../../lib/ExtUtils/typemap Informix.xs >Informix.tc && mv Informix.tc
Informix.c
        cc -c -I/u/informix/incl/esql
-I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  Informix.c
        esql -e -I/u/informix/include -I../../lib -I../../lib
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -I../../lib/CORE dbdimp.ec
        cc -c -I/u/informix/incl/esql
-I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  -I/u/informix/include dbdimp.c
dbdimp.ec(1315) : error C2086: 'free_cursor' : redefinition
dbdimp.ec(1347) : error C2086: 'iqclose' : redefinition
dbdimp.ec(1395) : error C2086: 'iqfree' : redefinition
*** Error code 3

This is perl, version 5.003
        built under sco at Nov 12 1996 15:14:29
        + suidperl security patch

Copyright 1987-1996, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.

INFORMIX-OnLine Version 5.03.UC1
Copyright (C) 1986-1994 Informix Software, Inc.
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=sco, osver=, archname=i386-sco
    uname='avix2 avix2 3.2 2 i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-W0 -quiet -DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED'
    ccflags ='-W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-ldbm.nfs -lintl -lsocket -lnsl_s -lndbm -lld -lm -lc -lPW -lx
    libc=, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01496-2@oink>;
          Thu, 14 Nov 1996 23:02:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848011985:9:22223:0; Thu, 14 Nov 96 22:53:05 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa103266; 14 Nov 96 22:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA05338 for dbi-dev-real; Thu, 14 Nov 1996 12:41:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from blake.sharpcomm.com (blake.sharpcomm.com [199.76.0.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id MAA05329;
          Thu, 14 Nov 1996 12:41:43 -0800 (PST)
Received: from darkstar.sharpcomm.com (nobody@portal [199.76.0.12]) 
          by blake.sharpcomm.com (8.7.5/8.6.9) with SMTP id PAA11955;
          Thu, 14 Nov 1996 15:43:28 -0500
Message-ID: <328B83F0.4679@sharpcomm.com>
Date: Thu, 14 Nov 1996 15:41:20 -0500
From: Rodlyn Joseph <bluephi@sharpcomm.com>
Organization: TeleVoice
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>, 
    dbi-announce <dbi-announce@fugue.com>
CC: Descarte <descarte@hermitica.com>
Subject: DBD:INFORMIX on SCO 3.2v4.2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I am trying to compile DBD:INFORMIX-0.24 using
perl5.003 on SCO 3.2v4.2 these are the results.

Any ideas will be greatly appreciated.




<<<<<---------OUTPUT----->>>>>
# perl Makefile.PL

Configuring DBD::Informix version 0.24...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] Using Informix version 5
in /u/informix
Informix sysliblist: -L/u/informix/lib/esql -lsql -lgen -los -lm
System: perl5.003 avix2 avix2 3.2 2 i386  i386-sco dl_none.xs
Compiler: cc -O -W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED

Writing Makefile for DBD::Informix


# make

cp Informix.pm ./blib/lib/DBD/Informix.pm
	../../perl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp  -typemap
../../lib/ExtUtils/typemap Informix.xs >Informix.tc && mv Informix.tc
Informix.c
	cc -c -I/u/informix/incl/esql -I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  Informix.c
	esql -e -I/u/informix/include -I../../lib -I../../lib
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -I../../lib/CORE dbdimp.ec
	cc -c -I/u/informix/incl/esql -I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  -I/u/informix/include dbdimp.c
dbdimp.ec(1315) : error C2086: 'free_cursor' : redefinition
dbdimp.ec(1347) : error C2086: 'iqclose' : redefinition
dbdimp.ec(1395) : error C2086: 'iqfree' : redefinition
*** Error code 3

This is perl, version 5.003
	built under sco at Nov 12 1996 15:14:29
	+ suidperl security patch

Copyright 1987-1996, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.

INFORMIX-OnLine Version 5.03.UC1
Copyright (C) 1986-1994 Informix Software, Inc.
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=sco, osver=, archname=i386-sco
    uname='avix2 avix2 3.2 2 i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-W0 -quiet -DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED'
    ccflags ='-W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-ldbm.nfs -lintl -lsocket -lnsl_s -lndbm -lld -lm -lc -lPW -lx
    libc=, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01845-0@oink>;
          Fri, 15 Nov 1996 00:07:16 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848014250:9:00625:2; Thu, 14 Nov 96 23:30:50 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa900565; 14 Nov 96 23:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id KAA04921 for dbi-users-real; Thu, 14 Nov 1996 10:36:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id KAA04917 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 10:36:03 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id MAA71647;
          Thu, 14 Nov 1996 12:35:58 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id MAA20728;
          Thu, 14 Nov 1996 12:35:56 -0600 (CST)
Message-Id: <199611141835.MAA20728@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-users@fugue.com
cc: akdh@ihung.co.nz
Subject: Re: DB2 DBI/DBD Stored procedures
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Nov 96 12:35:55 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk> writes:
|>> From: mhm@austin.ibm.com
|>> 
|>> Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|>> > 
|>> > > From: mhm@austin.ibm.com
|>> > > 
|>> > > At the moment, DBD::DB2 only supports input stored procedures.  That
|>> > > is you can pass data to be placed into the database but can not
|>> > > return data sets.
|>> > > 
|>> > > Simply prepare a call statment
|>> > > 
|>> > > $stmt = $dbh->prepare("Call function(?,?)");
|>> > > $stmt->bind_param($index,$var,$attribute_type);
|>> > > $stmt->bind_param($index+1,$var2,$attribute_type);
|>> > > $stmt->execute();
|>> > > 
|>> > > Returning result sets is a little bit more tricky and will take some
|>> > > free time on my part on some other (slightly insane) other party.  
|>> > > Precursorary examination seems to indicate that by restructuring the
|>> > > $attribute hash refs, it might be possible to support input, output
|>> > > and input/output stored procedures, with the overhead of an addition
|>> > > hv_fetch.
|>> > 
|>> > The DBD::Oracle 'reference driver' does it this way:
|>> > 
|>> >   $stmt->bind_param_inout($index, \$var, $maxlen, \%attribs)
|>> > 
|>> > for in/out parameters. I think that'll be the 'standard' way.
|>> 
|>> Which brings up an interesting question, from the ODBC/CLI perspective
|>> you will be making the same call under the covers whether your are
|>> binding parameters to markers in an SQL statement or binding variables
|>> to markers in a stored procedure call, so why clutter the DBD name space
|>> for redundant functionality?
|>
|>It is still Alpha :-)
|>
|>Note that bind_param and bind_param_inout have different semantics for
|>input. bind_param copies the current value at the time of the bind.
|>bind_param_inout uses whatever the value is at the time of the execute.
|>It's still a little experimental.

At least under the DB2 implimentation, the act of binding only causes
the address of the value to be bound.  In essense, SQLBindParameter only
stores the address of variable so that SQLExecute can go and retrieve
the value(s).  The only distinction you can make is whether the
parameter is an INPUT, OUTPUT or INPUT_OUTPUT.

|>> Of the arguments you list for bind_param_inout, numbers 0,1 and 3 are 
|>> already used by bind_param and in the DBD::DB2 case argument 2 comes
|>> in as part of \%attribs as it is always needed under ODBC/CLI.
|>
|>Always needed under broken/limited ODBC/CLI's that don't have describe
|>functionality. But I take your point.

Yes, it did start out as a work around for a broken/limited ODBC/CLI,
but that issue has now been remedied and it has become an issue of 
performance.  Using the SQLDescribeParam call requires one round trip
to the database per parameter, not to obnoxious with 2-3 parameters, but
very obnoxious with 100, 500 or 1000 parameters (yes, I have some really
crazy endusers -- those are REAL numbers).

Mike
------------------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01845-2@oink>;
          Fri, 15 Nov 1996 00:07:36 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848015068:1:14291:1; Thu, 14 Nov 96 23:44:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa114263; 14 Nov 96 23:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA05438 for dbi-users-real; Thu, 14 Nov 1996 13:05:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from blake.sharpcomm.com (blake.sharpcomm.com [199.76.0.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id NAA05420;
          Thu, 14 Nov 1996 13:01:24 -0800 (PST)
Received: from darkstar.sharpcomm.com (nobody@portal [199.76.0.12]) 
          by blake.sharpcomm.com (8.7.5/8.6.9) with SMTP id QAA12366;
          Thu, 14 Nov 1996 16:03:24 -0500
Message-ID: <328B889D.3C77@sharpcomm.com>
Date: Thu, 14 Nov 1996 16:01:17 -0500
From: Rodlyn Joseph <bluephi@sharpcomm.com>
Organization: TeleVoice
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>, 
    dbi-announce <dbi-announce@fugue.com>
CC: Descarte <descarte@hermetica.com>
Subject: DBD:INFORMIX on SCO 3.2v4.2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am trying to compile DBD:INFORMIX-0.24 using
perl5.003 on SCO 3.2v4.2 these are the results.

Any ideas will be greatly appreciated.




<<<<<---------OUTPUT----->>>>>
# perl Makefile.PL

Configuring DBD::Informix version 0.24...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] Using Informix version 5
in /u/informix
Informix sysliblist: -L/u/informix/lib/esql -lsql -lgen -los -lm
System: perl5.003 avix2 avix2 3.2 2 i386  i386-sco dl_none.xs
Compiler: cc -O -W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED

Writing Makefile for DBD::Informix


# make

cp Informix.pm ./blib/lib/DBD/Informix.pm
        ../../perl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp 
-typemap
../../lib/ExtUtils/typemap Informix.xs >Informix.tc && mv Informix.tc
Informix.c
        cc -c -I/u/informix/incl/esql
-I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  Informix.c
        esql -e -I/u/informix/include -I../../lib -I../../lib
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -I../../lib/CORE dbdimp.ec
        cc -c -I/u/informix/incl/esql
-I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  -I/u/informix/include dbdimp.c
dbdimp.ec(1315) : error C2086: 'free_cursor' : redefinition
dbdimp.ec(1347) : error C2086: 'iqclose' : redefinition
dbdimp.ec(1395) : error C2086: 'iqfree' : redefinition
*** Error code 3

This is perl, version 5.003
        built under sco at Nov 12 1996 15:14:29
        + suidperl security patch

Copyright 1987-1996, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.

INFORMIX-OnLine Version 5.03.UC1
Copyright (C) 1986-1994 Informix Software, Inc.
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=sco, osver=, archname=i386-sco
    uname='avix2 avix2 3.2 2 i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-W0 -quiet -DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED'
    ccflags ='-W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-ldbm.nfs -lintl -lsocket -lnsl_s -lndbm -lld -lm -lc -lPW -lx
    libc=, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01845-4@oink>;
          Fri, 15 Nov 1996 00:07:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848015335:9:04336:1; Thu, 14 Nov 96 23:48:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa904305; 14 Nov 96 23:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA05361 for dbi-users-real; Thu, 14 Nov 1996 12:48:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from blake.sharpcomm.com (blake.sharpcomm.com [199.76.0.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id MAA05329;
          Thu, 14 Nov 1996 12:41:43 -0800 (PST)
Received: from darkstar.sharpcomm.com (nobody@portal [199.76.0.12]) 
          by blake.sharpcomm.com (8.7.5/8.6.9) with SMTP id PAA11955;
          Thu, 14 Nov 1996 15:43:28 -0500
Message-ID: <328B83F0.4679@sharpcomm.com>
Date: Thu, 14 Nov 1996 15:41:20 -0500
From: Rodlyn Joseph <bluephi@sharpcomm.com>
Organization: TeleVoice
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>, 
    dbi-announce <dbi-announce@fugue.com>
CC: Descarte <descarte@hermitica.com>
Subject: DBD:INFORMIX on SCO 3.2v4.2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am trying to compile DBD:INFORMIX-0.24 using
perl5.003 on SCO 3.2v4.2 these are the results.

Any ideas will be greatly appreciated.




<<<<<---------OUTPUT----->>>>>
# perl Makefile.PL

Configuring DBD::Informix version 0.24...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] Using Informix version 5
in /u/informix
Informix sysliblist: -L/u/informix/lib/esql -lsql -lgen -los -lm
System: perl5.003 avix2 avix2 3.2 2 i386  i386-sco dl_none.xs
Compiler: cc -O -W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED

Writing Makefile for DBD::Informix


# make

cp Informix.pm ./blib/lib/DBD/Informix.pm
	../../perl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp  -typemap
../../lib/ExtUtils/typemap Informix.xs >Informix.tc && mv Informix.tc
Informix.c
	cc -c -I/u/informix/incl/esql -I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  Informix.c
	esql -e -I/u/informix/include -I../../lib -I../../lib
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -I../../lib/CORE dbdimp.ec
	cc -c -I/u/informix/incl/esql -I/usr/local/lib/perl5/i386-sco/5.003/DBI
-I/usr/local/lib/perl5/site_perl/i386-sco/DBI -W0 -quiet -U M_XENIX
-DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED -O     -DVERSION=\"0.24\" 
-DXS_VERSION=\"0.24\"  -I../..  -I/u/informix/include dbdimp.c
dbdimp.ec(1315) : error C2086: 'free_cursor' : redefinition
dbdimp.ec(1347) : error C2086: 'iqclose' : redefinition
dbdimp.ec(1395) : error C2086: 'iqfree' : redefinition
*** Error code 3

This is perl, version 5.003
	built under sco at Nov 12 1996 15:14:29
	+ suidperl security patch

Copyright 1987-1996, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.

INFORMIX-OnLine Version 5.03.UC1
Copyright (C) 1986-1994 Informix Software, Inc.
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=sco, osver=, archname=i386-sco
    uname='avix2 avix2 3.2 2 i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-W0 -quiet -DNO_PROTOTYPE -D_NO_PROTO -DNO_EMBED'
    ccflags ='-W0 -quiet -U M_XENIX -DNO_PROTOTYPE -D_NO_PROTO
-DNO_EMBED'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-ldbm.nfs -lintl -lsocket -lnsl_s -lndbm -lld -lm -lc -lPW -lx
    libc=, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02257-5@oink>;
          Fri, 15 Nov 1996 02:02:09 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848022336:9:23700:1; Fri, 15 Nov 96 01:45:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa105851; 15 Nov 96 1:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA05466 for dbi-users-real; Thu, 14 Nov 1996 13:17:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id NAA05462 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 13:17:32 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id PAA90242;
          Thu, 14 Nov 1996 15:17:30 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id PAA13052;
          Thu, 14 Nov 1996 15:17:30 -0600 (CST)
Message-Id: <199611142117.PAA13052@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-users@fugue.com
cc: akdh@ihug.co.nz
Subject: Re: DB2 DBI/DBD Stored Procedures
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Nov 96 15:17:29 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk> writes:
|>> From: mhm@austin.ibm.com
|>> 
|>> Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|>> > 
|>> > > From: mhm@austin.ibm.com
|>> > > 
|>> > > At the moment, DBD::DB2 only supports input stored procedures.  That
|>> > > is you can pass data to be placed into the database but can not
|>> > > return data sets.
|>> > > 
|>> > > Simply prepare a call statment
|>> > > 
|>> > > $stmt = $dbh->prepare("Call function(?,?)");
|>> > > $stmt->bind_param($index,$var,$attribute_type);
|>> > > $stmt->bind_param($index+1,$var2,$attribute_type);
|>> > > $stmt->execute();
|>> > > 
|>> > > Returning result sets is a little bit more tricky and will take some
|>> > > free time on my part on some other (slightly insane) other party.  
|>> > > Precursorary examination seems to indicate that by restructuring the
|>> > > $attribute hash refs, it might be possible to support input, output
|>> > > and input/output stored procedures, with the overhead of an addition
|>> > > hv_fetch.
|>> > 
|>> > The DBD::Oracle 'reference driver' does it this way:
|>> > 
|>> >   $stmt->bind_param_inout($index, \$var, $maxlen, \%attribs)
|>> > 
|>> > for in/out parameters. I think that'll be the 'standard' way.
|>> 
|>> Which brings up an interesting question, from the ODBC/CLI perspective
|>> you will be making the same call under the covers whether your are
|>> binding parameters to markers in an SQL statement or binding variables
|>> to markers in a stored procedure call, so why clutter the DBD name space
|>> for redundant functionality?
|>
|>It is still Alpha :-)
|>
|>Note that bind_param and bind_param_inout have different semantics for
|>input. bind_param copies the current value at the time of the bind.
|>bind_param_inout uses whatever the value is at the time of the execute.
|>It's still a little experimental.

At least under the DB2 implimentation, the act of binding only causes
the address of the value to be bound.  In essense, SQLBindParameter only
stores the address of variable so that SQLExecute can go and retrieve
the value(s).  The only distinction you can make is whether the
parameter is an INPUT, OUTPUT or INPUT_OUTPUT.

|>> Of the arguments you list for bind_param_inout, numbers 0,1 and 3 are 
|>> already used by bind_param and in the DBD::DB2 case argument 2 comes
|>> in as part of \%attribs as it is always needed under ODBC/CLI.
|>
|>Always needed under broken/limited ODBC/CLI's that don't have describe
|>functionality. But I take your point.

Yes, it did start out as a work around for a broken/limited ODBC/CLI,
but that issue has now been remedied and it has become an issue of 
performance.  Using the SQLDescribeParam call requires one round trip
to the database per parameter, not to obnoxious with 2-3 parameters, but
very obnoxious with 100, 500 or 1000 parameters (yes, I have some really
crazy endusers -- those are REAL numbers).

Mike
- - ---------------------------------------------------------------------------
--
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02257-7@oink>;
          Fri, 15 Nov 1996 02:02:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848022533:1:06231:5; Fri, 15 Nov 96 01:48:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa106070; 15 Nov 96 1:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id OAA05752 for dbi-users-real; Thu, 14 Nov 1996 14:32:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mako.netlink.co.nz (mako.netlink.co.nz [202.37.60.47]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id OAA05714 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 14:22:20 -0800 (PST)
Received: from ANDREWS (nickl.ak.netlink.net.nz [202.27.93.28]) 
          by mako.netlink.co.nz (8.7.5/8.7.3) with SMTP id LAA04735;
          Fri, 15 Nov 1996 11:21:52 +1300 (NZDT)
Received: by ANDREWS with Microsoft Mail id <01BBD2E7.9E48A560@ANDREWS>;
          Fri, 15 Nov 1996 11:24:51 +1300
Message-ID: <01BBD2E7.9E48A560@ANDREWS>
From: Andrew Holman <akdh@ihug.co.nz>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Cc: "'mhm@austin.ibm.com'" <mhm@austin.ibm.com>
Subject: RE: DB2 DBI/DBD Stored Procedures
Date: Fri, 15 Nov 1996 11:24:45 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

	What is the $attribute_type parameter used for in the 
$stmt->bind_param($index,$var,$attribute_type); function
and what values would be used?

Andrew


----------
From: 	mhm@austin.ibm.com
Sent: 	Friday, November 15, 1996 10:17 AM
To: 	dbi-users@fugue.com
Cc: 	akdh@ihug.co.nz
Subject: 	Re: DB2 DBI/DBD Stored Procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk> writes:
|>> From: mhm@austin.ibm.com
|>> 
|>> Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|>> > 
|>> > > From: mhm@austin.ibm.com
|>> > > 
|>> > > At the moment, DBD::DB2 only supports input stored procedures.  That
|>> > > is you can pass data to be placed into the database but can not
|>> > > return data sets.
|>> > > 
|>> > > Simply prepare a call statment
|>> > > 
|>> > > $stmt = $dbh->prepare("Call function(?,?)");
|>> > > $stmt->bind_param($index,$var,$attribute_type);
|>> > > $stmt->bind_param($index+1,$var2,$attribute_type);
|>> > > $stmt->execute();
|>> > > 
|>> > > Returning result sets is a little bit more tricky and will take some
|>> > > free time on my part on some other (slightly insane) other party.  
|>> > > Precursorary examination seems to indicate that by restructuring the
|>> > > $attribute hash refs, it might be possible to support input, output
|>> > > and input/output stored procedures, with the overhead of an addition
|>> > > hv_fetch.
|>> > 
|>> > The DBD::Oracle 'reference driver' does it this way:
|>> > 
|>> >   $stmt->bind_param_inout($index, \$var, $maxlen, \%attribs)
|>> > 
|>> > for in/out parameters. I think that'll be the 'standard' way.
|>> 
|>> Which brings up an interesting question, from the ODBC/CLI perspective
|>> you will be making the same call under the covers whether your are
|>> binding parameters to markers in an SQL statement or binding variables
|>> to markers in a stored procedure call, so why clutter the DBD name space
|>> for redundant functionality?
|>
|>It is still Alpha :-)
|>
|>Note that bind_param and bind_param_inout have different semantics for
|>input. bind_param copies the current value at the time of the bind.
|>bind_param_inout uses whatever the value is at the time of the execute.
|>It's still a little experimental.

At least under the DB2 implimentation, the act of binding only causes
the address of the value to be bound.  In essense, SQLBindParameter only
stores the address of variable so that SQLExecute can go and retrieve
the value(s).  The only distinction you can make is whether the
parameter is an INPUT, OUTPUT or INPUT_OUTPUT.

|>> Of the arguments you list for bind_param_inout, numbers 0,1 and 3 are 
|>> already used by bind_param and in the DBD::DB2 case argument 2 comes
|>> in as part of \%attribs as it is always needed under ODBC/CLI.
|>
|>Always needed under broken/limited ODBC/CLI's that don't have describe
|>functionality. But I take your point.

Yes, it did start out as a work around for a broken/limited ODBC/CLI,
but that issue has now been remedied and it has become an issue of 
performance.  Using the SQLDescribeParam call requires one round trip
to the database per parameter, not to obnoxious with 2-3 parameters, but
very obnoxious with 100, 500 or 1000 parameters (yes, I have some really
crazy endusers -- those are REAL numbers).

Mike
- - ---------------------------------------------------------------------------
--
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03253-12@oink>;
          Fri, 15 Nov 1996 07:36:49 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848038993:1:13624:1; Fri, 15 Nov 96 06:23:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa113618; 15 Nov 96 6:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id TAA06855 for dbi-users-real; Thu, 14 Nov 1996 19:07:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mako.netlink.co.nz (mako.netlink.co.nz [202.37.60.47]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id TAA06851 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 19:07:53 -0800 (PST)
Received: from ANDREWS (nickl.ak.netlink.net.nz [202.27.93.28]) 
          by mako.netlink.co.nz (8.7.5/8.7.3) with SMTP id QAA07309 
          for <dbi-users@fugue.com>; Fri, 15 Nov 1996 16:07:47 +1300 (NZDT)
Received: by ANDREWS with Microsoft Mail id <01BBD30F.91758970@ANDREWS>;
          Fri, 15 Nov 1996 16:10:50 +1300
Message-ID: <01BBD30F.91758970@ANDREWS>
From: Andrew Holman <akdh@ihug.co.nz>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: DB2 autocommit on AIX
Date: Fri, 15 Nov 1996 16:10:47 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Is it possible to turn auto commit ON | OFF using DBI.
I have tried using:

 $dbh->do( "UPDATE COMMAND OPTION  using c OFF" );

but this returns an error.
Also I have tried setting the environment variable DB2OPTIONS to "-c-" but this did not have any effect either.

Regards Andrew


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03253-16@oink>;
          Fri, 15 Nov 1996 07:37:11 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848043310:1:23159:1; Fri, 15 Nov 96 07:35:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa123147; 15 Nov 96 7:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id UAA07009 for dbi-users-real; Thu, 14 Nov 1996 20:40:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id UAA07005 
          for <dbi-users@fugue.com>; Thu, 14 Nov 1996 20:40:10 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id WAA64720;
          Thu, 14 Nov 1996 22:40:09 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id WAA15900;
          Thu, 14 Nov 1996 22:40:08 -0600 (CST)
Message-Id: <199611150440.WAA15900@dax.austin.ibm.com>
To: Andrew Holman <akdh@ihug.co.nz>
cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: Re: DB2 DBI/DBD Stored Procedures
In-reply-to: Your message of Fri, 15 Nov 96 11:24:45 +1300. <01BBD2E7.9E48A560@ANDREWS>
Date: Thu, 14 Nov 96 22:40:08 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Andrew Holman <akdh@ihug.co.nz>  writes:

	What is the $attribute_type parameter used for in the 
$stmt->bind_param($index,$var,$attribute_type); function
and what values would be used?

Early versions of DB2 (version 2.0 and 2.1) where only level 1
ODBC complient.  They lacked about 6 functions of being fully
ODBC level 2 complient.  One of the missing routines was
SQLDescribeParam() which returns all the information needed to
make the call to SQLBindParameter().  The $attribute_type 
mechanism was designed to provide, effectively, default values
for the 6 pieces of information that could not be retrieved
from DB2 and not force the perl programmer to constantly have
to provide them.

If you look at the beginning of DB2.pm, you will see several
examples of predefined attribute type hash references.
In essence, a $attribute_type is a specification of certain
information about the type of variable being bound.  Things
like its database type (as opposed to its perl/c type), whether
or not the field may be null, precision of the variable, scale
of the variable or the type of parameter (input, output or
input-output).

The point Tim Bunce and I have been discussing, revolves around
DB2 not being fully ODBC level 2 (or was it level 3) complient
at the time I did the orginal version of DBD::DB2.  As of the
latest service level this is no longer a compliency issue but
a performance issue.

Mike

P.S. pardon my ramblings but I'm significantly behind on my
sleep only 6 hours in the last 96 and I'm still not going
to make my work deadlines :-(
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content
mhm@austin.ibm.com                | of this posting is independent of
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08587-50@oink>;
          Sat, 16 Nov 1996 00:14:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848097513:10:26372:1; Fri, 15 Nov 96 22:38:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa918232; 15 Nov 96 22:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id HAA07987 for dbi-users-real; Fri, 15 Nov 1996 07:06:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com (gateway.aromat.com [158.118.51.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id HAA07983 
          for <dbi-users@fugue.com>; Fri, 15 Nov 1996 07:06:26 -0800 (PST)
Received: from [158.118.16.12] by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [204.254.239.2]) with SMTP;
          15 Nov 1996 15:06:02 UT
Received: from wangj.aromat.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP id AAA7862 
          for <dbi-users@fugue.com>; Fri, 15 Nov 1996 10:05:43 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: dbi-users@fugue.com
From: John Wang <wangj@aromat.com>
Subject: Re: Install DBD-Informix-0.24 on HP-UX9.04, Online 5.03
Date: Fri, 15 Nov 1996 10:05:43 -0400
Message-ID: <19961115150543.AAA7862@wangj.aromat.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Jonathan Leffler (johnl@informix.com) wrote:
>>>> John Wang Wrote:
>>> <more deleted>
>>>This is telling you that the 5.0x ESQL/C libraries are not compiled as
>>>shared libraries.  I've not yet worked out the complete solution to this
>>>sort of problem, but maybe you cannot use dynamic linking (and loading) of
>>>DBD::Informix in this case -- in fact, I think this is probably the problem.
>>>The nominal solution is to create a version of Perl with the DBD::Informix
>>>software linked in -- use 'make perl' and 'make static_test' if the output
>>>of 'perldoc perlxstut' is to be believed.  I've not had time to investigate
>>
>>There is no target 'static_test' in PERL makefile. I used 'make test' and it
>>seemed to be working fine.
>
>OK -- good.  I don't know yet about this, hence the riders in my original
comment.
>
>>OK. I created another version of perl5 and DBI-0.73, and staticly linked
>>DBD-Informix0.24 with it, I tested test.pl and a couple of other scripts that
>>I wrote, they all worked great except one thing: I can't disconnect a database
>>and re-connect it again in the same program, the error mesage is:
>>
>>>not ok: Must close current database before using a new database.
>
>You're using a remote database, or at least a network connection.  The
>disconnect code in v0.24 doesn't disconnect, which would lead to this
>problem.  Either add EXEC SQL CLOSE DATABASE to the disconnect code, or
>wait for the next release.

This really doesn't bother me. I can live with it.

>>>If you find anything useful, please let me know.  Also, if you have any
>>>insight into the options in Makefile.PL referring to HP-UX, please let me
>>>know.  Does LD_RUN_PATH do anything on HP-UX?
>
>>When I installed PERL5, I specified paths like "~wangj", Makefile.PL doesn't
>>expand it to full path, so I need to manually edit Makefile because 'cc'
>>doesn't recognize path like this.
>
>I'm not sure about this -- are you using a Bourne shell, rather than Korn
>or C Shell?

I'm using Korn shell.

>>Also, be careful with 'varchar' and 'char' data type, I tried following query:
>>
>>...
>>$tcur = $mydb->prepare("select t1 from mytest where t1=\"test\"");
>>$tcur->execute;
>>while ( ( $t1 ) = $tcur->fetchrow ) { print "Row: $t1", length($t1), "\n";}
>>...
>>
>>when mytest.t1 is varchar(20), the value of length($t1) is 4,when mytest.t1 is
>>char(20), length($t1) is 4. This may cause confusion when comparing strings.
>
>I saw a later amendment which said the length of $t1 is 20 when it is
>selected from a CHAR(20) column.
>
>The Informix-ESQL/C software does not strip the trailing blanks from a CHAR
>field.  We may need to add an option to allow trailing blanks to be
>stripped -- maybe it should even be set by default, and the option would
>allow it to be unset.

I think make it as default is better, what I'm doing now is passing all strings
returned by SQL statements to a filter and have those trailing blanks truncated.

>>It looks like LD_RUN_PATH doesn't do anything for me.
>
>I would not expect LD_RUN_PATH to do anything on HP-UX -- it does things on
>SVR4.  So does LD_LIBRARY_PATH on SVR4 -- the equivalent on HP-UX is
>something like SHLIB_PATH.  Is there an equivalent on HP-UX, do you know?

You were right, The equivalent on HP-UX is SHLIB_PATH, and option '+s' needs
to be turned on so that the shared library loader can use SHLIB_PATH to
locate shared libraries needed by the executable file.
 
>
>Yours,
>Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

Regards,
-John
_____________________________________________________________________
John Wang
Programmer/Analyst
Aromat Corp.	http://www.aromat.com
Tel: (908) 464-3550 Ext.2047
_____________________________________________________________________



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10283-0@oink>;
          Sat, 16 Nov 1996 00:58:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848103972:10:22453:0; Sat, 16 Nov 96 00:26:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1022448; 16 Nov 96 0:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA08434 for dbi-users-real; Fri, 15 Nov 1996 12:04:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com ([204.249.122.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id MAA08430 
          for <dbi-users@fugue.com>; Fri, 15 Nov 1996 12:04:50 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id OAA02381 for <dbi-users@fugue.com>;
          Fri, 15 Nov 1996 14:46:25 -0500
Message-ID: <328C6DDA.7C20@rochgrp.com>
Date: Fri, 15 Nov 1996 05:19:22 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Can't solve Oraperl error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

"insert" 84 lines, 1837 characters
#!/usr/bin/perl -w

##
# insert - Perl script to catch tab delimited
#              data, and insert it into Oracle tables.
#
# Some code borrowed from 'DBD::Oracle' examples.
#
# T.Dixon.
##

# include external Perl Modules (/usr/local/lib/perl5/)

use diagnostics;
use Oraperl;
require ('oraperl.ph');


# initialization
use vars qw($location_id $product_id $factor_id $month
            $timeframe $case $perfvalue);


# set SQL insert string

$INSERT = "insert into perfdata_c
          (location_id, product_id, factor_id,
           month, timeframe, case, perfvalue)
          VALUES (:1, :2, :3, :4, :5, :6, :7)";


# log in to Oracle

$lda = &ora_login('ORCL', 'tdixon', 'perl')   or die $ora_errstr;

die "&oralogin undefined: $|\n"               unless defined &ora_login;


# open a cursor

$csr = &ora_open($lda, $INSERT)               or die $ora_errstr;


# split each tab delimited column into variables
# and insert the data

while (<>)
{

   # chop off newline character from end of line

    chop;


   # get rid of the MS-DOS carraige-return (^M)

    s/^(.*)(\^M)$/$1/;


   # split the line into variables at each tab

    ($location_id, $product_id, $factor_id,
     $month, $timeframe, $case, $perfvalue) =
    split("\t");


   # print to STDOUT for monitoring purposes

    print "\n", join(',',
                     $location_id,
                     $product_id,
                     $factor_id,
                     $month,
                     $timeframe,
                     $case,
                     $perfvalue), "\n";

   # data inserted here

    &ora_bind($csr, $location_id, $product_id, $factor_id,
                    $month, $timeframe, $case, $perfvalue)
        or die $ora_errstr;
}

&ora_close($csr)                               or die $ora_errstr;


# log out

&ora_logoff($lda)                              or die $ora_errstr;


---------- MY OUTPUT:

AUSTRIA,3006,%totbrcalls,199501,A,M,50

Uncaught exception from user code:
        ORA-01722: invalid number (DBD: oexec error) at ./wcs_insert line 71, <>
 chunk 1.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc.
600 Park Avenue
Rochester,NY 14607
USA

"Watch this space"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12652-21@oink>;
          Sat, 16 Nov 1996 20:06:26 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848145369:10:09281:6; Sat, 16 Nov 96 11:56:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919598; 16 Nov 96 11:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id BAA10093 for dbi-users-real; Sat, 16 Nov 1996 01:40:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cerulean.axxis.com (cerulean.axxis.com [205.199.96.10]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id BAA10089 
          for <dbi-users@fugue.com>; Sat, 16 Nov 1996 01:40:08 -0800 (PST)
Received: from cerulean.axxis.com (localhost.axxis.com [127.0.0.1]) 
          by cerulean.axxis.com (8.7.6/8.7.5) with ESMTP id CAA25133 
          for <dbi-users@fugue.com>; Sat, 16 Nov 1996 02:40:08 -0700 (MST)
Message-Id: <199611160940.CAA25133@cerulean.axxis.com>
X-Attribution: msanders
To: dbi-users@fugue.com
Subject: DBI::mSQL versus mSQLPerl?
X-Mailer: MH 6.8.3
Date: Sat, 16 Nov 1996 02:40:07 -0700
From: "Michael K. Sanders" <msanders@axxis.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've looked through the Hermetica web site and the dbi-users list
archives and didn't see much comparing DBI::mSQL and mSQLPerl
except that the use of mSQLPerl is deprecated. 

This is my quandry: I plan on maintaining database code in both
Perl and C, and am not sure which route to go. The DBI API is
appealing if I ever add other database engines, but for now I'm solely
interested in using mSQL. On the other hand, if I go with mSQLPerl the
API will be the same for Perl and C, which is a definite plus.

Are there any other benefits of using DBI which I should be aware of?
Is there any way to use the DBI API in C? Would I be better off just
using mSQLPerl?

If any of you have any insight or experience with this situation, 
it would be appreciated. 

Thanks.

Michael K. Sanders
msanders@axxis.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20466-34@oink>;
          Mon, 18 Nov 1996 07:40:33 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848279816:10:23793:1; Mon, 18 Nov 96 01:16:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1023760; 18 Nov 96 1:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id PAA13563 for dbi-dev-real; Sun, 17 Nov 1996 15:53:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id PAA13559 
          for <dbi-dev@fugue.com>; Sun, 17 Nov 1996 15:53:30 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id PAA02537 
          for <dbi-dev@fugue.com>; Sun, 17 Nov 1996 15:52:59 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id PAA11763;
          Sun, 17 Nov 1996 15:53:53 -0800
Date: Sun, 17 Nov 1996 15:53:53 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611172353.PAA11763@anubis.informix.com>
To: dbi-dev@fugue.com
Subject: Type Names in DBD drivers

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

I've got DBD::Informix v0.25 working reasonably well, and I wanted to
axe some Oracle definitions that don't translate into Informix idioms,
but I came up with an encoding problem.  When the user requests:

@type = @{$statement->{TYPE}};

What should the values in the @type array be?  Numbers, or strings?
Upper or lower case strings?  Similarly, what should be in arrays:

@prec = @{$statement->{PRECISION}};
@scal = @{$statement->{SCALE}};

What information do these array convey for each and every type?

With Informix, it seems to me that there are several possible answers to
these questions, and different people will find different answers most
useful.

In fact, I suggest that the @type array should contain the full type names
for each column in any format that would be equivalent to what is
used in the CREATE TABLE statement, with the names in lower case.

So, this might produce, with an Informix database:

@type[0] == "integer"
@type[1] == "decimal"
@type[2] == "money(12,2)"
@type[3] == "datetime year to fraction(5)"
@type[4] == "interval day(6) to minute"

I suggest that the @prec and @scal arrays have no real use under this
scheme, but since I don't know what should be in them anyway, that
judegement could be premature.

For Informix, it makes sense to make two other arrays available
(probably as an Informix-only extension):

@coltyp = @{$statement->{COLTYPE}};
@collen = @{$statement->{COLLENGTH}};

These would return the basic integer values found in the ColType and
ColLength columns of the SysColumns table in the Informix system
catalogue.

Anybody got any ideas about this?  Yea, Nay, Maybe?

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20466-36@oink>;
          Mon, 18 Nov 1996 07:40:48 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848283656:9:25211:3; Mon, 18 Nov 96 02:20:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa925202; 18 Nov 96 2:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id QAA13687 for dbi-dev-real; Sun, 17 Nov 1996 16:47:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id QAA13683 
          for <dbi-dev@fugue.com>; Sun, 17 Nov 1996 16:47:48 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id QAA02745;
          Sun, 17 Nov 1996 16:46:50 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id QAA12274;
          Sun, 17 Nov 1996 16:47:44 -0800
Date: Sun, 17 Nov 1996 16:47:44 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611180047.QAA12274@anubis.informix.com>
To: descarte@hermetica.com, johnl@informix.com
Cc: dbi-dev@fugue.com
Subject: Re: Type Names in DBD drivers

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

Thanks for the prompt answer -- what are you doing up so late in the
morning?  And I think your system clock is an hour off, since I received
your response at about Sunday 17th November 1996 16:30 +0800 (PST)...:-)

>From: descarte@hermetica.com
>Date: Mon, 18 Nov 1996 01:19:00 +0000 (GMT)
>
>> I've got DBD::Informix v0.25 working reasonably well, and I wanted to
>> axe some Oracle definitions that don't translate into Informix idioms,
>> but I came up with an encoding problem.  When the user requests:
>>
>> @type = @{$statement->{TYPE}};
>>
>> What should the values in the @type array be?  Numbers, or strings?
>> Upper or lower case strings?  Similarly, what should be in arrays:
>>
>> @prec = @{$statement->{PRECISION}};
>> @scal = @{$statement->{SCALE}};
>>
>> What information do these array convey for each and every type?
>
>PRECISION is the "decimal precision for NUMBER datatype; BINARY precision for
>FLOAT datatype; NULL for all other datatypes" to quote the good book.
>SCALE is "digits to right of decimal point in a number"

OK, that is understandable.  What about SMALLFLOAT, REAL, NUMERIC, DECIMAL,
etc.  DOUBLE PRECISION, etc.

How do you find out how big a CHAR type is?  VARCHAR?  NCHAR?  NVARCHAR?

How do you handle DATE, DATETIME and INTERVAL types?  What about types
which don't have any analogue on other systems?

>> With Informix, it seems to me that there are several possible answers to
>> these questions, and different people will find different answers most
>> useful.
>>
>> In fact, I suggest that the @type array should contain the full type names
>> for each column in any format that would be equivalent to what is
>> used in the CREATE TABLE statement, with the names in lower case.
>>
>> So, this might produce, with an Informix database:
>>
>> @type[0] == "integer"
>> @type[1] == "decimal"
>> @type[2] == "money(12,2)"
>> @type[3] == "datetime year to fraction(5)"
>> @type[4] == "interval day(6) to minute"
>>
>> I suggest that the @prec and @scal arrays have no real use under this
>> scheme, but since I don't know what should be in them anyway, that
>> judegement could be premature.
>>
>> For Informix, it makes sense to make two other arrays available
>> (probably as an Informix-only extension):
>>
>> @coltyp = @{$statement->{COLTYPE}};
>> @collen = @{$statement->{COLLENGTH}};
>>
>> These would return the basic integer values found in the ColType and
>> ColLength columns of the SysColumns table in the Informix system
>> catalogue.
>
>Why not just use SCALE and PRECISION? Or perhaps a generic solution like
>"LENGTH" and "SCALE", where "LENGTH" is the type-specific length of the
>object ( also database-specific ), and "SCALE" is the number of decimal
>places? That'd be scalable across most databases, I reckon.

So, if I have a DECIMAL(16) type, what goes in the TYPE array?  DECIMAL or
DECIMAL(16)?  What goes into the LENGTH?  Trivial answer: 16.  What goes in
the SCALE?  Dunno -- it's a floating point number, not a fixed, so
empty/undefined?  Not 0; that's a 16-digit integer.

And if I have an INTERVAL DAY(6) TO FRACTION(2), what goes in each item?

>> Anybody got any ideas about this?  Yea, Nay, Maybe?
>
>I'm kinda tempted to standardise for TYPE as the SQL types, with mappings.
>That would make cross-database tools ( like dbmv ) be possibly more reliable.

Well, yes, but...  But it isn't always possible.

That's why I suggested 'a type acceptable to CREATE TABLE'.  That works
nicely for each database, and the types should be as close as possible to
the standard (ie, an SQL standard type name should be used when it will
work, but not if there isn't one or it won't work).

Also, moving data from one database system to another will always be tricky
when the starting database is not using the SQL types.  Real Informix
databases use lots of none-standard data types.  These will always need to
be handled with care with any program (such as your dbmv).

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20466-40@oink>;
          Mon, 18 Nov 1996 07:41:15 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848290511:10:22709:0; Mon, 18 Nov 96 04:15:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1022696; 18 Nov 96 4:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id RAA13814 for dbi-users-real; Sun, 17 Nov 1996 17:50:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from athena.romoidoy.com (athena.romoidoy.com [208.193.64.15]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id RAA13810 
          for <dbi-users@fugue.com>; Sun, 17 Nov 1996 17:50:25 -0800 (PST)
Received: from aurora (sabat@aurora.zoom.com [208.193.64.6]) 
          by athena.romoidoy.com (8.6.12/Romoidoy-Hub-022896) with SMTP 
          id RAA18804; Sun, 17 Nov 1996 17:50:41 -0800
Date: Sun, 17 Nov 1996 17:50:32 -0800 (PST)
From: Sabat <sabat@zoom.com>
X-Sender: sabat@aurora
To: mtdedlow@lbl.gov
cc: dbi-users@fugue.com
Subject: Re: perl and Oracle WebServer 3 cartridge
In-Reply-To: <199611060735.XAA11657@voro.lbl.gov>
Message-ID: <Pine.SUN.3.91.961117174843.24653B-100000@aurora>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Tue, 5 Nov 1996, Mark Dedlow wrote:

> I went to Oracle's OpernWorld conference today, and got the scoop
> on the WebServer 3.0 Perl Cartridge.  
> 
> That's basically it.  It does not include oraperl, or DBD, or 
> any mechanism for DB access, and there are no plans to add that.


Hmm. I don't know where you got this info, but I know the guy who
wrote/is writing the Perl cartridge, and he insists it definitely
DOES include DBI/DBD::Oracle.

Also, it should be back-compatible with OWS 2.1/2.03, for those
who might need that.

Steve


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24183-18@oink>;
          Mon, 18 Nov 1996 18:02:27 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848319904:9:20402:0; Mon, 18 Nov 96 12:25:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa920388; 18 Nov 96 12:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id BAA14354 for dbi-users-real; Mon, 18 Nov 1996 01:26:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id BAA14350 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 01:25:54 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id JAA05490;
          Mon, 18 Nov 1996 09:21:04 GMT
Date: Mon, 18 Nov 1996 09:21:04 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Terry Dixon <tdixon@rochgrp.com>
cc: dbi-users@fugue.com
Subject: Re: Can't solve Oraperl error
In-Reply-To: <328C6DDA.7C20@rochgrp.com>
Message-ID: <Pine.SGI.3.95.961118091628.17315A-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Fri, 15 Nov 1996, Terry Dixon wrote:

> From: Terry Dixon <tdixon@rochgrp.com>
> To: dbi-users@fugue.com
> Subject: Can't solve Oraperl error
> 

[...]

> $INSERT = "insert into perfdata_c
>           (location_id, product_id, factor_id,
>            month, timeframe, case, perfvalue)
>           VALUES (:1, :2, :3, :4, :5, :6, :7)";

[...]

> AUSTRIA,3006,%totbrcalls,199501,A,M,50

My guess is that this is an Oracle problem and not an Oraperl one ....
with your error message ORA-01722 (attempted conversion of a character
string into a numeric field failed because the character string was
not a valid numeric literal), I would guess that your input does match
the fields into which you are trying to place it.

What is your table definition for perfdata_c ?

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24183-52@oink>;
          Mon, 18 Nov 1996 18:06:19 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848339529:10:24828:0; Mon, 18 Nov 96 17:52:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1024812; 18 Nov 96 17:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id FAA14700 for dbi-users-real; Mon, 18 Nov 1996 05:19:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (sluggo.rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id FAA14696 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 05:19:56 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id IAA00416 for <dbi-users@fugue.com>;
          Mon, 18 Nov 1996 08:01:18 -0500
Message-ID: <328D68AF.4D02@rochgrp.com>
Date: Fri, 15 Nov 1996 23:09:35 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Can't solve Oraperl error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Here's my definition, pretty simple, I want to get it to work before I 
deal with constraints.  I've tried adding a zero to the "perfvalue" 
variable, *or* concatinating null string, or a space, just before I bind 
it, to see if that will effect the data-type that's inserted (to no 
avail).  The puzzling thing; is that it works if the data is at the end 
of the script a la "(<DATA>)...__END__", but will not work when I use a 
separate input file.  The print out from this script always looks great. 
 I can't get "bind_param" to work, either.  btw - Thank you.

create table perfdata_c
(location_id  char(15),
product_id    char(15),
factor_id     char(15),
month         char(6),
timeframe     char(1),
case          char(1),
perfvalue     number(15,5))

"insert" 84 lines, 1837 characters
#!/usr/bin/perl -w

##
# insert - Perl script to catch tab delimited
#              data, and insert it into Oracle tables.
#
# Some code borrowed from 'DBD::Oracle' examples.
#
# T.Dixon.
##

# include external Perl Modules (/usr/local/lib/perl5/)

use diagnostics;
use Oraperl;
require ('oraperl.ph');


# initialization

use vars qw($location_id $product_id $factor_id $month
            $timeframe $case $perfvalue);


# set SQL insert string

$INSERT = "insert into perfdata_c
          (location_id, product_id, factor_id,
           month, timeframe, case, perfvalue)
          VALUES (:1, :2, :3, :4, :5, :6, :7)";


# log in to Oracle

$lda = &ora_login('ORCL', 'tdixon', 'perl')   or die $ora_errstr;

die "&oralogin undefined: $|\n"               unless defined &ora_login;


# open a cursor

$csr = &ora_open($lda, $INSERT)               or die $ora_errstr;


# split each tab delimited column into variables
# and insert the data

while (<>)
{

   # chop off newline character from end of line

    chop;


   # get rid of the MS-DOS carraige-return (^M)

    s/^(.*)(\^M)$/$1/;


   # split the line into variables at each tab

    ($location_id, $product_id, $factor_id,
     $month, $timeframe, $case, $perfvalue) =
    split("\t");


   # print to STDOUT for monitoring purposes

    print "\n", join(',',
                     $location_id,
                     $product_id,
                     $factor_id,
                     $month,
                     $timeframe,
                     $case,
                     $perfvalue), "\n";

   # data inserted here

    &ora_bind($csr, $location_id, $product_id, $factor_id,
                    $month, $timeframe, $case, $perfvalue)
        or die $ora_errstr;
}

&ora_close($csr)                               or die $ora_errstr;


# log out

&ora_logoff($lda)                              or die $ora_errstr;


---------- MY OUTPUT:

AUSTRIA,3006,%totbrcalls,199501,A,M,50

Uncaught exception from user code:
        ORA-01722: invalid number (DBD: oexec error) at ./wcs_insert line 
71, <>
 chunk 1.
-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607
USA                      http://rochgrp.com/

"Watch this space"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27178-58@oink>;
          Tue, 19 Nov 1996 07:41:00 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848353853:9:24239:7; Mon, 18 Nov 96 21:50:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa924226; 18 Nov 96 21:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id IAA14999 for dbi-users-real; Mon, 18 Nov 1996 08:58:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from stachus (stachus.muenchen.org [194.95.192.254]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id IAA14995 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 08:58:27 -0800 (PST)
Received: from octopus by stachus (SMI-8.6/SMI-SVR4) id RAA07345;
          Mon, 18 Nov 1996 17:53:43 +0100
Message-ID: <3290943B.1E5DFCCE@muenchen.org>
Date: Mon, 18 Nov 1996 17:52:33 +0100
From: Christoph Bernhardt <bm745512@muenchen.org>
Organization: Ich
X-Mailer: Mozilla 3.0Gold (X11; I; Linux 2.0.14 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Still the memory leak...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I wonder if anybody can confirm my finding that the following short
program leaks memory like crazy (configuration is perl5.003, DBI0.73,
DBD-mSQL0.60pl10 on Linux 2.0.14):

-----------------------------------

#!/usr/bin/perl -w

use DBI;

package main;

use strict;

use vars qw($drh $dbh);


$drh = DBI->install_driver('mSQL') ||
    die "Could not install driver";
$dbh = $drh->connect('','test') ||
    die "Could not connect";

while(1) {
    my $cursor = $dbh->prepare("SELECT * FROM test")
	|| die "Could not select $DBI::errstr";

    $cursor->execute();
    my @row;

    while (@row = $cursor->fetchrow()) {
	print "@row\n";
    }

    $cursor->finish();

#    sleep(1);
}
-----------------------------------------

Maybe I am also using the DBI interface wrongly? As usual I am very open
to suggestions.

Christoph


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27178-81@oink>;
          Tue, 19 Nov 1996 07:42:44 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848359167:10:04239:2; Mon, 18 Nov 96 23:19:27 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1004209; 18 Nov 96 23:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA15577 for dbi-users-real; Mon, 18 Nov 1996 12:00:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id LAA15554 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 11:58:27 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.2/8.8.2) 
          id LAA06343 for dbi-users@fugue.com;
          Mon, 18 Nov 1996 11:55:41 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199611181955.LAA06343@abyss.ecst.csuchico.edu>
Subject: Oraperl.ph and h2ph error
To: dbi-users@fugue.com
Date: Mon, 18 Nov 1996 11:55:40 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm attempting to write my first script using Oraperl.

I'm running perl 5.003on HPUX 9.05. Built 
DBI .73 and DBD .43 statically.

here is the script
#!/users/kal/DBI-0.73/perl
eval 'use Oraperl; 1' || die "where is Oraperl.pm: $@";
eval 'use diagnostics; 1' || die "diagnostics: $@";

use diagnostics;
use Oraperl;
require ('Oraperl.ph');
----------------------

the error I get is :
Can't locate Oraperl.ph in @INC (did you run h2ph?) at t1.pl line 7 (#1)
Uncaught exception from user code:
        Can't locate Oraperl.ph in @INC (did you run h2ph?) at t1.pl line
7.
--------

Does static linking have anything to do with this?
Or, could it be that I forgot a step in installing perl5?

Any help (now matter how minor) appreciated

Kal


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27178-83@oink>;
          Tue, 19 Nov 1996 07:42:51 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848359218:10:04480:0; Mon, 18 Nov 96 23:20:18 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa916215; 18 Nov 96 23:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id LAA15567 for dbi-users-real; Mon, 18 Nov 1996 11:59:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id LAA15563 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 11:59:53 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id OAA02434; Mon, 18 Nov 1996 14:41:15 -0500
Message-ID: <328DC663.85C@rochgrp.com>
Date: Sat, 16 Nov 1996 05:49:23 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: rmill@sluggo.rochgrp.com, ddonn@sluggo.rochgrp.com, 
    mscaglio@sluggo.rochgrp.com, Chris Homan <choman@rochgrp.com>, 
    Chris Bohnert <cbohnert@rochgrp.com>, smiller@sluggo.rochgrp.com
Subject: Re: Can't solve Oraperl error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

You're going to laugh, I did not know that the '^M', from the DOS end of line would not show up when printed to 
the Unix terminal.  For example; I was trying to insert 50^M, instead of just 50, into a NUMBER field!  Due to 
the fact that the print-out looked fine, I was not aware that I hadn't succeeded in removing that pesky ^M.  I 
was trying in vain to use a regular expression to remove the ^M; I now use chop twice and both newline and ^M 
are removed!!
Here's to feeling humble, vacuous, and bumbling all in one day!
-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607
USA                      http://rochgrp.com/

"Watch this space"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27178-87@oink>;
          Tue, 19 Nov 1996 07:43:05 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848359475:10:05510:0; Mon, 18 Nov 96 23:24:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1005475; 18 Nov 96 23:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id MAA15735 for dbi-dev-real; Mon, 18 Nov 1996 12:46:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from emerald.empress.com (emerald.empress.com [192.43.219.6]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id MAA15730 
          for <dbi-dev@fugue.com>; Mon, 18 Nov 1996 12:46:28 -0800 (PST)
Received: (from fjones@localhost) by emerald.empress.com (8.6.11/8.6.9) 
          id PAA04618 for dbi-dev@fugue.com; Mon, 18 Nov 1996 15:45:07 -0500
From: Francis Jones <fjones@empress.com>
Message-Id: <199611182045.PAA04618@emerald.empress.com>
Subject: Re: Proposed changes for DBD::Informix 0.25
To: dbi-dev@fugue.com
Date: Mon, 18 Nov 1996 15:45:06 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi Everybody,

I've been reading with some interest the postings regarding the Informix
driver development (mostly between Jonathan Leffler and Tim Bunce).
I've got 2 cents here that I'd like to throw in, as I completely sympathize
with Jonathan, as I think I went through a similar experience in developing
the Empress driver.  

I would like to suggest that it would be great if all 
the DBD's had the same top level code.  Currently, the .xs code is
roughly the same, but the dbdimp.c stuff underneath it is different
for everybody.  If this could be cleaned up then the implementation 
of an ODBC interface might come along more quickly.  Other benefits
that I can see:

	* all the drivers would behave the same way, and perl scripts
	written with appropriate error handling would work the same way.

	* driver development could be made easier since the drivers
	would be independant of the DBI and of the .xs layer

As I see it, the problem is getting a replacement for dbdimp.c which
contains a common set of calls which must be created for each driver.
If it's written properly, then the new dbdimp.c would be universal, and
the .xs code would be universal, and all a driver developer would
have to do is develop the code which dbdimp.c calls.  This means that
dbdimp.c would have to be sophisticated enough to take care of driver
differences, though part of that is in choosing the common modules
underneath, and in choosing an appropriate and well-defined behaviour
for them.

Some negative points: (1) it introduces an extra layer of code, but this
should not make any real difference on a modern machine.  (2) the 
existing DBD's would have to be rewritten using this universal *.xs and
dbdimp.c code.  (3) some features of a given DB engine might not be
available at the user level, but you can always get around this by
providing driver-specific methods exactly as we do already.  The difference
here is that these driver-specific features would have to be taken out of
their dbdimp.c's and put into a private driver method.

In the Empress driver, I've tried to separate the driver-dependant 
stuff from the driver-independant stuff (ie. dbdimp.c
and above).  It's a bit like trying to re-invent ODBC, but on a much
smaller scale, and I'm not sure how well even that effort has succeeded,
but it's a start.  Anyways, I've managed to make it work for the
case of Empress, but I've been busy and haven't put some important
features like parameter binding into the top-level code.  So far,
the code I've created is based on Tim's v0.38, so I've got a bit
of catchup to do in addition to adding the missing features.  

Anyways, if you feel like commenting on the idea, you might want to start by
picking up the DBD::Empress source code from the
Empress site (which is available from a link in Hermetica): or
http://www.empress.com/store/freeware.htm, and follow the link 
labelled 'Download the Empress Perl Interface'.

Currently I'm working off Tim's v0.43 and am adding in a number of the
missing features, but this code isn't public yet.  But, for the purpose
of this discussion, the v0.38-based code should be fine.

I wrote the Empress code this way because 

	* there wasn't any real (ie. current & accurate) interface 
	documentation, 
	* examination of existing drivers showed all sorts of
	functional differences

I also thought that one day I would be able to reuse a 
lot of the code if I decided to write an DBD::ODBC interface.
I realize it's not anywhere near perfect, but I think an 
effort in this direction would help DBI/DBD mature.   Currently,
if you write perl code to access a database you will not likely be able
to access a database from a different vendor, unless only very simple 
features of DBI are used, and this seems to defeat the purpose of the
DBI.  Although you could get around this problem by ensuring that every
DBD worked in the same way, it's pretty hard for a developer to do this
since if the standard is not documented, then you have to determine
behaviour by trying it out to see what it does, and since not everyone has
got the standard available (ie. Oracle), this isn't practical.  I also
think it's easier to conform to a standard if the individual pieces that
a developer has to create are a bit smaller, as it's easier to document
what 'conformance' for each piece is.

Although I'm complaining here about lack of accurate documentation
for the DBI, I'm guilty of it too ;) ...the interface between the Empress
database vendor-independant and vendor-dependant layers isn't documented.
However, if anyone were interested in the idea, I could do it (though I'll
be away next week).  I'm sure a lot of recommendations could be made for 
improvement if the consensus is that it's a worthwhile idea to develop.

Cheers,

Francis Jones


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27178-132@oink>;
          Tue, 19 Nov 1996 07:46:49 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848366251:10:02308:0; Tue, 19 Nov 96 01:17:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1002283; 19 Nov 96 1:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id LAA15455 for dbi-users-real; Mon, 18 Nov 1996 11:38:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cliff.bms.com (cliff.bms.com [140.176.1.102]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id LAA15451 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 11:38:54 -0800 (PST)
Received: from zim.bms.com (pendragon.zim.bms.com) 
          by cliff.bms.com (PMDF V5.0-7 #15142) 
          id <01IBZTMLL7HC00BC0Z@cliff.bms.com> for dbi-users@fugue.com;
          Mon, 18 Nov 1996 14:38:19 -0500 (EST)
Received: from polaris (polaris.zim.bms.com) by zim.bms.com (4.1/SMI-4.1) 
          id AA11582; Mon, 18 Nov 1996 14:38:40 -0500 (EST)
Received: from auriga.zim.bms.com by polaris (4.1/SMI-4.1) id AA23250;
          Mon, 18 Nov 1996 14:40:02 -0500 (EST)
Received: from auriga by auriga.zim.bms.com (SMI-8.6/SMI-SVR4) id OAA15091;
          Mon, 18 Nov 1996 14:39:54 -0500
Date: Mon, 18 Nov 1996 14:39:53 -0500
From: Jeff Neubaum <jeff.neubaum@pendragon.zim.bms.com>
Subject: Oracle DBD coredump
To: dbi-users@fugue.com
Message-id: <3290BB89.5258@zim.bms.com>
Organization: Zimmer Inc.
MIME-version: 1.0
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4c)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm having a problem getting the DBD for Oracle to work without creating
a core file when the perl program exits.  I don't know if the problem is
related to the "perl Makefile" Unrecognized argument warnings or
something else?

I've included several output displays for various stages of the
make DBD process:
  1) Warnings of "Unrecognized argument: during "perl Makefile"
     I made a modification to the Makefile so the oracle libocic.a file
     would get linked in, since the perl make does not process this
file.
  2) "make test" output -- Seems the test are OK, but the exit dumps
core?
  3) Perl Debug output from a simple query database program.
     Actual program reaches "exit;", but dumps core during exit?
     This is the same as the "make test" results.
  4) My "perl -V" output.
  5) Output generated by perl Devel::CoreStack

General system params:
System: Solaris 2.5
Oracle: 7.1.6
Compiler: gcc
DBI: 0.71
DBD: 0.35 (Oracle)

----------------------------------------------------------------------------
1) perl Makefile.PL -m /mnt/oracle/rdbms/lib/oracle.mk

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!

Using Oracle in /mnt/oracle
Using /mnt/oracle/rdbms/lib/oracle.mk (version 7.97)
Argument "2.5.1" isn't numeric in eq at Makefile.PL line 93.
System: perl5.003 sunos pictor 5.5.1 generic sun4m sparc sun4m 
Compiler: gcc -B/usr/ccs/bin/ -O -I/usr/local/include
Linker:   /usr/ccs/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       ld -dy $(COMPOBJS)
  LDFLAGS:  -L$(LIBHOME)
  LDSTRING: -R /opt/SUNWcluster/lib -Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc
$(COMPOBJ)/crtn.o
Linking with $(LIBHOME)/osntab.o /mnt/oracle/lib/crtn.o
$(LIBHOME)/libocic.a  -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6
-lcore -lnlsrtl -lcv6 -lcore -lsocket -lnsl -lm -ldl -laio -R
/opt/SUNWcluster/lib -YP,:/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy
-lc  -lcore

Unrecognized argument in LIBS ignored: '$(LIBHOME)/libocic.a'
Unrecognized argument in LIBS ignored: '/opt/SUNWcluster/lib'
Unrecognized argument in LIBS ignored:
'-YP,:/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib'
Unrecognized argument in LIBS ignored: '-Qy'

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories
from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle


Partial solution:
 Must add $(LIBHOME)/libocic.a in Makefile in the dynamic_lib section.
 Insert between $(PERLARCHIVE) & ($LDLOADLIBS).

Is there a better method to accomplish a good compile?
Why do I get these "Unrecognized argument" messages?



---------------------------------------------------------------------------
2) make test
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
        Test returned status 0 (wstat 138)
All tests successful.
Files=1,  Tests=5,  7 secs ( 0.88 cusr  0.94 csys =  1.82 cpu)
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.21 $

Oraperl Emulation Interface version 1.28 
Oracle Driver 0.35
DBI-0.71 Switch by Tim Bunce, version 0.71


Connecting
 to '' (from command line, else uses ORACLE_SID/TWO_TASK)
 as 'cms/cms' (via ORACLE_USERID environment var or default)
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 16-NOV-96 CMS NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: CDEF$
Fetched: TAB$
Fetched: IND$
Fetched: CLU$
Test ora_do with harmless non-select statement (set transaction read
only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of
transaction (DBD: oexec error)
csr out of scope...
ora_logoff...
lda out of scope...

Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5 

Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.

Test complete (3 seconds).
Caught a SIGBUS at test.pl line 0
*** Error code 134
make: Fatal error: Command failed for target `test_dynamic'


Problem: Seems that the tests are OK, but an abort occurs during the
exit.

Solution: ???



----------------------------------------------------------------------------
3) Output during perl -d of a simple oracle query program:
   Works correctly until the perl exit; -- then dumps core.
132:
133:    exit;
134:
135:    # =============== EOF ============================
136:
main::(CMS6_find_name.pl:133):  exit;
  DB<4> n
DBI::(/usr/local/lib/perl5/site_perl/DBI.pm:125):
125:        warn "DBI::END\n" if $DBI::dbi_debug;
  DB<4> n
DBI::(/usr/local/lib/perl5/site_perl/DBI.pm:127):
127:        $DBI::PERL_ENDING = 1;      # Perl is END'ing
  DB<4> n
DBI::(/usr/local/lib/perl5/site_perl/DBI.pm:128):
128:        DBI->disconnect_all();
  DB<4> n
DBI::(/usr/local/lib/perl5/site_perl/DBI.pm:129):
129:        warn "DBI::END complete\n" if $DBI::dbi_debug;
  DB<4> n
Got BUS!
Carp::(/usr/local/lib/perl5/Carp.pm:38):
38:         my $error = shift;
  DB<4> n
Carp::(/usr/local/lib/perl5/Carp.pm:39):
39:         my $mess = "";
  DB<4> n
Carp::(/usr/local/lib/perl5/Carp.pm:40):
40:         my $i = 1 + $CarpLevel;
  DB<4> n
Carp::(/usr/local/lib/perl5/Carp.pm:41):
41:         my ($pack,$file,$line,$sub,$eval,$require);
  DB<4> n
Carp::(/usr/local/lib/perl5/Carp.pm:42):
42:         while (($pack,$file,$line,$sub,undef,undef,$eval,$require) =
caller($i++)) {
  DB<4> n
Carp::(/usr/local/lib/perl5/Carp.pm:64):
64:         $mess || $error;
  DB<4> n
Signal BUS: No such file or directory
Abort (core dumped)



----------------------------------------------------------------------------
4) Perl -V output:
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos pictor 5.5.1 generic sun4m sparc sun4m '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.6.3
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris
/usr/local/lib/perl5/site_perl .



----------------------------------------------------------------------------
5) perl -MDevel::CoreStack -e 'stack'

Executing /usr/local/bin/gdb "/usr/bin/perl" "core" (bt)...
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for
details.
GDB 4.14 (sparc-sun-solaris2.4), 
Copyright 1995 Free Software Foundation, Inc...
Core was generated by `perl CMS6_find_name.pl 95-086% 0'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from
/usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBI/DBI.so...done.
Reading symbols from
/usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Oracle/Oracle.so...done.
Reading symbols from /lib/libaio.so.1...done.
#0  0xef4cf0d0 in _fini ()
(gdb) #0  0xef4cf0d0 in _fini ()
#1  0xef7dba2c in _etext ()
#2  0xef61784c in _exithandle ()
#3  0xef674174 in exit ()
(gdb) 

(I'm don't know these inner workings of perl, so I hope this helps
someone)
----------------------------------------------------------------------------

Any suggestions are welcome.  Thanks,
---------------------------------------------------------------
Jeff Neubaum
E-Mail  jeff.neubaum@zim.bms.com
---------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27463-63@oink>;
          Tue, 19 Nov 1996 07:55:24 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848384668:10:26329:1; Tue, 19 Nov 96 06:24:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1026318; 19 Nov 96 6:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id SAA16657 for dbi-users-real; Mon, 18 Nov 1996 18:39:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id SAA16653 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 18:39:22 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id UAA58072;
          Mon, 18 Nov 1996 20:39:16 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id UAA06338;
          Mon, 18 Nov 1996 20:39:13 -0600 (CST)
Message-Id: <199611190239.UAA06338@dax.austin.ibm.com>
To: Andrew Holman <akdh@ihug.co.nz>
cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: Re: DB2 autocommit on AIX
In-reply-to: Your message of Fri, 15 Nov 96 16:10:47 +1300. <01BBD30F.91758970@ANDREWS>
Date: Mon, 18 Nov 96 20:39:13 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

|> 
|> Is it possible to turn auto commit ON | OFF using DBI.
|> I have tried using:
|> 
|>  $dbh->do( "UPDATE COMMAND OPTION  using c OFF" );
|> 

I'm on the road, so this is from memory, try

$dbh->STORE(AutoCommit,OFF);

Let me know if this fails and I will look into it next week
when I'm back in the office.

|> Also I have tried setting the environment variable DB2OPTIONS 
|> to "-c-" but this did not have any effect either.
|> 

DB2 CLI does not make use of the DB2OPTIONS environment variable...
at least I have never been able to have it honored.

Mike
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27463-65@oink>;
          Tue, 19 Nov 1996 07:55:30 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848384712:9:27231:0; Tue, 19 Nov 96 06:25:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa927216; 19 Nov 96 6:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id TAA16719 for dbi-users-real; Mon, 18 Nov 1996 19:31:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id TAA16715 
          for <dbi-users@fugue.com>; Mon, 18 Nov 1996 19:31:52 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id VAA63364;
          Mon, 18 Nov 1996 21:31:50 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id VAA16932;
          Mon, 18 Nov 1996 21:31:51 -0600 (CST)
Message-Id: <199611190331.VAA16932@dax.austin.ibm.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com, akdh@ihung.co.nz
Subject: Re: DB2 DBI/DBD Stored procedures
In-reply-to: Your message of Fri, 15 Nov 96 00:12:06 +0000. <9611150012.AA02277@toad.ig.co.uk>
Date: Mon, 18 Nov 96 21:31:51 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|>> From: mhm@austin.ibm.com
|>> 
|>> |>Note that bind_param and bind_param_inout have different semantics for
|>> |>input. bind_param copies the current value at the time of the bind.
|>> |>bind_param_inout uses whatever the value is at the time of the execute.
|>> |>It's still a little experimental.
|>> 
|>> At least under the DB2 implimentation, the act of binding only causes
|>> the address of the value to be bound.  In essense, SQLBindParameter only
|>> stores the address of variable so that SQLExecute can go and retrieve
|>> the value(s).  The only distinction you can make is whether the
|>> parameter is an INPUT, OUTPUT or INPUT_OUTPUT.
|>
|>What are you storing the address of? How do you ensure it won't be
|>freed/reallocated before the execute?

For DB2, the SQLBindParameter call takes the address of the variable
which is being bound to the parameter.  So, when SQLExecute is called
it retrieves the contents of the addresses in question and submits 
the transaction.  Unfortunately, I can't insure that the locations
will not be freed/reallocated, but if the enduser programs such that
nothing comes between the $stmt->bind_param() call(s) and the
$stmt->execute() call, it has not been seen to be a problem.

The Atlanta Olympic web server was able to run successfully for the
entire duration of the olympics without encountering a problem
in DBD::DB2 (any problems for that matter).

|>> |>> Of the arguments you list for bind_param_inout, numbers 0,1 and 3 are 
|>> |>> already used by bind_param and in the DBD::DB2 case argument 2 comes
|>> |>> in as part of \%attribs as it is always needed under ODBC/CLI.
|>> |>
|>> |>Always needed under broken/limited ODBC/CLI's that don't have describe
|>> |>functionality. But I take your point.
|>> 
|>> Yes, it did start out as a work around for a broken/limited ODBC/CLI,
|>> but that issue has now been remedied and it has become an issue of 
|>> performance.  Using the SQLDescribeParam call requires one round trip
|>> to the database per parameter, not to obnoxious with 2-3 parameters, but
|>> very obnoxious with 100, 500 or 1000 parameters (yes, I have some really
|>> crazy endusers -- those are REAL numbers).
|>
|>I find it hard to believe that SQLDescribeParam actually makes a
|>call to the server per call. The information for all params should
|>be cached on the client side.

Unfortunately, this is a case of DB2's mainframe batch heritage getting
in the way of doing it correctly.  As it is now implimented, DB2 must
go to the database engine everytime SQLDescibeParameter is called.

Mike
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27463-67@oink>;
          Tue, 19 Nov 1996 07:55:37 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848384813:9:27440:0; Tue, 19 Nov 96 06:26:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1026635; 19 Nov 96 6:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id UAA16821 for dbi-dev-real; Mon, 18 Nov 1996 20:54:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from ids2.idsonline.com (root@[204.157.204.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id UAA16817;
          Mon, 18 Nov 1996 20:53:58 -0800 (PST)
Received: from moneypit (va124.idsonline.com [205.177.128.124]) 
          by ids2.idsonline.com (8.6.13/8.6.12) with SMTP id AAA17214;
          Tue, 19 Nov 1996 00:54:27 -0500
Message-ID: <32913B59.11E8531@pobox.com>
Date: Mon, 18 Nov 1996 23:45:13 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: Introduction and Query
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Sorry about posting to both lists. I'll tailor my posts a little more
once I get a feel for what goes on and who's listening on the three
lists.

My name is Eric Vought. I work for CACI on contract to the Air Force to
work on a product development product called MASTR. MASTR is primarily
an analysis and operations reasearch tool, although I'm hoping it can be
applied to non-military problems as well.

We are using a combination of PERL and Tcl/Tk for development of MASTR.
Tcl/Tk is being used for a scripting interface and for the GUI while
PERL is being used for the "serious stuff". Our current system uses a
4GL called VPE, which we are phasing out. Right now, our project
consists of 180,000 lines of VPE, and ~0,000 lines of tcl plus some
puddles of C code. By next year I hope to see about 10-12,000 lines of
Tcl and about 70-80,000 lines of PERL with no VPE and a bare minimum of
C.

This product does a fair amount of communication with an RDBMS
(currently Oracle, though we will be using one of Empress, Essentia,
CQL++, or Solid Server for future development and want to make sure we
are compatible with Sybase). This is why I'm posting/subscribing to this
list.

Outside of our (actively) supported databases, we want to make sure that
we are minimally compatible with
any RDBMS that supports ODBC. This is partially so that our customers
have as much choice as possible and so that we ourselves don't get
locked into a particular set of development tools
or platforms and it will be easy to change our list of actively
supported databases.

I've been reading through documentation on PERL DBD:DBI lately and
looking through code obtained from CPAN. The only driver's listed there
were for Oracle and Ingress, with only Oracle (alpha) being available
for download. I've also read a post (I don't remember who off hand) that
suggested DBD:DBI's current support was being obsoleted in favor of a
PERL<->ODBC interface.

>From listening to chatter on this list over the past week, it looks like
several other drivers are in development, and I have heard no mention of
a move to ODBC. Could someone give me a quich status report on what you
folks are up to? I am (obviously) interested in making as much use of
waht you have as possible for my employer, but I am also interested in
volunteering some of my own time off of work and may be able to convince
my employer to (sparingly) help with some portions of DBI:DBD that are
directly related to MASTR as long as the MASTR project does not have to
support such additions in the long term.

In particular, what is the progress in talking to an ODBC driver manager
(like iODBC) from PERL?
What needs to be done?

Eric Vought



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03147-5@oink>;
          Tue, 19 Nov 1996 13:48:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848395339:9:26030:2; Tue, 19 Nov 96 09:22:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1027937; 19 Nov 96 9:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id UAA16827 for dbi-users-real; Mon, 18 Nov 1996 20:57:49 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ids2.idsonline.com (root@[204.157.204.5]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id UAA16817;
          Mon, 18 Nov 1996 20:53:58 -0800 (PST)
Received: from moneypit (va124.idsonline.com [205.177.128.124]) 
          by ids2.idsonline.com (8.6.13/8.6.12) with SMTP id AAA17214;
          Tue, 19 Nov 1996 00:54:27 -0500
Message-ID: <32913B59.11E8531@pobox.com>
Date: Mon, 18 Nov 1996 23:45:13 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: Introduction and Query
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Sorry about posting to both lists. I'll tailor my posts a little more
once I get a feel for what goes on and who's listening on the three
lists.

My name is Eric Vought. I work for CACI on contract to the Air Force to
work on a product development product called MASTR. MASTR is primarily
an analysis and operations reasearch tool, although I'm hoping it can be
applied to non-military problems as well.

We are using a combination of PERL and Tcl/Tk for development of MASTR.
Tcl/Tk is being used for a scripting interface and for the GUI while
PERL is being used for the "serious stuff". Our current system uses a
4GL called VPE, which we are phasing out. Right now, our project
consists of 180,000 lines of VPE, and ~0,000 lines of tcl plus some
puddles of C code. By next year I hope to see about 10-12,000 lines of
Tcl and about 70-80,000 lines of PERL with no VPE and a bare minimum of
C.

This product does a fair amount of communication with an RDBMS
(currently Oracle, though we will be using one of Empress, Essentia,
CQL++, or Solid Server for future development and want to make sure we
are compatible with Sybase). This is why I'm posting/subscribing to this
list.

Outside of our (actively) supported databases, we want to make sure that
we are minimally compatible with
any RDBMS that supports ODBC. This is partially so that our customers
have as much choice as possible and so that we ourselves don't get
locked into a particular set of development tools
or platforms and it will be easy to change our list of actively
supported databases.

I've been reading through documentation on PERL DBD:DBI lately and
looking through code obtained from CPAN. The only driver's listed there
were for Oracle and Ingress, with only Oracle (alpha) being available
for download. I've also read a post (I don't remember who off hand) that
suggested DBD:DBI's current support was being obsoleted in favor of a
PERL<->ODBC interface.

>From listening to chatter on this list over the past week, it looks like
several other drivers are in development, and I have heard no mention of
a move to ODBC. Could someone give me a quich status report on what you
folks are up to? I am (obviously) interested in making as much use of
waht you have as possible for my employer, but I am also interested in
volunteering some of my own time off of work and may be able to convince
my employer to (sparingly) help with some portions of DBI:DBD that are
directly related to MASTR as long as the MASTR project does not have to
support such additions in the long term.

In particular, what is the progress in talking to an ODBC driver manager
(like iODBC) from PERL?
What needs to be done?

Eric Vought



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05572-20@oink>;
          Tue, 19 Nov 1996 18:03:10 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848418990:9:11962:2; Tue, 19 Nov 96 15:56:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa911899; 19 Nov 96 15:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id FAA00627 for dbi-dev-real; Tue, 19 Nov 1996 05:44:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id FAA00623 
          for <dbi-dev@fugue.com>; Tue, 19 Nov 1996 05:44:48 -0800 (PST)
Received: by gateway.fcmc.com; id IAA07952; Tue, 19 Nov 1996 08:38:21 -0500
Received: from unknown(192.129.90.50) by vone.fcmc.com via smap (g3.0.3) 
          id xma007939; Tue, 19 Nov 96 08:38:14 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA26914;
          Tue, 19 Nov 96 08:38:21 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA29075; Tue, 19 Nov 96 08:38:13 EST
Date: Tue, 19 Nov 96 08:38:13 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9611191338.AA29075@anderson.fcmc.com>
To: dbi-dev@fugue.com
Subject: To Informix-DBD 0.25
Cc: johnl@informix.com

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I have heard that Informix-DBD 0.25 is almost ready.
Thanx to johnl@informix.com.

Just couple of things it'd be nice to have in new release.
I guess essential things.

1. Binding values from host vars to preapared SQL statements.
2. $dbh-prepare does only prepare, not execute.
3. Any SQL command can be ->prepare'd
4. $dbh->do  does EXECUTE IMMEDIATELY call, not 
   $dbh->prepare, $sth->execute.


Also it would be great  to have insert cursors,
but seems it's beyond DBI specs.


Serge Davidov
Fuji Capital Markets Corporation (New York)
(212)898-2936





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06787-4@oink>;
          Tue, 19 Nov 1996 18:51:36 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848429204:9:03616:0; Tue, 19 Nov 96 18:46:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1017061; 19 Nov 96 18:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id IAA00807 for dbi-dev-real; Tue, 19 Nov 1996 08:18:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id IAA00803 
          for <dbi-dev@fugue.com>; Tue, 19 Nov 1996 08:18:14 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id IAA07099;
          Tue, 19 Nov 1996 08:17:39 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id IAA04586;
          Tue, 19 Nov 1996 08:18:32 -0800
Date: Tue, 19 Nov 1996 08:18:32 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611191618.IAA04586@anubis.informix.com>
To: dbi-dev@fugue.com, serge@fcmc.com
Cc: johnl@informix.com
Subject: Re: To Informix-DBD 0.25

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

>Date: Tue, 19 Nov 96 08:38:13 EST
>From: serge@fcmc.COM (Serge Davidov (DBA))
>
>I have heard that Informix-DBD 0.25 is almost ready.
>Thanx to johnl@informix.com.
>
>Just couple of things it'd be nice to have in new release.
>I guess essential things.
>
>1. Binding values from host vars to prepared SQL statements.

	More or less.  I'm not quite sure how it's meant to work, so they'll
	be accepted as arguments to execute() but not otherwise in v0.25.

>2. $dbh-prepare does only prepare, not execute.

	Done.

>3. Any SQL command can be ->prepare'd

	Done.  Beware the non-preparable statements such as the connection
	management statements, LOAD, UNLOAD, and one or two others.

>4. $dbh->do  does EXECUTE IMMEDIATELY call, not
>   $dbh->prepare, $sth->execute.

	Not sure how I'd provide that directly.  Maybe it would an alternative
	function (not $dbh->do).

>Also it would be great  to have insert cursors,
>but seems it's beyond DBI specs.

	And beyond 0.25...  I can only work so many wonders at a time.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08988-55@oink>;
          Wed, 20 Nov 1996 07:45:05 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848453001:9:15673:3; Wed, 20 Nov 96 01:23:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015628; 20 Nov 96 1:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id OAA01549 for dbi-users-real; Tue, 19 Nov 1996 14:26:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ihug.co.nz (ihug.co.nz [203.29.160.4]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id OAA01545 
          for <dbi-users@fugue.com>; Tue, 19 Nov 1996 14:25:59 -0800 (PST)
Received: from ANDREWS ([203.97.136.12]) by ihug.co.nz (8.7.5/8.7.3) with SMTP 
          id LAA00317; Wed, 20 Nov 1996 11:28:34 +1300 (NZDT)
Received: by ANDREWS with Microsoft Mail id <01BBD6D5.EECA6400@ANDREWS>;
          Wed, 20 Nov 1996 11:28:20 +1300
Message-ID: <01BBD6D5.EECA6400@ANDREWS>
From: Andrew Holman <akdh@ihug.co.nz>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Cc: "'mhm@austin.ibm.com'" <mhm@austin.ibm.com>
Subject: RE: DB2 autocommit on AIX
Date: Wed, 20 Nov 1996 11:28:11 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

----------
From: 	mhm@austin.ibm.com
Sent: 	Tuesday, November 19, 1996 3:39 PM
To: 	Andrew Holman
Cc: 	'dbi-users@fugue.com'
Subject: 	Re: DB2 autocommit on AIX=20


|>=20
|> Is it possible to turn auto commit ON | OFF using DBI.
|> I have tried using:
|>=20
|>  $dbh->do( "UPDATE COMMAND OPTION  using c OFF" );
|>=20

I'm on the road, so this is from memory, try

$dbh->STORE(AutoCommit,OFF);

Let me know if this fails and I will look into it next week
when I'm back in the office.

|> Also I have tried setting the environment variable DB2OPTIONS=20
|> to "-c-" but this did not have any effect either.
|>=20

DB2 CLI does not make use of the DB2OPTIONS environment variable...
at least I have never been able to have it honored.

Mike

Mike

I tried using $dbh->STORE(AutoCommit,OFF); This didn't work. I looked at =
the STORE function code in DB2/dbdimp.c this only calls =
theSQLSetConnectOption() function is "on" is TRUE. So this would only be =
able to turn autocommit on. I changed the code to call =
SQLSetConnectOption() everytime and then did  $dbh->STORE(AutoCommit, =
0); and then $dbh->rollback; worked - before it was ignored. But if I =
did not call $dbh->rollback then the transaction was committed after =
doing a disconnect.

Andrew





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13748-0@oink>;
          Thu, 21 Nov 1996 10:21:57 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848563644:9:09029:2; Thu, 21 Nov 96 08:07:24 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1006789; 21 Nov 96 8:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id VAA05277 for dbi-users-real; Wed, 20 Nov 1996 21:32:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ams.sunysb.edu (amirani.ams.sunysb.edu [129.49.6.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id VAA05273 
          for <dbi-users@fugue.com>; Wed, 20 Nov 1996 21:32:12 -0800 (PST)
Received: from cramer.ams (cramer.ams.sunysb.edu) 
          by amirani.ams.sunysb.edu (4.1/25-eef) id AA23627;
          Thu, 21 Nov 96 00:32:07 EST
From: mpukmel@ams.sunysb.edu (Michael Pukmel)
Message-Id: <9611210532.AA23627@ams.sunysb.edu>
Subject: Errors Running test.pl
To: dbi-users@fugue.com
Date: Thu, 21 Nov 1996 00:32:04 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi 
	Thanks for the past help.  I am very new to...

	I am working o.k. with oraperl, now.  But I want to call 
some stored procedures.  One of the users recently posted an example,
which used DBI calls directly (not the oraperl versions).
specifically  $cursor->bind_param_inout(..);
I cant find any reference to this function in the oraperl stuff.
Where is it documented?

	My oraperl test.pl runs fine.  But the DBI test.pl version gives 
errors: cant call debug without method or package name.   Same for prepare.
I thought the obvious, some problem with the @INC.  But I tried pushing
everything but the kitchen sink and it still doesnt work.
	Any suggestions would be greatly appreciated.

Thanks

Mike


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14155-2@oink>;
          Thu, 21 Nov 1996 13:35:05 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848574985:9:18937:0; Thu, 21 Nov 96 11:16:25 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015989; 21 Nov 96 11:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id XAA05702 for dbi-users-real; Wed, 20 Nov 1996 23:55:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id XAA05698 
          for <dbi-users@fugue.com>; Wed, 20 Nov 1996 23:54:55 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id QAA22410 for dbi-users@fugue.com; Thu, 21 Nov 1996 16:52:04 +0900
Date: Thu, 21 Nov 1996 16:52:04 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611210752.QAA22410@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: Can I handle the 2byte-code in the oraperl?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi dbi subscribers!

  I'd like to make the front-end program which assists one
who has to input many  records into the DB with the "Oraperl".

I'm a Japanese, therefore it can handle japaneses(2byte-code).
I can search records from the table which contains japanese datas
with a japanese word through oraperl program.

This time I try to make program which contains "insert into table..."
and I want to input a filed with japanese successfully.

The following is my environment;

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=svr4, osver=, archname=R4000-svr4
    uname='unix_sv cgewsf 4.2mp 1.release.1025.08:24 r4000 r4000 '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='/usr/abiccs/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include'
    ccflags ='-I/usr/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='/usr/abiccs/bin/cc', ldflags ='-L/usr/abiccs/lib'
    libpth=/usr/abiccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    libc=/usr/abiccs/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags='-ZXNd=5000 -KOlimit=3000'
    cccdlflags=' ', lddlflags='-G -L/usr/abiccs/lib'


   perl5 (5.0 patchlevel 3 subversion 0)
   DBD-Oracle-0.42 & DBI-0.73


Can I handle japaneses successfully?

Thanks in advance.

------------------
Takami Keiichi
(takami@mikigw2.paris-miki.co.jp)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-4@oink>;
          Fri, 22 Nov 1996 07:36:53 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848613091:10:00536:1; Thu, 21 Nov 96 21:51:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa924132; 21 Nov 96 21:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id LAA01796 for dbi-users-real; Thu, 21 Nov 1996 11:11:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from atlas.socsci.umn.edu (atlas.socsci.umn.edu [134.84.151.2]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id LAA01792 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 11:11:05 -0800 (PST)
Received: from [204.246.66.102] (ppp-66-102.dialup.winternet.com [204.246.66.102]) 
          by atlas.socsci.umn.edu (8.7.5/8.7.3) with SMTP id NAA10661;
          Thu, 21 Nov 1996 13:10:19 -0600 (CST)
Message-Id: <v02120d05aeba57b147d7@[204.246.66.102]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 21 Nov 1996 13:10:21 -0600
To: dbi-users@fugue.com
From: Jim Miner <jfm@atlas.socsci.umn.edu>
Subject: Informix and SERIAL columns
Cc: johnl@informix.com (Jonathan Leffler)

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I haven't seen any way in DBI/DBD to determine the value assigned
by Informix to a SERIAL column when inserting a new row.

Am I just missing something?  If it is not implemented, it sure would
be useful in a project I'm working on.

Any help would be appreciated.

Jim

--
Jim Miner   jfm@winternet.com OR jfm@atlas.socsci.umn.edu   +1 612 729 1667




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-6@oink>;
          Fri, 22 Nov 1996 07:37:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848613095:10:00538:5; Thu, 21 Nov 96 21:51:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1000259; 21 Nov 96 21:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id KAA01721 for dbi-users-real; Thu, 21 Nov 1996 10:25:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from internet-mail.ford.com (internet-mail.ford.com [198.111.80.23]) 
          by toccata.fugue.com (8.8.2/8.6.11) with SMTP id KAA01717 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 10:25:20 -0800 (PST)
Received: by internet-mail.ford.com id AB10525 (InterLock SMTP Gateway 3.0 
          for dbi-users@fugue.com); Thu, 21 Nov 1996 13:25:13 -0500
Message-Id: <199611211825.AB10525@internet-mail.ford.com>
Received: by internet-mail.ford.com (Protected-side Proxy Mail Agent-1);
          Thu, 21 Nov 1996 13:25:13 -0500
Date: Thu, 21 Nov 1996 13:20:41 -0500
From: Aravind Melligeri <amellige@ford.com>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.3 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Cc: amellige@ford.com
Subject: Help with Handling Long types in Oracle.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I am new to DBI and also to Oracle. I am trying to insert a LONG type
containing  following type of data of about 100-500 lines.

 59 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 ------ 
 ------
 ------
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,


here is the my sample code I am writing and would like to know 
how to put in the bind statement.

--------
#!/usr/local/perl5/bin/perl
 
use DBI;
 
# $drh = DBI->install_driver('Oracle');
 
$dbh = DBI->connect('t:host1:oracleD',"abc","def",'Oracle');
die unless $dbh;

$sth1 = $dbh->do("CREATE TABLE TEST( name  long, val  number(2) )");
$sth2 = $dbh->do("INSERT INTO TEST VALUES ('
 59 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 59 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
',1)");
 
$cursor = $dbh->prepare( "SELECT name FROM TEST WHERE VAL=1" );
$cursor->execute;
 
while (@field = $cursor->fetchrow ) {
        foreach $f (@field) {
                print "$f\t";
                }
        print "\n";
} 
 
$cursor->finish;
 
$dbh->disconnect;
 
exit;

----
The code returns following results:

 59 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
 0 , 0 , 0 , 0 , 0 , 
----
The output is only  half the input I inserted or tried to insert into
the table..

Could someone tell me how to put bind statements for insertion and
extraction
so that I can insert and retrieve the information from LONG field. 
Based on the info. in README.long file, I tried to put bind statements
but 
didn't have much success ( I think I am doing some basic mistake).

I would like to keep the Long data in one string and then insert
into database and also when I retrieve it in single string.

I would appreciate if you could help with this.

Thanks,

-Aravind.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-18@oink>;
          Fri, 22 Nov 1996 07:38:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848622002:10:10137:31; Fri, 22 Nov 96 00:20:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1010099; 22 Nov 96 0:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.2/8.6.11) 
          id NAA02117 for dbi-users-real; Thu, 21 Nov 1996 13:15:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.2/8.6.11) with ESMTP id NAA02113 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 13:14:58 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id NAA20228;
          Thu, 21 Nov 1996 13:14:37 -0800 (PST)
Message-Id: <1.5.4.32.19961121212607.008343f8@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 21 Nov 1996 13:26:07 -0800
To: Jim Miner <jfm@atlas.socsci.umn.edu>, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Informix and SERIAL columns
Cc: johnl@informix.com (Jonathan Leffler)

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Jim,

In looking at Informix very briefly, I think I saw a way but I cannot
recall. In Oracle it is real easy in the current session:

select seq_generator.currval from dual;

This will return the last use of:

insert into stuff values (seq_generator.nextval, ...);

Oracle did this right.

-lane

At 01:10 PM 11/21/96 -0600, Jim Miner wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I haven't seen any way in DBI/DBD to determine the value assigned
>by Informix to a SERIAL column when inserting a new row.
>
>Am I just missing something?  If it is not implemented, it sure would
>be useful in a project I'm working on.
>
>Any help would be appreciated.
>
>Jim
>
>--
>Jim Miner   jfm@winternet.com OR jfm@atlas.socsci.umn.edu   +1 612 729 1667
>
>
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-47@oink>;
          Fri, 22 Nov 1996 07:41:52 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848634939:9:03671:0; Fri, 22 Nov 96 03:55:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015150; 22 Nov 96 3:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id SAA03450 for dbi-users-real; Thu, 21 Nov 1996 18:08:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from burrito.organic.com (h73.n145.organic.com [204.152.145.73]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id SAA03446 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 18:08:48 -0800 (PST)
Received: (from seibel@localhost) by burrito.organic.com (8.7.5/8.6.12) 
          id SAA27990; Thu, 21 Nov 1996 18:09:16 -0800 (PST)
To: dbi-users@fugue.com
Subject: DBI compile on SGI under perl5.003_08: is this patch correct?
From: Peter Seibel <seibel@organic.com>
Date: 21 Nov 1996 18:09:15 -0800
In-Reply-To: cckathy@cypress.mcsr.olemiss.edu's message of Tue, 12 Nov 1996 11:17:13 -0600
Message-ID: <wv6afsadgok.fsf@burrito.organic.com>
Lines: 85
X-Mailer: Gnus v5.3/Emacs 19.30

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Without this patch compiling on an Indy (perl -V at the bottom of this
message) I get the result below. With it I get a clean compile and pass
all tests.

seibel/fully: make
/usr/local/perl5.00308/bin/perl -I/usr/local/perl5.00308/lib/IP22-irix/5.00308 -I/usr/local/perl5.00308/lib /usr/local/perl5.00308/lib/ExtUtils/xsubpp  -typemap /usr/local/perl5.00308/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
cc -c  -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O    -DVERSION=\"0.73\" -DXS_VERSION=\"0.73\" -KPIC -I/usr/local/perl5.00308/lib/IP22-irix/5.00308/CORE  DBI.c
cfe: Error: DBI.c, line 1358: Incompatible pointer type assignment (3.3.16.1, 3.5.4.1(21))
     perl_call_sv(imp_gv, (Perl_op ->op_flags & 2  ? Perl_op ->op_flags & 1  : Perl_dowantarray ()) );
 -----------------^
cfe: Error: DBI.c, line 1358: Type GV *  of this argument  is incompatible with type SV *  of function prototype description (3.3.16.1)
     perl_call_sv(imp_gv, (Perl_op ->op_flags & 2  ? Perl_op ->op_flags & 1  : Perl_dowantarray ()) );
 -----------------^
make: *** [DBI.o] Error 1
seibel/fully: 


Index: perl/modules/DBI/DBI.xs
diff -c perl/modules/DBI/DBI.xs:1.1.1.7 perl/modules/DBI/DBI.xs:1.1.1.7.2.1
*** perl/modules/DBI/DBI.xs:1.1.1.7	Mon Nov 18 14:44:39 1996
--- perl/modules/DBI/DBI.xs	Thu Nov 21 17:47:08 1996
***************
*** 1252,1258 ****
      }
  /* something here is not quite right ! (wrong number of args to method for example) */
      PUSHMARK(mark);  /* reset mark (implies one arg as we were called with one arg?) */
!     perl_call_sv(imp_gv, GIMME);
  
  
  
--- 1252,1258 ----
      }
  /* something here is not quite right ! (wrong number of args to method for example) */
      PUSHMARK(mark);  /* reset mark (implies one arg as we were called with one arg?) */
!     perl_call_sv((SV*)imp_gv, GIMME);
  



-Peter

Summary of my perl5 (5.0 patchlevel 3 subversion 8) configuration:
  Platform:
    osname=irix, osvers=5, archname=IP22-irix
    uname='irix fully 5.3 11091812 ip22 '
    hint=recommended, useposix=true, d_sigaction=define
    useperlio= d_sfio=
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -I/usr/local/include -DLANGUAGE_C'
    ccflags ='-D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000 -I/usr/local/include -DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldb -lmalloc -lsun -lm -lc -lcrypt -lbsd -lPW
    libc=/usr/lib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under irix
  Compiled at Nov 21 1996 14:42:10
  @INC:
    /usr/local/perl5.00308/lib/IP22-irix/5.00308
    /usr/local/perl5.00308/lib
    /usr/local/perl5.00308/lib/site_perl/IP22-irix
    /usr/local/perl5.00308/lib/site_perl
    .

  
  

-- 
Peter Seibel            Perl/Java/English Hacker      seibel@organic.com

		      Clarity through obfuscation.

# Organic Online is hiring Perl5/CGI programmers.
# Email or see < http://www.organic.com/jobs/ >.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-49@oink>;
          Fri, 22 Nov 1996 07:42:04 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848635137:9:04084:2; Fri, 22 Nov 96 03:58:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa904078; 22 Nov 96 3:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA03336 for dbi-users-real; Thu, 21 Nov 1996 17:25:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from calvin.twntpe.cdc.com (ip129179-17-10.cdc.com [129.179.17.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id RAA03332 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 17:25:23 -0800 (PST)
Received: from seagull.twntpe.cdc.com by calvin.twntpe.cdc.com;
          Fri, 22 Nov 96 09:23:11 +0800
From: Jake Morrison <Jacob.Morrison@cdc.com>
Priority: Normal
To: "K.Takami" <takami@mikigw2.paris-miki.co.jp>, dbi-users@fugue.com
Subject: Re: Can I handle the 2byte-code in the oraperl?
X-Mailer: VistaMAIL for Windows - Version 6.3.0
Date: Fri, 22 Nov 96 09:15:43 +0800
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
Message-Id: <3295007f64e3002@calvin.twntpe.cdc.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Mr. Takami,

I am new at this DBI/DBD stuff, but I would expect it to work. 
Oracle certainly handles Japanese. 

As perl handles binary data quite well, you may not need anything
special. I have done a number of X.500 entry/search interfaces for
Chinese, Japanese and Korean using web forms and perl CGI. It works
fine with normal perl. You may want to use UTF-8
internal code, as it eliminates problems with parts of Japanese 
characters being mistaken for special characters (e.g. %, ', ").

There is Japanese version of perl available, though, if you need
to manipulate Japanese text.

You can find it on CPAN (Comprehensive Perl Archive Network):
ftp://ftp.perl.com/pub/CPAN/authors/id/YASU/jperl5.003.patch7.gz 
(multiplexer interface)

ftp://ftp.lab.kdd.co.jp/pub/lang/perl/CPAN/authors/id/YASU/jperl5.003.patch7.gz
(mirror site in Japan)

A good site for links to Japanese and other software is:
http://www.ayamura.tama.or.jp/ftpsites.html

Let me know how it works.

Regards,
Jake


> On 96.11.21 15:52, "K.Takami" <takami@mikigw2.paris-miki.co.jp> wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Hi dbi subscribers!
>
>  I'd like to make the front-end program which assists one
>who has to input many  records into the DB with the "Oraperl".
>
>I'm a Japanese, therefore it can handle japaneses(2byte-code).
>I can search records from the table which contains japanese datas
>with a japanese word through oraperl program.
>
>This time I try to make program which contains "insert into table..."
>and I want to input a filed with japanese successfully.
>
>The following is my environment;
>
>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=svr4, osver=, archname=R4000-svr4
>    uname='unix_sv cgewsf 4.2mp 1.release.1025.08:24 r4000 r4000 '
>    hint=previous, useposix=true, d_sigaction=define
>  Compiler:
>    cc='/usr/abiccs/bin/cc', optimize='-O', gccversion=
>    cppflags='-I/usr/include'
>    ccflags ='-I/usr/include'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=1, d_casti32=define, d_castneg=
>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>  Linker and Libraries:
>    ld='/usr/abiccs/bin/cc', ldflags ='-L/usr/abiccs/lib'
>    libpth=/usr/abiccs/lib
>    libs=-lsocket -lnsl -ldl -lm -lc
>    libc=/usr/abiccs/lib/libc.so, so=so
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags='-ZXNd=5000 -KOlimit=3000'
>    cccdlflags=' ', lddlflags='-G -L/usr/abiccs/lib'
>
>
>   perl5 (5.0 patchlevel 3 subversion 0)
>   DBD-Oracle-0.42 & DBI-0.73
>
>
>Can I handle japaneses successfully?
>
>Thanks in advance.
>
>------------------
>Takami Keiichi
>(takami@mikigw2.paris-miki.co.jp)
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>

-- 
Jacob Morrison
Control Data Asia/Pacific Region         E-mail: Jacob.Morrison@cdc.com




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17057-59@oink>;
          Fri, 22 Nov 1996 07:43:04 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848640460:10:27443:1; Fri, 22 Nov 96 05:27:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1027326; 22 Nov 96 5:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id TAA03586 for dbi-users-real; Thu, 21 Nov 1996 19:12:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id TAA03582 
          for <dbi-users@fugue.com>; Thu, 21 Nov 1996 19:12:20 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id WAA21759;
          Thu, 21 Nov 1996 22:12:51 -0500 (EST)
Message-Id: <199611220312.WAA21759@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: dbi-users@fugue.com
cc: Tim.Bunce@ig.co.uk
Subject: blob_read bug 0.40-0.43
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 21 Nov 1996 22:12:16 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The following code fails at the blob_read under DBD-Oracle-0.43, but works 
with 0.40. I've removed my 41 and 42 revisions, so I cant tell you exactly 
where this bug was introduced. Perhaps, someone else can give it a try with 
those revs.

Where I check the errstr after blob_read I get
"ORA-01016: This function can be called only after a fetch (DBD: oflng error) 
at shit line 40, <FILE> chunk 1." Damn you Tim, you're going to make me break 
out the OCI book, setenv PERL_DBI_DEBUG 2, and trace dbdimp.c yet. Fun!

My platform is Oracle 7.2.3/Solaris2.5 and Oracle 7.1.4/Solaris 2.5x86. My 
Perl is 5.003 with EMBED.

Thanks,
John
groenvel@cse.psu.edu
***
use Oraperl;
use strict;

my $lda = &ora_login("", "scott/tiger","") or die $ora_errstr;
&ora_do($lda,"
	DROP TABLE snafu
	") or warn $ora_errstr;
&ora_do($lda,"
	CREATE TABLE snafu (
		foo LONG,
		bar NUMBER)
    ") or die $ora_errstr; 
my $csr = &ora_open($lda, "
	INSERT INTO snafu (foo, bar)
		VALUES (:1, :2)
    ") or die $ora_errstr;
undef $/;
open(FILE,"/etc/passwd");
my $foobar = <FILE>;
$csr->bind_param(1,$foobar,{ora_type=>8}) or die $ora_errstr;
$csr->bind_param(2,12345) or die $ora_errstr;
&ora_bind($csr) or die $ora_errstr;
&ora_close($csr) or die $ora_errstr;
&ora_commit($lda) or die $ora_errstr;

$csr = &ora_open($lda, "
	SELECT foo
		FROM snafu
	WHERE bar = :1
    ") or die $ora_errstr;
&ora_bind($csr,12345) or die $ora_errstr;
my (@data) = &ora_fetch($csr) or die $ora_errstr; 
my ($frag, $blob, $length, $ll, $offset);
undef $frag;
$blob = '';
$length = 512;
$offset = 0;
while (1) {
    $csr->blob_read(0, $offset, $length, \$frag);
    last unless defined $frag;
    $ll = length $frag;
    last unless $ll;
    $blob .= $frag;
    $offset += $ll;
}
&ora_close($csr) or die $ora_errstr;
&ora_logoff($lda) or die $ora_errstr;
print "\n$blob\n";



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09078-5@oink>;
          Mon, 25 Nov 1996 07:36:03 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848712453:6:27588:0; Sat, 23 Nov 96 01:27:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-5.mail.demon.net 
          id aa526654; 23 Nov 96 1:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA11901 for dbi-dev-real; Fri, 22 Nov 1996 16:15:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from mail.pilot.net (ns.pilot.net [198.232.147.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA11897 
          for <dbi-dev@fugue.com>; Fri, 22 Nov 1996 16:15:38 -0800 (PST)
Received: from cogit.com ([206.189.79.101]) by mail.pilot.net with SMTP 
          id QAA08095; Fri, 22 Nov 1996 16:15:36 -0800 (PST)
Received: from ioco.cogit.com by cogit.com (SMI-8.6/SMI-SVR4) id QAA01261;
          Fri, 22 Nov 1996 16:14:11 -0800
From: kendall@cogit.com (Kendall Willets)
Received: by ioco.cogit.com (SMI-8.6/client-1.3) id QAA28672;
          Fri, 22 Nov 1996 16:13:47 -0800
Date: Fri, 22 Nov 1996 16:13:47 -0800
Message-Id: <199611230013.QAA28672@ioco.cogit.com>
To: pixel@organic.com, dbi-dev@fugue.com
Subject: Re: ODBC/DBI Question
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-MD5: I2LK+7TiLlCvVWAJ/gJ+7A==

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I'm not a dbi user (yet) but I'm familiar with ODBC and some of the code out 
there.  A DBD for odbc would not preclude one from using other drivers, so one 
would have the choice of having multiple DBD's, or using one odbc dbd and 
installing multiple odbc drivers under it.  

WRT non-supported platforms, I've been looking into this matter quite a bit, and 
there are several solutions:  the iodbc driver manager, which comes with source 
code and can be recompiled on many systems, and the increasing number of 
commercially available odbc driver managers and drivers.  Ultimately I think 
Oracle and Sybase will replace their API's with native ODBC on all the platforms 
they currently support.   Informix and DB2/CS have already moved over, so I thin 
it's only a matter of time before the more elephantine vendors get on track.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09078-7@oink>;
          Mon, 25 Nov 1996 07:36:09 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848713437:6:29840:1; Sat, 23 Nov 96 01:43:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-6.mail.demon.net 
          id aa629794; 23 Nov 96 1:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA11830 for dbi-users-real; Fri, 22 Nov 1996 15:50:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ids2.idsonline.com (root@[204.157.204.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id PAA11801;
          Fri, 22 Nov 1996 15:46:42 -0800 (PST)
Received: from moneypit (va142.idsonline.com [205.177.128.142]) 
          by ids2.idsonline.com (8.6.13/8.6.12) with SMTP id TAA16598;
          Fri, 22 Nov 1996 19:48:35 -0500
Message-ID: <32963B8D.8DDD9BA@pobox.com>
Date: Fri, 22 Nov 1996 18:47:25 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: [Fwd: Introduction and Query]
Content-Type: multipart/mixed; boundary="------------4A54CCB700422F7579EF8E9"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This is a multi-part message in MIME format.

--------------4A54CCB700422F7579EF8E9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I sent this post to the dbi mailing list a while ago, and got no
response or acknowledgement whatsoever, which leads me to one of three
conclusions:

1) Other members of the list never received this message.
2) I never received replies to the message.
3) No one responded.

So, I'm trying again. Please CC responses to me, to make sure that I
actually get them (if #2 was the problem). If theory #3 was the culprit,
and it was intentional, then please drop me an unfriendly note saying
"We're ignoring you- go away" so that I know to stop posting to this
list,
wasting your time and mine.
If #3 was the culprit and it wasn't precisely intentional, then will
someone *please* tell me what's going on and what I can do to help?

If #1 was the problem, then I guess this message will probably disappear
too, in which case, feel free to ignore it.

Thanks.

--------------4A54CCB700422F7579EF8E9
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <32913B59.11E8531@pobox.com>
Date: Mon, 18 Nov 1996 23:45:13 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: Introduction and Query
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Sorry about posting to both lists. I'll tailor my posts a little more
once I get a feel for what goes on and who's listening on the three
lists.

My name is Eric Vought. I work for CACI on contract to the Air Force to
work on a product development product called MASTR. MASTR is primarily
an analysis and operations reasearch tool, although I'm hoping it can be
applied to non-military problems as well.

We are using a combination of PERL and Tcl/Tk for development of MASTR.
Tcl/Tk is being used for a scripting interface and for the GUI while
PERL is being used for the "serious stuff". Our current system uses a
4GL called VPE, which we are phasing out. Right now, our project
consists of 180,000 lines of VPE, and ~0,000 lines of tcl plus some
puddles of C code. By next year I hope to see about 10-12,000 lines of
Tcl and about 70-80,000 lines of PERL with no VPE and a bare minimum of
C.

This product does a fair amount of communication with an RDBMS
(currently Oracle, though we will be using one of Empress, Essentia,
CQL++, or Solid Server for future development and want to make sure we
are compatible with Sybase). This is why I'm posting/subscribing to this
list.

Outside of our (actively) supported databases, we want to make sure that
we are minimally compatible with
any RDBMS that supports ODBC. This is partially so that our customers
have as much choice as possible and so that we ourselves don't get
locked into a particular set of development tools
or platforms and it will be easy to change our list of actively
supported databases.

I've been reading through documentation on PERL DBD:DBI lately and
looking through code obtained from CPAN. The only driver's listed there
were for Oracle and Ingress, with only Oracle (alpha) being available
for download. I've also read a post (I don't remember who off hand) that
suggested DBD:DBI's current support was being obsoleted in favor of a
PERL<->ODBC interface.

>From listening to chatter on this list over the past week, it looks like
several other drivers are in development, and I have heard no mention of
a move to ODBC. Could someone give me a quich status report on what you
folks are up to? I am (obviously) interested in making as much use of
waht you have as possible for my employer, but I am also interested in
volunteering some of my own time off of work and may be able to convince
my employer to (sparingly) help with some portions of DBI:DBD that are
directly related to MASTR as long as the MASTR project does not have to
support such additions in the long term.

In particular, what is the progress in talking to an ODBC driver manager
(like iODBC) from PERL?
What needs to be done?

Eric Vought



--------------4A54CCB700422F7579EF8E9--




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-8@oink>;
          Mon, 25 Nov 1996 07:36:39 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848695011:9:03967:0; Fri, 22 Nov 96 20:36:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa903731; 22 Nov 96 20:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA04558 for dbi-users-real; Fri, 22 Nov 1996 09:16:23 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id JAA04554 
          for <dbi-users@fugue.com>; Fri, 22 Nov 1996 09:16:20 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA27700;
          Fri, 22 Nov 96 11:57:20 EST
Received: from localhost by superior (4.1/Sun-Client) id AA27080;
          Fri, 22 Nov 96 11:57:25 EST
Date: Fri, 22 Nov 1996 11:57:25 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: dbi-users@fugue.com
Subject: Oracle Stored Procedures update
Message-Id: <Pine.SUN.3.93.961122115538.18513D-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I found some bugs in my code exmaple for Oracle Stored Procedures (mainly
I did a fetchrow instead of a $cursor->execute.  I'll be re-posting the
example and will be sending it out to those who asked for the code example
as soon as possible (hopefully today).

-Iain

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-22@oink>;
          Mon, 25 Nov 1996 07:38:38 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848700516:9:22059:31; Fri, 22 Nov 96 22:08:36 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa922116; 22 Nov 96 22:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id KAA04769 for dbi-users-real; Fri, 22 Nov 1996 10:45:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bnl.gov (bnl.gov [130.199.128.163]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id KAA04765 
          for <dbi-users@fugue.com>; Fri, 22 Nov 1996 10:45:24 -0800 (PST)
Received: from sun2.bnl.gov (sun2.bnl.gov [130.199.74.35]) 
          by bnl.gov (8.7.5/8.7.1) with SMTP id NAA26262 
          for <dbi-users@fugue.com>; Fri, 22 Nov 1996 13:45:12 -0500 (EST)
Received: from phillip by sun2.bnl.gov (SMI-8.6/SMI-SVR4) id NAA22287;
          Fri, 22 Nov 1996 13:45:11 -0500
Message-ID: <3295F48D.6E00@sun2.bnl.gov>
Date: Fri, 22 Nov 1996 13:44:29 -0500
From: "J.-Y. Wang (Phillip)" <phillip@sun2.bnl.gov>
Reply-To: phillip@sun2.bnl.gov
Organization: Brookhaven National Laboratory
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: subscribe
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi DBI-users:

	Can someone tell me how to join the user-group? 

	Thanks.

Jenn-Yue Wang (Phillip)
Brookhaven National Laboratory
P.O.Box 5000, Bldg. 480
Upton, 11973

phone: (516)344-3267; Email: phillip@sun2.bnl.gov


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-24@oink>;
          Mon, 25 Nov 1996 07:38:57 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848700561:9:22381:2; Fri, 22 Nov 96 22:09:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id ab1028294; 22 Nov 96 22:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA05056 for dbi-users-real; Fri, 22 Nov 1996 11:23:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id LAA05052 
          for <dbi-users@fugue.com>; Fri, 22 Nov 1996 11:23:50 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA17145;
          Fri, 22 Nov 96 14:23:47 EST
Received: from localhost by superior (4.1/Sun-Client) id AA26236;
          Fri, 22 Nov 96 14:23:53 EST
Date: Fri, 22 Nov 1996 14:23:52 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
Reply-To: Iain Bennett <ccscon60@ccs.carleton.ca>
To: Barbara Mihalas <bwm@npac.syr.edu>, dbi-users@fugue.com
Subject: Oracle Procedures Update (fwd)
Message-Id: <Pine.SUN.3.93.961122142303.18599C-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This is an update - I updated two lines in my code example.  From there it 
should work no problems.  Keep in mind that data you pass in to the Oracle
Stored Procedure MUST conform to the database contraints or else the 
code will not run and you will get a return error (which DBI is really
good about!  Thanks Tim!)
 
 
In order to use stored procedures using DBD:Oracle you need to understand
two principles. The two aspects are how to call the stored procdures, and
how to bind variables to these stored procedures. 
 
What I've done is used the OraPerl emulation to complete the task at hand. 
What you need to do is include the Oraperl emulation, login, define a
cursor to the given SQL call, and bind the variables to the given call,
execute, logout and that is that. 
 
        use Oraperl;
        local($login) = &ora_login($db_database, $db_username,
                $db_userpass); 
        local($cursor) = &ora_open($login, q{begin
                app.get_user_product_info(:1, :2, :3, :4); end;}); 
        $cursor->bind_param_inout(1,\$user_greeting, 100);
        $cursor->bind_param_inout(2,\$product_code,100);
        $cursor->bind_param_inout(3,\$size_bytes, 100);
        $cursor->bind_param_inout(4,\$type,100);
        $cursor->execute || die "execute $ora_errstr";
        @OUTPUT1 = ($size_bytes,$type);
        &ora_close($cursor);
        &ora_logoff($login);
        return(@OUTPUT1);
 
Bind_param_inout takes three arguments.  The variable handle which in this
case is an integer, the variable you are inputting or outputting to/from
the call, and the size of the input/output.  I used 100 here just in case. 
I know the three fields actually take less than 100 characters. 
 
I'm not sure if the size really matters or not (Tim?). UPDATE: I've found
that
it doesn't really matter, as long as the data meets the database's
constraints.
 
The handles in the call are always preceded by a colon (:).  The variables
in the call are always preceded by a backslash (\). 
 
In the above call, get_user_product_info would take in two input
arguments, $user and $product_code.  Get_user_product_info also returns
two variables which are the size in bytes and the type of file. 
 
Now this is a hypothetical call.  I do have some code which I've tested,
and the database call now exists (previously I said that it didn't while 
I was testing).  Anyway, this in fact does work.  If you have any
problems,
please feel free to contact me at any of the following addresses:
 
        ug940014@omega.scs.carleton.ca  (school account)
        ccscon60@ccs.carleton.ca        (school account until April)
        coopd590@nortel.ca              (work account until December 20th)
 
If for some reason I am doing something grossly wrong I should be told
about it (and the others here).
 
Kind of interesting that I added the above line and none of the DBI
developers said anything about my fetchrow/execute problem. *shrugs* I
guess
they wanted to leave this to me to figure out. *grin*
 
Hope this helps.
-Iain Bennett
 Nortel Global Support Processes and Productivity Co-op
 +1.613.723.4000 x 7078
 
 
 \|/ ____ \|/  Iain Bennett                     ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P            http://www.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant                   ~ccscon60/
    \__U_/     Feedback Communications Limited





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-33@oink>;
          Mon, 25 Nov 1996 07:40:23 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848704860:10:13131:0; Fri, 22 Nov 96 23:21:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1012564; 22 Nov 96 23:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id NAA08874 for dbi-dev-real; Fri, 22 Nov 1996 13:47:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id NAA08870 
          for <dbi-dev@fugue.com>; Fri, 22 Nov 1996 13:47:53 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.8.3/8.6.12) with SMTP id NAA01331 
          for <dbi-dev@fugue.com>; Fri, 22 Nov 1996 13:48:22 -0800 (PST)
Date: Fri, 22 Nov 1996 13:48:22 -0800 (PST)
From: James Cooper <pixel@organic.com>
Reply-To: James Cooper <pixel@organic.com>
To: dbi-dev@fugue.com
Subject: ODBC/DBI Question
Message-ID: <Pine.GSO.3.95.961122134241.901F-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hello,

I know that DBI is gearing up for ODBC compliance.  I'm a little curious
to know what this means exactly.  Would the DBD:: drivers go away, and
simply rely upon the underlying ODBC driver (sort of like the JDBC/ODBC
bridge from Sun for java)?

If this is the case, then how would platforms without ODBC driver managers
participate?  Would DBI serve as a driver manager (so you could reigster
an ODBC driver w/DBI.pm)?  

Please cc a copy of responses to me directly, because I'm not convinced
that the list is sending me mail properly (although the web page shows
that I'm subscribed).

Thanks

-- James

---------------------
James Paul Cooper
Organic Online
pixel@organic.com




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-42@oink>;
          Mon, 25 Nov 1996 07:42:12 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848712047:10:05902:1; Sat, 23 Nov 96 01:20:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1005843; 23 Nov 96 1:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA11871 for dbi-dev-real; Fri, 22 Nov 1996 16:05:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from bjepson.tiac.net (bjepson@bjepson.tiac.net [207.60.59.166]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA11867 
          for <dbi-dev@fugue.com>; Fri, 22 Nov 1996 16:04:56 -0800 (PST)
Received: from localhost (bjepson@localhost) by bjepson.tiac.net (8.8.0/8.8.0) 
          with SMTP id SAA00205; Fri, 22 Nov 1996 18:58:04 GMT
Date: Fri, 22 Nov 1996 18:58:03 +0000 ( )
From: "Brian C. Jepson" <bjepson@ids.net>
To: James Cooper <pixel@organic.com>
cc: dbi-dev@fugue.com
Subject: Re: ODBC/DBI Question
In-Reply-To: <Pine.GSO.3.95.961122134241.901F-100000@caustik.organic.com>
Message-ID: <Pine.LNX.3.93.961122184435.159D-100000@bjepson.tiac.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

On Fri, 22 Nov 1996, James Cooper wrote:

> 
> Hello,
> 
> I know that DBI is gearing up for ODBC compliance.  I'm a little curious
> to know what this means exactly.  Would the DBD:: drivers go away, and
> simply rely upon the underlying ODBC driver (sort of like the JDBC/ODBC
> bridge from Sun for java)?
> 
> If this is the case, then how would platforms without ODBC driver managers
> participate?  Would DBI serve as a driver manager (so you could reigster
> an ODBC driver w/DBI.pm)?  
> 
[...]

   Well, one of the thoughts was to use or adapt the iODBC driver manager,
which is being used in the FreeODBC project
(http://www.ids.net/~bjepson/freeODBC). I'm currently looking at Dirk
Ohme's release of the iODBC driver manager with a driver based on an mSQL
CLI. Although this package is geared towards OS/2, it compiles fine under
Unix, and looks like a good starting point.

   Unfortunately, progress on this has been moving very slowly, since I'm
spread pretty thin with writing and other
(http://www.ids.net/~bjepson/project.html) projects, but I do work on it
when I have time. 
 
  Since iODBC works under Unix and, thanks to Dirk's work, OS/2, it should
be a pretty safe bet for use as the driver manager. Further, since
Cygwin32 (http://www.cygnus.com/misc/gnu-win32) is progressing nicely,
you'll be able to use DBI and/or FreeODBC without spending lots of bucks
on Microsoft's C compiler, even if you're using Windows NT or Windows 95.

Regards,

Brian Jepson * (bjepson@ids.net)  *  http://www.ids.net/~bjepson
  Int(ra|er)net Database Developer, Author, Crypto-Fluxologist
Non-Prophet Arts Technology Flux:      http://www.ids.net/~as220
WWW/Database/NT,Java/Database: http://www.ids.net/~bjepson/books



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-44@oink>;
          Mon, 25 Nov 1996 07:42:23 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848712086:9:25936:4; Sat, 23 Nov 96 01:21:26 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa925854; 23 Nov 96 1:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA11805 for dbi-dev-real; Fri, 22 Nov 1996 15:46:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from ids2.idsonline.com (root@[204.157.204.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id PAA11801;
          Fri, 22 Nov 1996 15:46:42 -0800 (PST)
Received: from moneypit (va142.idsonline.com [205.177.128.142]) 
          by ids2.idsonline.com (8.6.13/8.6.12) with SMTP id TAA16598;
          Fri, 22 Nov 1996 19:48:35 -0500
Message-ID: <32963B8D.8DDD9BA@pobox.com>
Date: Fri, 22 Nov 1996 18:47:25 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: [Fwd: Introduction and Query]
Content-Type: multipart/mixed; boundary="------------4A54CCB700422F7579EF8E9"

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

This is a multi-part message in MIME format.

--------------4A54CCB700422F7579EF8E9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I sent this post to the dbi mailing list a while ago, and got no
response or acknowledgement whatsoever, which leads me to one of three
conclusions:

1) Other members of the list never received this message.
2) I never received replies to the message.
3) No one responded.

So, I'm trying again. Please CC responses to me, to make sure that I
actually get them (if #2 was the problem). If theory #3 was the culprit,
and it was intentional, then please drop me an unfriendly note saying
"We're ignoring you- go away" so that I know to stop posting to this
list,
wasting your time and mine.
If #3 was the culprit and it wasn't precisely intentional, then will
someone *please* tell me what's going on and what I can do to help?

If #1 was the problem, then I guess this message will probably disappear
too, in which case, feel free to ignore it.

Thanks.

--------------4A54CCB700422F7579EF8E9
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <32913B59.11E8531@pobox.com>
Date: Mon, 18 Nov 1996 23:45:13 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: Introduction and Query
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Sorry about posting to both lists. I'll tailor my posts a little more
once I get a feel for what goes on and who's listening on the three
lists.

My name is Eric Vought. I work for CACI on contract to the Air Force to
work on a product development product called MASTR. MASTR is primarily
an analysis and operations reasearch tool, although I'm hoping it can be
applied to non-military problems as well.

We are using a combination of PERL and Tcl/Tk for development of MASTR.
Tcl/Tk is being used for a scripting interface and for the GUI while
PERL is being used for the "serious stuff". Our current system uses a
4GL called VPE, which we are phasing out. Right now, our project
consists of 180,000 lines of VPE, and ~0,000 lines of tcl plus some
puddles of C code. By next year I hope to see about 10-12,000 lines of
Tcl and about 70-80,000 lines of PERL with no VPE and a bare minimum of
C.

This product does a fair amount of communication with an RDBMS
(currently Oracle, though we will be using one of Empress, Essentia,
CQL++, or Solid Server for future development and want to make sure we
are compatible with Sybase). This is why I'm posting/subscribing to this
list.

Outside of our (actively) supported databases, we want to make sure that
we are minimally compatible with
any RDBMS that supports ODBC. This is partially so that our customers
have as much choice as possible and so that we ourselves don't get
locked into a particular set of development tools
or platforms and it will be easy to change our list of actively
supported databases.

I've been reading through documentation on PERL DBD:DBI lately and
looking through code obtained from CPAN. The only driver's listed there
were for Oracle and Ingress, with only Oracle (alpha) being available
for download. I've also read a post (I don't remember who off hand) that
suggested DBD:DBI's current support was being obsoleted in favor of a
PERL<->ODBC interface.

>From listening to chatter on this list over the past week, it looks like
several other drivers are in development, and I have heard no mention of
a move to ODBC. Could someone give me a quich status report on what you
folks are up to? I am (obviously) interested in making as much use of
waht you have as possible for my employer, but I am also interested in
volunteering some of my own time off of work and may be able to convince
my employer to (sparingly) help with some portions of DBI:DBD that are
directly related to MASTR as long as the MASTR project does not have to
support such additions in the long term.

In particular, what is the progress in talking to an ODBC driver manager
(like iODBC) from PERL?
What needs to be done?

Eric Vought



--------------4A54CCB700422F7579EF8E9--




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-49@oink>;
          Mon, 25 Nov 1996 07:42:56 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848716156:10:17392:7; Sat, 23 Nov 96 02:29:16 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1017352; 23 Nov 96 2:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA12092 for dbi-dev-real; Fri, 22 Nov 1996 16:55:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from mail.pilot.net (ns.pilot.net [198.232.147.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA12088 
          for <dbi-dev@fugue.com>; Fri, 22 Nov 1996 16:55:44 -0800 (PST)
Received: from cogit.com ([206.189.79.101]) by mail.pilot.net with SMTP 
          id QAA09375 for <dbi-dev@fugue.com>;
          Fri, 22 Nov 1996 16:55:42 -0800 (PST)
Received: from ioco.cogit.com by cogit.com (SMI-8.6/SMI-SVR4) id QAA01337;
          Fri, 22 Nov 1996 16:54:17 -0800
From: kendall@cogit.com (Kendall Willets)
Received: by ioco.cogit.com (SMI-8.6/client-1.3) id QAA28687;
          Fri, 22 Nov 1996 16:53:53 -0800
Date: Fri, 22 Nov 1996 16:53:53 -0800
Message-Id: <199611230053.QAA28687@ioco.cogit.com>
To: dbi-dev@fugue.com
Subject: ODBC, freeODBC, header files, and expensive SDK's
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-MD5: rHI9toiQoy8aLR5QYYIU6g==

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Recently I have been ramping up to do some odbc (client, not driver) programming 
on Solaris, and after looking at the technicalities involved, I realized that 
the entire price of an ODBC SDK ($995) covers exactly two header files (sql.h 
and sqlext.h) needed to compile a program before linking it to the driver 
manager libraries, which come free with the Sun.  

I was excited to find that iodbc has its own versions of these files, but for 
some reason they don't include the prototypes for the odbc functions. These 
prototypes are required for client programs, but not for iodbc code itself, 
since iodbc defines but does not call each API function.  

After a some deep thought I grepped the prototypes for each function from 
compiler trace files and built a new header file "freeODBC.h", which allows an  
ODBC program to compile and run.  In retrospect it seems obvious that someone 
would produce this file, but I haven't seen any mention of it anywhere, so I 
have to ask if this has already been invented, or if I'm just terribly confused. 

Thanks,


Kendall


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-87@oink>;
          Mon, 25 Nov 1996 07:46:52 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848755367:9:24650:3; Sat, 23 Nov 96 13:22:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1010199; 23 Nov 96 13:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id DAA13088 for dbi-users-real; Sat, 23 Nov 1996 03:12:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from octopus.bestmarket.de (root@ns1149.munich.netsurf.de [195.180.235.149]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id DAA13084 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 03:12:15 -0800 (PST)
Received: from octopus (chris@localhost [127.0.0.1]) 
          by octopus.bestmarket.de (8.7.3/8.6.9) with SMTP id MAA00322 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 12:11:50 +0100
Message-ID: <3296DBB6.3D5F76B8@muenchen.org>
Date: Sat, 23 Nov 1996 12:11:50 +0100
From: Christoph Bernhardt <bm745512@muenchen.org>
Organization: Ich
X-Mailer: Mozilla 3.0Gold (X11; I; Linux 2.0.14 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: A possible memory leak...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

could somebody on this list confirm whether the following piece of code
leaks memory. I tried with perl5.003 and DBI 0.43, DBD-mSql 0.60pl10 on
linux 2.0.14 and it leaks about 4k every 3 loops.

I would like to find out if the problem is with DBI, my DBD or maybe
perl itself. So it would be interesting to know if the memory leak
occurs for other DBDs (like Oracle, or Informix) as well.

Thanks for trying it out.

Christoph
-------------------------------------------------------------------

#!/usr/bin/perl -w

use DBI;

package main;

use strict;

use vars qw($drh $dbh);


$drh = DBI->install_driver('mSQL') ||
    die "Could not install driver";
$dbh = $drh->connect('','test') ||
    die "Could not connect";

while(1) {
    my $cursor = $dbh->prepare("SELECT * FROM test")
        || die "Could not select $DBI::errstr";

    $cursor->execute();
    my @row;

    while (@row = $cursor->fetchrow()) {
        print "@row\n";
    }

    $cursor->finish();

#    sleep(1);
}
-----------------------------------------
DB schema is something like this

test {
	name CHAR(10) NOT NULL PRIMARY KEY,
	age INT,
	phone CHAR(20),
	addr CHAR(20)
}

with only two rows actually filled in my case.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-115@oink>;
          Mon, 25 Nov 1996 07:49:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848810420:10:15241:0; Sun, 24 Nov 96 04:40:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id ab1015229; 24 Nov 96 4:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id SAA14388 for dbi-users-real; Sat, 23 Nov 1996 18:48:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mikigw2.paris-miki.co.jp (mikigw2.paris-miki.co.jp [160.233.40.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id SAA14384 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 18:48:14 -0800 (PST)
Received: (from takami@localhost) 
          by mikigw2.paris-miki.co.jp (8.6.12+2.4W/3.3W9-LOCAL_VERSION=NEC) 
          id LAA12513 for dbi-users@fugue.com; Sun, 24 Nov 1996 11:45:24 +0900
Date: Sun, 24 Nov 1996 11:45:24 +0900
From: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Message-Id: <199611240245.LAA12513@mikigw2.paris-miki.co.jp>
To: dbi-users@fugue.com
Subject: How to use sequence table.

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

  Hello perl&oracle gurus.

I want to use the following sql sentence:
    " insert into table values ( no, :1, :2 ) "
which has two substitution variables.
The first field gets value from sequence table.
i.e. I'd like to use "sequence_table.nextval" instead of no.

   $lda = ora_login( $ora_sid, $userid, $passwd );
   $s = 'insert into table values (sequence_table.nextval,:1,:2)';
   $csr = &ora_open($lda, $s, 10);
   
   &ora_bind( $csr, 'aaa', 'bbb' );
   $ora_commit($lda);

   &ora_close($csr);
   &ora_logoff($lda);

is it right ?

I don't know how to use sequence table.

Please tell me how to use it. Thanks in advance.

--------------------
Takami Keiichi
(takami@mikigw2.paris-miki.co.jp)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-117@oink>;
          Mon, 25 Nov 1996 07:50:08 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848812581:10:18716:13; Sun, 24 Nov 96 05:16:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa917100; 24 Nov 96 5:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id UAA14493 for dbi-users-real; Sat, 23 Nov 1996 20:11:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pt.Cyanamid.COM (igate.cyanamid.com [141.173.63.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id UAA14489 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 20:11:33 -0800 (PST)
Received: from jmsun by apbr1.pt.Cyanamid.COM (4.1/SMI-4.1) id AA09472;
          Sat, 23 Nov 96 23:10:57 EST
Date: Sat, 23 Nov 1996 23:10:57 -0500 (EST)
From: Jon Meek <meekj@pt.cyanamid.com>
Reply-To: Jon Meek <meekj@pt.cyanamid.com>
Subject: Re: How to use sequence table.
To: "K.Takami" <takami@mikigw2.paris-miki.co.jp>
Cc: dbi-users@fugue.com
In-Reply-To: "Your message with ID" <199611240245.LAA12513@mikigw2.paris-miki.co.jp>
Message-Id: <Roam.3.0.1.848808657.13970.meekj@apbr1>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I use:

$sqlInsert2 = "insert into $Table values ($Sequence.nextval,
'$Ora{'subname'}', '$Ora{'url'}', '$Ora{'comments'}', sysdate)";

$lda = &ora_login('',$Database,'') || warn $ora_errstr;

$Result2 = &ora_do($lda, $sqlInsert2);

&ora_commit($lda);
&ora_logoff($lda) || warn "can't log off Oracle";

--------------

&ora_do is supposed to be inefficient, but my application is a Web based data
entry application and there will usually only be one &ora_do per login.

I might have tried &ora_bind and had problems. However, for my final
application, &ora_do is better anyway because I have a variable number of data
values and build the string dynamically.


Jon

> I want to use the following sql sentence:
>     " insert into table values ( no, :1, :2 ) "
> which has two substitution variables.
> The first field gets value from sequence table.
> i.e. I'd like to use "sequence_table.nextval" instead of no.
> 
>    $lda = ora_login( $ora_sid, $userid, $passwd );
>    $s = 'insert into table values (sequence_table.nextval,:1,:2)';
>    $csr = &ora_open($lda, $s, 10);
>    
>    &ora_bind( $csr, 'aaa', 'bbb' );
>    $ora_commit($lda);
> 
>    &ora_close($csr);
>    &ora_logoff($lda);
> 
> is it right ?
> 
> I don't know how to use sequence table.
> 
> Please tell me how to use it. Thanks in advance.
> 
> --------------------
> Takami Keiichi
> (takami@mikigw2.paris-miki.co.jp)
> 




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-119@oink>;
          Mon, 25 Nov 1996 07:50:22 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848812641:10:18821:1; Sun, 24 Nov 96 05:17:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id ab1018783; 24 Nov 96 5:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id UAA14488 for dbi-users-real; Sat, 23 Nov 1996 20:11:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id UAA14484 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 20:11:26 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id UAA00491;
          Sat, 23 Nov 1996 20:10:47 -0800 (PST)
Message-Id: <1.5.4.32.19961124042209.007f3184@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 23 Nov 1996 20:22:09 -0800
To: "K.Takami" <takami@mikigw2.paris-miki.co.jp>, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: How to use sequence table.

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Sequence generation is a very important component to Oracle. The definition
must precede its use:

drop sequence sequence_table;
create sequence sequence_table increment by 1 start with 200000;


Once defined, your code below should work.

Also, pick up the Oracle Developers and Reference guides at your favorite
bookstore. They will help you avoid "introductory" questions like these.

-Lane

At 11:45 AM 11/24/96 +0900, K.Takami wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>  Hello perl&oracle gurus.
>
>I want to use the following sql sentence:
>    " insert into table values ( no, :1, :2 ) "
>which has two substitution variables.
>The first field gets value from sequence table.
>i.e. I'd like to use "sequence_table.nextval" instead of no.
>
>   $lda = ora_login( $ora_sid, $userid, $passwd );
>   $s = 'insert into table values (sequence_table.nextval,:1,:2)';
>   $csr = &ora_open($lda, $s, 10);
>   
>   &ora_bind( $csr, 'aaa', 'bbb' );
>   $ora_commit($lda);
>
>   &ora_close($csr);
>   &ora_logoff($lda);
>
>is it right ?
>
>I don't know how to use sequence table.
>
>Please tell me how to use it. Thanks in advance.
>
>--------------------
>Takami Keiichi
>(takami@mikigw2.paris-miki.co.jp)
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-121@oink>;
          Mon, 25 Nov 1996 07:50:35 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848812642:10:18821:7; Sun, 24 Nov 96 05:17:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id ab917223; 24 Nov 96 5:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id TAA14448 for dbi-users-real; Sat, 23 Nov 1996 19:53:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id TAA14444 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 19:53:12 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id TAA07999 
          for <dbi-users@fugue.com>; Sat, 23 Nov 1996 19:52:41 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id TAA29834;
          Sat, 23 Nov 1996 19:53:31 -0800
Date: Sat, 23 Nov 1996 19:53:31 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199611240353.TAA29834@anubis.informix.com>
To: dbi-users@fugue.com
Subject: Testers for pre-release DBD::Informix 0.25

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm more or less ready (1 week or less, I think) to send out the
DBD::Informix 0.25 software for testing.

Who's interested in helping out?

I'd like to know both platform (machine type, operating system version) and
Informix version (ESQL/C, OnLine or SE or both).

I'd like about 4 people to help; if I'm inundated with offers, I'll be
picky.  I will be testing on Solaris 2.4 on Sun Sparc and more versions of
ESQL/C than you're likely to have (5.03, 5.07, 6.00, 7.13, 7.21), so I'm
interested primarily in other platforms.

Also, I need a heads up on who is going to be screwed up by the fact that
4.1x ESQL/C will not be supported.  It should be no-one, but you'd better
tell me if you are using 4.1x (or, perish the thought, 4.0x or even
earlier), and you'd better have a darned good explanation for why you're
using this version.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09080-177@oink>;
          Mon, 25 Nov 1996 07:57:48 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848897702:10:07232:12; Mon, 25 Nov 96 04:55:02 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa911943; 25 Nov 96 4:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id SAA15685 for dbi-users-real; Sun, 24 Nov 1996 18:36:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from big.fishnet.net (root@big.fishnet.net [205.216.133.3]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id SAA15681 
          for <dbi-users@fugue.com>; Sun, 24 Nov 1996 18:36:23 -0800 (PST)
Received: from linux-markm.fishnet.net (linux-markm.fishnet.net [205.216.133.39]) 
          by big.fishnet.net (8.7.5/8.6.9) with SMTP id TAA32443 
          for <dbi-users@fugue.com>; Sun, 24 Nov 1996 19:41:24 -0800
Date: Sun, 24 Nov 1996 18:35:22 -0800 (PST)
From: Mark Molinari <mark@linux-markm.fishnet.net>
To: dbi-users@fugue.com
Subject: Thank you!
Message-ID: <Pine.LNX.3.91.961124182446.285B-100000@linux-markm.fishnet.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

Boy do I thank Jesus for all the developers of DBI/DBD.  Especially Tim 
Bunce for the Oracle stuff.  I am new to both SCO UNIX and Oracle. Yet 
just by reading the README's and other doc that came with DBI and 
DBD::Oracle, I was able to iron out a few problems and get everything up 
and running in a few hours (for free).  Compare this with the days it 
took to get Oracle installed and running with Oracle support (big bucks).

Thanks again Tim and the rest of the developers.

Mark


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28226-103@oink>;
          Tue, 26 Nov 1996 07:46:56 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848971313:9:15107:0; Tue, 26 Nov 96 01:21:53 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa915046; 26 Nov 96 1:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id OAA21345 for dbi-users-real; Mon, 25 Nov 1996 14:08:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from border.dreamworks.com (dreamworks.com [204.250.57.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id OAA21341 
          for <dbi-users@fugue.com>; Mon, 25 Nov 1996 14:08:22 -0800 (PST)
Received: from border.dreamworks.com (daemon@localhost) 
          by border.dreamworks.com (8.7.2/8.7.2) with ESMTP id OAA01328 
          for <dbi-users@fugue.com>; Mon, 25 Nov 1996 14:10:18 -0800 (PST)
Received: from mail.anim.dreamworks.com (mail.anim.dreamworks.com [207.3.197.9]) 
          by border.dreamworks.com (8.7.2/8.7.2) with SMTP id OAA01324 
          for <dbi-users@fugue.com>; Mon, 25 Nov 1996 14:10:18 -0800 (PST)
Received: from juice.anim.dreamworks.com by mail.anim.dreamworks.com 
          via ESMTP (940816.SGI.8.6.9/940406.SGI) 
          for <@mail.anim.dreamworks.com:dbi-users@fugue.com> id NAA19109;
          Mon, 25 Nov 1996 13:34:32 -0800
Received: by juice.anim.dreamworks.com (950413.SGI.8.6.12/940406.SGI) 
          for dbi-users@fugue.com id OAA26214; Mon, 25 Nov 1996 14:08:19 -0800
Date: Mon, 25 Nov 1996 14:08:19 -0800
From: ahorn@anim.dreamworks.com (Alan C.Horn)
Message-Id: <199611252208.OAA26214@juice.anim.dreamworks.com>
To: dbi-users@fugue.com
Subject: Beginner question...

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I know that this is a beginner question, and I apologise for cluttering
up everyone's mailboxes, but I really am at a loss with this.

I have verified that the statement string is correct, by visually inputting
test values, in a sqlplus command shell. I think the problem lies in
either the substitution process, or in my syntax.. :)

I am most  likely, fundamentally misunderstanding the process here. Could
someone point out the errors below ?

Many thanks

Al


sub insert_db {

    ## Login to oracle database.

    $dbh = &ora_login('', '', '');
    die "ora_login: $ora_errno: $ora_errstr\n" unless $dbh;
    &ora_autocommit($dbh, 1);

    ## grab unique db identifier

    $csr = &ora_open($dbh, "select film_seq.nextval from dual");
    @nextvalue = &ora_fetch($csr); 

    ## Insert database record..

    $string = "insert into film_tab(id_num, department, sub_date, film, archive, editorial, edit_status, sequence, scene) values(:1, :2, sysdate, 'Y', :3, 'Y', :4, :5, :6)";

    $csr = &ora_open($dbh, $string);

    &ora_bind($csr, $nextvalue[0], $dept, '$archive', '@editorial', '$seq', '$scn');

    &ora_close($csr);
    &ora_logoff($dbh);

}

--
Alan Horn - Sysadmin - Dreamworks SKG. (+1 818 733 6000) - No NeXTMail Please
   [Personal Email : deorth@mono.org] [Work Email : ahorn@dreamworks.com]
     You gotta give, to live.| 	What is understood need not be discussed
        alan@dreamworks.com  |          - Loren Adams



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28226-107@oink>;
          Tue, 26 Nov 1996 07:47:27 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 848971839:9:16411:2; Tue, 26 Nov 96 01:30:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1008469; 26 Nov 96 1:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id OAA21386 for dbi-users-real; Mon, 25 Nov 1996 14:23:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from exinis1-1.morgan.com (exinis.ms.com [204.254.197.6]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id OAA21382 
          for <dbi-users@fugue.com>; Mon, 25 Nov 1996 14:23:34 -0800 (PST)
Received: (from mail@localhost) 
          by exinis1-1.morgan.com (8.6.12/sendmail.cf.firewall v1.21) 
          id RAA29275; Mon, 25 Nov 1996 17:23:30 -0500
Received: from samail1.morgan.com(144.14.9.149) by exinis1-1.morgan.com 
          via smap (V1.3) id sma029248; Mon Nov 25 17:23:13 1996
Received: from sait216.morgan.com (sait216.morgan.com [144.14.24.183]) 
          by samail1.morgan.com (8.8.3/hub v1.40) with ESMTP id RAA29820;
          Mon, 25 Nov 1996 17:23:13 -0500 (EST)
From: Manoj Gupte <manoj@morgan.com>
Received: (manoj@localhost) 
          by sait216.morgan.com (8.7.5/sendmail.cf.client v1.05) id RAA01388;
          Mon, 25 Nov 1996 17:23:12 -0500 (EST)
Date: Mon, 25 Nov 1996 17:23:12 -0500 (EST)
Message-Id: <9611251723.ZM1386@morgan.com>
In-Reply-To: johnl@informix.com (Jonathan Leffler) "Testers for pre-release DBD::Informix 0.25" (Nov 23, 7:53pm)
References: <199611240353.TAA29834@anubis.informix.com>
X-Mailer: Z-Mail (3.2.1 10oct95)
To: johnl@informix.com (Jonathan Leffler), dbi-users@fugue.com
Subject: Re: Testers for pre-release DBD::Informix 0.25
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
	What is new in release 0.25 ?

Best regards,

Manoj

On Nov 23,  7:53pm, Jonathan Leffler wrote:
> Subject: Testers for pre-release DBD::Informix 0.25
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
> Hi,
>
> I'm more or less ready (1 week or less, I think) to send out the
> DBD::Informix 0.25 software for testing.
>
> Who's interested in helping out?
>
> I'd like to know both platform (machine type, operating system version) and
> Informix version (ESQL/C, OnLine or SE or both).
>
> I'd like about 4 people to help; if I'm inundated with offers, I'll be
> picky.  I will be testing on Solaris 2.4 on Sun Sparc and more versions of
> ESQL/C than you're likely to have (5.03, 5.07, 6.00, 7.13, 7.21), so I'm
> interested primarily in other platforms.
>
> Also, I need a heads up on who is going to be screwed up by the fact that
> 4.1x ESQL/C will not be supported.  It should be no-one, but you'd better
> tell me if you are using 4.1x (or, perish the thought, 4.0x or even
> earlier), and you'd better have a darned good explanation for why you're
> using this version.
>
> Yours,
> Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
>
>
>
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web
page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by
hand.
> ------------------------------------------------------------------------------
>-- End of excerpt from Jonathan Leffler



-- 
Manoj Gupte					Email     : manoj@morgan.com
Morgan Stanley Inc.				Telephone : 212-762-2680
7th Floor, 750 7th Avenue,
New York.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08299-129@oink>;
          Wed, 27 Nov 1996 07:49:54 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849057098:10:12116:0; Wed, 27 Nov 96 01:11:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa903000; 27 Nov 96 1:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id NAA24089 for dbi-users-real; Tue, 26 Nov 1996 13:17:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from paul.spu.edu (Paul.spu.edu [192.190.33.3]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id NAA24085 
          for <dbi-users@fugue.com>; Tue, 26 Nov 1996 13:17:47 -0800 (PST)
Received: from CIS008.spu.edu 
          by paul.spu.edu (5.65v3.2/1.1.10.5/05Oct96-1102PM) id AA04011;
          Tue, 26 Nov 1996 13:17:27 -0800
Date: Tue, 26 Nov 1996 13:21:08 -0800 ()
From: Phil Rand <prand@paul.spu.edu>
To: Eric Vought <adfh@pobox.com>
Cc: dbi-users@fugue.com
Subject: Re: [Fwd: Introduction and Query]
In-Reply-To: <32963B8D.8DDD9BA@pobox.com>
Message-Id: <Pine.WNT.3.95.961126131853.-6989B-110000@cis008.spu.edu>
X-X-Sender: prand@paul.spu.edu
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="13870440-17639-849043268=:-6989"
Content-Id: <Pine.WNT.3.95.961126131853.-6989C@cis008.spu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--13870440-17639-849043268=:-6989
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.WNT.3.95.961126131853.-6989D@cis008.spu.edu>

On Fri, 22 Nov 1996, Eric Vought wrote:

> I sent this post to the dbi mailing list a while ago, and got no
> response or acknowledgement whatsoever, which leads me to one of three
> conclusions:
> 
> 1) Other members of the list never received this message.

I received your message (twice).

> 2) I never received replies to the message.
> 3) No one responded.

I didn't feel I had anything to contribute, so I didn't respond.

--
-- Phil Rand <prand@spu.edu>, aka <postmaster@spu.edu>
-- http://www.spu.edu/users/prand       (206) 281-2428
-- Computer and Information Systems
-- Seattle Pacific University
-- 3307 3rd Ave. W., Seattle, WA  98119
--------------------------------------------------------------------------

--13870440-17639-849043268=:-6989
Content-Type: MESSAGE/RFC822
Content-ID: <Pine.WNT.3.95.961126131853.-6989E@cis008.spu.edu>
Content-Description: 

Message-ID: <32913B59.11E8531@pobox.com>
Date: Mon, 18 Nov 1996 23:45:13 -0500
From: Eric Vought <adfh@pobox.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: dbi-dev@fugue.com
Subject: Introduction and Query
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Sorry about posting to both lists. I'll tailor my posts a little more
once I get a feel for what goes on and who's listening on the three
lists.

My name is Eric Vought. I work for CACI on contract to the Air Force to
work on a product development product called MASTR. MASTR is primarily
an analysis and operations reasearch tool, although I'm hoping it can be
applied to non-military problems as well.

We are using a combination of PERL and Tcl/Tk for development of MASTR.
Tcl/Tk is being used for a scripting interface and for the GUI while
PERL is being used for the "serious stuff". Our current system uses a
4GL called VPE, which we are phasing out. Right now, our project
consists of 180,000 lines of VPE, and ~0,000 lines of tcl plus some
puddles of C code. By next year I hope to see about 10-12,000 lines of
Tcl and about 70-80,000 lines of PERL with no VPE and a bare minimum of
C.

This product does a fair amount of communication with an RDBMS
(currently Oracle, though we will be using one of Empress, Essentia,
CQL++, or Solid Server for future development and want to make sure we
are compatible with Sybase). This is why I'm posting/subscribing to this
list.

Outside of our (actively) supported databases, we want to make sure that
we are minimally compatible with
any RDBMS that supports ODBC. This is partially so that our customers
have as much choice as possible and so that we ourselves don't get
locked into a particular set of development tools
or platforms and it will be easy to change our list of actively
supported databases.

I've been reading through documentation on PERL DBD:DBI lately and
looking through code obtained from CPAN. The only driver's listed there
were for Oracle and Ingress, with only Oracle (alpha) being available
for download. I've also read a post (I don't remember who off hand) that
suggested DBD:DBI's current support was being obsoleted in favor of a
PERL<->ODBC interface.

>From listening to chatter on this list over the past week, it looks like
several other drivers are in development, and I have heard no mention of
a move to ODBC. Could someone give me a quich status report on what you
folks are up to? I am (obviously) interested in making as much use of
waht you have as possible for my employer, but I am also interested in
volunteering some of my own time off of work and may be able to convince
my employer to (sparingly) help with some portions of DBI:DBD that are
directly related to MASTR as long as the MASTR project does not have to
support such additions in the long term.

In particular, what is the progress in talking to an ODBC driver manager
(like iODBC) from PERL?
What needs to be done?

Eric Vought



--13870440-17639-849043268=:-6989--


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05819-196@oink>;
          Mon, 2 Dec 1996 08:07:27 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849462613:9:22223:1; Sun, 01 Dec 96 17:50:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1020329; 1 Dec 96 17:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id HAA00469 for dbi-users-real; Sun, 1 Dec 1996 07:26:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lugh.kerris.com (lugh.kerris.com [142.77.242.145]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id HAA00465 
          for <dbi-users@fugue.com>; Sun, 1 Dec 1996 07:26:20 -0800 (PST)
Received: (from mkerr@localhost) by lugh.kerris.com (8.6.12/8.6.12) id KAA26135;
          Sun, 1 Dec 1996 10:31:23 -0500
Date: Sun, 1 Dec 1996 10:31:21 -0500 (EST)
From: Mike Kerr <mkerr@kerris.com>
To: dbi-users@fugue.com
Subject: My Problem with DBD:mSQL
Message-ID: <Pine.BSF.3.91.961201102900.26127A-100000@lugh.kerris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Please ignore the message I sent previously (as my sysadmin user).  I 
read through the FAQ, and although there isn't anything specifically 
under mSQL install problems, there is mention of the %att thing coming up 
and it suggests removing reference to it.

I did and it's now installed. :)  So please disregard my previous post, 
and my apologies for wasting bandwidth.

Mike.

=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Kerr                | http://www.net/~mkerr
Kerr Information Systems | http://www.kerris.com/
mkerr@kerris.com         | Web Guy, etc.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06833-0@oink>;
          Mon, 2 Dec 1996 08:43:32 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849516039:9:26896:0; Mon, 02 Dec 96 08:40:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1023402; 2 Dec 96 8:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id WAA01535 for dbi-users-real; Sun, 1 Dec 1996 22:16:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sparky.ic.sunysb.edu (11856@sparky.ic.sunysb.edu [129.49.12.171]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id WAA01531 
          for <dbi-users@fugue.com>; Sun, 1 Dec 1996 22:16:10 -0800 (PST)
Received: (from jisu@localhost) by sparky.ic.sunysb.edu (8.8.3/8.8.3) 
          id BAA27990; Mon, 2 Dec 1996 01:15:48 -0500 (EST)
Date: Mon, 2 Dec 1996 01:15:47 -0500 (EST)
From: Jinggang Su <jisu@ic.sunysb.edu>
X-Sender: jisu@sparky
To: dbi-users@fugue.com
Subject: How to pass values to views
Message-ID: <Pine.sola.3.91.961202005344.26051A-100000@sparky>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello, DBI/Oraperl guys:

I am a DBI beginer, and have a problem with passing values to a view using
DBI.
I have a view as:
                 CREATE VIEW view_name (attribute1,attribute2)
                 AS SELECT attribute1,attribute2
                    FROM my_table
                    WHERE my_table.attribute3 LIKE '$varible'

and I wish to pass the value of $varible in PERL codes using DBI, so that I 
can fetch the results with respect to $variable.
Would you please tell me how to do this, or is there any other way around?
I appreciate your attention and time. 
Thank you in advances.

Jim


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10613-5@oink>;
          Mon, 2 Dec 1996 10:38:54 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849521591:10:16475:6; Mon, 02 Dec 96 10:13:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919179; 2 Dec 96 10:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id XAA01657 for dbi-users-real; Sun, 1 Dec 1996 23:58:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lugh.kerris.com (lugh.kerris.com [142.77.242.145]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id XAA01653 
          for <dbi-users@fugue.com>; Sun, 1 Dec 1996 23:58:30 -0800 (PST)
Received: (from mkerr@localhost) by lugh.kerris.com (8.6.12/8.6.12) id DAA27514;
          Mon, 2 Dec 1996 03:03:56 -0500
Date: Mon, 2 Dec 1996 03:03:54 -0500 (EST)
From: Mike Kerr <mkerr@kerris.com>
To: DBI-Users List <dbi-users@fugue.com>
Subject: [DBI::mSQL] Disconnect Message
Message-ID: <Pine.BSF.3.91.961202030221.27509A-100000@lugh.kerris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

When I finish running my script, I get the following message:

disconnect(DBI::db=HASH(0xf0d18)) invalidates 1 associated cursor(s) at 
query line 24.

Does anybody have an idea what this means?  I'm not (to my knowledge) 
using a hash table, so maybe it's a DBI thing.  I dunno.  It's just 
worrying me.

Mike.

=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Kerr                | http://www.net/~mkerr
Kerr Information Systems | http://www.kerris.com/
mkerr@kerris.com         | Web Guy, etc.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13988-0@oink>;
          Mon, 2 Dec 1996 17:28:25 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849547677:10:25947:0; Mon, 02 Dec 96 17:27:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa902284; 2 Dec 96 17:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id EAA02096 for dbi-users-real; Mon, 2 Dec 1996 04:55:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from hickory.engr.utk.edu (HICKORY.ENGR.UTK.EDU [128.169.132.31]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id EAA02092 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 04:55:19 -0800 (PST)
Received: from localhost by hickory.engr.utk.edu (5.x/2.8s-UTK.UTCC) id AA26446;
          Mon, 2 Dec 1996 07:56:25 -0500
Date: Mon, 2 Dec 1996 07:56:25 -0500 (EST)
From: Jay Flaherty <fty@hickory.engr.utk.edu>
To: DBI-Users List <dbi-users@fugue.com>
Subject: Re: [DBI::mSQL] Disconnect Message
In-Reply-To: <Pine.BSF.3.91.961202030221.27509A-100000@lugh.kerris.com>
Message-Id: <Pine.GSO.3.92.961202074733.26424A-100000@hickory.engr.utk.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I just came across this yesterday and it puzzles me too. It only happens
on one particular query. ( "SELECT code, description FROM codes WHERE
field_name = '$fieldname' ") I only get the disconnect message when
$fieldname is a particular value. All other queries work fine.
If anyone knows what this means please post it to the list. Thank-you...jay

On Mon, 2 Dec 1996, Mike Kerr wrote:

>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
> When I finish running my script, I get the following message:
>
> disconnect(DBI::db=HASH(0xf0d18)) invalidates 1 associated cursor(s) at
> query line 24.
>
> Does anybody have an idea what this means?  I'm not (to my knowledge)
> using a hash table, so maybe it's a DBI thing.  I dunno.  It's just
> worrying me.
>

**********************************************
Jay Flaherty          fty@hickory.engr.utk.edu

    ------visualize whirled peas------
**********************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17579-11@oink>;
          Tue, 3 Dec 1996 01:10:22 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849562762:10:14966:0; Mon, 02 Dec 96 21:39:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1014879; 2 Dec 96 21:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id KAA02620 for dbi-users-real; Mon, 2 Dec 1996 10:23:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from hickory.engr.utk.edu (HICKORY.ENGR.UTK.EDU [128.169.132.31]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id KAA02616 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 10:23:08 -0800 (PST)
Received: from localhost by hickory.engr.utk.edu (5.x/2.8s-UTK.UTCC) id AA29075;
          Mon, 2 Dec 1996 13:24:13 -0500
Date: Mon, 2 Dec 1996 13:24:13 -0500 (EST)
From: Jay Flaherty <fty@hickory.engr.utk.edu>
To: Dan Busarow <dan@dpcsys.com>
Cc: DBI-Users List <dbi-users@fugue.com>
Subject: Re: [DBI::mSQL] Disconnect Message
In-Reply-To: <Pine.UW2.3.95.961202092123.3710A-100000@cedb>
Message-Id: <Pine.GSO.3.92.961202131837.29002A-100000@hickory.engr.utk.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 2 Dec 1996, Dan Busarow wrote:

> On Mon, 2 Dec 1996, Jay Flaherty wrote:
> > I just came across this yesterday and it puzzles me too. It only happens
> > on one particular query. ( "SELECT code, description FROM codes WHERE
>
> Are you calling $cursor->finish everytime you need to?  For example,
> if _NumRows is 0 do you finish the cursor?  My experience is that
> you should.

Yes. I use the same subroutine for all these "codes table" queries. I even
pulled this routine out as a stand alone perl script and ran it using
different fieldnames. It still choked when using that one fieldname
parameter. Well, not really choked but gave me the "disconnect message" at
the end of the query. Real puzzling...jay


**********************************************
Jay Flaherty          fty@hickory.engr.utk.edu

    ------visualize whirled peas------
**********************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17579-15@oink>;
          Tue, 3 Dec 1996 01:10:36 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849563527:9:22334:1; Mon, 02 Dec 96 21:52:07 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa922215; 2 Dec 96 21:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA02494 for dbi-users-real; Mon, 2 Dec 1996 09:31:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cedb.dpcsys.com (cedb.DPCSYS.COM [165.90.143.3]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id JAA02490 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 09:31:15 -0800 (PST)
Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.2/8.8.2) 
          with SMTP id RAA03806; Mon, 2 Dec 1996 17:25:01 GMT
Date: Mon, 2 Dec 1996 09:25:01 -0800 (PST)
From: Dan Busarow <dan@dpcsys.com>
To: Jay Flaherty <fty@hickory.engr.utk.edu>
cc: DBI-Users List <dbi-users@fugue.com>
Subject: Re: [DBI::mSQL] Disconnect Message
In-Reply-To: <Pine.GSO.3.92.961202074733.26424A-100000@hickory.engr.utk.edu>
Message-ID: <Pine.UW2.3.95.961202092123.3710A-100000@cedb>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 2 Dec 1996, Jay Flaherty wrote:
> I just came across this yesterday and it puzzles me too. It only happens
> on one particular query. ( "SELECT code, description FROM codes WHERE

Are you calling $cursor->finish everytime you need to?  For example,
if _NumRows is 0 do you finish the cursor?  My experience is that
you should.

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems                                                dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20105-24@oink>;
          Tue, 3 Dec 1996 07:37:52 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849588888:10:19740:1; Tue, 03 Dec 96 04:54:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1019711; 3 Dec 96 4:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id SAA04360 for dbi-users-real; Mon, 2 Dec 1996 18:34:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id SAA04356 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 18:34:25 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id SAA10685 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 18:33:54 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id SAA18048; Mon, 2 Dec 1996 18:33:51 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id SAA18942;
          Mon, 2 Dec 1996 18:33:17 -0800
Date: Mon, 2 Dec 1996 18:33:17 -0800
From: gaurav.khillan@Eng.Sun.Com (Gaurav Khillan)
Message-Id: <199612030233.SAA18942@edu-intern2.eng.sun.com>
To: dbi-users@fugue.com
Subject: DBI Installation problem
Cc: gaurav.khillan@Eng.Sun.Com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi All,

I am trying to install DBI 0.73 on my system ( Solaris 2.5 , Ultra Sparc ).

I have perl5.003 binary installed .

On running  1) perl Makefile.PL I get the response as follows . Also

               Makefile is created in the process .

# ../perl5.003 Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
	NAME => q[DBI]
	PREREQ_PM => {  }
	VERSION_FROM => q[DBI.pm]
	clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=../perl5.003

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI

When I do 2) make 

I get an error as shown below :

# /net/suntools.eng/export/tools/sparc/bin/make
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
../perl5.003 -I/net/qtt.eng/export/tools/external/gnu/lib/perl5/sun4-solaris/5.003 -I/net/qtt.eng/export/tools/external/gnu/lib/perl5 /net/qtt.eng/export/tools/external/gnu/lib/perl5/ExtUtils/xsubpp  -typemap /net/qtt.eng/export/tools/external/gnu/lib/perl5/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
cc -c   -O    -DVERSION=\"0.73\" -DXS_VERSION=\"0.73\" -Kpic -I/net/qtt.eng/export/tools/external/gnu/lib/perl5/sun4-solaris/5.003/CORE  DBI.c
make: cc: Command not found
make: *** [DBI.o] Error 127
# ./net/suntools.eng/export/tools/sparc/bin/make
./net/suntools.eng/export/tools/sparc/bin/make: not found
# /net/suntools.eng/export/tools/sparc/bin/make
cc -c   -O    -DVERSION=\"0.73\" -DXS_VERSION=\"0.73\" -Kpic -I/net/qtt.eng/export/tools/external/gnu/lib/perl5/sun4-solaris/5.003/CORE  DBI.c
make: cc: Command not found
make: *** [DBI.o] Error 127


It looks as if it is not able to find the compiler ( gcc ) . Can someone 

shed some light on this.

Thanks.

Gaurav.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22062-18@oink>;
          Tue, 3 Dec 1996 15:14:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849605088:10:06295:0; Tue, 03 Dec 96 09:24:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1006280; 3 Dec 96 9:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id WAA04896 for dbi-users-real; Mon, 2 Dec 1996 22:48:11 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lugh.kerris.com (lugh.kerris.com [142.77.242.145]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id WAA04892 
          for <dbi-users@fugue.com>; Mon, 2 Dec 1996 22:48:00 -0800 (PST)
Received: (from mkerr@localhost) by lugh.kerris.com (8.6.12/8.6.12) id BAA29660;
          Tue, 3 Dec 1996 01:53:50 -0500
Date: Tue, 3 Dec 1996 01:53:49 -0500 (EST)
From: Mike Kerr <mkerr@kerris.com>
To: DBI-Users List <dbi-users@fugue.com>
Subject: Accessing database in subroutines
Message-ID: <Pine.BSF.3.91.961203014930.29651A-100000@lugh.kerris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In my mainline, I am executing the following:

$dbh->connect('', 'database');
$cursor->query('SELECT field FROM table');
$cursor->execute;
$cursor->fetchrow;
$cursor->finish;

Then I jump to a subroutine which executes the following:

$cursor->prepare('SELECT field2 FROM table');
$cursor->execute;
$cursor->finish;

Then I pop back to the mainline and disconnect from the database.


Now, obviously there are other statments and stuff around those things, 
but for brevity, that's what's basically going on.  However, I am getting 
the following error message:

Statement handle DBI::st=HASH(0x11a8ac) DESTROY ignored - never set up at 
build_ep_guide.pl line 179.
Can't call method "execute" without a package or object reference at 
build_ep_guide.pl line 179.

If viewing the entire code would help, then I can make it available.

Mike.

=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Kerr                | http://www.net/~mkerr
Kerr Information Systems | http://www.kerris.com/
mkerr@kerris.com         | Web Guy, etc.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24725-2@oink>;
          Tue, 3 Dec 1996 18:05:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849636060:9:02629:0; Tue, 03 Dec 96 18:01:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1010160; 3 Dec 96 18:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id FAA05383 for dbi-users-real; Tue, 3 Dec 1996 05:48:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id FAA05379 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 05:48:06 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id IAA12065;
          Tue, 3 Dec 1996 08:49:33 -0500 (EST)
Message-Id: <199612031349.IAA12065@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: gaurav.khillan@eng.sun.com (Gaurav Khillan)
cc: dbi-users@fugue.com
Subject: Re: DBI Installation problem
In-reply-to: Your message of "Mon, 02 Dec 1996 18:33:17 PST." <199612030233.SAA18942@edu-intern2.eng.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 03 Dec 1996 08:47:58 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Is the CC that was used to build Perl, in your path? Also, you'll need to read 
the README about using Sun's compilers vs. gcc.
Good luck,
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27166-56@oink>;
          Wed, 4 Dec 1996 07:41:45 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849657348:10:29461:0; Tue, 03 Dec 96 23:55:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1029446; 3 Dec 96 23:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id MAA06359 for dbi-users-real; Tue, 3 Dec 1996 12:48:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id MAA06355 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 12:48:47 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id MAA25024 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 12:48:16 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id MAA02040; Tue, 3 Dec 1996 12:48:14 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id MAA27301;
          Tue, 3 Dec 1996 12:47:40 -0800
Date: Tue, 3 Dec 1996 12:47:40 -0800
From: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Message-Id: <199612032047.MAA27301@edu-intern2.eng.sun.com>
To: dbi-users@fugue.com
Subject: DBD Installation
Cc: gaurav.khillan@eng.sun.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi All,

I am trying to install DBD-0.43 on my system ( Solaris 2.5 , Ultra )

I have already installed DBI-0.73 and Oracle on my machine . On trying to 

install the driver ( perl5.003 Makefile.PL ) I get an error :

Can't locate DBI.pm in @INC at Makefile.PL line 18.
BEGIN failed--compilation aborted at Makefile.PL line 18.

 Line 18 is  ::    use DBI-0.73 ;


Now DBI.pm is already installed in  $DBI_HOME/lib/perl5/site_perl/DBI.pm

I  can't figure out what to change in Makefile.PL .

Any suggestions will be appreciated.


Thanks

Gaurav.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27166-66@oink>;
          Wed, 4 Dec 1996 07:42:51 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849666969:10:03326:0; Wed, 04 Dec 96 02:36:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa914534; 4 Dec 96 2:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA07131 for dbi-users-real; Tue, 3 Dec 1996 16:08:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id QAA07127 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 16:08:15 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA19806;
          Tue, 3 Dec 96 19:08:07 EST
Received: from localhost by superior (4.1/Sun-Client) id AA07149;
          Tue, 3 Dec 96 19:08:15 EST
Date: Tue, 3 Dec 1996 19:08:15 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: dbi-users@fugue.com
Cc: albertp@nortel.ca, coopd590@nortel.ca, kimng@nortel.ca
Subject: Dates and Oracle
Message-Id: <Pine.SUN.3.93.961203190603.6939A-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am trying to enter a date into a database field in my Oracle database
via DBI.  However it seems the string in the format of the date is not
being accepted - the format is DD-MMM-YY.

Does anyone have any suggestions?

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27166-77@oink>;
          Wed, 4 Dec 1996 07:43:51 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849670842:10:13119:4; Wed, 04 Dec 96 03:40:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1013088; 4 Dec 96 3:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA07471 for dbi-users-real; Tue, 3 Dec 1996 17:40:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from postoffice.npac.syr.edu (postoffice.npac.syr.edu [128.230.7.30]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id RAA07466 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 17:40:50 -0800 (PST)
Received: from nova.npac.syr.edu (bwm@nova.npac.syr.edu [128.230.7.2]) 
          by postoffice.npac.syr.edu (8.7.5/8.7.1) with ESMTP id UAA24236;
          Tue, 3 Dec 1996 20:40:36 -0500 (EST)
Received: (from bwm@localhost) by nova.npac.syr.edu (8.7.5/8.7.1) id UAA17899;
          Tue, 3 Dec 1996 20:40:35 -0500 (EST)
Date: Tue, 3 Dec 1996 20:40:35 -0500 (EST)
From: Barbara Mihalas <bwm@npac.syr.edu>
Message-Id: <199612040140.UAA17899@nova.npac.syr.edu>
To: ccscon60@ccs.carleton.ca, dbi-users@fugue.com
Subject: Re: Dates and Oracle
Cc: albertp@nortel.ca, bwm@nova.npac.syr.edu, coopd590@nortel.ca, 
    kimng@nortel.ca

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Iain Bennett writes:
======================================================================

I am trying to enter a date into a database field in my Oracle database
via DBI.  However it seems the string in the format of the date is not
being accepted - the format is DD-MMM-YY.

Does anyone have any suggestions?

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited

=========================================================================


The Oracle Date fieldtype has a special internal format.
The string has to be converted by using the to_date function.
This is described, eg, in "Oracle The Complete Reference" from
Oracle Press.

      --Barbara Mihalas

  Barbara W. Mihalas, Principal;
  Forepoint LLC; CASE Center CST 2-212; 111 College Place; Syracuse NY 13244;
  Phone: 315-443-2086; Fax: 315-443-1973; 
  Email: bwm@npac.syr.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27166-79@oink>;
          Wed, 4 Dec 1996 07:44:04 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849670846:9:24292:2; Wed, 04 Dec 96 03:40:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa924252; 4 Dec 96 3:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA07441 for dbi-users-real; Tue, 3 Dec 1996 17:37:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pt.Cyanamid.COM (igate.cyanamid.com [141.173.63.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id RAA07437 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 17:37:48 -0800 (PST)
Received: from wilk by apbr1.pt.Cyanamid.COM (4.1/SMI-4.1) id AA20722;
          Tue, 3 Dec 96 20:37:03 EST
Date: Tue, 3 Dec 1996 20:37:10 -0500 (EST)
From: Jon Meek <meekj@Cyanamid.COM>
X-Sender: meekj@wilk
To: Iain Bennett <ccscon60@ccs.carleton.ca>
Cc: dbi-users@fugue.com, albertp@nortel.ca, coopd590@nortel.ca, kimng@nortel.ca
Subject: Re: Dates and Oracle
In-Reply-To: <Pine.SUN.3.93.961203190603.6939A-100000@superior>
Message-Id: <Pine.SUN.3.93.961203203409.1391A-100000@wilk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Do something like this:

$TD_FMT = 'DD-MON-YY';

$ReqHeaderInsert = "insert into REQHEADER values(:1, :2, :3, :4, :5, :6,
TO_DATE(:7, :8))";

Then your bind would be:

&ora_bind($csr, $reqhead_id, $reqnum, undef, $ven_name, $approval,
$requester, $reqdate, $TD_FMT) || &ErrorHandler; 

--------------------------------------------------------------------

Jon




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27317-4@oink>;
          Wed, 4 Dec 1996 07:44:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849674877:10:23400:2; Wed, 04 Dec 96 04:47:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1023395; 4 Dec 96 4:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id SAA07777 for dbi-users-real; Tue, 3 Dec 1996 18:53:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lugh.kerris.com (lugh.kerris.com [142.77.242.145]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id SAA07773 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 18:53:08 -0800 (PST)
Received: (from mkerr@localhost) by lugh.kerris.com (8.6.12/8.6.12) id VAA01482;
          Tue, 3 Dec 1996 21:59:10 -0500
Date: Tue, 3 Dec 1996 21:59:08 -0500 (EST)
From: Mike Kerr <mkerr@kerris.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com
Subject: Re: Accessing database in subroutines
In-Reply-To: <9612031526.AA18994@toad.ig.co.uk>
Message-ID: <Pine.BSF.3.91.961203215802.1474A-100000@lugh.kerris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Tue, 3 Dec 1996, Tim Bunce wrote:

> It's almost certainly a bug in the driver (I presume DBD::Informix).
> 
> Please people, remember to say which driver in your messages!

Sorry, it was DBD::mSQL.

Mike.


> > From: Mike Kerr <mkerr@kerris.com>
> > 
> > In my mainline, I am executing the following:
> > 
> > $dbh->connect('', 'database');
> > $cursor->query('SELECT field FROM table');
> > $cursor->execute;
> > $cursor->fetchrow;
> > $cursor->finish;
> > 
> > Then I jump to a subroutine which executes the following:
> > 
> > $cursor->prepare('SELECT field2 FROM table');
> > $cursor->execute;
> > $cursor->finish;
> > 
> > Then I pop back to the mainline and disconnect from the database.
> > 
> > 
> > Now, obviously there are other statments and stuff around those things, 
> > but for brevity, that's what's basically going on.  However, I am getting 
> > the following error message:
> > 
> > Statement handle DBI::st=HASH(0x11a8ac) DESTROY ignored - never set up at 
> > build_ep_guide.pl line 179.
> > Can't call method "execute" without a package or object reference at 
> > build_ep_guide.pl line 179.
> > 
> > If viewing the entire code would help, then I can make it available.
> > 
> > Mike.
> 

=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Kerr                | http://www.net/~mkerr
Kerr Information Systems | http://www.kerris.com/
mkerr@kerris.com         | Web Guy, etc.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27317-8@oink>;
          Wed, 4 Dec 1996 07:45:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849677348:9:09169:1; Wed, 04 Dec 96 05:29:08 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa909153; 4 Dec 96 5:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id TAA07983 for dbi-users-real; Tue, 3 Dec 1996 19:56:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id TAA07979 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 19:56:10 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id WAA25918;
          Tue, 3 Dec 1996 22:57:39 -0500 (EST)
Message-Id: <199612040357.WAA25918@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: gaurav.khillan@eng.sun.com (Gaurav Khillan)
cc: dbi-users@fugue.com
Subject: Re: DBI Installation problem
In-reply-to: Your message of "Tue, 03 Dec 1996 16:31:56 PST." <199612040031.QAA28950@edu-intern2.eng.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 03 Dec 1996 22:56:03 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

'perl Makefile.PL;make PREFIX=/tmp install' works for me.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27317-10@oink>;
          Wed, 4 Dec 1996 07:45:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849677381:10:29215:6; Wed, 04 Dec 96 05:29:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1029194; 4 Dec 96 5:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id TAA07949 for dbi-users-real; Tue, 3 Dec 1996 19:41:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id TAA07945 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 19:41:48 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id WAA25720;
          Tue, 3 Dec 1996 22:43:15 -0500 (EST)
Message-Id: <199612040343.WAA25720@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Iain Bennett <ccscon60@ccs.carleton.ca>
cc: dbi-users@fugue.com
Subject: Re: Dates and Oracle
In-reply-to: Your message of "Tue, 03 Dec 1996 19:08:15 EST." <Pine.SUN.3.93.961203190603.6939A-100000@superior>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 03 Dec 1996 22:41:36 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>I am trying to enter a date into a database field in my Oracle database
>via DBI.  However it seems the string in the format of the date is not
>being accepted - the format is DD-MMM-YY.
Hmm, works for me with the below code.

>Does anyone have any suggestions?
Read the book--orabook.exe that is. This forum is not really meant for these 
generic Oracle app. dev. questions. Neither are the Usenet groups since this 
is a RTFM question. You didnt send us any of your sample code, which is 
annoying. I'm not trying to flame you, you've fallen in the same trap as lots 
of other people.

Sorry, if I sound cranky, keep hacking Perl and Oracle,
John
groenvel@cse.psu.edu

use Oraperl;
use strict;

my $lda = &ora_login("", "scott/tiger","") or die $ora_errstr;
&ora_do($lda,"
	DROP TABLE snafu
	") or warn $ora_errstr;
&ora_do($lda,"
	CREATE TABLE snafu (
		foobar DATE)
    ") or die $ora_errstr; 
my $csr = &ora_open($lda, "
	INSERT INTO snafu (foobar)
		VALUES (TO_DATE(:1,'DD-MM-YY'))
    ") or die $ora_errstr;
&ora_bind($csr,'3-12-96') or die $ora_errstr;
&ora_close($csr) or die $ora_errstr;
&ora_commit($lda) or die $ora_errstr;

$csr = &ora_open($lda, "
	SELECT foobar
		FROM snafu
    ") or die $ora_errstr;
my @row;
my $col;
while (@row = &ora_fetch($csr)) {
    die if $ora_errstr; 
    foreach $col (@row) {
        print $col, "\t"; 
    }
    print "\n";
} 
&ora_close($csr) or die $ora_errstr;
&ora_logoff($lda) or die $ora_errstr;



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29945-8@oink>;
          Wed, 4 Dec 1996 10:35:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849690750:10:07652:0; Wed, 04 Dec 96 09:12:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa916501; 4 Dec 96 9:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id WAA08373 for dbi-users-real; Tue, 3 Dec 1996 22:58:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (kal@abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id WAA08369 
          for <dbi-users@fugue.com>; Tue, 3 Dec 1996 22:58:35 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.3/8.8.3) 
          id WAA01125 for dbi-users@fugue.com;
          Tue, 3 Dec 1996 22:56:23 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199612040656.WAA01125@abyss.ecst.csuchico.edu>
Subject: Use of 'IN' and 'ANY' in Oracle, DBI
To: dbi-users@fugue.com
Date: Tue, 3 Dec 1996 22:56:22 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm using DBI .73, DBD::Oracle .43 on HPUX 9.05. I'm using DBI's Oraperl
emulation. I'm having problems with using Oracle word IN and ANY.
Here is a sample of what I'm trying to do (in perl5.003).

$lda=&ora_login(...
$statement= "select name from table1 where name in (:1)";
$csr=&ora_open($lda,$statement);
&ora_bind($csr,$list);
while (($var1)=&ora_fetch($csr))
{
	print $var1;
}



$list holds variable length string passed by the user in
the format 'name1','name2','name3'....,'namen'

There are no errors generated, just no output(basically no matched rows)
If I replace :1 by an actual string, statement works.

Is there an extra step I need to take? Does using DBD native 
functions solve such problem?
I'd rather learn of Oraperl solution for now..

Thanks
Kal.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01410-11@oink>;
          Wed, 4 Dec 1996 18:03:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849704960:10:11433:1; Wed, 04 Dec 96 13:09:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1011466; 4 Dec 96 13:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id CAA08919 for dbi-users-real; Wed, 4 Dec 1996 02:12:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailhost.auspex.co.uk (mailhost.auspex.co.uk [193.130.16.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id CAA08915 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 02:12:40 -0800 (PST)
Received: from mailhost.uk.auspex.com (mailhub.auspex.com [144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id KAA10623;
          Wed, 4 Dec 1996 10:02:19 GMT
Received: from balzac.fr.auspex.com by mailhost.uk.auspex.com (4.1/SMI-4.1) 
          id AA04671; Wed, 4 Dec 96 10:03:51 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id LAA08457; Wed, 4 Dec 1996 11:02:31 +0100 (MET)
Message-Id: <32A54C39.41C67EA6@Auspex.Com>
Date: Wed, 04 Dec 1996 11:02:33 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: Simplicist <kal@ecst.csuchico.edu>
Cc: dbi-users@fugue.com
Subject: Re: Use of 'IN' and 'ANY' in Oracle, DBI
References: <199612040656.WAA01125@abyss.ecst.csuchico.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

*Sigh* Another non-DBI, non-Perl question.

> I'm using DBI .73, DBD::Oracle .43 on HPUX 9.05. I'm using DBI's Oraperl
> emulation. I'm having problems with using Oracle word IN and ANY.
> Here is a sample of what I'm trying to do (in perl5.003).
> 
> $lda=&ora_login(...
> $statement= "select name from table1 where name in (:1)";
> $csr=&ora_open($lda,$statement);
> &ora_bind($csr,$list);
> while (($var1)=&ora_fetch($csr))
> {
>         print $var1;
> }
> 
> $list holds variable length string passed by the user in
> the format 'name1','name2','name3'....,'namen'
> 
> There are no errors generated, just no output(basically no matched rows)
> If I replace :1 by an actual string, statement works.
> 
> Is there an extra step I need to take? Does using DBD native
> functions solve such problem?
> I'd rather learn of Oraperl solution for now..

This is not an Oraperl problem, so there is no "Oraperl solution" as
such. Similarly, using native DBD would make no difference.

You seem to have misunderstood how binding works. It does not slot the
value into the string and then re-evaluate the whole statement. Rather,
it allows the SQL statement to be parsed (when you call &ora_open) and
the value to be slotted in later.

Since your script only supplies a single substitution variable, the
list will only contain one value. That value happens to contain several
commas and quotation marks, and it's not really surprising that none of
your data matched it.

To achieve what you want to do in Oraperl, you need to substitute the
string you received from the user before you send the statement off to
be evaluated:

> $lda=&ora_login(...
> $statement= "select name from table1 where name in (" . $list .")";
> $csr=&ora_open($lda,$statement);
> while (($var1)=&ora_fetch($csr))
> {
>         print $var1;
> }
  &ora_close($csr)	|| die $ora_errno;
  &ora_logoff($lda)	|| die $ora_errno;

You should also add some error checking to the other &ora_* calls,
though in this case they wouldn't have shown anything.

	Kevin


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01410-20@oink>;
          Wed, 4 Dec 1996 18:04:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849722049:9:08945:12; Wed, 04 Dec 96 17:54:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa908951; 4 Dec 96 17:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id HAA09281 for dbi-users-real; Wed, 4 Dec 1996 07:13:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id HAA09277 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 07:13:30 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA23080;
          Wed, 4 Dec 96 10:13:26 EST
Received: from localhost by superior (4.1/Sun-Client) id AA02263;
          Wed, 4 Dec 96 10:13:33 EST
Date: Wed, 4 Dec 1996 10:13:33 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: dbi-users@fugue.com
Subject: Re: Dates and Oracle (fwd)
Message-Id: <Pine.SUN.3.93.961204101321.29014C-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> Because the exact answer to your question is in the manuals. Thats what
> they're for! 

Not if it's related to DBI.  The exact answer I was looking for was
actually solved through Oracle instead of DBI, however how was I supposed
to know there wasn't a dbi function, something like string2oracledate to
convert a string date to an oracle date format so I can use it in a stored
procedure?  See what I mean?  I admit my wording was not the best in my
message.

> If you read the charter, you'll find that your question
> is inappropriate for this forum. If you read news:news.announce.newusers
> you'll find its not appropriate there either. 

Hmmm.. I didn't post to news:news.announce.newusers, so why bring it up?

I had a DBI related query which was solved through Oracle directly
instead of through DBI.  I thought there was something in DBI I was
missing.  

According to the DBI pages the DBI-users list is for people who are users
of DBI - i.e. us developers.  In fact looking at http://www.fugue.com/dbi/
the description of this list is:

dbi-users
             Discussions among DBI users. This is a good place to discuss
	     problems that you are having setting up the DBI to run on
	     your machine, or getting it to do what you want.

Which is exactly what I was looking for.  And I found it.  

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01487-0@oink>;
          Wed, 4 Dec 1996 18:06:11 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849722558:9:12073:0; Wed, 04 Dec 96 18:02:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa912041; 4 Dec 96 18:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id GAA09237 for dbi-users-real; Wed, 4 Dec 1996 06:51:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id GAA09232 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 06:51:56 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id JAA01596;
          Wed, 4 Dec 1996 09:53:27 -0500 (EST)
Message-Id: <199612041453.JAA01596@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Iain Bennett <ccscon60@ccs.carleton.ca>
cc: dbi-users@fugue.com
Subject: Re: Dates and Oracle
In-reply-to: Your message of "Wed, 04 Dec 1996 08:47:24 EST." <Pine.SUN.3.93.961204084411.14866B-100000@superior>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 04 Dec 1996 09:51:47 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Unfortunately in the corporation, I don't have the books.  I don't
>actually own the books. 
The books are shipped on a CD. Ask your DBA to install them. Several 3rd party 
books are also available at your book store.

>Why isn't it a valid question in the newsgroups?  Thats what it's there
>for!  Support!
Because the exact answer to your question is in the manuals. Thats what they're for!

Someone, actually lots of people pay for the disk space and bandwidth of this list. However, the biggest cost is the time donated to manage or follow the list. If you read the charter, you'll find that your question is inappropriate for this forum. If you read news:news.announce.newusers you'll find its not appropriate there either.

John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02837-0@oink>;
          Wed, 4 Dec 1996 21:26:55 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849723802:10:18963:2; Wed, 04 Dec 96 18:23:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1018799; 4 Dec 96 18:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id FAA09145 for dbi-users-real; Wed, 4 Dec 1996 05:47:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id FAA09141 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 05:47:19 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA12994;
          Wed, 4 Dec 96 08:47:15 EST
Received: from localhost by superior (4.1/Sun-Client) id AA15752;
          Wed, 4 Dec 96 08:47:24 EST
Date: Wed, 4 Dec 1996 08:47:24 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: John D Groenveld <groenvel@cse.psu.edu>
Cc: dbi-users@fugue.com
Subject: Re: Dates and Oracle
In-Reply-To: <199612040343.WAA25720@cse.psu.edu>
Message-Id: <Pine.SUN.3.93.961204084411.14866B-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> Read the book--orabook.exe that is. This forum is not really meant for these 
> is a RTFM question. You didnt send us any of your sample code, which is 

Unfortunately in the corporation, I don't have the books.  I don't
actually own the books.  If someone were to ask something like I have done
on the list, I would NOT say RTFM.  I would gladly help somone.

And yes, I actually did send out code, however there is a chance that I
missed a few people.  If I have missed someone, simply let me know.  It's
not that hard.  My mailbox at my university account is quite full so
I'm bound to miss somone.

Again, I'll post my example to the list.


> generic Oracle app. dev. questions. Neither are the Usenet groups since this 
> annoying. I'm not trying to flame you, you've fallen in the same trap as lots 
> of other people.

Why isn't it a valid question in the newsgroups?  Thats what it's there
for!  Support!

> Sorry, if I sound cranky, keep hacking Perl and Oracle,

-Iain

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02837-3@oink>;
          Wed, 4 Dec 1996 21:27:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849724495:9:23297:5; Wed, 04 Dec 96 18:34:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa923223; 4 Dec 96 18:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id FAA09164 for dbi-users-real; Wed, 4 Dec 1996 05:52:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id FAA09160 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 05:52:17 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA13573;
          Wed, 4 Dec 96 08:52:14 EST
Received: from localhost by superior (4.1/Sun-Client) id AA16481;
          Wed, 4 Dec 96 08:52:22 EST
Date: Wed, 4 Dec 1996 08:52:22 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: dbi-users@fugue.com
Subject: Stored procedures Update
Message-Id: <Pine.SUN.3.93.961204085039.14866E-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I sent this out on November 22nd originally.  

This is an update - I updated two lines in my code example.  From there it 
should work no problems.  Keep in mind that data you pass in to the Oracle
Stored Procedure MUST conform to the database contraints or else the 
code will not run and you will get a return error (which DBI is really
good about!  Thanks Tim!)
 
(one of the Gregs this is copied to asked me for this info - i have a
hunch
it's the one in Nashvillle..)

In order to use stored procedures using DBD:Oracle you need to understand
two principles. The two aspects are how to call the stored procdures, and
how to bind variables to these stored procedures. 
 
What I've done is used the OraPerl emulation to complete the task at hand. 
What you need to do is include the Oraperl emulation, login, define a
cursor to the given SQL call, and bind the variables to the given call,
execute, logout and that is that. 

        use Oraperl;
        local($login) = &ora_login($db_database, $db_username,
                $db_userpass); 
        local($cursor) = &ora_open($login, q{begin
                app.get_user_product_info(:1, :2, :3, :4); end;}); 
        $cursor->bind_param_inout(1,\$user_greeting, 100);
        $cursor->bind_param_inout(2,\$product_code,100);
        $cursor->bind_param_inout(3,\$size_bytes, 100);
        $cursor->bind_param_inout(4,\$type,100);
        $cursor->execute || die "execute $ora_errstr";
        @OUTPUT1 = ($size_bytes,$type);
        &ora_close($cursor);
        &ora_logoff($login);
        return(@OUTPUT1);

Bind_param_inout takes three arguments.  The variable handle which in this
case is an integer, the variable you are inputting or outputting to/from
the call, and the size of the input/output.  I used 100 here just in case. 
I know the three fields actually take less than 100 characters. 
 
I'm not sure if the size really matters or not (Tim?). UPDATE: I've found
that
it doesn't really matter, as long as the data meets the database's
constraints.
 
The handles in the call are always preceded by a colon (:).  The variables
in the call are always preceded by a backslash (\). 
 
In the above call, get_user_product_info would take in two input
arguments, $user and $product_code.  Get_user_product_info also returns
two variables which are the size in bytes and the type of file. 

Now this is a hypothetical call.  I do have some code which I've tested,
and the database call now exists (previously I said that it didn't while 
I was testing).  Anyway, this in fact does work.  If you have any
problems,
please feel free to contact me at any of the following addresses:
 
        ug940014@omega.scs.carleton.ca  (school account)
        ccscon60@ccs.carleton.ca        (school account until April)
        coopd590@nortel.ca              (work account until December 20th)
 
If for some reason I am doing something grossly wrong I should be told
about it (and the others here).
 
Kind of interesting that I added the above line and none of the DBI
developers said anything about my fetchrow/execute problem. *shrugs* I
guess
they wanted to leave this to me to figure out. *grin*
 
Hope this helps.
-Iain Bennett
 Nortel Global Support Processes and Productivity Co-op
 +1.613.723.4000 x 7078

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02837-7@oink>;
          Wed, 4 Dec 1996 21:27:48 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849726769:9:05887:3; Wed, 04 Dec 96 19:12:49 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1007693; 4 Dec 96 19:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id HAA09352 for dbi-users-real; Wed, 4 Dec 1996 07:58:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cs.sunysb.edu (sbcs.sunysb.edu [130.245.1.15]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id HAA09348 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 07:58:49 -0800 (PST)
Received: from sbgrad1.csdept (sbgrad1.cs.sunysb.edu [130.245.2.18]) 
          by cs.sunysb.edu (8.6.12/8.6.9) with SMTP id LAA11937 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 11:06:05 -0500
From: monika szulc <mszulc@CS.SunySB.EDU>
Message-Id: <199612041606.LAA11937@cs.sunysb.edu>
Subject: test
To: dbi-users@fugue.com
Date: Wed, 4 Dec 1996 10:56:25 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Test.Ignore.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02837-9@oink>;
          Wed, 4 Dec 1996 21:28:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849726839:10:08173:2; Wed, 04 Dec 96 19:13:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa906290; 4 Dec 96 19:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id HAA09360 for dbi-users-real; Wed, 4 Dec 1996 07:59:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dragon.ti.com (dragon.ti.com [192.94.94.61]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id HAA09356 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 07:59:39 -0800 (PST)
Received: from lesol1.dseg.ti.com ([157.170.147.17]) by dragon.ti.com (8.6.13) 
          with ESMTP id JAA13579 for <dbi-users@fugue.com>;
          Wed, 4 Dec 1996 09:59:07 -0600
Received: from nbserv2.dseg.ti.com (nbserv2.dseg.ti.com [157.170.51.109]) 
          by lesol1.dseg.ti.com (8.6.9/8.6.6) with SMTP id JAA07848 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 09:58:37 -0600
Received: from cna0210146 (cna0210146.dseg.ti.com) 
          by nbserv2.dseg.ti.com (4.1/SMI-4.1) id AA07042;
          Wed, 4 Dec 96 09:58:34 CST
Message-Id: <32A59FF0.122E@ti.com>
Date: Wed, 04 Dec 1996 09:59:44 -0600
From: Craig Cobb <cwcobb@ti.com>
Reply-To: cwcobb@ti.com
Organization: Texas Instruments
X-Mailer: Mozilla 3.01 (WinNT; I)
Mime-Version: 1.0
To: DBI Users Mail List <dbi-users@fugue.com>
Subject: DBI equivalent to Oraperl's &ora_titles?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am a new user of DBI and was wondering how I can extract the column
titles returned from a select query.  I know there is an Oraperl
function to do this, but I'd like to use the DBI functions directly.

The DBI spec I have mentions a titles function, but I can't get it to
work.  (I realize the spec I have is not stable.)  Here is what I'm
trying:

use DBI; 


$drh = DBI->install_driver( 'Oracle' );
$dbh = $drh->connect( 'MODEL','some_user','some_password');
die unless $dbh;

$sql = "select * from some_table";
$cursor = $dbh->prepare( $sql );
$cursor->execute;
@fields = $cursor->titles;
foreach $value (@fields) {
  print "$value\n";
}

Of course, this fails because with a Can't locate object method "titles"
via package "DBI::st" message.

Is there a DBI equivalent to Oraperl's &ora_titles function?

-- 
Regards,
      ----
     |    |           ===========================================
     |    |__<*> ___  Craig Cobb, RF/Microwave Technology Center
     |     _|III|_  | Phone: (972)927-4555    Fax: (972) 995-2243
_____|   /_ III _/  \ Email:  cwcobb@ti.com   TI MSGID: CC96
\_        /III/      |
  \   _  /III/      _|Texas Instruments
   \_/ \ \___>  _ -   13510 N. Central Expressway, MS230
        \      /      Dallas, TX 75243
         \    /       ===========================================
           - _\


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02837-42@oink>;
          Wed, 4 Dec 1996 21:30:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849734470:10:24896:3; Wed, 04 Dec 96 21:21:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa915177; 4 Dec 96 21:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id KAA09839 for dbi-users-real; Wed, 4 Dec 1996 10:22:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (sluggo.rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id KAA09835 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 10:22:32 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id NAA02216 for <dbi-users@fugue.com>;
          Wed, 4 Dec 1996 13:04:21 -0500
Message-ID: <32992EDC.32D7@rochgrp.com>
Date: Sun, 24 Nov 1996 21:30:04 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Dates and Oracle
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I for one, think that really it makes a lot of sense to waste more space
self-righteously antagonizing the author of a perfectly innocent post,
about what's appropriate and what's not, when one can simply answer the
question and get it over with.

-Terry
 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
> >Unfortunately in the corporation, I don't have the books.  I don't
> >actually own the books.
> The books are shipped on a CD. Ask your DBA to install them. Several 3rd party
> books are also available at your book store.
>
> >Why isn't it a valid question in the newsgroups?  Thats what it's there
> >for!  Support!
> Because the exact answer to your question is in the manuals. Thats what they're for!
>
> Someone, actually lots of people pay for the disk space and bandwidth of this list. However, the biggest cost is the time donated to manage or
follow the list.
>

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607       http://rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-7@oink>;
          Thu, 5 Dec 1996 07:37:06 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849737271:10:08836:1; Wed, 04 Dec 96 22:07:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa928215; 4 Dec 96 22:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id KAA09874 for dbi-users-real; Wed, 4 Dec 1996 10:31:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id KAA09870 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 10:30:50 -0800 (PST)
Received: from mordor.rsn.hp.com (mordor.rsn.hp.com [15.99.150.126]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id KAA19774 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 10:30:49 -0800 (PST)
Received: (from holder@localhost) by mordor.rsn.hp.com (8.7.1/8.7.1) 
          id MAA15886; Wed, 4 Dec 1996 12:36:43 -0600 (CST)
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: Problems connecting via NetSQL
From: Shane Holder <holder@mordor.rsn.hp.com>
Date: 04 Dec 1996 12:36:42 -0600
Message-ID: <fawn2vuma11.fsf@mordor.rsn.hp.com>
Lines: 170
X-Mailer: Red Gnus v0.66/Emacs 19.34

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm trying to connect via a minimaly configured client.  I'm using
TWO_TASK=T:<oracle_machine>:<sid>, sqlplus connects just fine, but DBD
doesn't connect at all, it fails at the first ora_login() in test.pl
(using scott/tiger for both sqlplus and DBD).  If I'm on the Oracle
server, and use ORACLE_SID, most tests pass just fine (it fails on
line 253 with invalid statement, but I'll figure that out later).

I've also tried different combinations of parameters to ora_login()
with TWO_TASK and ORACLE_SID not set, all failed.

I'm using DBI-0.73, and DBD-Oracle-0.43.

Other requested info:
==============================================================================
mordor$ perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=9, archname=PA-RISC1.1
    uname='hp-ux okamoto a.09.05 e 9000715 2013134500 8-user license '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib/pa1.1 /lib /usr/lib
    libs=-lnet -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib -L/opt/gnu/lib'

@INC: /usr/local/site_perl /opt/perl5.003/lib/PA-RISC1.1/5.003 /opt/perl5.003/lib /opt/perl5.003/lib/site_perl/PA-RISC1.1 /opt/perl5.003/lib/site_perl .

==============================================================================

mordor$ perl Makefile.PL INSTALLSITELIB=/usr/local/site_perl INSTALLSITEARCH=/usr/local/site_perl INSTALLMAN3DIR=/usr/local/man/man3

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /home/oracle/product/7.0.13
Reading /home/oracle/product/7.0.13/proc/lib/proc.mk.
Warning: forced to build static not dynamic on hpux 9
         See README and Makefile.PL for more information.
System: perl5.003 hp-ux okamoto a.09.05 e 9000715 2013134500 8-user license 
Compiler: cc -O -D_HPUX_SOURCE -Aa -I/usr/local/include
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   -I. -O -Aa
  LDFLAGS:  -Wl,-aarchive -L$(LIBHOME)
Linking with /home/oracle/product/7.0.13/lib/osntab.o -L/home/oracle/product/7.0.13/lib -locic  -lsqlnet -lora -L/home/oracle/product/7.0.13/lib -lpls -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lcl -lm 

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle

~/perl/DBD-Oracle-0.43

==============================================================================

mordor$ make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        ./perl -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib /opt/perl5.003/lib/ExtUtils/xsubpp  -typemap /opt/perl5.003/lib/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
        cc -c -I/home/oracle/product/7.0.13/rdbms/demo -I/usr/local/site_perl/DBI -I/opt/perl5.003/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE  Oracle.c
        cc -c -I/home/oracle/product/7.0.13/rdbms/demo -I/usr/local/site_perl/DBI -I/opt/perl5.003/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE  dbdimp.c
        rm -rf ./blib/arch/auto/DBD/Oracle/Oracle.a
        ar cr ./blib/arch/auto/DBD/Oracle/Oracle.a Oracle.o  dbdimp.o && : ./blib/arch/auto/DBD/Oracle/Oracle.a
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.a
Manifying ./blib/man3/DBD::Oraperl.3

~/perl/DBD-Oracle-0.43

==============================================================================

mordor$ make test TEST_VERBOSE=1
Writing "Makefile.aperl" for this perl

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /home/oracle/product/7.0.13
Reading /home/oracle/product/7.0.13/proc/lib/proc.mk.
Warning: forced to build static not dynamic on hpux 9
         See README and Makefile.PL for more information.
System: perl5.003 hp-ux okamoto a.09.05 e 9000715 2013134500 8-user license 
Compiler: cc -O -D_HPUX_SOURCE -Aa -I/usr/local/include
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   -I. -O -Aa
  LDFLAGS:  -Wl,-aarchive -L$(LIBHOME)
Linking with /home/oracle/product/7.0.13/lib/osntab.o -L/home/oracle/product/7.0.13/lib -locic  -lsqlnet -lora -L/home/oracle/product/7.0.13/lib -lpls -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lcl -lm 


Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile.aperl for DBD::Oracle
        make -f Makefile.aperl perl
Writing ./perlmain.c
        cd . && cc -c  -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE  -D_HPUX_SOURCE -Aa -I/usr/local/include -O \
           -DVERSION=\"0.43\" \
        -DXS_VERSION=\"0.43\" -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE perlmain.c
        cat ./blib/arch/auto/DBD/Oracle/extralibs.ld >> ./blib/arch/auto/DBD/Oracle/extralibs.all
        cat /opt/perl5.003/lib/PA-RISC1.1/5.003/auto/DynaLoader/extralibs.ld >> ./blib/arch/auto/DBD/Oracle/extralibs.all
        cc -L/usr/local/lib -L/opt/gnu/lib -Wl,-E -Wl,-B,deferred  -o perl -O ./perlmain.o /opt/perl5.003/lib/PA-RISC1.1/5.003/CORE/libperl.a /opt/perl5.003/lib/PA-RISC1.1/5.003/auto/DynaLoader/DynaLoader.a  ./blib/arch/auto/DBD/Oracle/Oracle.a `cat ./blib/arch/auto/DBD/Oracle/extralibs.all` -lnet -lndbm -ldld -lm -lc -lndir -lcrypt 
To install the new "perl" binary, call
    make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
    make -f Makefile.aperl map_clean
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.66 cusr  0.13 csys =  0.79 cpu)
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib test.pl
Oraperl test application $Revision: 1.28 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='T:venom:v7cobra')
ora_login: 6401: ORA-06401: NETCMN: invalid driver designator (DBD: login failed)

Try to connect to the database using an oracle tool like sqlplus
only if that works should you suspect problems with DBD::Oracle.
Try leaving dbname value empty and set dbuser to name/passwd@dbname.

Test aborted.
*** Error exit code 2

Stop.


-- 
Shane Holder                                 e-mail: holder@rsn.hp.com
Hewlett Packard                               phone:     (214)497-4182
3000 Waterview                       Never underestimate the bandwidth
Richardson, TX 75083                 of a truck moving at 70 MPH.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-16@oink>;
          Thu, 5 Dec 1996 07:38:36 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849739720:10:22883:0; Wed, 04 Dec 96 22:48:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1022873; 4 Dec 96 22:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id MAA10252 for dbi-users-real; Wed, 4 Dec 1996 12:05:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id MAA10248 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 12:05:20 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id MAA05073;
          Wed, 4 Dec 1996 12:04:09 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id MAA01876; Wed, 4 Dec 1996 12:04:05 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id MAA04420;
          Wed, 4 Dec 1996 12:03:29 -0800
Date: Wed, 4 Dec 1996 12:03:29 -0800
From: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Message-Id: <199612042003.MAA04420@edu-intern2.eng.sun.com>
To: descarte@hermetica.com, dbi-users@fugue.com
Subject: DBD Installation prob
Cc: gaurav.khillan@eng.sun.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi All,

I am trying to install DBD::Oracle on my system ( Solaris 2.5,Sparc ) .

I have already installed Oracle 7.3.2 and DBI on my machine . 

Problem :
--------

On trying to install DBD::Oracle package by doing ( perl5.003 Makefile.PL ), I
get an error saying :

       Can't locate DBI.pm in @INC at Makefile.PL line 18.
BEGIN failed--compilation aborted at Makefile.PL line 18.

 Line 18 is  ::    use DBI-0.73 ;


Now DBI.pm is already installed in  $DBI_HOME/lib/perl5/site_perl/DBI.pm ; when
I had installed DBI ( make install ), the tests were also OK.


If I give the path of DBI.pm file at Line 18 ; it comes with a syntax error
message.


Perl Location : /net/........./gnu/sparc/bin/perl5.003
DBI.pm ''     : /home/gkhillan/.../DBI-0.73/lib/perl5/site_perl/DBI.pm
DBD Loc       : /home/gkhillan/.../DBD-Oracle-0.43


Can someone offer any suggestions.

Thanks.

Gaurav.





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-29@oink>;
          Thu, 5 Dec 1996 07:40:19 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849744177:10:13521:0; Thu, 05 Dec 96 00:02:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1013506; 5 Dec 96 0:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id NAA10539 for dbi-users-real; Wed, 4 Dec 1996 13:06:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cliff.mediavillage.org (cliff.mediavillage.org [194.233.172.32]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id NAA10535 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 13:06:34 -0800 (PST)
Received: from [194.233.172.2] (cruiser.artlabeurope.com [194.233.172.2]) 
          by cliff.mediavillage.org (8.6.12/8.6.12) with SMTP id WAA08843 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 22:02:19 +0100
Date: Wed, 04 Dec 1996 22:07:09 +0000
From: Steve Ivy <steve@artlabeurope.com>
Reply-To: steve@artlabeurope.com
Subject: Problems installing DBD::mSQLperl Makefile.PL perl Makefile.PL
To: DBI List <dbi-users@fugue.com>
Message-ID: <MailDrop1.2d7dPPC.961204220709@cruiser.artlabeurope.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

hi all,
     this may be a _very simple_ problem, but nonetheless it's got me
stumped. DBM.pm is in 
     /usr/local/lib/perl5/DBM.pm 
and also 
     /usr/local/lib/perl5/site_perl/i386-freebsd/DBM.pm

and from what i can surmise, the interpreter can't find it. but i am new
to many things- unix, perl, and rdbms's being three of the newest. (so
cut me a _little_ slack ;) )

     this is the result of 'perl Makefile.PL' :

: perl Makefile.PL 
Can't find loadable object for module DBI in @INC
(/usr/local/lib/perl5/i386-freebsd/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/i386-freebsd
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/i386-freebsd .) at
/usr/local/lib/perl5/DBI.pm line 32
BEGIN failed--compilation aborted at Makefile.PL line 16.

does it matter where this is being called from? (i had no problems with
DBI and mSQL, both of which i did  before this)

     any help would be appreciated.

     thanks-
               --steve

below is the perl config results, if it helps.

output of:
      perl -e 'use Config; print Config::myconfig()'
------------------------------------------------------------------------
------------

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=freebsd, osver=2.1.0-release, archname=i386-freebsd
    uname='freebsd toplink1.toplink.net 2.1.0-release freebsd
2.1.0-release #0: mon oct 14 21:52:48 met dst 1996
ck@mail.herrenberg.netsurf.de:usrcsyscompiletoplink_generic3 i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=2.6.3
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='char', d_stdstdio=, usevfork=true
    voidflags=15, castflags=0, d_casti32=, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=31
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-lgdbm -lm -lc -lcrypt
    libc=/usr/lib/libc.so.2.2, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=define, ccdlflags=' '
    cccdlflags='-DPIC -fpic', lddlflags='-Bshareable  -L/usr/local/lib'

------------------------------------------------------------------------
-------- 
      Steve Ivy -+- ArtLab Europe -+- Print / Interactive / Web / Design

            #!/usr/bin/perl       #VRML V1.0 ascii      <html x.x>

            http://artlabeurope.com/ut/steve  <!-- old, though -->



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-44@oink>;
          Thu, 5 Dec 1996 07:42:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849748686:10:01079:0; Thu, 05 Dec 96 01:18:06 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa914987; 5 Dec 96 1:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id OAA10957 for dbi-users-real; Wed, 4 Dec 1996 14:51:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id OAA10953 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 14:51:51 -0800 (PST)
Received: from mordor.rsn.hp.com (mordor.rsn.hp.com [15.99.150.126]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id OAA14844;
          Wed, 4 Dec 1996 14:51:50 -0800 (PST)
Received: (from holder@localhost) by mordor.rsn.hp.com (8.7.1/8.7.1) 
          id QAA18247; Wed, 4 Dec 1996 16:57:44 -0600 (CST)
To: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Cc: descarte@hermetica.com, dbi-users@fugue.com
Subject: Re: DBD Installation prob
References: <199612042003.MAA04420@edu-intern2.eng.sun.com>
From: Shane Holder <holder@mordor.rsn.hp.com>
Date: 04 Dec 1996 16:57:43 -0600
In-Reply-To: gaurav.khillan@eng.sun.com's message of Wed, 4 Dec 1996 12:03:29 -0800
Message-ID: <faw7mmxncig.fsf@mordor.rsn.hp.com>
Lines: 67
X-Mailer: Red Gnus v0.66/Emacs 19.34

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>>>>> "Gaurav" == Gaurav Khillan <gaurav.khillan@eng.sun.com> writes:

  Gaurav>        Can't locate DBI.pm in @INC at Makefile.PL line 18.
  Gaurav> BEGIN failed--compilation aborted at Makefile.PL line 18.

Obviously this is perl complaining about not being able to find the
module.  There are several solutions you can use.

  Gaurav> Now DBI.pm is already installed in
  Gaurav> $DBI_HOME/lib/perl5/site_perl/DBI.pm ; when

From the perl man page:

      PERL5LIB    A colon-separated list of directories in which to look for
                  Perl library files before looking in the standard library
                  and the current directory.  If PERL5LIB is not defined,
                  PERLLIB is used.  When running taint checks (because the
                  script was running setuid or setgid, or the -T switch was
                  used), neither variable is used.  The script should
                  instead say

so

  setenv PERL5LIB $DBI_HOME/lib/perl5/site_perl

would find your DBI lib, but if you install your modules in
non-standard places (which it looks like used the PREFIX option to
perl Makefile.PL which I don't like, see below for a better way to
install modules), then PERL5LIB could get very long.

I use PERL5LIB when testing and installing CPAN modules, it's quick
and dirty, but not good to rely on when writing perl scripts.

You could also use the -I argument to perl:

  perl -I$DBI_HOME/lib/perl5/site_perl

would also work, but it might be difficult since your perl is being
run by a makefile and you'd have to track down how perl is being
called.  I use the -I when running CPAN test scripts by hand.

The other option is to modify the perl scripts and add:
  use lib '$DBI_HOME/lib/perl5/site_perl';
  use DBI;
  (be sure and expand DBI_HOME, I don't think the use lib will expand
  env variables)

IMHO this is the cleanest solution for scripts you are writing, but a
pain for CPAN module test scripts.

Just in case anyone's interested, I don't install modules in
/<perlhome>/lib/site_perl, I get a standard distribution from HP, and
then do my own value add of CPAN modules in /usr/local/site_perl.  If
you build modules with

perl Makefile.PL INSTALLSITELIB=/usr/local/site_perl INSTALLSITEARCH=/usr/local/site_perl INSTALLMAN3DIR=/usr/local/man/man3

All files associated with a module will get installed in the specified
directories, and nothing will reside under the perl5 installation
tree, then use one of the above specified methods of getting to the
modules.

-- 
Shane Holder                                 e-mail: holder@rsn.hp.com
Hewlett Packard                               phone:     (214)497-4182
3000 Waterview
Richardson, TX 75083


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-46@oink>;
          Thu, 5 Dec 1996 07:42:36 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849748713:9:15107:3; Thu, 05 Dec 96 01:18:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1001102; 5 Dec 96 1:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA11043 for dbi-users-real; Wed, 4 Dec 1996 15:21:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id PAA11039 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 15:21:22 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id SAA11154;
          Wed, 4 Dec 1996 18:22:53 -0500 (EST)
Message-Id: <199612042322.SAA11154@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Terry Dixon <tdixon@rochgrp.com>
cc: dbi-users@fugue.com
Subject: Re: Dates and Oracle
In-reply-to: Your message of "Sun, 24 Nov 1996 21:30:04 PST." <32992EDC.32D7@rochgrp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 04 Dec 1996 18:21:08 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>I for one, think that really it makes a lot of sense to waste more space
>self-righteously antagonizing the author of a perfectly innocent post,
>about what's appropriate and what's not, when one can simply answer the
>question and get it over with.

I disagree. I think it does people a disservice to not explain why their messages to this maillist, a Usenet group, or any forum may be inappropriate. Its certainly a better alternative to the killfile. 

Do you really think I'm "self-righteously antagonizing" Iain by offering him a solution with sample code and more importantly, ways to answer future questions on his own? Do you think your Oracle Support technician is being self righteous when she tells you to read chapter 3 of the Server Utilities Book for the complete procedure for reorganizing tablespaces? Do you think its wrong for a maillist to restrict itself to DBI specific questions? Do you think its wrong for the readers of a Usenet group to expect posters to have first searched the information at their fingertips before posting a message to thousands of machine around the world? Do you think Iain and others are better off not knowing that their questions are answered in the READMEs, test.pl, dbi-users archive at http://www.coe.missouri.edu/~faq/lists/dbi.html, comp.databases.oracle.* comp.lang.perl.* archives at Dejanews, the Oracle FAQ at http://www.bf.rmit.edu.au/~orafaq/, the Perl FAQ at http://www.perl.com/perl/,!
!
 or God-forbid the Oracle books sitting in $ENV{ORACLE_DOC}?

Do you see my point yet? I hope so. I've spent much of the last year or so preaching Perl5 and the DBI/DBD-Oracle modules to Oracle DBAs. I dont do all day tutorials and I dont try to give them all the answers, but I like to think that I give them a taste of how cool Perl and Oracle are and help them find the tools they can use to learn about it on their own.

John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-50@oink>;
          Thu, 5 Dec 1996 07:43:09 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849748750:9:15207:2; Thu, 05 Dec 96 01:19:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa915142; 5 Dec 96 1:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA11122 for dbi-users-real; Wed, 4 Dec 1996 15:38:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id PAA11118 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 15:38:50 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id PAA07060;
          Wed, 4 Dec 1996 15:36:43 -0800
Date: Wed, 4 Dec 1996 15:36:43 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: dbi-users@fugue.com
Subject: Re: Eternal flamewar (was "Dates and Oracle")
In-Reply-To: <199612042322.SAA11154@cse.psu.edu>
Message-ID: <Pine.SOL.3.95.961204153210.4991F-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This is hilarious.  I came in this morning and there were simultaneous
unrelated flamewars on two of the conferences I subscribe to, both
about whether the messages M1,...,Mn were appropriate to the
conference.  I don't know about where you live, but in Seattle I'd
strongly suggest you all should leave the terminal for the afternoon
to go buy some full spectrum lighting, then take tomorrow off to go 
skiing. ;-)

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-63@oink>;
          Thu, 5 Dec 1996 07:44:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849754651:9:00335:0; Thu, 05 Dec 96 02:57:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1017747; 5 Dec 96 2:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA11422 for dbi-users-real; Wed, 4 Dec 1996 17:03:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastion.seqeb.gov.au (bastion.seqeb.gov.au [147.209.142.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id RAA11418 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 17:03:13 -0800 (PST)
Received: by bastion.seqeb.gov.au; (5.65/GJW020796b) id AA32030;
          Thu, 5 Dec 1996 11:02:41 +1000
Received: from proxy.seqeb.gov.au(147.209.206.2) by bastion.seqeb.gov.au 
          via smap (V1.3) id sma025528; Thu Dec 5 11:02:27 1996
Received: by proxy.seqeb.gov.au; (5.65v3.2/GJW220296b) id AA08870;
          Thu, 5 Dec 1996 11:02:26 +1000
Received: from relay.seqeb.gov.au(147.209.166.6) by proxy.seqeb.gov.au 
          via smap (V1.3) id sma008844; Thu Dec 5 11:02:18 1996
Received: from svqtsc.seqeb.gov.au by un.seqeb.gov.au; (5.65/GJW251095a) 
          id AA02587; Thu, 5 Dec 1996 11:02:14 +1000
Received: from [147.209.174.48] by svqtsc.seqeb.gov.au; (5.65/GJW251095a) 
          id AA02173; Thu, 5 Dec 1996 11:02:12 +1000
From: Simon Inglis <si003@seqeb.gov.au>
To: dbi-users@fugue.com
Subject: Calling stored procedure in Oracle
Message-Id: <SIMEON.9612051104.A@hades.seqeb.gov.au>
Date: Thu, 5 Dec 1996 11:02:04 +1000 ()
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.0.9
X-Authentication: none
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi all,
  I have written a perl subroutine that calls an 
Oracle stored procedure.  It seems to work ok most of 
the time, except occasionaly I get an error from the 
execute method telling me that:
  "Placeholder :p1 has mutated after bind"

Any one has any ideas? Here is the code:

#
# exec_ora_sp
# usage: exec_ora_sp (login, sp_name, param_list)
# Calles the stored procedure sp_name using the oracle login login
# with the params in the param_list
#
sub exec_ora_sp {
  my ($login, $sp_name, @params) = @_;
  my ($qry_str, $i, $param, $first, $cursor);

  # Check params
  die "exec_ora_sp: no login parameter\n" unless ($login);
  die "exec_ora_sp: no stored procedure param\n" unless ($sp_name);

  my($qry_str) = "begin $sp_name(";
  $i = 1;
  $first = "TRUE";
  foreach $param (@params) {
    if ($first eq "TRUE") {
  my($qry_str) = "begin $sp_name(";
  $i = 1;
  $first = "TRUE";
  foreach $param (@params) {
    if ($first eq "TRUE") {
      $qry_str = $qry_str . ":$i";
      $first = "FALSE";
    } else {
      $qry_str = $qry_str . ", :$i";
    }
    $i = $i + 1;
  }
  $qry_str = $qry_str . "); end;";

  $cursor = ora_open($login, $qry_str);
  die "exec_ora_sp: Unable to prepare cursor $qry_str. Error: $ora_errstr\n" un


  $i = 2;
  foreach $param (@params) {
    $cursor->bind_param_inout($i - 1, \@_[$i], 255);
    $i = $i + 1;
  }
  foreach $param (@params) {
    $cursor->bind_param_inout($i - 1, \@_[$i], 255);
    $i = $i + 1;
  }

  if (!($cursor->execute)) {
    print ("exec_ora_sp: Unable to execute cursor $qry_str.\n");
    printf ("Params: %s\n", join(",", @params));
    print ("Oracle Error: $ora_errstr\n");
    die "\n";
  }
  ora_close($cursor);
}

----------------------
Simon Inglis
si003@seqeb.gov.au




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05036-65@oink>;
          Thu, 5 Dec 1996 07:44:59 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849754783:9:00681:4; Thu, 05 Dec 96 02:59:43 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa900678; 5 Dec 96 2:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA11222 for dbi-users-real; Wed, 4 Dec 1996 16:18:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA11218 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 16:18:00 -0800 (PST)
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by gw.home.vix.com (8.8.3/) with ESMTP id QAA26410 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 16:17:57 -0800 (PST)
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id TAA11760;
          Wed, 4 Dec 1996 19:08:06 -0500 (EST)
Message-Id: <199612050008.TAA11760@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Shane Holder <holder@mordor.rsn.hp.com>
cc: dbi-users@fugue.com, Tim.Bunce@ig.co.uk
Subject: Re: Problems connecting via NetSQL
In-reply-to: Your message of "04 Dec 1996 12:36:42 CST." <fawn2vuma11.fsf@mordor.rsn.hp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 04 Dec 1996 19:06:19 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

You know that SqlNet V1 is deprecated? Have you tried setting ORACLE_USERID to 
scott/tiger@T:host:sid and unsetting ORACLE_SID and TWO_TASK?
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05241-9@oink>;
          Thu, 5 Dec 1996 07:48:40 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849769159:9:03953:2; Thu, 05 Dec 96 06:59:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1024741; 5 Dec 96 6:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id UAA11877 for dbi-users-real; Wed, 4 Dec 1996 20:48:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from alfred.ccs.carleton.ca (root@alfred.ccs.carleton.ca [134.117.1.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id UAA11873 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 20:48:45 -0800 (PST)
Received: from superior (superior.ccs.carleton.ca) 
          by alfred.ccs.carleton.ca (4.1/SMI-4.0) id AA04868;
          Wed, 4 Dec 96 23:48:36 EST
Received: from localhost by superior (4.1/Sun-Client) id AA14959;
          Wed, 4 Dec 96 23:48:44 EST
Date: Wed, 4 Dec 1996 23:48:44 -0500 (EST)
From: Iain Bennett <ccscon60@ccs.carleton.ca>
X-Sender: ccscon60@superior
To: Simon Inglis <si003@seqeb.gov.au>
Cc: dbi-users@fugue.com
Subject: Re: Calling stored procedure in Oracle
In-Reply-To: <SIMEON.9612051104.A@hades.seqeb.gov.au>
Message-Id: <Pine.SUN.3.93.961204234621.14580B-100000@superior>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> the time, except occasionaly I get an error from the 
> execute method telling me that:
>   "Placeholder :p1 has mutated after bind"

Something I found is, if your place holders are not set to a specific
value (i.e. you just set it to local, i.e.:

local(placeholder);

instead of:

local(placeholder)="";

Then you run into this problem.  

> #
> sub exec_ora_sp {
>   my ($login, $sp_name, @params) = @_;
>   my ($qry_str, $i, $param, $first, $cursor);

Double check that all three values are getting values in the first assign.
In the second, make sure all five have a value.

 \|/ ____ \|/  Iain Bennett			ccscon60@ccs.carleton.ca
 -@~/ oO \~@-  Nortel-Magellan GSP&P		http://omega.scs.carleton.ca/
 /_( \__/ )_\  CCS Student Consultant			~ug940014/
    \__U_/     Feedback Communications Limited



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07713-7@oink>;
          Thu, 5 Dec 1996 10:57:15 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849776156:9:26390:0; Thu, 05 Dec 96 08:55:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa926366; 5 Dec 96 8:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id WAA12012 for dbi-users-real; Wed, 4 Dec 1996 22:24:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastion.seqeb.gov.au (bastion.seqeb.gov.au [147.209.142.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id WAA12008 
          for <dbi-users@fugue.com>; Wed, 4 Dec 1996 22:24:14 -0800 (PST)
Received: by bastion.seqeb.gov.au; (5.65/GJW020796b) id AA05018;
          Thu, 5 Dec 1996 16:23:42 +1000
Received: from proxy.seqeb.gov.au(147.209.206.2) by bastion.seqeb.gov.au 
          via smap (V1.3) id sma020548; Thu Dec 5 16:23:30 1996
Received: by proxy.seqeb.gov.au; (5.65v3.2/GJW220296b) id AA21775;
          Thu, 5 Dec 1996 16:23:29 +1000
Received: from relay.seqeb.gov.au(147.209.166.6) by proxy.seqeb.gov.au 
          via smap (V1.3) id sma021849; Thu Dec 5 16:22:38 1996
Received: from svqtsc.seqeb.gov.au by un.seqeb.gov.au; (5.65/GJW251095a) 
          id AA17366; Thu, 5 Dec 1996 16:22:33 +1000
Received: from [147.209.174.48] by svqtsc.seqeb.gov.au; (5.65/GJW251095a) 
          id AA20785; Thu, 5 Dec 1996 16:22:32 +1000
From: Simon Inglis <si003@seqeb.gov.au>
To: Iain Bennett <ccscon60@ccs.carleton.ca>
Cc: dbi-users@fugue.com
Subject: Re: Calling stored procedure in Oracle
Message-Id: <SIMEON.9612051623.A@hades.seqeb.gov.au>
Date: Thu, 5 Dec 1996 16:22:23 +1000 ()
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.0.9
X-Authentication: none
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Wed, 4 Dec 1996 23:48:44 -0500 (EST) Iain Bennett 
<ccscon60@ccs.carleton.ca> wrote:

> > the time, except occasionaly I get an error from the 
> > execute method telling me that:
> >   "Placeholder :p1 has mutated after bind"
> 
> Something I found is, if your place holders are not set to a specific
> value (i.e. you just set it to local, i.e.:
> 
> local(placeholder);
> 
> instead of:
> 
> local(placeholder)="";
> 
> Then you run into this problem.  
> 
> > #
> > sub exec_ora_sp {
> >   my ($login, $sp_name, @params) = @_;
> >   my ($qry_str, $i, $param, $first, $cursor);
> 
> 

I just bumped into something interesting. If I do this

 local($custno)="";
 local($custname)="";
 $custno = "123123";
 exec_ora_sp($login, "get_customer_name", $custno, 
   $custname);

it fails with custno, sometimes. However if i do this

 local($custno)="";
 local($custname)="";
 $my_custno = "$custno";
 exec_ora_sp($login, "get_customer_name", $my_custno, 
   $custname);

it will work every time. I have also noticed that it only 
seems to be a problem with IN params, not OUT params.  

----------------------
Simon Inglis
si003@seqeb.gov.au




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08413-0@oink>;
          Thu, 5 Dec 1996 12:44:00 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849788148:10:17895:0; Thu, 05 Dec 96 12:15:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa921178; 5 Dec 96 12:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id BAA12548 for dbi-users-real; Thu, 5 Dec 1996 01:52:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cliff.mediavillage.org (cliff.mediavillage.org [194.233.172.32]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id BAA12534 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 01:52:16 -0800 (PST)
Received: from [194.233.172.2] (cruiser.artlabeurope.com [194.233.172.2]) 
          by cliff.mediavillage.org (8.6.12/8.6.12) with SMTP id KAA14130 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 10:47:54 +0100
Date: Thu, 05 Dec 1996 10:52:48 +0000
From: Steve Ivy <steve@artlabeurope.com>
Reply-To: steve@artlabeurope.com
Subject: install probs- saga continues
To: DBI List <dbi-users@fugue.com>
Message-ID: <MailDrop1.2d7dPPC.961205105248@cruiser.artlabeurope.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

hi again-
     i'm gonna be pulling my hair out soon... i got mSQL, DBI, and
DBD::mSQL installed ok (it seems) but now when i do the 
     /usr/local/Minerva/bin/msqladmin create test

     from the readme i get a server error: permission denied... i set up
msql.acl so that root and the msql user have read and write access, but
don't know what else to check. i know- it's probably something simple...
*sigh* what a job.

     if anyone has ideas, you can send 'em here direct- no need to use
list bandwidth.

          thanks-
               --steve
------------------------------------------------------------------------
-------- 
      Steve Ivy -+- ArtLab Europe -+- Print / Interactive / Web / Design

            #!/usr/bin/perl       #VRML V1.0 ascii      <html x.x>

            http://artlabeurope.com/ut/steve  <!-- old, though -->



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10642-0@oink>;
          Thu, 5 Dec 1996 17:38:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849807274:10:00011:4; Thu, 05 Dec 96 17:34:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id ab1029955; 5 Dec 96 17:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id GAA12951 for dbi-users-real; Thu, 5 Dec 1996 06:26:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id GAA12947 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 06:26:53 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id JAA19608;
          Thu, 5 Dec 1996 09:28:25 -0500 (EST)
Message-Id: <199612051428.JAA19608@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Simon Inglis <si003@seqeb.gov.au>
cc: Iain Bennett <ccscon60@ccs.carleton.ca>, dbi-users@fugue.com
Subject: Re: Calling stored procedure in Oracle
In-reply-to: Your message of "Thu, 05 Dec 1996 16:22:23 +1000." <SIMEON.9612051623.A@hades.seqeb.gov.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 05 Dec 1996 09:26:36 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm fairly certain local() is deprecated by my(). Perhaps thats the root of 
your errors.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11913-0@oink>;
          Thu, 5 Dec 1996 18:48:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849811458:9:16332:0; Thu, 05 Dec 96 18:44:18 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1023131; 5 Dec 96 18:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id HAA13089 for dbi-users-real; Thu, 5 Dec 1996 07:52:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id HAA13085 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 07:52:49 -0800 (PST)
Received: from mordor.rsn.hp.com (mordor.rsn.hp.com [15.99.150.126]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id HAA12640 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 07:52:47 -0800 (PST)
Received: (from holder@localhost) by mordor.rsn.hp.com (8.7.1/8.7.1) 
          id JAA19502; Thu, 5 Dec 1996 09:58:22 -0600 (CST)
To: John D Groenveld <groenvel@cse.psu.edu>
Cc: Shane Holder <holder@mordor.rsn.hp.com>, dbi-users@fugue.com, 
    Tim.Bunce@ig.co.uk
Subject: Re: Problems connecting via NetSQL
References: <199612050008.TAA11760@cse.psu.edu>
From: Shane Holder <holder@mordor.rsn.hp.com>
Date: 05 Dec 1996 09:58:21 -0600
In-Reply-To: John D Groenveld's message of Wed, 04 Dec 1996 19:06:19 EST
Message-ID: <fawviahkmoy.fsf@mordor.rsn.hp.com>
Lines: 28
X-Mailer: Red Gnus v0.66/Emacs 19.34

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>>>>> "John" == John D Groenveld <groenvel@cse.psu.edu> writes:

  John> You know that SqlNet V1 is deprecated? Have you tried setting
  John> ORACLE_USERID to scott/tiger@T:host:sid and unsetting
  John> ORACLE_SID and TWO_TASK?

Just tried that, and it failed with the same error.

mordor$ ./perl -I/usr/local/site_perl ./test.pl
Oraperl test application $Revision: 1.28 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger@t:venom:v7cobra' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='')
ora_login: 6401: ORA-06401: NETCMN: invalid driver designator (DBD: login failed)

Try to connect to the database using an oracle tool like sqlplus
only if that works should you suspect problems with DBD::Oracle.
Try leaving dbname value empty and set dbuser to name/passwd@dbname.

-- 
Shane


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11913-2@oink>;
          Thu, 5 Dec 1996 18:48:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849811547:9:16768:0; Thu, 05 Dec 96 18:45:47 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa916726; 5 Dec 96 18:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id IAA13109 for dbi-users-real; Thu, 5 Dec 1996 08:00:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lugh.kerris.com (lugh.kerris.com [142.77.242.145]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id IAA13105 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 08:00:09 -0800 (PST)
Received: (from mkerr@localhost) by lugh.kerris.com (8.6.12/8.6.12) id LAA05581;
          Thu, 5 Dec 1996 11:06:50 -0500
Date: Thu, 5 Dec 1996 11:06:49 -0500 (EST)
From: Mike Kerr <mkerr@kerris.com>
To: DBI-Users List <dbi-users@fugue.com>
Subject: Row counts
Message-ID: <Pine.BSF.3.91.961205110526.5570A-100000@lugh.kerris.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Is there any mechanism that gives me the number of rows returned in a 
query?

I know that msqlperl has a $sth->rowcount or something of the sort.  Is 
there such a thing for DBD?

Mike.

=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Kerr                | http://www.net/~mkerr
Kerr Information Systems | http://www.kerris.com/
mkerr@kerris.com         | Web Guy, etc.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11992-0@oink>;
          Thu, 5 Dec 1996 19:01:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849812233:10:27566:2; Thu, 05 Dec 96 18:57:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1027505; 5 Dec 96 18:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id IAA13177 for dbi-users-real; Thu, 5 Dec 1996 08:24:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id IAA13173 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 08:24:28 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id QAA20658;
          Thu, 5 Dec 1996 16:22:43 GMT
Date: Thu, 5 Dec 1996 16:22:46 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Mike Kerr <mkerr@kerris.com>
cc: DBI-Users List <dbi-users@fugue.com>
Subject: Re: Row counts
In-Reply-To: <Pine.BSF.3.91.961205110526.5570A-100000@lugh.kerris.com>
Message-ID: <Pine.SGI.3.95.961205162118.28393B-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Thu, 5 Dec 1996, Mike Kerr wrote:

> From: Mike Kerr <mkerr@kerris.com>
> To: DBI-Users List <dbi-users@fugue.com>
> Subject: Row counts
> 
> Is there any mechanism that gives me the number of rows returned in a 
> query?
> 
> I know that msqlperl has a $sth->rowcount or something of the sort.  Is 
> there such a thing for DBD?
> 

Which other DBD?  If you are asking about Oracle the answer is no.

Andy.

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12960-19@oink>;
          Thu, 5 Dec 1996 23:14:07 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849817835:10:27133:1; Thu, 05 Dec 96 20:30:35 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa916926; 5 Dec 96 20:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA13359 for dbi-users-real; Thu, 5 Dec 1996 09:20:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cedb.dpcsys.com (cedb.DPCSYS.COM [165.90.143.3]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id JAA13355 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 09:20:16 -0800 (PST)
Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.2/8.8.2) 
          with SMTP id RAA12086; Thu, 5 Dec 1996 17:14:00 GMT
Date: Thu, 5 Dec 1996 09:14:00 -0800 (PST)
From: Dan Busarow <dan@dpcsys.com>
To: Mike Kerr <mkerr@kerris.com>
cc: DBI-Users List <dbi-users@fugue.com>
Subject: Re: Row counts
In-Reply-To: <Pine.BSF.3.91.961205110526.5570A-100000@lugh.kerris.com>
Message-ID: <Pine.UW2.3.95.961205091223.11921C-100000@cedb>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Thu, 5 Dec 1996, Mike Kerr wrote:
> I know that msqlperl has a $sth->rowcount or something of the sort.  Is 
> there such a thing for DBD?

Since you mention msqlperl, the DBI form for that function is

	$cursor->func('_NumRows');

It's mSQL specific.

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems                                                dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13054-2@oink>;
          Thu, 5 Dec 1996 23:22:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849828060:10:14746:4; Thu, 05 Dec 96 23:21:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1014713; 5 Dec 96 23:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id MAA13948 for dbi-users-real; Thu, 5 Dec 1996 12:01:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from hoofer.doit.wisc.edu (hoofer.doit.wisc.edu [144.92.229.67]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id MAA13944 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 12:01:42 -0800 (PST)
Received: (from toddn@localhost) by hoofer.doit.wisc.edu (AIX4.2/UCB 8.7/8.7) 
          id OAA26732 for dbi-users@fugue.com;
          Thu, 5 Dec 1996 14:01:40 -0600 (CST)
Date: Thu, 5 Dec 1996 14:01:40 -0600 (CST)
From: Todd Neidinger <tneid@hoofer.doit.wisc.edu>
Message-Id: <199612052001.OAA26732@hoofer.doit.wisc.edu>
To: dbi-users@fugue.com
Subject: blob, dbi, oracle problem

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi all,

I have been struggling for the last two days to try to get the the blob
samples working(README.longs).  I am running perl5.003, DBD Oracle 0.43,
DBI 0.73, Oracle 7.3.2, all on AIX 4.1.4.  I have been able to get the
long raw field inserted, but am unable to use blob_read to get it back
out. 

Here is the code that doesn't work.

#!/usr/local/bin/perl5

use DBI;

{
        $DBI::dbi_debug=1;
        $drh= DBI->install_driver('Oracle');
        $dbh=$drh->connect('','','');

        die unless $dbh;

        $cursor=$dbh->prepare("SELECT * from test where co1='hi'");
        $cursor->execute;
        ($field1,$field2,$field3)=$cursor->fetchrow;
       
    while (1)
    {
        $frag = $cursor->blob_read(1, 0, 512);
        print ("iherr=$DBI::errstr\n");
        print ("err=$DBI::err\n");
        print("frag = $frag\n");
        last unless defined $frag;
        $ll = length $frag;
        last unless $ll;
        $blob .= $frag;
        $offset += $ll;
    }
    print $blob, $buf;


        $cursor->finish;

        $dbh->disconnect;
        exit;
}

This is the output when I run this:

DBI->install_driver DBI Oracle at test.pl line 9
DBI->install_driver(Oracle) loaded
DBI->install_driver(Oracle) = DBI::dr=HASH(0x20077d8c)
iherr=ORA-01016: This function can be called only after a fetch (DBD:
oflng error)
err=1016
frag = 
DBI::END
DBI::disconnect_all DBI
DBI::disconnect_all for 'Oracle'
DBI::END complete
 
I am running against a test table with 3 columns defined as:

co1 char(30),
co2 long raw,
co3 char(30)

I know that the fetchrow is working, because I can print co1, and co3. I
have searched everywhere for an answer. Any ideas?

Todd Neidinger  
University of Wisconsin Madison/DoIT            Phone: 608-263-9385
Internet: toddn@doit.wisc.edu


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-12@oink>;
          Fri, 6 Dec 1996 07:37:09 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849832118:10:01028:2; Fri, 06 Dec 96 00:28:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1001023; 6 Dec 96 0:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id OAA14681 for dbi-users-real; Thu, 5 Dec 1996 14:18:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastion.seqeb.gov.au (bastion.seqeb.gov.au [147.209.142.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id OAA14677 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 14:18:36 -0800 (PST)
Received: by bastion.seqeb.gov.au; (5.65/GJW020796b) id AA08381;
          Fri, 6 Dec 1996 08:17:59 +1000
Received: from proxy.seqeb.gov.au(147.209.206.2) by bastion.seqeb.gov.au 
          via smap (V1.3) id sma020715; Fri Dec 6 08:17:46 1996
Received: by proxy.seqeb.gov.au; (5.65v3.2/GJW220296b) id AA28841;
          Fri, 6 Dec 1996 08:17:45 +1000
Received: from relay.seqeb.gov.au(147.209.166.6) by proxy.seqeb.gov.au 
          via smap (V1.3) id sma028892; Fri Dec 6 08:17:42 1996
Received: from svqtsc.seqeb.gov.au by un.seqeb.gov.au; (5.65/GJW251095a) 
          id AA07568; Fri, 6 Dec 1996 08:17:38 +1000
Received: from [147.209.174.48] by svqtsc.seqeb.gov.au; (5.65/GJW251095a) 
          id AA01324; Fri, 6 Dec 1996 08:17:36 +1000
From: Simon Inglis <si003@seqeb.gov.au>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
Cc: dbi-users@fugue.com
Subject: Re: Calling stored procedure in Oracle
Message-Id: <SIMEON.9612060825.A@hades.seqeb.gov.au>
Date: Fri, 6 Dec 1996 08:17:25 +1000 ()
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.0.9
X-Authentication: none
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim, 
  Please excuse my code. I have only been programming in 
Perl now for 5 days now. The error indicated that the 
parameter had mutated it's type not location.  I will have 
a look and try to re-write the code to return a cursor 
instead.


On Thu, 5 Dec 1996 11:24:32 +0000 Tim Bunce 
<Tim.Bunce@ig.co.uk> wrote:

> It might be a bug. You've not quoted the actual error message
> (mutated type or location). Please state which.

----------------------
Simon Inglis
si003@seqeb.gov.au




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-14@oink>;
          Fri, 6 Dec 1996 07:37:21 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849832121:10:01058:0; Fri, 06 Dec 96 00:28:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa920668; 6 Dec 96 0:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id OAA14676 for dbi-users-real; Thu, 5 Dec 1996 14:18:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id OAA14672 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 14:18:19 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id OAA27839;
          Thu, 5 Dec 1996 14:17:45 -0800 (PST)
Message-Id: <1.5.4.32.19961205223011.00827604@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 05 Dec 1996 14:30:11 -0800
To: Todd Neidinger <tneid@hoofer.doit.wisc.edu>, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: blob, dbi, oracle problem
Cc: marc@bienlogic.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I second this problem. What exactly is the deal here with the driver???

At 02:01 PM 12/5/96 -0600, Todd Neidinger wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Hi all,
>
>I have been struggling for the last two days to try to get the the blob
>samples working(README.longs).  I am running perl5.003, DBD Oracle 0.43,
>DBI 0.73, Oracle 7.3.2, all on AIX 4.1.4.  I have been able to get the
>long raw field inserted, but am unable to use blob_read to get it back
>out. 
>
>Here is the code that doesn't work.
>
>#!/usr/local/bin/perl5
>
>use DBI;
>
>{
>        $DBI::dbi_debug=1;
>        $drh= DBI->install_driver('Oracle');
>        $dbh=$drh->connect('','','');
>
>        die unless $dbh;
>
>        $cursor=$dbh->prepare("SELECT * from test where co1='hi'");
>        $cursor->execute;
>        ($field1,$field2,$field3)=$cursor->fetchrow;
>       
>    while (1)
>    {
>        $frag = $cursor->blob_read(1, 0, 512);
>        print ("iherr=$DBI::errstr\n");
>        print ("err=$DBI::err\n");
>        print("frag = $frag\n");
>        last unless defined $frag;
>        $ll = length $frag;
>        last unless $ll;
>        $blob .= $frag;
>        $offset += $ll;
>    }
>    print $blob, $buf;
>
>
>        $cursor->finish;
>
>        $dbh->disconnect;
>        exit;
>}
>
>This is the output when I run this:
>
>DBI->install_driver DBI Oracle at test.pl line 9
>DBI->install_driver(Oracle) loaded
>DBI->install_driver(Oracle) = DBI::dr=HASH(0x20077d8c)
>iherr=ORA-01016: This function can be called only after a fetch (DBD:
>oflng error)
>err=1016
>frag = 
>DBI::END
>DBI::disconnect_all DBI
>DBI::disconnect_all for 'Oracle'
>DBI::END complete
> 
>I am running against a test table with 3 columns defined as:
>
>co1 char(30),
>co2 long raw,
>co3 char(30)
>
>I know that the fetchrow is working, because I can print co1, and co3. I
>have searched everywhere for an answer. Any ideas?
>
>Todd Neidinger  
>University of Wisconsin Madison/DoIT            Phone: 608-263-9385
>Internet: toddn@doit.wisc.edu
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-41@oink>;
          Fri, 6 Dec 1996 07:40:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849838270:9:09803:0; Fri, 06 Dec 96 02:11:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1019602; 6 Dec 96 2:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA15135 for dbi-dev-real; Thu, 5 Dec 1996 16:50:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id QAA15129;
          Thu, 5 Dec 1996 16:50:30 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id QAA04792;
          Thu, 5 Dec 1996 16:49:59 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id QAA19856; Thu, 5 Dec 1996 16:49:53 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id QAA16828;
          Thu, 5 Dec 1996 16:49:18 -0800
Date: Thu, 5 Dec 1996 16:49:18 -0800
From: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Message-Id: <199612060049.QAA16828@edu-intern2.eng.sun.com>
To: descarte <@fugue.com:descarte@hermetica.com.dbi-users>, dbi-dev@fugue.com
Subject: DBD Installation
Cc: gaurav.khillan@eng.sun.com
X-Sun-Charset: US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi All ,

Thanks to your suggestions I have been able to Install DBI .However I am 
facing some problem in Installing DBD ::Oracle .

System :  Solaris 2.5  , Ultra .

Installing DBD::Oracle
-------------------
1) perl5.003 Makefile.PL -  Results in Makefile.

2) make 

this results in the following errors :

-----------ERROR      MESSAGE  -------------------------------------

"my" may clash with future reserved word at /tmp/perl-ea0044u line 2.
syntax error in file /tmp/perl-ea0044u at line 2, next 2 tokens "my("
Execution of /tmp/perl-ea0044u aborted due to compilation errors.
*** Error code 2
make: Fatal error: Command failed for target `blib/lib/DBD/.exists'
----------------------------------------------------------------------

I have performed the following steps :

--Installed DBI--
 
Perl5.003 Makefile.PL
make
make test              ( All tests are successful )
make install           ( Installs DBI.pm in ../lib/perl5/site_perl + other pm fi                         les. No binaries are produced -- Not sure if there are
                          any produced.)
                       

After this I did 

setenv PERL5LIB  /home/gkhillan/../DBI-0.73/perl5/site_perl -- in .cshrc

( DBI.pm is located in /home/gkhillan/../DBI-0.73/perl5/site_perl/DBI.pm )


Then I did :

Install DBD::ORACLE
--------------------

perl5.003 Makefile.PL  ( makefile is made correctly )
make 

This is where I get the error.


 I would  appreciate if you could offer any suggestions.

Thanks .

Gaurav



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-49@oink>;
          Fri, 6 Dec 1996 07:41:34 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849839003:9:11696:0; Fri, 06 Dec 96 02:23:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa911676; 6 Dec 96 2:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA14965 for dbi-users-real; Thu, 5 Dec 1996 15:53:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from www.careerwise.com (www.careerwise.com [198.240.72.101]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id PAA14961 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 15:52:57 -0800 (PST)
Received: from gandalf (crowley@pitman112.voicenet.com [207.103.18.191]) 
          by www.careerwise.com (8.7.6/8.6.12) with SMTP id SAA18327;
          Thu, 5 Dec 1996 18:57:08 -0500 (EST)
Message-ID: <32A75F35.645EC24F@www.tcg-inc.com>
Date: Thu, 05 Dec 1996 18:48:05 -0500
From: Al Crowley <crowley@www.tcg-inc.com>
Organization: Turner Consulting Group
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: Lane Sharman <lane@bienlogic.com>
CC: Todd Neidinger <tneid@hoofer.doit.wisc.edu>, dbi-users@fugue.com, 
    marc@bienlogic.com
Subject: Re: blob, dbi, oracle problem
References: <1.5.4.32.19961205223011.00827604@199.106.143.65>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Lane Sharman wrote:
> 
> I second this problem. What exactly is the deal here with the driver???
> 
> >I have been struggling for the last two days to try to get the the blob
> >samples working(README.longs).  I am running perl5.003, DBD Oracle 0.43,
> >DBI 0.73, Oracle 7.3.2, all on AIX 4.1.4.  I have been able to get the
> >long raw field inserted, but am unable to use blob_read to get it back
> >out.
> >
> >Here is the code that doesn't work.

[example deleted]

I guess this isn't just a 'me too' because I have a bit of a hack that
works around the problem...

If you set $ora_long to something really big before you create the new
cursor ($sh) then the fetchrow will return long fields that are less
than the value of $ora_long.

This is a complete hack that I am using and I don't recomend it unless
you need to get your system up and running -now-.  I've been saying to
myself for the last week, "as soon as I get a second, I'm goning to mail
the problem to the list".  But I think we all know that when something
works, it doesn't seem like that much of a priority even if it's not the
'right' way to do it.

So anyway, I started getting the same bogus error the day we upgraded to
DBI/DBD 0.73/0.43 ("This function can be called only after a fetch")
when using read_blob. My read_blob code worked fine under 0.71/0.39.



I'll include my working code (hack) for anyone that needs DBI to work
right away.  It will read values up to 40000 chars from a long field.  I
am sure that you can crank that up another 20000 or so, but I don't know
if it works over 64K characters.  (something in my subconscious says
that it wont)

#
# Need to read the Bgt_Item_Justification, but it is a LONG field
#
    $ora_long = 40000;  #HACK

    $sh = ($global->GetDBH())->prepare($sql);
    $global->CheckDB();
    $sh->execute();
    @results = $sh->fetchrow();
    $$formref{Bgt_Item_Justification} = $results[0];

    $ora_long = 80;  # END HACK



Good luck,

-Al

Al Crowley                      http://www.tcg-inc.com/~crowley
Turner Consulting Group         (609) 251 0275


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-75@oink>;
          Fri, 6 Dec 1996 07:44:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849842880:9:20651:0; Fri, 06 Dec 96 03:28:00 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa920610; 6 Dec 96 3:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA15158 for dbi-users-real; Thu, 5 Dec 1996 16:55:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id QAA15152 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 16:55:07 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id QAA05086;
          Thu, 5 Dec 1996 16:53:51 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id QAA20561; Thu, 5 Dec 1996 16:53:47 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id QAA16855;
          Thu, 5 Dec 1996 16:53:13 -0800
Date: Thu, 5 Dec 1996 16:53:13 -0800
From: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Message-Id: <199612060053.QAA16855@edu-intern2.eng.sun.com>
To: descarte@hermetica.com, dbi-users@fugue.com
Subject: DBD Installation
Cc: gaurav.khillan@eng.sun.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi All ,

Thanks to your suggestions I have been able to Install DBI .However I am 
facing some problem in Installing DBD ::Oracle .

System :  Solaris 2.5  , Ultra .

Installing DBD::Oracle
-------------------
1) perl5.003 Makefile.PL -  Results in Makefile.

2) make 

this results in the following errors :

-----------ERROR      MESSAGE  -------------------------------------

"my" may clash with future reserved word at /tmp/perl-ea0044u line 2.
syntax error in file /tmp/perl-ea0044u at line 2, next 2 tokens "my("
Execution of /tmp/perl-ea0044u aborted due to compilation errors.
*** Error code 2
make: Fatal error: Command failed for target `blib/lib/DBD/.exists'
----------------------------------------------------------------------

I have performed the following steps :

--Installed DBI--
 
Perl5.003 Makefile.PL
make
make test              ( All tests are successful )
make install           ( Installs DBI.pm in ../lib/perl5/site_perl + other pm fi                         les. No binaries are produced -- Not sure if there are
                          any produced.)
                       

After this I did 

setenv PERL5LIB  /home/gkhillan/../DBI-0.73/perl5/site_perl -- in .cshrc

( DBI.pm is located in /home/gkhillan/../DBI-0.73/perl5/site_perl/DBI.pm )


Then I did :

Install DBD::ORACLE
--------------------

perl5.003 Makefile.PL  ( makefile is made correctly )
make 

This is where I get the error.


 I would  appreciate if you could offer any suggestions.

Thanks .

Gaurav



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16601-86@oink>;
          Fri, 6 Dec 1996 07:45:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849844192:10:02915:0; Fri, 06 Dec 96 03:49:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1002881; 6 Dec 96 3:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA15392 for dbi-users-real; Thu, 5 Dec 1996 17:46:11 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id RAA15388 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 17:46:08 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id TAA64996;
          Thu, 5 Dec 1996 19:46:01 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id TAA23888;
          Thu, 5 Dec 1996 19:45:58 -0600 (CST)
Message-Id: <199612060145.TAA23888@dax.austin.ibm.com>
To: Todd Neidinger <tneid@hoofer.doit.wisc.edu>
cc: dbi-users@fugue.com
Subject: Re: blob, dbi, oracle problem
In-reply-to: Your message of Thu, 05 Dec 96 14:01:40 -0600. <199612052001.OAA26732@hoofer.doit.wisc.edu>
Date: Thu, 05 Dec 96 19:45:57 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Todd Neidinger <tneid@hoofer.doit.wisc.edu>  writes:
|> 
|> I have been struggling for the last two days to try to get the the blob
|> samples working(README.longs).  I am running perl5.003, DBD Oracle 0.43,
|> DBI 0.73, Oracle 7.3.2, all on AIX 4.1.4.  I have been able to get the
|> long raw field inserted, but am unable to use blob_read to get it back
|> out. 
|> 
|> Here is the code that doesn't work.
|> 
|> #!/usr/local/bin/perl5
|> 
|> use DBI;
|> 
|> {
|>         $DBI::dbi_debug=1;
|>         $drh= DBI->install_driver('Oracle');
|>         $dbh=$drh->connect('','','');
|> 
|>         die unless $dbh;
|> 
|>         $cursor=$dbh->prepare("SELECT * from test where co1='hi'");
|>         $cursor->execute;
|>         ($field1,$field2,$field3)=$cursor->fetchrow;
|>        
|>     while (1)
|>     {
|>         $frag = $cursor->blob_read(1, 0, 512);

Question, does Oracle number the parameters from 1 or 0 ?  If the 
former, then you are trying to read the wrong colum as the blob.  If
the later, you are ok.  To make things more clear, in the blob_read
function the arguments are:

   blob_read(column_index, address_offset, size_to_read,
               dest_loc,dest_size)  # the last two optional

So, check to make sure you are using the correct column_index
value.

|> 
|> DBI->install_driver DBI Oracle at test.pl line 9
|> DBI->install_driver(Oracle) loaded
|> DBI->install_driver(Oracle) = DBI::dr=HASH(0x20077d8c)
|> iherr=ORA-01016: This function can be called only after a fetch (DBD:
|> oflng error)
|> err=1016
|> frag = 

The iherr message indicates to me, that either the wrong fetch was
called or it was called on the wrong column (ie no blob locator
in existance.

From README.longs:
- ----------------------------------------------------------------------
- Example for reading LONG fields via blob_read:
-  
-     my $sql = "SELECT long_field FROM table_name WHERE id = :1";
-     my $csr = ora_open($lda, $sql) or die $ora_errstr;
-     ora_bind($csr, $id) or die $ora_errstr;
-     # ora_fetch() needs to be called in an array context
-     my (@data) = ora_fetch($csr);
-     my ($frag, $blob, $length, $ll, $offset);
-     $blob = '';
-     $length = 4096; # use benchmarks to get best value for you
-     $offset = 0;
-     while (1)
-     {
-         $frag = $csr->blob_read(0, $offset, $length);
-         last unless defined $frag;
-         $ll = length $frag;
-         last unless $ll;
-         $blob .= $frag;
-         $offset += $ll;
-     }
-     print $blob;
- 
- With thanks to james.taylor@srs.gov and desilva@ind70.industry.net.
- 
- ----------------------------------------------------------------------

Note the use of ora_fetch($csr) rather than fetchrow.

Now the CAVEAT, my assumptions a based on limited Oracle knowledge 
and more DB2 knowledge than I care to admit.

Mike
author DBD::DB2

----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16773-16@oink>;
          Fri, 6 Dec 1996 07:48:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849857278:9:22008:0; Fri, 06 Dec 96 07:27:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa921993; 6 Dec 96 7:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id VAA15901 for dbi-users-real; Thu, 5 Dec 1996 21:05:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com (miles.bienlogic.com [199.106.143.65]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id VAA15896 
          for <dbi-users@fugue.com>; Thu, 5 Dec 1996 21:05:20 -0800 (PST)
Received: from brubeck.bienlogic.com ([199.106.143.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id VAA29959;
          Thu, 5 Dec 1996 21:04:23 -0800 (PST)
Message-Id: <1.5.4.32.19961206051701.0085a32c@199.106.143.65>
X-Sender: lane@199.106.143.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 05 Dec 1996 21:17:01 -0800
To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>, Mike Kerr <mkerr@kerris.com>
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Row counts in Oracle
Cc: DBI-Users List <dbi-users@fugue.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>> Is there any mechanism that gives me the number of rows returned in a 
>> query?
>> 
>> I know that msqlperl has a $sth->rowcount or something of the sort.  Is 
>> there such a thing for DBD?
>> 
>
>Which other DBD?  If you are asking about Oracle the answer is no.
It is sometimes a good idea to know in advance how many rows your query will
return:

psuedo code: select count(*) into $row_count where $where_clause;

-Lane



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-87@oink>;
          Mon, 9 Dec 1996 07:46:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849911848:10:12484:1; Fri, 06 Dec 96 22:37:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1012472; 6 Dec 96 22:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA17012 for dbi-users-real; Fri, 6 Dec 1996 11:24:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nova.botz.org (ws01.botz.xo.com [205.158.240.242]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id LAA17000;
          Fri, 6 Dec 1996 11:24:23 -0800 (PST)
Received: (from jbotz@localhost) by nova.botz.org (8.7.4/8.7.3) id LAA04244;
          Fri, 6 Dec 1996 11:24:15 -0800
Date: Fri, 6 Dec 1996 11:24:15 -0800
Message-Id: <199612061924.LAA04244@nova.botz.org>
To: dbi-users@fugue.com
From: Jurgen Botz <jbotz@reference.com>
Cc: dbi-request@fugue.com
Subject: DBI list archives

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The list archive seem to stop at November 8th, 1996.  In fact,
November has all of two days in it.  I can't believe that there
have been no messages on any other days and 85 messages on 
November 7th and 8th... seems very odd.

My company, reference.com, archives mailing lists and makes them
searchable and browseable via the Web and an e-mail interface.
With permission from the list owner (Ted Lemon?) I would love to
subscribe the DBI lists to our archives.

- Jurgen



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-89@oink>;
          Mon, 9 Dec 1996 07:46:14 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849911849:10:12484:5; Fri, 06 Dec 96 22:37:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id ab928954; 6 Dec 96 22:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA16977 for dbi-users-real; Fri, 6 Dec 1996 11:16:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nova.botz.org (ws01.botz.xo.com [205.158.240.242]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id LAA16973 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 11:16:27 -0800 (PST)
Received: (from jbotz@localhost) by nova.botz.org (8.7.4/8.7.3) id LAA04221;
          Fri, 6 Dec 1996 11:16:24 -0800
Date: Fri, 6 Dec 1996 11:16:24 -0800
Message-Id: <199612061916.LAA04221@nova.botz.org>
To: dbi-users@fugue.com
From: Jurgen Botz <jbotz@reference.com>
Subject: The spec...

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Is there are newer version of the DBI spec?  Is one being worked on?
The latest I have found is 0.6 and labeled as being out of date...
so where is the up-to-date one?

Also, what happened to "lookup"?  "do" is there in that versions of
DBI I've tried, but not lookup... I thought it was a nice convenience
function and trivial enough.

- Jurgen




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-91@oink>;
          Mon, 9 Dec 1996 07:46:25 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849911850:10:12489:2; Fri, 06 Dec 96 22:37:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1012458; 6 Dec 96 22:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA16925 for dbi-users-real; Fri, 6 Dec 1996 11:08:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nova.botz.org (ws01.botz.xo.com [205.158.240.242]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id LAA16921 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 11:08:53 -0800 (PST)
Received: (from jbotz@localhost) by nova.botz.org (8.7.4/8.7.3) id LAA04202;
          Fri, 6 Dec 1996 11:08:31 -0800
Date: Fri, 6 Dec 1996 11:08:31 -0800
Message-Id: <199612061908.LAA04202@nova.botz.org>
To: dbi-users@fugue.com
From: Jurgen Botz <jbotz@reference.com>
Subject: Arrrgh... DBI, Oracle, and blobs

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm going nuts trying to get at 'long's in my Oracle database
using the latest DBI and DBD::Oracle.  blob_read is just not
working.  I've dug through every bit of documentation I could
find (not that there is much).  Anyway, first the questions...

1) I've seen examples that do something like...
      @data = ora_fetch($curs);
      $blob = blob_read($curs, @data[0], 0, $len);
   and others that do..
      $blob = blob_read($curs, 0, 0, $len);
   The first form doesn't seem to make any sense to me... but
   could someone who /knows/ (Tim?) please clear up what 'field'
   is supposed to be?

2) Do I /have/ to do a 'fetch' before I can do a 'read_blob'?
   Does 'read_blob' advance the cursor?  I'm new to this stuff
   in general, does the cursor get advanced before or after
   the 'fetch'?  If after, then how is the read_blob still 
   supposed to get the right data?

3) Does 'read_blob' work at all in the lastest versions of this
   stuff?  Is anybody successfully using it?  I could swear I've
   tried all possible permutations without success...

Any help, suggestions, comments, or even insults will be appreciated,
just please stop me from banging my head against this wall...

- Jurgen



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-106@oink>;
          Mon, 9 Dec 1996 07:48:20 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849916041:9:16003:3; Fri, 06 Dec 96 23:47:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1000604; 6 Dec 96 23:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id MAA17162 for dbi-users-real; Fri, 6 Dec 1996 12:16:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id MAA17158 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 12:16:49 -0800 (PST)
Received: from Eng.Sun.COM ([129.146.1.25]) 
          by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id MAA14549;
          Fri, 6 Dec 1996 12:15:44 -0800
Received: from edu-intern2.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3) 
          id MAA14969; Fri, 6 Dec 1996 12:15:42 -0800
Received: by edu-intern2.eng.sun.com (SMI-8.6/SMI-SVR4) id MAA19433;
          Fri, 6 Dec 1996 12:15:06 -0800
Date: Fri, 6 Dec 1996 12:15:06 -0800
From: gaurav.khillan@eng.sun.com (Gaurav Khillan)
Message-Id: <199612062015.MAA19433@edu-intern2.eng.sun.com>
To: descarte@hermetica.com, dbi-users@fugue.com
Subject: DBD
Cc: gaurav.khillan@eng.sun.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi All ,

I am facing a small problem while doing ( make test ) for DBD::ORACLE 0.43 .

It runs all tests successfully but stalls at a point where Oraperl is 

trying to connect to the database .

-------------------------------------------------------------------------
t/base..............ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.20 cusr  0.11 csys =  0.31 cpu)
PERL_DL_NONLAZY=1 /home/gkhillan/mrb/dist/sparc-S2/bin/perl5.003 -I./blib/arch -I./blib/lib -I/home/gkhillan/mrb/dist/lib/perl5/sun4-solaris/5.003 -I/home/gkhillan/mrb/dist/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='test', TWO_TASK='')
----------------------------------------------------------------------------

I have set ( setenv ORACLE_SID TEST ) IN MY .CSHRC .

System : Solaris 2.5 , Oracle 7.3.2  , perl5.003

DBI has been succesfully installed .


I have not done anything for TWO_TASK .


Can somebody give some solution to the problem.


Thanks.


Gaurav


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-108@oink>;
          Mon, 9 Dec 1996 07:48:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849917000:10:04412:3; Sat, 07 Dec 96 00:03:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919728; 7 Dec 96 0:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id NAA17339 for dbi-users-real; Fri, 6 Dec 1996 13:04:11 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.xmission.com (root@mail.xmission.com [198.60.22.22]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id NAA17335 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 13:04:00 -0800 (PST)
Received: from GARYSHEA (slc181.modem.xmission.com [204.228.136.181]) 
          by mail.xmission.com (8.8.3/8.7.5) with SMTP id OAA14116;
          Fri, 6 Dec 1996 14:03:43 -0700 (MST)
Message-Id: <199612062103.OAA14116@mail.xmission.com>
X-Sender: shea@mail.xmission.com
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 06 Dec 1996 14:07:54 -0700
To: descarte@hermetica.com, dbi-users@fugue.com
From: shea@xmission.com (Gary Shea)
Subject: Problems/questions building DBD-mSQL-0.60pl9

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Environment is perl5.003, DBD-0.73, Solaris 2.5.2 on Sparc 10.

1) Had to change the search path in Makefile.PL (INC) from
(as I recall) 'priv' to 'sitearch'.  I imagine priv needs to
be privarch, and that both privarch and sitearch 
should be in the INC list.

2) Had to change the 'default' port number in Makefile.PL
to reflect my actual port number (which I didn't know, have
no reason to know, and don't think DBD-mSQL should know -- the
default is wired into the mSQL library already).

3) Had to change the $VERSION value in mSQL.pm from 1.18 (sucked
out of the $Revision$ value) to '0.60pl9' so the Autoloader would
deign to load mSQL.pm.

Questions:

1) Can someone explain my DBD-mSQL needs to know the msqld port #?
2) Is DBD-mSQL able to use the unix-domain socket mode of
    the msql library?  I looked around and it didn't look that way --
    appears to use 'localhost' always, which is an internet-domain
    connection.  Since the unix-domain sockets are faster (when
    applicable) and more secure (usernames actually mean something),
    I sure hope I can use 'em.

I'm willing to work on patches for this stuff if it represents
'to do' list material.

Thanks!

        Gary
-----------------------------------------------------------------------
Gary Shea                                          Salt Lake City, Utah
shea@xmission.com                         http://www.xmission.com/~shea


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-120@oink>;
          Mon, 9 Dec 1996 07:49:58 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849926456:10:04589:0; Sat, 07 Dec 96 02:40:56 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1004579; 7 Dec 96 2:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA18047 for dbi-users-real; Fri, 6 Dec 1996 16:25:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA18043 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 16:25:24 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.4/8.8.4) with ESMTP id QAA06667;
          Fri, 6 Dec 1996 16:25:16 -0800 (PST)
Message-Id: <199612070025.QAA06667@bilbo.reference.com>
X-Mailer: exmh version 1.6.9 8/22/96
To: Al Crowley <crowley@www.tcg-inc.com>
cc: dbi-users@fugue.com
Subject: Re: Arrrgh... DBI, Oracle, and blobs
In-reply-to: Your message of "Fri, 06 Dec 1996 18:50:48 EST." <32A8B158.54A23BD7@www.tcg-inc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 06 Dec 1996 16:25:16 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Al Crowley wrote:
> Actually,  I think that the read_blob in the most recent DBD:Oracle is
> broken...there was a couple other people who poped up on this list and
> said the same thing, but I don't know if they had working
> implementations using read_blob in past versions of DBD::Oracle, but....
> 
> I do know that I -did- have read_blob working under DBD::Oracle 0.38???
> and then when I upgraded to 0.43 all my read blob code stoped working.

Thank you!  After reading this is tried 0.40, which was the oldest 
version I could find in the archives, and it works!  I'll try the
intervening versions shortly to see if I can narrow it down further.

- Jurgen





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-122@oink>;
          Mon, 9 Dec 1996 07:50:11 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849926465:9:19340:4; Sat, 07 Dec 96 02:41:05 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa919319; 7 Dec 96 2:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id PAA17935 for dbi-users-real; Fri, 6 Dec 1996 15:55:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from www.careerwise.com (www.careerwise.com [198.240.72.101]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id PAA17931 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 15:55:44 -0800 (PST)
Received: from gandalf (crowley@pitman145.voicenet.com [207.103.18.224]) 
          by www.careerwise.com (8.7.6/8.6.12) with SMTP id TAA22309;
          Fri, 6 Dec 1996 19:00:07 -0500 (EST)
Message-ID: <32A8B158.54A23BD7@www.tcg-inc.com>
Date: Fri, 06 Dec 1996 18:50:48 -0500
From: Al Crowley <crowley@www.tcg-inc.com>
Organization: Turner Consulting Group
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.18 i586)
MIME-Version: 1.0
To: Jurgen Botz <jbotz@reference.com>
CC: dbi-users@fugue.com
Subject: Re: Arrrgh... DBI, Oracle, and blobs
References: <199612061908.LAA04202@nova.botz.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> 3) Does 'read_blob' work at all in the lastest versions of this
>    stuff?  Is anybody successfully using it?  I could swear I've
>    tried all possible permutations without success...
> 
> Any help, suggestions, comments, or even insults will be appreciated,
> just please stop me from banging my head against this wall...

Actually,  I think that the read_blob in the most recent DBD:Oracle is
broken...there was a couple other people who poped up on this list and
said the same thing, but I don't know if they had working
implementations using read_blob in past versions of DBD::Oracle, but....

I do know that I -did- have read_blob working under DBD::Oracle 0.38???
and then when I upgraded to 0.43 all my read blob code stoped working.

I'm waiting for Tim to get a chance to check this out (did you know
about it before?) or for someone to come out and say that they have
working code in DBD::Oracle 0.43.

The list did get a post of code that will work for DBI 0.73, I believe
that it worked with DB2, but I've not heard from anyone saying that it
worked with Oracle....has else anyone tested it?  If so, what are the
results?


Tim, 
if you would like to work on a patch, if you have the time and the
desire, is there any information that you would need that I could
provide to help in that process?

Thanks,
-Al

Al Crowley                      http://www.tcg-inc.com/~crowley
Turner Consulting Group         (609) 251 0275


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-130@oink>;
          Mon, 9 Dec 1996 07:51:03 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849932734:9:03930:1; Sat, 07 Dec 96 04:25:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1019370; 7 Dec 96 4:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA18203 for dbi-users-real; Fri, 6 Dec 1996 17:28:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id RAA18199 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 17:28:43 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.4/8.8.4) with ESMTP id RAA09829 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 17:28:35 -0800 (PST)
Message-Id: <199612070128.RAA09829@bilbo.reference.com>
X-Mailer: exmh version 1.6.9 8/22/96
To: dbi-users@fugue.com
Subject: Re: Arrrgh... DBI, Oracle, and blobs
In-reply-to: Your message of "Fri, 06 Dec 1996 20:16:20 EST." <199612070118.UAA17303@cse.psu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 06 Dec 1996 17:28:35 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

As I mentioned in a prior message, in DBD-Oracle-0.40 blob_read works,
but still no joy for me, because it leaks memory like there's no 
tomorrow and I run out of RAM.  I'm trying export from a large
db full of blobs... the machine the script is running on has 2GB of
RAM!  I wanted to try the intervening versions but the tar-balls for
0.41 and 0.42 on the CPAN archive are empty.

- Jurgen





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-144@oink>;
          Mon, 9 Dec 1996 07:52:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849948562:10:24223:0; Sat, 07 Dec 96 08:49:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1024201; 7 Dec 96 8:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id WAA18727 for dbi-users-real; Fri, 6 Dec 1996 22:12:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ionline.net (root@iop100.ionline.net [207.6.175.4]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id WAA18723 
          for <dbi-users@fugue.com>; Fri, 6 Dec 1996 22:12:45 -0800 (PST)
Received: from [207.6.175.48] (ppp16.ionline.net [207.6.175.48]) 
          by ionline.net (8.7.3/8.6.9) with ESMTP id BAA03760 
          for <dbi-users@fugue.com>; Sat, 7 Dec 1996 01:12:34 -0500
X-Sender: dunlop@ionline.net (Unverified)
Message-Id: <v03010902aeceb36537ee@[207.6.175.48]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 7 Dec 1996 01:12:31 -0500
To: dbi-users@fugue.com
From: "J. Douglas Dunlop" <dunlop@eol.ists.ca>
Subject: [Announce] DBI 0.73 Draft Spec.

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

DBI-Users:

I have compiled a pod formatted version of the DBI specification for your
comments. I created this specifically for a project that I am working on
that requires complete documentation for all components and DBI is the
database interface that we have chosen. I am not an expert DBI user,
although I have created software that utilizes it to access an Oracle
database.

I put this draft documentation out for your comments and peer-review in the
hope that the expertise of the DBI community will help me to find any
errors and to help fill in the blanks. I will gladly accept your feedback,
I will incorporate your corrections and I will issue new versions of this
document as it evolves.

I have already communicated privately with Tim Bunce and he has agree to
include this document with later releases of DBI, probably starting earily
in the new year.

To view this document please use perldoc or one of perl's pod tranlators to
convert this file into something easily viewable by you.

Regards,
Doug


The DBI 0.73 pod follows:

------->8------->8------->8------->8------->8------->8------->8------->8----


=head1 DESCRIPTION

DBI is a Perl5 module which allows generic access to databases through a
single API.

The methods which make up this module are described in the following
sections. All methods return a false or undefined (in the Perl sense) value
to indicate failure.

=head1 SYNOPSIS

  use DBI;

  $dbh = DBI->connect([$database [,$username [,$auth [,$driver [,\%attr]]]]]);

  $sth = $dbh->prepare($statement [,\%attr]) if $dbh;

  $rc = $sth->execute([@bind_values]) if $sth;

  @ary = $sth->fetchrow;  # once per row

  $rc = $sth->finish;

  $rc = $dbh->disconnect;

=head1 NOTATION

=head2 DBI Object and Class Types:

  DBI    static 'top-level' class name
  $dbh   Database object
  $sth   Statement object
  $drh   Driver object (rarely seen or used in applications)

Note that Perl 5 will automatically destroy database and statement objects
if all references to them are deleted.

Object attributes are shown as:

  $object->{'attribute_name'}  (type)

where (type) indicates the type of the value of the attribute, if it's not
a simple scalar:

  \$   reference to a scalar: $h->{attr}       or  $a = ${$h->{attr}}
  \@   reference to a list:   $h->{attr}->[0]  or  @a = @{$h->{attr}}
  \%   reference to a hash:   $h->{attr}->{a}  or  %a = %{$h->{attr}}

=head2 DBI Non-Object Data Types

  $rc    Return Code
  @ary   List of values returned from the database

=head1 DATA QUERY METHODS

DBI allows the application to `prepare' a statement for later execution. A
prepared statement is identified by a statement object, e.g., $sth. A
statement object can be in one of three states:

  Prepared -- after $dbh->prepare() or $sth->finish() succeeded.
  Open     -- after $sth->execute() if the statement is a select.
  Invalid  -- after $dbh->disconnect() (or $dbh->prepare() failed).

Typical method call sequence (for a select statement):

  prepare,
    execute, fetch, fetch, ... finish,
    execute, fetch, fetch, ... finish,
    execute, fetch, fetch, ... finish.

Typical method call sequence (for a non-select statement):

  prepare,
    execute,
    execute,
    execute.

Some database engines invalidate prepared statements after a commit or
rollback. DBI Drivers for these engines will automatically and
transparently re-prepare any statements whose objects are used after they
become invalid in this way.

=head1 DBI OBJECTS

=head2 DBI Class Methods

=over 4

=item B<connect>

Establishes a connection to the database and returns a reference to a
database object. DBI->connect calls DBI->install_driver if the driver has
not been installed yet. It then returns the result of $drh->connect. It is
important to note that DBI->install_driver always returns a valid driver
handle or it *dies* with an error message which includes the string
'install_driver' and the underlying problem. So, DBI->connect will die on
an install_driver failure and will only return undef on a connect failure,
for which $DBI::errstr will hold the error.

 $dbh = DBI->connect([$database [,$username [,$password [,$driver
[,\%attr]]]]]);

=over 4

=item $database

- database name

=item $username

- user name by which to connect to the database

=item $auth

password required to authenticate $username

=item $driver

- database driver to use (e.g. Oracle)

=item \%attr

- reference to a hash containing other attributes to associate with this
connection

=over 4

=item Handler, function

establish the event handler for this connection (see B<Error and Event
Handlers>).  This is an alternative to calling $dbh->handler and allows the
handler to process events in the midst of establishing a connection whereas
$dbh->handler requires a pre-existing $dbh.

=item See specifications for specific database drivers for details of
driver specific attributes.

=back

=back

The $database, $username and $password arguments are passed to the driver
for processing. The DBI API does not define ANY interpretation for the
contents of these fields. As a convenience, if the $database field is
undefined or empty the Switch will substitute the value of the environment
variable DBPERL_DBNAME if any.

If $driver is not specified, the environment variable DBPERL_DRIVER is
used. If that variable is not set and the Switch has more than one Module
loaded then the connect fails and undef is returned.

The driver is free to interpret the database, username and password fields
in any way and supply whatever defaults are appropriate for the engine
being accessed.

The DBI->connect() function automatically starts a transaction for those
database types which require explicit control over transactions. There is
no need for the user to invoke an explicit 'start transaction' function.
Whenever a transaction is committed or rolled-back a new transaction is
started automatically. This emulates the SQL-92 standard behaviour.

Each session ($dbh) is independent from the transactions in other sessions.
This is useful where you need to hold cursors open across transactions,
e.g., use one session for your long lifespan cursors (typically read-only)
and another for your short update transactions.


B<Note:> Portability
Portable applications should not assume that a single module will
be able to support multiple simultaneous sessions. For example:

  $dbh_1 = DBI->connect(@args);
  $dbh_2 = DBI->connect(@args);

may not be portable

=item B<disconnect_all>

Disconnect from all database sessions no matter which database engine is
being used.

 $rc  = DBI->disconnect_all;


=item B<install_driver>

Install a driver for a specific database engine. Normally not used by an
application, use DBI->connect instead.

 $drh = DBI->install_driver($driver_name [, \%attributes ] );

=item B<internal>

Return $drh for internal Switch 'driver'. This is not normally used by an
application.

 $drh = DBI->internal;

=item B<available_drivers>

Return a list of all available drivers

 @ary = DBI->available_drivers;

=item B<neat_list>

Return a string containing a neat list from the listref

 $str = DBI->neat_list(\@listref, $maxlen, $sep);

=over 4

=item \@listref

- reference to the list to make neat

=item $maxlen

- maximum number of elements to take from the list.

=item $sep

- list element separator, defaults to ', '.

=back

=item B<dump_results>

Dumps (i.e. prints) the contents of a query statement object as lines of
neat_list rows (see L<"neat_list">).

 $string = DBI->dump_results(\@listref, $maxlen, $sep);

=over 4

=item \@listref

- reference to the list to dump

=item $maxlen

- maximum number of elements to take from the list

=item $sep

- row separator, defaults to '\n'.

=back

=back

=head2 Special DBI dynamic attributes

These attributes are always associated with the last object used.

=over

=item B<$DBI::err>

- equivalent to DBI->internal->{LastDbh}->{Error}

=item B<$DBI::errstr>

- equivalent to DBI->internal->{LastDbh}->{ErrorStr}

=item B<$DBI::rows>

- equivalent to DBI->internal->{LastSth}->{ROW_COUNT}

=item B<$DBI::state>

- ISO SQL/92 style SQLSTATE value

=back

=head1 DBI DRIVER OBJECTS

Driver Objects are not normally used directly by an application.

=head2 Driver Object Attributes

=over 4

=item B<Type>

 $drh->{Type}                 ($)

- should always be set to "dr" to identify the object type

=item B<Name>

 $drh->{Name}                 ($)

- name of database driver, (e.g., Oracle).

=item B<Version>

 $drh->{Version}              ($)

- version number of the database driver

=item B<Attribution>

 $drh->{Attribution}          ($)

- name of the author of this database driver

=back

=head2 Additional DBI Switch 'driver' Object Attributes

These are for internal use with DBI Switch 'driver'

=over 4

=item B<DebugDispatch>

 $drh->{DebugDispatch}        ($)

=item B<InstalledDrivers>

 $drh->{InstalledDrivers}     (@)

=item B<LastAdh>

 $drh->{LastAdh}              ($)

=item B<LastDbh>

 $drh->{LastDbh}              ($)

=item B<LastSth>

 $drh->{LastSth}              ($)

=back

=head2 Driver Object Methods

=over 4

=item B<connect>

$dbh = $drh->connect([$database [,$username [,$auth [,\%attribs]]]]]);

See L<"DBI->connect">. Requires that a $drh be acquired by invoking
DBI->install_driver. Preferred use would be DBI->connect. L<"DBI->connect")

=item B<disconnect_all>

 $dbh = $drh->disconnect_all;

 L<"DBI->disconnect_all">.

=back

=head1 DBI DATABASE OBJECTS

=head2 Database Object Methods

=over 4

=item B<prepare>

Prepare a single statement for execution by the database engine and return
a  reference to a statement object which will later be used to invoke a
$sth->execute method.

 $sth = $dbh->prepare($statement [, \%attr]);

=over 4

=item $statement

- SQL statement.

The statement can include placeholders for values to be  supplied later
when the prepared statement is executed. Place holders are identified with
question marks (as per the X/Open standard).

=item \%attr

- hash reference to additional attributes.

=over 4

=item 'ReadAheadCache' => 'n'

number of rows to read ahead (if supported)

=item 'CursorLife' => 'HOLD'

- cursor should span transactions (if supported)

=back

=back

- returns a reference to a statement object

B<Note> There is no mechanism to unprepare or forget a prepared statement
without disconnnecting from the database engine.

=back

=item B<quote>

 $sql = $dbh->quote($str);

- quote $str

=item B<do>

 $rc  = $dbh->do($statement [, \%attr]);

- prepare and execute combined into one method.

=over 4

=item $statement

- SQL statement

=item \%attr

- hash reference to additional attributes

=back

Returns a return condition $rc.

=item B<commit>

 $rc  = $dbh->commit;

- commit the previous series of database changes.

Returns undef or 1

=item B<rollback>

 $rc  = $dbh->rollback;

Returns undef or 1

=item B<disconnect>

 $rc  = $dbh->disconnect;

Returns undef or 1

=back

=item B<install_method>

 $rv  = DBI->install_method($class_method, $filename [, \%attribs]);

=back

=head2 DBI Object Class Methods

=item B<tables>

 $sth = $dbh->tables();

=item B<errstate>

 $rv  = $dbh->errstate;

=item B<errmsg>

 @ary = $dbh->errmsg;

=back

=head1 DBI STATEMENT OBJECTS

=head2 Statement Object Methods

=over 4

=item B<execute>

 $rc  = $sth->execute(@bind_values);

- returns undef, 0E0, 1, 2, ...

=item B<fetchrow>

 @ary = $sth->fetchrow;

=item B<finish>

 $rc  = $sth->finish;;

- returns undef or 1

=back

=head2 Database Object Attributes

=over 4

=item B<Type>

 $dbh->{Type}      ($)

- should always be set to "db" to identify the object type

=item B<Name>

 $dbh->{Name}      ($)

- name of database the handle is connected to

=item B<Driver>

 $dbh->{Driver}    (\%)

- reference to the database driver object

=item B<Error>

 $dbh->{Error}     ($)

- normally use $DBI::err

=item B<ErrorStr>

 $dbh->{ErrorStr}  ($)

- normally use $DBI::errstr

=item B<ROW_COUNT>

 $dbh->{ROW_COUNT} ($)

- normally use $DBI::rows

=back

=head3 Statement Object Attributes

=over 4

=item B<Type>

 $sth->{Type}     ($)

- should always be set to "st" to identify the object type

=item B<Name>

 $sth->{Name}     ($)

- name of the statement object

=item B<Database>

 $sth->{Database} (\%)

- reference to the database object that this statement object was prepared by.

 eg. $sth->{Database}->{Driver}->{Name}

=head2 Database Statement Field Attributes

These are hashes of lists where each hash contains a list with one element
for each database field associate with the statement $sth.

=item B<NAME>

 $sth->{NAME}           (\@)

- field attribute name

=item B<NULLABLE>

 $sth->{NULLABLE}       (\@)

- nullable (boolean)

=item B<TYPE>

 $sth->{TYPE}           (\@)

- field attribute data type

=item B<PRECISION>

 $sth->{PRECISION}      (\@)

- field attribute precision

=item B<SCALE>

 $sth->{SCALE}          (\@)

- field attribute scale

=head2 Database "open" Statement attributes

These attributes are not specific to a database field but are only
available after a successful $sth->execute.

=item B<NUM_OF_FIELDS>

 $sth->{NUM_OF_FIELDS}  ($)

- the number of fields

=item B<NUM_OF_PARAMS>

 $sth->{NUM_OF_PARAMS}  ($)

- the number of parameters

=back

=head1 SUBSTITUTION VARIABLES

Clearly something belongs here but I don't know what. Tim?

=head1 SIMPLE EXAMPLE

  my $dbh = DBI->connect($database, $user, $password, 'Oracle');

  print "Connected as $dbh\n\n";

  my $sth = $dbh->prepare('SELECT name, phone from mytelbook')

  croak "Error detected preparing statement!\n" unless $sth;

  my $rc = $sth->execute()

  croak "Error detected executing statement!\n" unless $rc;

  my $nfields = $sth->{'NUM_FIELDS'};

  print "Query will return $nfields fields\n\n";

  while (($name, $phone) = $sth->fetchrow()) { write; }
  warn $DBI::errstr if $DBI::err;

  $sth->finish;

=head1 DEBUGGING

B<DBI:> Detailed debugging can be enabled at any time by executing

  $h->debug(2);

where $h is either a $dbh or a $sth. If debugging is enabled on a $dbh then
it is automatically passed on to any cursors (ie. $sth) returned by prepare.

=head1 NOTES

In keeping with the philosophy of Perl, there is no pre-defined limit to
the number of simultaneous logins or SQL statements which may be active,
nor to the number of data fields which may be returned by a query. The only
limits are those imposed by the amount of memory available, or by the
database system being accessed.

=head1 WARNINGS

Beware the ides of March.

=head1 SEE ALSO

=head2 Database Documentation

 SQL Language Reference Manual.

=head2 Books

 Programming Perl 2nd Ed. by Larry Wall, Tom Christiansen & Randal Schwartz.
 Learning Perl by Randal Schwartz.

=head2 Manual Pages

L<perl(1)>

=head1 AUTHORS

 Perl by Larry Wall <lwall@netlabs.com>.
 DBI by <Tim.Bunce@ig.co.uk>
 This pod compiled by J. Douglas Dunlop <dunlop@eol.ists.ca>

=head1 Random WWW links

 http://www-ccs.cs.umass.edu/db.html
 http://www.odmg.org/odmg93/updates_dbarry.htm
 http://www.jcc.com/sql_stnd.html


_____________________________________________________________________________

    ____/  _   /  /  J. Douglas Dunlop                  <dunlop@eol.ists.ca>
   /      /   /  /                                    Earth Observations Lab
   _/    /   /  /                Institute for Space and Terrestrial Science
 /      /   /  /                                    4850 Keele St.,2nd Floor
____/ _____/ _____/  W:416-665-5411                      North York, Ontario
                     H:519-747-1710                          CANADA, M3J-3K1
                     F:416-665-2032
_____________________________________________________________________________
                          http://www.eol.ists.ca/
_____________________________________________________________________________ml




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-153@oink>;
          Mon, 9 Dec 1996 07:53:49 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849960631:10:29890:0; Sat, 07 Dec 96 12:10:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1029872; 7 Dec 96 12:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id CAA19021 for dbi-users-real; Sat, 7 Dec 1996 02:16:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastix.tunix.kun.nl (bastix.tunix.kun.nl [131.174.20.39]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id CAA19017 
          for <dbi-users@fugue.com>; Sat, 7 Dec 1996 02:16:11 -0800 (PST)
Received: (from root@localhost) by bastix.tunix.kun.nl (8.7.1/8.6.12) 
          id LAA05890 for <dbi-users@fugue.com>;
          Sat, 7 Dec 1996 11:16:09 +0100 (MET)
Received: from omegix.tunix.kun.nl(172.16.2.15) by bastix.tunix.kun.nl 
          via smap (V1.3) id sma005588; Sat Dec 7 11:15:59 1996
Received: from localhost by (4.1/SMI-4.1) id AA22462;
          Sat, 7 Dec 96 11:15:56 +0100
Message-Id: <9612071015.AA22462@>
To: dbi-users@fugue.com
Subject: (Oracle) set define failes
Date: Sat, 07 Dec 1996 11:15:55 +0100
From: Leo Willems <leo@tunix.kun.nl>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

		version: DBI-73/DBD-Oracle-0.43
			 Oracle7 Server Release 7.3.2.1.0

This statement fails DBI/Oracle:

        $dbh->debug(2);
        $dbh->do("set define _") || die "ora_do: $ora_errno: $ora_errstr";

The output is:

    DBI::db=HASH(0x168c38) debug level set to 2
    -> prepare for DBD::Oracle::db
                       (DBI::db=HASH(0x1d8c44)~0x168c38 'set define _')
    <- prepare= undef
    -> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x177798))
    <- DESTROY= undef
          ora_do: 922: ORA-00922: missing or invalid option
          (DBD: error possibly near <*> indicator at char 5 in
		'set <*>define _') at ./leo1 line 39.
    -> disconnect for DBD::Oracle::db (DBI::db=HASH(0x1d8c44)~0x168c38)
    <- disconnect= 1
    -> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x168c38))
    <- DESTROY= undef

This fails also for 'set echo off' with the same problem: a * seems to be 
inserted at some point. 


BTW, what I try to do is making & a normal symbol, so a
workaround is welcome too....



Any clues?

Thanks

Leo


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-197@oink>;
          Mon, 9 Dec 1996 07:59:10 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 849988474:9:13433:1; Sat, 07 Dec 96 19:54:34 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa913400; 7 Dec 96 19:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA19379 for dbi-users-real; Sat, 7 Dec 1996 09:12:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id JAA19375 
          for <dbi-users@fugue.com>; Sat, 7 Dec 1996 09:12:51 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id MAA22059;
          Sat, 7 Dec 1996 12:14:34 -0500 (EST)
Message-Id: <199612071714.MAA22059@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: gaurav.khillan@eng.sun.com (Gaurav Khillan)
cc: dbi-users@fugue.com
Subject: Re: DBD
In-reply-to: Your message of "Fri, 06 Dec 1996 12:15:06 PST." <199612062015.MAA19433@edu-intern2.eng.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 07 Dec 1996 12:12:37 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Instead of connecting via ORACLE_SID, set TWO_TASK to your SQLNetV2alias.
John
groenvel@cse.psu.edu 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-240@oink>;
          Mon, 9 Dec 1996 08:04:35 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850038350:9:24645:0; Sun, 08 Dec 96 09:45:50 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1017565; 8 Dec 96 9:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id VAA20223 for dbi-users-real; Sat, 7 Dec 1996 21:11:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastion.seqeb.gov.au (bastion.seqeb.gov.au [147.209.142.2]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id VAA20218 
          for <dbi-users@fugue.com>; Sat, 7 Dec 1996 21:11:46 -0800 (PST)
Received: by bastion.seqeb.gov.au; (5.65/GJW020796b) id AA32207;
          Sun, 8 Dec 1996 15:11:02 +1000
Received: from proxy.seqeb.gov.au(147.209.206.2) by bastion.seqeb.gov.au 
          via smap (V1.3) id sma023272; Sun Dec 8 15:10:51 1996
Received: by proxy.seqeb.gov.au; (5.65v3.2/GJW220296b) id AA19451;
          Sun, 8 Dec 1996 15:10:50 +1000
Received: from relay.seqeb.gov.au(147.209.166.6) by proxy.seqeb.gov.au 
          via smap (V1.3) id sma019616; Sun Dec 8 15:10:33 1996
Received: from svqtsc.seqeb.gov.au by un.seqeb.gov.au; (5.65/GJW251095a) 
          id AA15679; Sun, 8 Dec 1996 15:10:29 +1000
Received: from [147.209.174.48] by svqtsc.seqeb.gov.au; (5.65/GJW251095a) 
          id AA20632; Sun, 8 Dec 1996 15:10:27 +1000
From: Simon Inglis <si003@seqeb.gov.au>
To: Leo Willems <leo@tunix.kun.nl>
Cc: dbi-users@fugue.com
Subject: Re: (Oracle) set define failes
Message-Id: <SIMEON.9612081511.A@hades.seqeb.gov.au>
Date: Sun, 8 Dec 1996 15:10:11 +1000 ()
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.0.9
X-Authentication: none
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi Leo,

> This statement fails DBI/Oracle:
> 
>         $dbh->debug(2);
>         $dbh->do("set define _") || die "ora_do: $ora_errno: $ora_errstr";

This command will fail because the commands that you are 
trying to issue are SQL*Plus commands, not Oracle RDBMS 
commands. The following message that you got kinda 
indicates that this isn't a valid command. 

>           ora_do: 922: ORA-00922: missing or invalid option
>           (DBD: error possibly near <*> indicator at char 5 in
> 		'set <*>define _') at ./leo1 line 39.

I believe that  the only valid 'set' command in SQL is 
setting the rollback 
segment for a session?

> BTW, what I try to do is making & a normal symbol, so a
> workaround is welcome too....

Umm. The shouldn't be anything you need to do here. It's 
SQL*Plus that does variable subs. for you not the RDBMS. 
Seeing as though you are talking directly to the RDBMS, you 
dont need to redefine any of the substitution symbols.

----------------------
Simon Inglis
si003@seqeb.gov.au




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-253@oink>;
          Mon, 9 Dec 1996 08:06:25 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850053419:9:09688:2; Sun, 08 Dec 96 13:56:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1002741; 8 Dec 96 13:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id XAA20382 for dbi-users-real; Sat, 7 Dec 1996 23:02:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bastix.tunix.kun.nl (bastix.tunix.kun.nl [131.174.20.39]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id XAA20378 
          for <dbi-users@fugue.com>; Sat, 7 Dec 1996 23:02:00 -0800 (PST)
Received: (from root@localhost) by bastix.tunix.kun.nl (8.7.1/8.6.12) 
          id IAA14367 for <dbi-users@fugue.com>;
          Sun, 8 Dec 1996 08:01:36 +0100 (MET)
Received: from omegix.tunix.kun.nl(172.16.2.15) by bastix.tunix.kun.nl 
          via smap (V1.3) id sma014184; Sun Dec 8 08:01:35 1996
Received: from localhost by (4.1/SMI-4.1) id AA25987;
          Sun, 8 Dec 96 08:01:34 +0100
Message-Id: <9612080701.AA25987@>
To: dbi-users@fugue.com
Cc: caspar@tunix.kun.nl
Subject: Re: (Oracle) set define failes
In-Reply-To: Your message of "Sun, 08 Dec 1996 15:10:11 +1000." <SIMEON.9612081511.A@hades.seqeb.gov.au>
Date: Sun, 08 Dec 1996 08:01:34 +0100
From: Leo Willems <leo@tunix.kun.nl>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Thanks to all the people explaining that "set define xxx" are SQL*Plus
commands and therefore it makes no sense to use them in DBI.

Sorry for the confusion.

Regards

Leo


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28886-306@oink>;
          Mon, 9 Dec 1996 08:12:27 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850102772:10:23451:6; Mon, 09 Dec 96 03:39:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa902287; 9 Dec 96 3:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id RAA00991 for dbi-users-real; Sun, 8 Dec 1996 17:42:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.xmission.com (root@mail.xmission.com [198.60.22.22]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id RAA00987 
          for <dbi-users@fugue.com>; Sun, 8 Dec 1996 17:42:29 -0800 (PST)
Received: from GARYSHEA (slc175.modem.xmission.com [204.228.136.175]) 
          by mail.xmission.com (8.8.4/8.7.5) with SMTP id SAA19711;
          Sun, 8 Dec 1996 18:42:04 -0700 (MST)
Message-Id: <199612090142.SAA19711@mail.xmission.com>
X-Sender: shea@mail.xmission.com
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 08 Dec 1996 18:46:08 -0700
To: descarte@hermetica.com
From: shea@xmission.com (Gary Shea)
Subject: Re: Problems/questions building DBD-mSQL-0.60pl9
Cc: descarte@hermetica.com, dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

What's the status on an MsqlPerl emulation?  I'm in the position
of needing one right now, and have started on a simplistic version.
I take it that by MsqlPerl you mean Andreas Koenig's Msql module?

>Because, if the client side was built under non-root, and the server was
>built under root, the ports mismatch and a connection can't be made. Hence,
>we need to know.

I don't want to blow this out of proportion, but as you know,
MsqlPerl doesn't need to know the port #, so there's clearly
no NEED to know (right?).

It just seems to me (and yeah, I can see this is more or less
of an opinion call and you did the work not me) that the less
one knows, and the less one messes with, the fewer things there
are to break and become obsolete.

Why not default to simply ignoring the port number unless it's in
the environment?  If it's in the env of course it must be used.

At the risk of being even more annoying, I have to ask the same
question about the _ListDBs func call.  What does it need the
host for?   The corresponding Msql call doesn't... not that I
want to beat you over the head with Msql, just trying to keep
things as simple as possible...
-----------------------------------------------------------------------
Gary Shea                                          Salt Lake City, Utah
shea@xmission.com                         http://www.xmission.com/~shea


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15233-16@oink>;
          Tue, 10 Dec 1996 07:37:10 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850159904:9:01820:10; Mon, 09 Dec 96 19:31:44 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa901753; 9 Dec 96 19:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA04975 for dbi-dev-real; Mon, 9 Dec 1996 09:10:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from mule0.mindspring.com (mule0.mindspring.com [204.180.128.166]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id JAA04971 
          for <dbi-dev@fugue.com>; Mon, 9 Dec 1996 09:10:31 -0800 (PST)
Received: from BRIAN (user-168-121-82-219.dialup.mindspring.com [168.121.82.219]) 
          by mule0.mindspring.com (8.8.2/8.7.3) with SMTP id RAA57324 
          for <dbi-dev@fugue.com>; Mon, 9 Dec 1996 17:10:24 GMT
Message-Id: <1.5.4.16.19961209171709.34df734e@pop.atl.mindspring.com>
X-Sender: trox@pop.atl.mindspring.com
X-Mailer: Windows Eudora Light Version 1.5.4 (16)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 09 Dec 1996 12:17:09 -0500
To: dbi-dev@fugue.com
From: Brian Troxell <trox@atl.mindspring.com>
Subject: Help Installing DBD-Informix

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I'm not sure if this is the right place to ask, so I'm asking 
where the right place to ask is.

I'm having trouble installing DBD-Informix 0.24 on a SCO
Unix system. I get through make install fine (I had to comment
out some code to get that to work, though), but the make test
barfs because it can't find libasf.so.

Either acknowledgement that this is the right place to ask,
or violent flames saying never to post here again would be
appreciated. :)

trox@mindspring.com is Brian Troxell in Real Life (tm)
"I have always thought / In the back of my mind / Cheese and Onions
I have always thought / That the world was unkind / Cheese and Onions"
- The Rutles, "Cheese and Onions"




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15233-21@oink>;
          Tue, 10 Dec 1996 07:37:42 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850160312:10:11662:24; Mon, 09 Dec 96 19:38:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa903911; 9 Dec 96 19:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id JAA05061 for dbi-dev-real; Mon, 9 Dec 1996 09:34:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id JAA05057 
          for <dbi-dev@fugue.com>; Mon, 9 Dec 1996 09:34:41 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA11870;
          Mon, 9 Dec 1996 09:34:07 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA04433;
          Mon, 9 Dec 1996 09:34:22 -0800
Date: Mon, 9 Dec 1996 09:34:22 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612091734.JAA04433@anubis.informix.com>
To: dbi-dev@fugue.com, trox@atl.mindspring.com
Subject: Re: Help Installing DBD-Informix

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

You probably do not have LD_LIBRARY_PATH (or some equivalent environment
variable which allows an executable to locate shared libraries) set to
include both $INFORMIXDIR/lib and $INFORMIXDIR/lib/esql.

It might have been helpful if you'd mentioned which version of the Informix
products you are using; it is clearly 6.00 or later, and it probably
doesn't matter in this case, but often it does.

As to whether this is the correct forum (versus dgi-users@fugue.com), I'm
not sure I sufficiently understand the differences to pontificate.  No
flames from me, anyway.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>Date: Mon, 09 Dec 1996 12:17:09 -0500
>To: dbi-dev@fugue.com
>From: Brian Troxell <trox@atl.mindspring.com>
>Subject: Help Installing DBD-Informix
>
>I'm not sure if this is the right place to ask, so I'm asking
>where the right place to ask is.
>
>I'm having trouble installing DBD-Informix 0.24 on a SCO
>Unix system. I get through make install fine (I had to comment
>out some code to get that to work, though), but the make test
>barfs because it can't find libasf.so.
>
>Either acknowledgement that this is the right place to ask,
>or violent flames saying never to post here again would be
>appreciated. :)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15233-50@oink>;
          Tue, 10 Dec 1996 07:41:03 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850163798:9:20888:0; Mon, 09 Dec 96 20:36:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id ab920877; 9 Dec 96 20:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id IAA04923 for dbi-users-real; Mon, 9 Dec 1996 08:24:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from llbean.com (llbean.com [199.95.60.20]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id IAA04919 
          for <dbi-users@fugue.com>; Mon, 9 Dec 1996 08:24:21 -0800 (PST)
Message-ID: <n1361991723.17796@llbean.com>
Date: 9 Dec 1996 11:26:34 -0400
From: Randy Dyer <randy.dyer@llbean.com>
Subject: DBD::DB2 Question
To: dbi-users <dbi-users@fugue.com>
X-Mailer: Mail*Link SMTP-QM 3.0.2

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm running DBI 0.73, DBD::DB2 0.61, perl 5.003 on AIX with DB2/6000
2.1.1.

When I execute  $dbh->rollback, after performing several deletes:

my $row_to_delete = 5;  #5 does exist
 my $sql = "delete from my_table
                    where my_col = $row_to_delete ";
 my $rc;
 $rc = $dbh->do( $sql );

no backouts occur.  Likewise, if I execute a die before 
$cursor->finish or $dbh->disconnect, nothing is backed out.
Does $dbh->rollback function?  Is there a commit being executed behind
the scenes somewhere?
Thanks for your help.
Randy 
 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15233-79@oink>;
          Tue, 10 Dec 1996 07:43:55 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850170112:10:02737:19; Mon, 09 Dec 96 22:21:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa922282; 9 Dec 96 22:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA05493 for dbi-dev-real; Mon, 9 Dec 1996 11:06:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from mule0.mindspring.com (mule0.mindspring.com [204.180.128.166]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id LAA05489 
          for <dbi-dev@fugue.com>; Mon, 9 Dec 1996 11:06:01 -0800 (PST)
Received: from BRIAN (user-168-121-82-219.dialup.mindspring.com [168.121.82.219]) 
          by mule0.mindspring.com (8.8.2/8.7.3) with SMTP id SAA145400;
          Mon, 9 Dec 1996 18:13:25 GMT
Message-Id: <1.5.4.16.19961209182011.5d4f70f8@pop.atl.mindspring.com>
X-Sender: trox@pop.atl.mindspring.com
X-Mailer: Windows Eudora Light Version 1.5.4 (16)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 09 Dec 1996 13:20:11 -0500
To: johnl@informix.com (Jonathan Leffler)
From: Brian Troxell <trox@atl.mindspring.com>
Subject: Re: Help Installing DBD-Informix
Cc: dbi-dev@fugue.com

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

At 09:34 AM 12/9/96 -0800, you wrote:
>You probably do not have LD_LIBRARY_PATH (or some equivalent environment
>variable which allows an executable to locate shared libraries) set to
>include both $INFORMIXDIR/lib and $INFORMIXDIR/lib/esql.
>
>It might have been helpful if you'd mentioned which version of the Informix
>products you are using; it is clearly 6.00 or later, and it probably
>doesn't matter in this case, but often it does.

Well, I wanted to make sure I wasn't being rude before I sent lots of 
help me help me type information.

I'm using Informix 7.1. Of the installation procedure, the Makefile 
generation worked fine. The make failed because it didn't like redeclarations
of free_cursor, iqclose, and iqfree in dbdimp.ec, so I commented them out.
The make then worked fine, as did the make install. When I run make test,
this is the full output that I get:

        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/i386-sco_sv/5.003 -I/usr/local/lib/perl5 test.pl
install_driver(Informix) failed: Can't load
'./blib/arch/auto/DBD/Informix/Informix.so'
for module DBD::Informix: dynamic linker : /usr/local/bin/perl : error on
opening libasf.so at /usr/local/lib/perl5/DynaLoader.pm line 140.

  at blib/lib/DBD/Informix.pm line 18
        DBI::install_driver called at test.pl line 10
Testing: DBI->install_driver( 'Informix' ): *** Error code 2 (bu21)

So hopefully, this will better help everyone to help me. :)

trox@mindspring.com is Brian Troxell in Real Life (tm)
"I have always thought / In the back of my mind / Cheese and Onions
I have always thought / That the world was unkind / Cheese and Onions"
- The Rutles, "Cheese and Onions"




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15233-92@oink>;
          Tue, 10 Dec 1996 07:47:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850173074:9:07375:11; Mon, 09 Dec 96 23:11:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1019719; 9 Dec 96 23:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id LAA05687 for dbi-users-real; Mon, 9 Dec 1996 11:52:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ihug.co.nz (ihug.co.nz [203.29.160.4]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id LAA05683 
          for <dbi-users@fugue.com>; Mon, 9 Dec 1996 11:52:42 -0800 (PST)
Received: from ANDREWS ([203.97.136.12]) by ihug.co.nz (8.7.5/8.7.3) with SMTP 
          id IAA23687; Tue, 10 Dec 1996 08:55:30 +1300 (NZDT)
Received: by ANDREWS with Microsoft Mail id <01BBE678.004D71C0@ANDREWS>;
          Tue, 10 Dec 1996 08:56:15 +1300
Message-ID: <01BBE678.004D71C0@ANDREWS>
From: Andrew Holman <akdh@ihug.co.nz>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Cc: "'randy.dyer@llbean.com'" <randy.dyer@llbean.com>
Subject: RE: :DB2 Question
Date: Tue, 10 Dec 1996 08:54:31 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

----------
From: 	Randy Dyer[SMTP:randy.dyer@llbean.com]
Sent: 	Tuesday, December 10, 1996 8:38 AM
To: 	dbi-users
Subject: 	DBD::DB2 Question

    *** From dbi-users -- To unsubscribe, see the end of this message. =
***

I'm running DBI 0.73, DBD::DB2 0.61, perl 5.003 on AIX with DB2/6000
2.1.1.

When I execute  $dbh->rollback, after performing several deletes:

my $row_to_delete =3D 5;  #5 does exist
 my $sql =3D "delete from my_table
                    where my_col =3D $row_to_delete ";
 my $rc;
 $rc =3D $dbh->do( $sql );

no backouts occur.  Likewise, if I execute a die before=20
$cursor->finish or $dbh->disconnect, nothing is backed out.
Does $dbh->rollback function?  Is there a commit being executed behind
the scenes somewhere?
Thanks for your help.
Randy=20


Randy,

Do you have auto commit set to on? In my installation on AIX 3.2.5 it is =
on by default. I tried using the function $dbh->{AutoCommit} =3D OFF; =
but this didn't turn autocommit off. I looked at the DBD code for =
autocommit in DB2/dbdimp.c dbd_db_STORE() and this only seems to be able =
to turn autocommit to on. If you want to set autocommit off it doesn't =
work without modifying the code.

Regards Andrew Holman.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15502-5@oink>;
          Tue, 10 Dec 1996 07:55:59 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850197992:9:16740:3; Tue, 10 Dec 96 06:06:32 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1006714; 10 Dec 96 6:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id TAA07113 for dbi-users-real; Mon, 9 Dec 1996 19:32:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id TAA07109 
          for <dbi-users@fugue.com>; Mon, 9 Dec 1996 19:32:31 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.4/8.8.4) with ESMTP id TAA14639 
          for <dbi-users@fugue.com>; Mon, 9 Dec 1996 19:32:23 -0800 (PST)
Message-Id: <199612100332.TAA14639@bilbo.reference.com>
X-Mailer: exmh version 1.6.9 8/22/96
To: dbi-users@fugue.com
Subject: Blobs solution (was: Re: Arrrgh... DBI, Oracle, and blobs)
In-reply-to: Your message of "Fri, 06 Dec 1996 17:28:35 PST." <199612070128.RAA09829@bilbo.reference.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 09 Dec 1996 19:32:23 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Well, I've figured out what's wrong with DBD-Oracle 0.43 and blobs...
it's not even a bug, it's just lack of documentation.  Between
0.40 and 0.43 Tim added a row cache and started using Oracle's 
"ofen" call instead of "ofetch".  Since "oflng" (Oracle's read_blob)
has to follow a fetch, this doesn't work when "ofen" fetches more than
one row... the simple solution is to do "$ora_cache = 1" somewhere
before your fetch.

Tim, if you read this, why don't you stick that paragraph into the
"README.longs" file for the next release...

So now I have 0.43 working, but this doesn't solve the memory problems
I also saw with 0.40.  Basically my simple program grows to 2GB size
(the default ulimit for VM on the machine) after reading only a few
thousand records (which contain a long field that about 3 KB on 
average).  If anybody has any insight into why this might be happening,
or if anyone else is successfully reading lots of blobs without it
happening, let me know.

- Jurgen





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21344-33@oink>;
          Tue, 10 Dec 1996 17:58:40 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850238782:10:28178:0; Tue, 10 Dec 96 17:26:22 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa908394; 10 Dec 96 17:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id FAA08333 for dbi-users-real; Tue, 10 Dec 1996 05:13:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.3/8.6.11) with SMTP id FAA08329 
          for <dbi-users@fugue.com>; Tue, 10 Dec 1996 05:13:43 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id HAA70511 
          for <dbi-users@fugue.com>; Tue, 10 Dec 1996 07:13:38 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id HAA17064;
          Tue, 10 Dec 1996 07:13:37 -0600 (CST)
Message-Id: <199612101313.HAA17064@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-users@fugue.com
Subject: Re: DBD::DB2 Question
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 10 Dec 96 07:13:37 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

"Randy Dyer" <randy.dyer@llbean.com>  writes:
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> I'm running DBI 0.73, DBD::DB2 0.61, perl 5.003 on AIX with DB2/6000
> 2.1.1.
> 
> When I execute  $dbh->rollback, after performing several deletes:
> 
> my $row_to_delete = 5;  #5 does exist
>  my $sql = "delete from my_table
>                     where my_col = $row_to_delete ";
>  my $rc;
>  $rc = $dbh->do( $sql );
> 
> no backouts occur.  Likewise, if I execute a die before 
> $cursor->finish or $dbh->disconnect, nothing is backed out.
> Does $dbh->rollback function?  Is there a commit being executed behind
> the scenes somewhere?
> Thanks for your help.
> Randy 
>  

By default DBD::DB2 runs in autocommit mode.  At the moment, their is a 
bug in the driver relating to the setting/unsetting of autocommit mode, I'm
hoping to the the patch out by the end of the week (finding time of late,
has been a real bear).

Mike




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26405-53@oink>;
          Wed, 11 Dec 1996 13:11:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850274371:10:13670:0; Wed, 11 Dec 96 03:19:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1013660; 11 Dec 96 3:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.3/8.6.11) 
          id QAA10196 for dbi-users-real; Tue, 10 Dec 1996 16:12:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.3/8.6.11) with ESMTP id QAA10192 
          for <dbi-users@fugue.com>; Tue, 10 Dec 1996 16:12:51 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.4/8.8.4) with ESMTP id QAA15621;
          Tue, 10 Dec 1996 16:12:26 -0800 (PST)
Message-Id: <199612110012.QAA15621@bilbo.reference.com>
X-Mailer: exmh version 1.6.9 8/22/96
Cc: Tim Bunce <Tim.Bunce@ig.co.uk>
To: dbi-users@fugue.com
Subject: Blobs memory leak fix (was: Re: Blobs solution)
In-reply-to: Your message of "Tue, 10 Dec 1996 14:00:22 GMT." <9612101400.AA03014@toad.ig.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 10 Dec 1996 16:12:26 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Thanks to Tim's suggestion and sticking my nose into the Perl XS docs
for a while I found the memory-leak and how to fix it.  Attached is
the one-line patch.  With this and "$ora_cache = 1" I am successfully
extracting 10s of Gigabytes of longs from Oracle using DBD-Oracle-0.43.

- Jurgen

--- Oracle.xs.orig      Tue Dec 10 15:59:15 1996
+++ Oracle.xs   Tue Dec 10 15:59:49 1996
@@ -272,7 +272,7 @@
     long       destoffset
     CODE:
     if (!destrv)
-       destrv = sv_2mortal(newRV(newSV(0)));
+       destrv = sv_2mortal(newRV(sv_2mortal(newSV(0))));
     if (dbd_st_blob_read(sth, field, offset, len, destrv, destoffset))
         ST(0) = SvRV(destrv);
     else ST(0) = &sv_undef;




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28780-24@oink>;
          Wed, 11 Dec 1996 16:13:19 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850318137:10:00632:2; Wed, 11 Dec 96 15:28:57 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1000555; 11 Dec 96 15:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA08196 for dbi-dev-real; Wed, 11 Dec 1996 04:59:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA08192 
          for <dbi-dev@fugue.com>; Wed, 11 Dec 1996 04:59:11 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id GAA40964;
          Wed, 11 Dec 1996 06:59:03 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id GAA20770;
          Wed, 11 Dec 1996 06:58:56 -0600 (CST)
Message-Id: <199612111258.GAA20770@dax.austin.ibm.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-dev@fugue.com
Subject: Re: DBD::DB2 Question
In-reply-to: Your message of Wed, 11 Dec 96 09:50:19 +0000. <9612110950.AA06785@toad.ig.co.uk>
Date: Wed, 11 Dec 96 06:58:56 -0600

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|> > From: mhm@austin.ibm.com
|> > 
|> > "Randy Dyer" <randy.dyer@llbean.com>  writes:
|> > > 
|> > > I'm running DBI 0.73, DBD::DB2 0.61, perl 5.003 on AIX with DB2/6000
|> > > 2.1.1.
|> > > 
|> > > When I execute  $dbh->rollback, after performing several deletes:
|> > > no backouts occur.  Likewise, if I execute a die before 
|> > > $cursor->finish or $dbh->disconnect, nothing is backed out.
|> > > Does $dbh->rollback function?  Is there a commit being executed behind
|> > > the scenes somewhere?
|> > 
|> > By default DBD::DB2 runs in autocommit mode.
|> 
|> It would be best to require $dbh->{AutoCommit} = 1 to be set prior to
|> allowing any prepare()'s to work. That way you'd stay compatible with
|> the other DBD's. Right now it's not compatible.

Are you suggesting that I redundantly set  $dbh->{AutoCommit} = 1?
DB2, by default, establishes the connection with AutoCommit on.  The
two people, of late, have need to run $dbh->{AutoCommit} = 0...
nondefault.

Mike 
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29911-0@oink>;
          Wed, 11 Dec 1996 18:10:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850327545:10:21343:10; Wed, 11 Dec 96 18:05:45 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1021381; 11 Dec 96 18:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA08407 for dbi-users-real; Wed, 11 Dec 1996 06:21:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dbfire.dbna.com (inferno.dbna.com [204.242.48.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA08403 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 06:21:51 -0800 (PST)
Received: (from smap@localhost) by dbfire.dbna.com (8.7.3/8.7.3) id JAA28160 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 09:21:19 -0500 (EST)
Received: from dbrelay1.admin.nyc.dbna.com(165.250.195.68) by dbfire 
          via smap (V1.3) id sma028050; Wed Dec 11 09:20:36 1996
Received: from gogol.mbsdev.nyc.dbna.com (gogol.mbsdev.nyc.dbna.com [165.250.152.24]) 
          by dbrelay1.admin.nyc.dbna.com (8.7.5/8.7.3/FW/Revision: 1.3) 
          with ESMTP id JAA20291 for <dbi-users@fugue.com>;
          Wed, 11 Dec 1996 09:20:34 -0500
Received: from gogol (localhost [127.0.0.1]) 
          by gogol.mbsdev.nyc.dbna.com (8.7.5/8.7.3/Revision: 1.7) with SMTP 
          id JAA05748; Wed, 11 Dec 1996 09:20:30 -0500 (EST)
Message-ID: <32AEC32D.310A@dbna.com>
Date: Wed, 11 Dec 1996 09:20:29 -0500
From: Phillip Millman <pmillman@dbna.com>
Organization: Deutsche Morgan Grenfell
X-Mailer: Mozilla 2.02 (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: DBI Users Mailing List <dbi-users@fugue.com>
Subject: Neophyte Oraperl Question...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have a PLSQL function that is implemented to look like:

  returnCode := company.add('Company Name','Company Address', ... );

The &ora_open works but the ora_fetch doesn't.  How do I get it to
work and allow me to capture the return code.

Thanks
Phil
-- 
Phillip Millman               V: 212-469-8169
Deutsche Morgan Grenfell      F: 212-469-7558
pmillman@dbna.com             B: 917-824-3466
#include <stdDisclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01111-15@oink>;
          Wed, 11 Dec 1996 19:20:49 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850330188:10:06011:0; Wed, 11 Dec 96 18:49:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1005926; 11 Dec 96 18:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA08606 for dbi-dev-real; Wed, 11 Dec 1996 08:15:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA08602 
          for <dbi-dev@fugue.com>; Wed, 11 Dec 1996 08:14:57 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id KAA31574;
          Wed, 11 Dec 1996 10:14:55 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id KAA20918;
          Wed, 11 Dec 1996 10:14:56 -0600 (CST)
Message-Id: <199612111614.KAA20918@dax.austin.ibm.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-dev@fugue.com
Subject: Re: DBD::DB2 Question
In-reply-to: Your message of Wed, 11 Dec 96 13:08:25 +0000. <9612111308.AA07195@toad.ig.co.uk>
Date: Wed, 11 Dec 96 10:14:56 -0600

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|> 
|> > From: mhm@austin.ibm.com
|> > 
|> > Tim Bunce <Tim.Bunce@ig.co.uk>  writes:
|> > |> > From: mhm@austin.ibm.com
|> > |> > 
|> > |> > "Randy Dyer" <randy.dyer@llbean.com>  writes:
|> > |> > > 
|> > |> > > I'm running DBI 0.73, DBD::DB2 0.61, perl 5.003 on AIX with DB2/6000
|> > |> > > 2.1.1.
|> > |> > > 
|> > |> > > When I execute  $dbh->rollback, after performing several deletes:
|> > |> > > no backouts occur.  Likewise, if I execute a die before 
|> > |> > > $cursor->finish or $dbh->disconnect, nothing is backed out.
|> > |> > > Does $dbh->rollback function?  Is there a commit being executed behind
|> > |> > > the scenes somewhere?
|> > |> > 
|> > |> > By default DBD::DB2 runs in autocommit mode.
|> > |> 
|> > |> It would be best to require $dbh->{AutoCommit} = 1 to be set prior to
|> > |> allowing any prepare()'s to work. That way you'd stay compatible with
|> > |> the other DBD's. Right now it's not compatible.
|> > 
|> > Are you suggesting that I redundantly set  $dbh->{AutoCommit} = 1?
|> 
|> Yes. Any `well written' application should explicitly set AutoCommit as
|> needed by the logic of the code being used. It's only `redundant' in
|> your non-typical environment.

AutoCommit should be left to the control of the enduser, who should 
know what the default is for his database and whether his program
needs to change it.  

I don't think that either the DBI or any of the DBDs should 
automatically change any of the default database attributes.

|> > DB2, by default, establishes the connection with AutoCommit on.
|> 
|> Contrary to most other databases (I forget what the 'spec' says).

Well, then most other databases are in violation of the ODBC spec
which says AutoCommit on is the default value.  Which makes it extremely
difficult for those vendors to be ODBC compliant if AutoCommit is
their default.

If, DBI/DBD direction is full ODBC compliance, I don't think it is
appropriate for DBI or any DBD to automatically change the defaults.

|> 
|> > The two people, of late, have need to run $dbh->{AutoCommit} = 0...
|> > nondefault.
|> 
|> One of the major goals of the DBI was to allow portable applications.
|> 
|> As things stand anyone porting a typical Oracle or (I think) Informix
|> app to DB2 will loose their transacrion semantics. That's potentially
|> a huge problem.

Porting either to an ODBC environment will change the tranaction 
semantics. The question is whether we (DBI/DBD developers) cater to
the "old timers" (pardon the expression) who cut their teeth on
databases where AutoCommit = off was the default or do we drag 
everyone kicking and screaming in to the present.....

|> My strong preference would be for DBD::DB2 to connect in non-autocommit
|> mode. If that's not possible then requiring AutoCommit to be explicitly
|> set is both self documenting for native DB2 applications and a valuable
|> safety net for apps being ported to DB2.

Most of the DB2 world (those that have moved to the mainframe 4.x version
or any of the 2.x versions) have already had to deal with this 
compliancy issue and have either overridden the default for all 
aspects of the database or made the appropriate modifications to
their existing applications.  New development assumes that AutoCommit
with by default be on.

If the other database vendors follow suit, migrating their propriatary
CLI systems to either ODBC, or X/OPEN CLI the same issue will have to
be addressed.

My main objection to your preference is that it is taking the 
DBI and the DBDs away from what supposedly is a future direction --
ODBC compliance.

What do the other DBD developers think?  Which way would the end users
like to have it?

Mike

----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-3@oink>;
          Thu, 12 Dec 1996 07:38:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850334046:10:25518:2; Wed, 11 Dec 96 19:54:06 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1025484; 11 Dec 96 19:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA08719 for dbi-users-real; Wed, 11 Dec 1996 08:52:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA08715 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 08:52:06 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id LAA01614 for <dbi-users@fugue.com>;
          Wed, 11 Dec 1996 11:33:59 -0500
Message-ID: <32AF111A.1D52@rochgrp.com>
Date: Wed, 11 Dec 1996 11:52:58 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: SQL update with Oraperl
References: <32AE8F0B.24BC@rochgrp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

BTW
I have DBI-0.73, DBD-Oracle-0.42, Perl 5.003 with EMBED,
and  Oracle 7.2.3, on Solaris 2.5x86.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-5@oink>;
          Thu, 12 Dec 1996 07:38:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850334163:9:04870:3; Wed, 11 Dec 96 19:56:03 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1026050; 11 Dec 96 19:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA08600 for dbi-users-real; Wed, 11 Dec 1996 08:13:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA08596 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 08:13:37 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id KAA01447; Wed, 11 Dec 1996 10:55:03 -0500
Message-ID: <32AE8F0B.24BC@rochgrp.com>
Date: Wed, 11 Dec 1996 02:38:03 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: choman@rochgrp.com, Eliot_Night@mc.xerox.com, nights@eznet.net, 
    ddonn@rochgrp.com, mscaglio@rochgrp.com
Subject: SQL update with Oraperl
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

If someone could help...

Insert works fine, but this update is not working.
I am getting no error messages.
This query works fine in sqlplus.
Here is the original sqlplus table creation statement, and description:

CREATE TABLE foo_bar
(  Location_ID CHAR(10),
   Product_ID  CHAR(10),
   Factor_ID   CHAR(10),
   Month       CHAR(6),
   Timeframe   CHAR(1),
   Case        CHAR(1),
   PerfValue   NUMBER (15, 5),
   CONSTRAINT  Some_Key 
   PRIMARY KEY (Location_ID,Product_ID,
   Factor_ID,Timeframe,Case,Month))

SQL> desc foo_bar;
 Name                            Null?    Type
 ------------------------------- -------- ----
 LOCATION_ID                     NOT NULL CHAR(10)
 PRODUCT_ID                      NOT NULL CHAR(10)
 FACTOR_ID                       NOT NULL CHAR(10)
 MONTH                           NOT NULL CHAR(6)
 TIMEFRAME                       NOT NULL CHAR(1)
 CASE                            NOT NULL CHAR(1)
 PERFVALUE                                NUMBER(15,5)

I simplified the problem into a tiny script,
to try to narrow things down...

#!/usr/bin/perl -w

use diagnostics;
require ('oraperl.ph');
use Oraperl;

use vars qw($location_id $product_id 
            $factor_id $month $timeframe
            $case $perfvalue);

$data_table  = "foo_bar";

undef $ora_login;

# login to Oracle

$lda = &ora_login('XXXX', 'xxxx', 'xxxx')
        or die "$ora_errstr : $|\n";

die "\&oralogin undefined: $|\n"
        unless defined &ora_login; 
              # a little redundancy goes a long way

while (<>)
{
    ($location_id,
     $product_id,
     $factor_id,
     $month,       # I definitely have these in the right order
     $perfvalue,
     $timeframe,
     $case) = split "\t", $_, 7;

   # try to update

    $csr = &ora_open($lda,

                    "UPDATE $data_table
                     SET     perfvalue = :1
                     WHERE location_id = :2
                     AND    product_id = :3
                     AND     factor_id = :4
                     AND         month = :5
                     AND     timeframe = :6
                     AND          case = :7", 1)

               or die "$ora_errstr : $|\n";

    &ora_bind($csr, $perfvalue, $location_id,
              $product_id, $factor_id,
              $month, $timeframe, $case)
              or die "$ora_errstr : $|\n";

    print 'UPDATE:', "\n",
           join("\n", $csr, $location_id, $product_id,
                      $factor_id, $month, $timeframe,
                      $case);                  # monitor values
    print "$perfvalue", "\n" ;

    &ora_close($csr)
        or warn "$ora_errstr : $|\n";
}

&ora_commit($lda) 
    or warn "$ora_errstr : $|\n";

&ora_logoff($lda) 
    or warn "$ora_errstr : $|\n";

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-34@oink>;
          Thu, 12 Dec 1996 07:41:40 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850340005:10:27036:6; Wed, 11 Dec 96 21:33:25 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa904750; 11 Dec 96 21:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA08846 for dbi-users-real; Wed, 11 Dec 1996 10:18:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA08842 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 10:18:44 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id NAA04439;
          Wed, 11 Dec 1996 13:18:39 -0500 (EST)
Message-Id: <199612111818.NAA04439@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Phillip Millman <pmillman@dbna.com>
cc: DBI Users Mailing List <dbi-users@fugue.com>
Subject: Re: Neophyte Oraperl Question...
In-reply-to: Your message of "Wed, 11 Dec 1996 09:20:29 EST." <32AEC32D.310A@dbna.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 11 Dec 1996 13:18:22 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Off the top of my head, you can code is as a SELECT func() FROM dual or code 
your PL/SQL as a procedure with an OUT parameter.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-52@oink>;
          Thu, 12 Dec 1996 07:43:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850346511:10:29936:1; Wed, 11 Dec 96 23:21:51 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1029927; 11 Dec 96 23:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA09090 for dbi-users-real; Wed, 11 Dec 1996 12:13:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA09086 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 12:13:37 -0800 (PST)
Received: from jovial.cse.psu.edu (groenvel@jovial.cse.psu.edu [130.203.10.24]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id PAA06498;
          Wed, 11 Dec 1996 15:13:18 -0500 (EST)
Message-Id: <199612112013.PAA06498@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Terry Dixon <tdixon@rochgrp.com>
cc: dbi-users@fugue.com
Subject: Re: SQL update with Oraperl
In-reply-to: Your message of "Wed, 11 Dec 1996 02:38:03 PST." <32AE8F0B.24BC@rochgrp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 11 Dec 1996 15:13:14 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Its not one of those type CHAR space padding issues? 'FOO' not equal 'FOO '?



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-90@oink>;
          Thu, 12 Dec 1996 07:52:35 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850352290:10:24765:1; Thu, 12 Dec 96 00:58:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1024756; 12 Dec 96 0:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09479 for dbi-users-real; Wed, 11 Dec 1996 14:51:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from west.bri.com (samudra.west.bri.com [207.94.164.20]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA09475 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 14:51:27 -0800 (PST)
From: mdalmia@west.bri.com
Received: from pc06.west.bri.com (godavari) by west.bri.com (5.x/SMI-SVR4) 
          id AA02450; Wed, 11 Dec 1996 14:46:55 -0800
Message-Id: <32AF3A9B.577@west.bri.com>
Date: Wed, 11 Dec 1996 14:50:03 -0800
Reply-To: mdalmia@west.bri.com
Organization: BRI Inc.
X-Mailer: Mozilla 3.0Gold (Win95; I)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: OUT plsql parameter with Oraperl
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

If anyone has used Oraperl with OUT parameters..??
Please advise me on how to get back data from a plsql function.
the data to be outputed is declared as OUT parameter in the plsql 
stored procedure.

 
-------------------------------------------------------------------
Manish K Dalmia                       Email : mdalmia@west.bri.com
BRI Inc.                              Phone : (408)255 1389
20380 Town Center Lane, Ste#220       Fax   : (408)342 0541
Cupertino, CA 95014
-------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-94@oink>;
          Thu, 12 Dec 1996 07:52:57 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850352537:9:01655:5; Thu, 12 Dec 96 01:02:17 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1025633; 12 Dec 96 1:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09498 for dbi-users-real; Wed, 11 Dec 1996 14:54:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (sluggo.rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA09494 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 14:54:40 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id RAA04610 for <dbi-users@fugue.com>;
          Wed, 11 Dec 1996 17:36:19 -0500
Message-ID: <32AF65FD.5B29@rochgrp.com>
Date: Wed, 11 Dec 1996 17:55:09 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: SQL update with Oraperl
References: <199612112013.PAA06498@cse.psu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

John D Groenveld wrote:
> 
> Its not one of those type CHAR space padding issues? 'FOO' not equal 'FOO '?

That could very well be, I'll check it out, thanks.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03188-96@oink>;
          Thu, 12 Dec 1996 07:53:11 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850352635:9:01997:0; Thu, 12 Dec 96 01:03:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa901981; 12 Dec 96 1:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09470 for dbi-users-real; Wed, 11 Dec 1996 14:46:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from postoffice.npac.syr.edu (postoffice.npac.syr.edu [128.230.7.30]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA09460 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 14:46:28 -0800 (PST)
Received: from oldnova.npac.syr.edu (bwm@oldnova.npac.syr.edu [128.230.7.4]) 
          by postoffice.npac.syr.edu (8.7.5/8.7.1) with ESMTP id RAA16826;
          Wed, 11 Dec 1996 17:46:14 -0500 (EST)
Received: (from bwm@localhost) by oldnova.npac.syr.edu (8.7.5/8.7.1) 
          id RAA13952; Wed, 11 Dec 1996 17:46:08 -0500 (EST)
Date: Wed, 11 Dec 1996 17:46:08 -0500 (EST)
From: Barbara Mihalas <bwm@npac.syr.edu>
Message-Id: <199612112246.RAA13952@oldnova.npac.syr.edu>
To: dbi-users@fugue.com, tdixon@rochgrp.com
Subject: Re: SQL update with Oraperl
Cc: bwm@oldnova.npac.syr.edu

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I never was able to get UPDATE to work under Oraperl.  Finally
gave up and coded that part in PL/SQL.  I have suspected that
this results from a bug in Oraperl.   I would also *REALLY* like
to hear from anyone who has been successful and find out what
is needed to make UPDATE work.

          --Barbara Mihalas    bwm@npac.syr.edu

Forepoint LLC
CASE Center CST 2-212
111 College Place
Syracuse NY  13244



Subject: Re: SQL update with Oraperl
References: <32AE8F0B.24BC@rochgrp.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Content-Length: 784
Status: R

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

BTW
I have DBI-0.73, DBD-Oracle-0.42, Perl 5.003 with EMBED,
and  Oracle 7.2.3, on Solaris 2.5x86.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group Inc
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03500-5@oink>;
          Thu, 12 Dec 1996 07:57:39 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850366542:9:11041:0; Thu, 12 Dec 96 04:55:42 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1004889; 12 Dec 96 4:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA09932 for dbi-users-real; Wed, 11 Dec 1996 18:44:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id SAA09928 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 18:44:08 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id SAA08969 
          for <dbi-users@fugue.com>; Wed, 11 Dec 1996 18:43:28 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id SAA00758;
          Wed, 11 Dec 1996 18:43:42 -0800
Date: Wed, 11 Dec 1996 18:43:42 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612120243.SAA00758@anubis.informix.com>
To: dbi-users@fugue.com
Subject: DBD::Informix Version 0.25 Now Available

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I sent this following message to dbi-announce@fugue.com on Monday evening,
but I don't think it was broadcast so I'm repeating the announcement in
this forum.  I've checked one of the CPAN sites, and the software is there
to be collected, so it is probably generally available.  The various web
pages documenting available versions have not yet caught up with this
release.

I have also got a patch available which allows 5.00 or 5.01 ESQL/C to be
used.  The README file states that these versions are unsupported.  Contact
me directly if you need this patch.  If you are not using 5.00 or 5.01 (or
possibly 5.02 -- I've not been able to locate a copy of this to test with),
then you do not need this patch.  If you do need it, you will see that all
your data comes back as strings which are 3 characters long.

I uploaded the data to the Berlin site at about 1996-12-09 21:00 +0800.

---------------------------------------------------------------------------

Date: Mon Dec 9 21:49:58 1996 +0800
From: johnl@informix.com (Jonathan Leffler)
To: dbi-announce@fugue.com
Subject: DBD::Informix Version 0.25 uploaded to CPAN

Good Evening (when this was written),

I've just uploaded DBD::Informix Version 0.25 to CPAN.

This version represents a substantial rewrite of the DBD::Informix
software.  There is POD documentation in the Informix.pm (and in
InformixTest.pm which is used by the test suite).

This version works on ESQL/C 5.02.UC1 and later versions.

This version supports blobs located in memory in SELECT statements (the
value of the blob is available in returned row of data), and in INSERT
statements which contain question mark ('?') place-holders where the blob
values are needed.  These are processed using "$sth->execute(@values);".
Although the code handles blobs, it does not provide all the DBD::Oracle
functions which bind variables.  In fact, you have to do all binding via
the execute interface.

The prepare function no longer executes statements or opens cursors.

The connect() syntax has been brought into line with the DBI standard.  You
can specify the database, and optionally the username and password.  You no
longer specify the host name separately -- you can embed it in the database
name using the normal conventions if required.

Some of the code only comes with prototyped functions.  I don't believe
there are any computers running Informix 5.02 or later which do not have
ANSI C compilers -- no-one in the Porting group was able to come up with an
instance, anyway -- but this might cause problems for some obscure
platform.

This was proved on a Sun Sparc 10 running Solaris 2.4, and compiled with
both GCC 2.7.0 and SUNWspro SPARCompiler SC3.0.1, and tested with ESQL/C
versions 5.03.UC1, 5.07.UC1, 6.00.UE1, 7.13.UC1 and 7.21.UC1 with no
problems.  Pre-release versions have been tested reasonably successfully on
DEC OSF/1 and HP-UX 10.  Some problems have been encountered on SCO and
HP-UX 9.x.  SunOS 4.1.3 runs into problems because ESQL/C 5.00.UC1 and
5.01.UC1 have a bug which prevents the code from returning more than 3
bytes of data; this bug is fixed in 5.02.UC1, but this port is not
available on SunOS 4.1.3.  The 7.21 code was tested under Purify with no
significant leakage left (but I found bug B66179 and its workaround getting
that straight).  On 7.21 and Solaris, there is a residual leak of 18 bytes
and a 1008 byte potential leak which never changes in size and are outside
my control.

This version has been tested in 4 beta cycles by a stalwart crew including:

John Wang - wangj@aromat.com
Del Simmons - del@infoman.com
Dave Thomas - dave@thomases.com
Oyvind Gjerstad - ogj@tglobe1.tollpost.no
Jeff Rowe - j.p.rowe@larc.nasa.gov
Rodlyn Joseph - bluephi@sharpcomm.com
Duc Nguyen - dhn@benvolio.nova.att.com
Serge Davidov - serge@fcmc.com

My thanks to all these people and anyone else who helped.  If you feel I've
left your name out unjustly, please contact me.  My thanks also to Tim
Bunce for DBI, and to Alligator Descartes for the foundation work on
DBD::Informix version 0.24.  Without that starting point, this version
would not have happened.

Barring emergency repair work, no further work on DBD::Informix is
scheduled until 1997.  The next version number will 0.50 unless someone
gives me a sound reason why it should be some other number.

Yours,
Jonathan Leffler (johnl@informix.com) #include <witticism.h>

PS: Despite my email address, this work does not represent any sort of
official Informix endorsement of Perl, DBI, DBD::Informix, or anything.
I've done the work in my spare time, and Informix Software Inc and its
subsidiaries will deny all knowledge of it.  Any views found in the
source code or its documentation represent my views and not those of
Informix Software Inc.  The usual standard disclaimers apply.

PPS: BTW: I think it is time we got rid of the Alpha-only notices on the
DBI software.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-3@oink>;
          Thu, 12 Dec 1996 22:49:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850418343:9:19456:2; Thu, 12 Dec 96 19:19:03 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1021430; 12 Dec 96 19:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA10838 for dbi-dev-real; Thu, 12 Dec 1996 08:34:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA10834 
          for <dbi-dev@fugue.com>; Thu, 12 Dec 1996 08:34:42 -0800 (PST)
Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) 
          from mail.hanse.de (193.174.9.9) with smtp id <m0vYCMc-0000YMC>;
          Thu, 12 Dec 96 15:43 MET
Received: from <mwhh.hanse.de> by mail.hanse.de with bsmtp 
          for <dbi-dev@fugue.com> id <m0vYBzd-0004f9C@mail.hanse.de>;
          Thu, 12 Dec 96 15:20 MET
Received: by mwhh.Hanse.DE (Smail3.1.28.1 #20) id m0vYBrM-000HzKC;
          Thu, 12 Dec 96 15:11 GMT+0100
Received: (from georg@localhost) by deerwood.hanse.de (8.6.11/8.6.11) 
          id NAA23367; Thu, 12 Dec 1996 13:49:38 +0100
Date: Thu, 12 Dec 1996 13:49:37 +0100 (MET)
From: Georg Rehfeld <georg@deerwood.hanse.de>
To: dbi-dev@fugue.com
Subject: Re: DBD::DB2 Question
In-Reply-To: <199612111614.KAA20918@dax.austin.ibm.com>
Message-ID: <Pine.LNX.3.91.961212131910.23234C-100000@deerwood.hanse.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi all,

On Wed, 11 Dec 1996 Mike Moran (mhm@austin.ibm.com) wrote:

> ... AutoCommit yes or no ...
> ...
> AutoCommit should be left to the control of the enduser, who should 
> know what the default is for his database and whether his program
> needs to change it.  
> ...
> What do the other DBD developers think?  Which way would the end users
> like to have it?
> 
> Mike

I think 'dumb' end users (as i.e. someone sitting in front of excel and 
modifying just one table accessed via ODBC) could live with AutoCommit ON 
and may be they also expect that (though excel or whatever front end 
used could easily do a commit for them --- or better ask if it should). 
But any serious database handling can not be done with AutoCommit ON,
especially not, if done by a program that may fail for thousands of 
reasons leaving an inconsistent database.

ODBC specs seem to be written with that 'dumb' user in mind, but a perl 
programmer never is 'dumb'.

Though I think an AutoCommit-default of OFF would be best, I could live 
with an explicit reset to OFF at program start.

But a REQUIREMENT of AutoCommit anywhere in the manipulation process (as 
suggested for a prepare to work by Tim if I'm right) would DISQUALIFY DBD 
(or the database requiring it) for any serious work! Don't do that! 

Best regards
Georg
 ___   ___
| + | |__ ' Georg Rehfeld,  D-20535 Hamburg, Jordanstr. 8,  [49] (40) 2518356
|_|_\ |___, georg@deerwood.hanse.de



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-15@oink>;
          Thu, 12 Dec 1996 22:50:28 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850420353:9:00328:4; Thu, 12 Dec 96 19:52:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1001970; 12 Dec 96 19:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA10924 for dbi-dev-real; Thu, 12 Dec 1996 09:46:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA10920 
          for <dbi-dev@fugue.com>; Thu, 12 Dec 1996 09:46:05 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA10088;
          Thu, 12 Dec 1996 09:44:56 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA02476;
          Thu, 12 Dec 1996 09:45:09 -0800
Date: Thu, 12 Dec 1996 09:45:09 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612121745.JAA02476@anubis.informix.com>
To: johnl@informix.com, mhm@austin.ibm.com
Cc: dbi-dev@fugue.com
Subject: Re: Default value for AutoCommit?

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

>From: mhm@austin.ibm.com
>To: johnl@informix.com
>Subject: Default value for AutoCommit?
>Date: Thu, 12 Dec 96 07:03:41 -0600
>
>John,
>
>  Tim and I are having a discussion about AutoCommit on the various
>databases.  THe question came as to what the default value for AutoCommit
>is.  On DB2, it is on by default, and on Oracle it is off by default.
>So the question is what is the default for Informix?

Mark,

Thanks for asking.

It depends on which sort of Informix database you are using.  There are two
main systems, OnLine and SE, and both systems support 3 distinct types of
database:

	MODE ANSI
	Logged
	UnLogged

With a MODE ANSI database, there are transactions, and you are in a
transaction at all times.  You can explicitly commit or rollback as
desired, but a new transaction is automatically started.  For this
environment, by default, AutoCommit is off -- transactions are committed
only when the user requests them.  Setting AutoCommit on would mean that
commit was executed after every statement.  I don't think it matters if the
statement fails; there were no changes (in OnLine for sure, and SE in
theory) to be rolled back or committed, so it doesn't matter which you do.
This corresponds to Oracle's view (and ANSI/ISO SQL, hence the name).

With a Logged database, there are transactions, but by default, each
statement is its own transaction -- AutoCommit is on!  You can explicitly
start a transaction with BEGIN WORK (and it is a nuisance to me that the
DBI interface does not contain an interface to this as well as COMMIT WORK
and ROLLBACK WORK), which turns AutoCommit off until you commit or
rollback.  When you do commit or rollback, AutoCommit is (effectively)
turned back on.  This corresponds to DB2's view (and is the mode that most
Informix database run in).  Being picky, OnLine has two sub-types of logged
database: buffered and unbuffered.  The distinction is immaterial for the
purposes of this discussion.

With an unlogged database, there are no transactions.  The effect is that
each statement is its own transaction, so AutoCommit is on and cannot be
changed (the code should silently ignore attempts to change it).  I doubt
if either Oracle or DB2 has equivalent functionality.  This is most
commonly used with SE databases, or OnLine databases converted from SE.  I
don't recommend it for OnLine systems, though there are plenty of databases
out there running quite happily in this mode.

The code in the DBD::Informix CONNECT functionality discovers which sort of
Engine it is talking to, and which sort of database it is working with, and
sets AutoCommit appropriately.  However, at the moment, it doesn't take any
notice of what you do with AutoCommit.  Fixing this is a priority for the
next release of DBD::Informix.

>BTW, would you check out the discussion on the dbi-dev list and add
>you opinion.  The thread starts with a question from Randy Dyer and
>explodes from there.....

I'm registered with dbi-dev@fugue.com, but I think our email connection has
been very spotty for most of this week.  Stuff I sent out on Monday is only
now arriving in the outside world...  I've not had any opportunity to
review this material.  Is there somewhere where I can see all the postings?

>------------------------------------------------------------------------------
>Michael H. Moran                  | Standard Disclaimer:  The content of
>mhm@austin.ibm.com                | this posting is independent of
>Modeling, Analysis & Compilers    | official IBM position.
>IBM Corporation, Austin, Texas    |

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-23@oink>;
          Thu, 12 Dec 1996 22:51:13 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850422298:10:11716:0; Thu, 12 Dec 96 20:24:58 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa910177; 12 Dec 96 20:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA10981 for dbi-dev-real; Thu, 12 Dec 1996 10:06:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA10977 
          for <dbi-dev@fugue.com>; Thu, 12 Dec 1996 10:06:48 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA11779 
          for <dbi-dev@fugue.com>; Thu, 12 Dec 1996 10:06:17 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA02549;
          Thu, 12 Dec 1996 10:06:30 -0800
Date: Thu, 12 Dec 1996 10:06:30 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612121806.KAA02549@anubis.informix.com>
To: dbi-dev@fugue.com
Subject: Re: DBD::DB2 Question (To AutoCommit Or Not To AutoCommit)

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

I was asked by Mike Moran about default values for AutoCommit in Informix,
and with luck, you should have seen my response to that question.  Now that
I've also seen this question, I think I need to add some more comments to
the subject...

>Date: Thu, 12 Dec 1996 13:49:37 +0100 (MET)
>From: Georg Rehfeld <georg@deerwood.hanse.de>
>Subject: Re: DBD::DB2 Question
>
>    *** From dbi-dev -- To unsubscribe, see the end of this message. ***
>
>On Wed, 11 Dec 1996 Mike Moran (mhm@austin.ibm.com) wrote:
>> ... AutoCommit yes or no ...
>> ...
>> AutoCommit should be left to the control of the enduser, who should
>> know what the default is for his database and whether his program
>> needs to change it.
>> ...
>> What do the other DBD developers think?  Which way would the end users
>> like to have it?
>
>I think 'dumb' end users (as i.e. someone sitting in front of excel and
>modifying just one table accessed via ODBC) could live with AutoCommit ON
>and may be they also expect that (though excel or whatever front end
>used could easily do a commit for them --- or better ask if it should).
>But any serious database handling can not be done with AutoCommit ON,
>especially not, if done by a program that may fail for thousands of
>reasons leaving an inconsistent database.
>
>ODBC specs seem to be written with that 'dumb' user in mind, but a perl
>programmer never is 'dumb'.
>
>Though I think an AutoCommit-default of OFF would be best, I could live
>with an explicit reset to OFF at program start.
>
>But a REQUIREMENT of AutoCommit anywhere in the manipulation process (as
>suggested for a prepare to work by Tim if I'm right) would DISQUALIFY DBD
>(or the database requiring it) for any serious work! Don't do that!

With Informix databases, the correct default for AutoCommit depends on the
database you are connected to -- for some Informix databases, the default
is On, for others the default is Off.

It seems to me that if you require AutoCommit to be in a particular state,
you should set it to that state.

In my view, the DBI specification should say that it is undefined whether
AutoCommit is On or Off for any given connection when that connection is
opened, and that if some script using DBI needs to be concerned about this,
it should either find out the AutoCommit state or explicitly set it (or
both).

'Tis odd -- coming from the Informix background where different databases
can have different default behaviours, even with the same OnLine server, it
didn't even occur to me that this would be a hot topic of discussion.  "Of
course" it depends on the database to which you are connected:-)

Yours,
Jonathan Leffler (johnl@informix.com) #include <witticism.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-54@oink>;
          Thu, 12 Dec 1996 22:53:20 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850429060:9:14809:1; Thu, 12 Dec 96 22:17:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015793; 12 Dec 96 22:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA11281 for dbi-users-real; Thu, 12 Dec 1996 11:41:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA11277 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 11:41:15 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.6.9/8.6.9) 
          id TAA21516 for dbi-users@fugue.com; Thu, 12 Dec 1996 19:40:57 GMT
Date: Thu, 12 Dec 96 19:40 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: DBD::Oracle and Oracle 7.3.2
To: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.493405@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Has anyone got DBD::Oracle working with Oracle version 7.3.2?
I get a linker error when making Oracle.so, because one of the
Oracle .o files (crti.o) is not in the oracle lib dir.  Looks like this 
version of Oracle uses a different set of object files.  I'll track 
this down tomorrow, but would appreciate any pointers.

DBI version 0.73
DBD::Oracle version 0.43
Oracle version 7.3.2

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-56@oink>;
          Thu, 12 Dec 1996 22:53:26 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850429061:9:14809:4; Thu, 12 Dec 96 22:17:41 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015796; 12 Dec 96 22:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA11101 for dbi-users-real; Thu, 12 Dec 1996 10:51:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from vortex.uplanet.com (host-165-3.uplanet.com [204.163.165.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA11097 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 10:51:38 -0800 (PST)
Received: from yoga.uplanet.com by vortex.uplanet.com (SMI-8.6/SMI-SVR4) 
          id KAA22309; Thu, 12 Dec 1996 10:51:32 -0800
Received: by yoga.uplanet.com (SMI-8.6/SMI-SVR4) id KAA03298;
          Thu, 12 Dec 1996 10:51:28 -0800
Date: Thu, 12 Dec 1996 10:51:28 -0800
From: hamilton@uplanet.com (Hamilton H.)
Message-Id: <199612121851.KAA03298@yoga.uplanet.com>
To: dbi-users@fugue.com
Subject: auto-extend in Oracle
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Does anyone know how to access the auto-extend feature
in Oracle 7.2 or 7.3?  Thanks.

Hamilton Hitchings
Unwired Planet


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11623-58@oink>;
          Thu, 12 Dec 1996 22:53:32 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850429100:10:16009:0; Thu, 12 Dec 96 22:18:20 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa915010; 12 Dec 96 22:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA11365 for dbi-users-real; Thu, 12 Dec 1996 11:50:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA11361 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 11:50:55 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.6.9/8.6.9) 
          id TAA24183 for dbi-users@fugue.com; Thu, 12 Dec 1996 19:50:37 GMT
Date: Thu, 12 Dec 96 19:49 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: auto-extend in Oracle
To: hamilton@uplanet.com
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.493732@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <199612121851.KAA03298@yoga.uplanet.com>
> Does anyone know how to access the auto-extend feature
> in Oracle 7.2 or 7.3?  Thanks.

Not really a DBI problem, but what you want is:

alter database datafile <data_file_name> autoextend on next 
<increment_size> maxsize <maximum_size>;

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13003-2@oink>;
          Thu, 12 Dec 1996 23:50:17 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850433841:9:08721:6; Thu, 12 Dec 96 23:37:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1008541; 12 Dec 96 23:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA11536 for dbi-users-real; Thu, 12 Dec 1996 12:54:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id MAA11532 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 12:54:52 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id OAA13058 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 14:54:51 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id OAA29016;
          Thu, 12 Dec 1996 14:54:50 -0600 (CST)
Message-Id: <199612122054.OAA29016@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-users@fugue.com
Subject: Announce: DBD-DB2-0.62
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 12 Dec 96 14:54:50 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This version fixes the AutoCommit problems of the previous version,
which means the end user can now control transaction flow.

Additionally, it fixes a problem discovered with 
connect/disconnect/connect sequences.

It has been uploaded to CPAN and should make its way around in a
day or two.

- -----------------------------------------------------------------------------
-
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13003-4@oink>;
          Thu, 12 Dec 1996 23:50:22 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850433841:9:08721:9; Thu, 12 Dec 96 23:37:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id ab908614; 12 Dec 96 23:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA11567 for dbi-users-real; Thu, 12 Dec 1996 13:01:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA11563 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 13:00:59 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id NAA21983;
          Thu, 12 Dec 1996 13:00:16 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id NAA14010;
          Thu, 12 Dec 1996 13:00:29 -0800
Date: Thu, 12 Dec 1996 13:00:29 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612122100.NAA14010@anubis.informix.com>
To: dbi-users@fugue.com, glangs@pe.langs.co.at
Cc: johnl@informix.com
Subject: Re: DBD:Informix-0.25: Function dbd_ix_blobs

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

>From: gerhard@pe.langs.co.at
>Date: Thu, 12 Dec 96 11:48:33 +0100
>
>Hello again.
>
>(Informix/esql Version 7.10.UC1, on RS/6000,AIX 4.1.4, C++: CSet++ 3.1.4)
>
>There seem to be some logical problems in the fucntion dbd_ix_blobs -
>
>file: dbdimp.ec
>/-----
>1.
>/-----
>extract from this function:
>  +669  static void
>  +670  dbd_ix_blobs(imp_sth_t *imp_sth)
>  +671  {
>..
>  +676      int             blobno;
>..
>  +709          }
>  +710      }
>  +711      assert(blobno == imp_sth->n_blobs);
>  +712  }
>
>With no assignment to blobno anywhere between -> assert fails (unpredictably)

You are right.  The declaration and the assert should both be removed.

If it is any help to understanding how it got there, there was a phase
where blobs were handled rather differently and this assertion then made
some sense.  When I fixed the blob handling, just before releasing this
version, I forgot to delete it, my testing didn't show any problems.
Oh well!

>/-----
>2.
>/-----
>the function dbd_ix_blobs is called from dbd_st_prepare:
>..
>  +809      if (imp_sth->st_type == SQ_SELECT)
>  +810          rc = dbd_ix_declare(imp_sth);
>  +811  #ifdef SQ_EXECPROC
>  +812      else if (imp_sth->st_type == SQ_EXECPROC && desc_count > 0)
>  +813          rc = dbd_ix_declare(imp_sth);
>  +814  #endif  /* SQ_EXECPROC */
>  +815      else if (imp_sth->st_type == SQ_INSERT && desc_count > 0)
>  +816      {
>  +817          dbd_ix_blobs(imp_sth);
>..
>
>esp. with imp_sth->st_type == SQ_INSERT in all cases.
>however inside dbd_ix_blobs, there in an assert for SQ_SELECT / SQ_EXECPROC:
>
>  +679      int             n_columns = imp_sth->n_columns;
>  +680
>  +681  #ifdef SQ_EXECPROC
>  +682      assert(imp_sth->st_type == SQ_SELECT || imp_sth->st_type == SQ_EXECP
>ROC);
>  +683  #else
>  +684      assert(imp_sth->st_type == SQ_SELECT);
>  +685  #endif /* SQ_EXECPROC */
>
>.. which must always fail, because st_type == SQ_INSERT

Again, correct.  I thought I was compiling with assertions enabled, but I
am going to have to reconsider that assumption.  But I think the obvious
change (add "|| imp_sth->st_type == SQ_INSERT" to both alternatives) will
do for the time being.  Or, remove the assertion altogether -- after
looking at the code, that is probably better.

>These are the 2 points, where make test on my machine fails, however
>they might hide some other errors.
>
>Once again I dont attach my detailed system environment - I think
>there is no need for it.

I agree.  Thanks for your help.

>greetings
>
>-----------------------------------------------------------------
>Langs Gerhard                      glangs@mail.Austria.eu.net
>OOA/D/P, C++, Motif, Informix

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14795-5@oink>;
          Fri, 13 Dec 1996 07:38:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850439352:9:02419:13; Fri, 13 Dec 96 01:09:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa902429; 13 Dec 96 1:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA12107 for dbi-users-real; Thu, 12 Dec 1996 15:25:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from huey.disney.com (0@[204.128.192.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id PAA12103 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 15:25:02 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id PAA26643 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 15:24:19 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA10705 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Thu, 12 Dec 1996 15:18:15 -0800
Received: by wdigl000.is.wdi.disney.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BBE840.DD9E7140@wdigl000.is.wdi.disney.com>;
          Thu, 12 Dec 1996 15:26:37 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-961212232327Z-3899@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: New build for win32 perl. DBI port closer/easier ?
Date: Thu, 12 Dec 1996 15:23:27 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

From: http://www.activeware.com/

"The latest beta build of PerlScript and Perl for Win32 is Build 301.
This is based on
5.003_07 Core Perl code."

Somebody bought hip.com. Now its activeware.

The previous version of the NT port was based on a very early perl5 that
didn't have a dynaloader.
And that was one of the reasons why a DBI port would be a lot of effort
(so I read).

>With that obstacle gone, are we significantly closer ?


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14795-7@oink>;
          Fri, 13 Dec 1996 07:38:55 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850439352:10:01445:0; Fri, 13 Dec 96 01:09:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1001433; 13 Dec 96 1:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA11994 for dbi-users-real; Thu, 12 Dec 1996 15:00:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id PAA11990 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 15:00:06 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id RAA05833 for <dbi-users@fugue.com>;
          Thu, 12 Dec 1996 17:42:12 -0500
Message-ID: <32B0A207.CA5@rochgrp.com>
Date: Thu, 12 Dec 1996 16:23:35 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: DBD::Oracle and Oracle 7.3.2
References: <memo.493405@cix.compulink.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Alan,

I compiled these same modules -

DBI version 0.73
DBD::Oracle version 0.43
Oracle version 7.3.2

- on Solaris 7.5x86

I had problems, and eventually compiled everything successfully,
but I did not experience any difficulty with Oracle.so.

Alan Burlison wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Has anyone got DBD::Oracle working with Oracle version 7.3.2?
> I get a linker error when making Oracle.so, because one of the
> Oracle .o files (crti.o) is not in the oracle lib dir.  Looks like this
> version of Oracle uses a different set of object files.  I'll track
> this down tomorrow, but would appreciate any pointers.
> 
> DBI version 0.73
> DBD::Oracle version 0.43
> Oracle version 7.3.2
> 
> 

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14795-9@oink>;
          Fri, 13 Dec 1996 07:39:12 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850439415:9:02704:0; Fri, 13 Dec 96 01:10:15 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa902659; 13 Dec 96 1:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA12035 for dbi-users-real; Thu, 12 Dec 1996 15:10:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from sluggo.rochgrp.com (sluggo.rochgrp.com [204.249.122.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id PAA12030 
          for <dbi-users@fugue.com>; Thu, 12 Dec 1996 15:10:16 -0800 (PST)
Received: from greenhorn ([13.231.66.51]) by sluggo.rochgrp.com (8.6.11/8.6.9) 
          with SMTP id RAA05988; Thu, 12 Dec 1996 17:52:23 -0500
Message-ID: <32B0A46A.1EF8@rochgrp.com>
Date: Thu, 12 Dec 1996 16:33:46 -0800
From: Terry Dixon <tdixon@rochgrp.com>
Organization: The Rochester Group Inc.
X-Mailer: Mozilla 2.02 (Win16; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: choman@rochgrp.com, cbohnert@rochgrp.com, Eliot_Night@mc.xerox.com, 
    nights@eznet.net, ddonn@rochgrp.com, mscaglio@rochgrp.com
Subject: Re: SQL update with Oraperl
References: <199612112013.PAA06498@cse.psu.edu> <32AF65FD.5B29@rochgrp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

All,

I read every scrap I could find about compilation problems with Perl5, 
DBI, and DBD-Oracle, under Oracle 7.2.3 and Solaris 2.5x86.  After 
recompiling each one several times, I'm happy to say that my original 
Oraperl 'update' script finally works.  If anyone wants to know what I 
tweaked when compiling - just ask.

Thanks for all the help.

-- 
Terry Dixon              mailto:tdixon@rochgrp.com
The Rochester Group
600 Park Avenue
Rochester,NY 14607       http://www.rochgrp.com/
USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14795-19@oink>;
          Fri, 13 Dec 1996 07:41:23 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850446499:10:23569:0; Fri, 13 Dec 96 03:08:19 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1023560; 13 Dec 96 3:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA12506 for dbi-dev-real; Thu, 12 Dec 1996 17:45:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA12502 
          for <dbi-dev@fugue.com>; Thu, 12 Dec 1996 17:45:54 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id RAA05083;
          Thu, 12 Dec 1996 17:45:21 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id RAA20366;
          Thu, 12 Dec 1996 17:45:34 -0800
Date: Thu, 12 Dec 1996 17:45:34 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612130145.RAA20366@anubis.informix.com>
To: Tim.Bunce@ig.co.uk
Cc: dbi-dev@fugue.com, johnl@informix.com
Subject: Re: Type Names in DBD drivers

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

>Date: Fri, 13 Dec 1996 00:18:46 +0000
>From: Tim Bunce <Tim.Bunce@ig.co.uk>
>To: dbi-dev@fugue.com, johnl@informix.com
>Subject: Re: Type Names in DBD drivers
>
>Sorry for the long delay. It slipped through the cracks.
>
>> From: johnl@informix.com (Jonathan Leffler)
>>
>> I've got DBD::Informix v0.25 working reasonably well, and I wanted to
>> axe some Oracle definitions that don't translate into Informix idioms,
>> but I came up with an encoding problem.  When the user requests:
>>
>> @type = @{$statement->{TYPE}};
>>
>> What should the values in the @type array be?  Numbers, or strings?
>
>Note the all uppercase name. That means it's semantics are defined
>by an official standard. It should contain numbers. The same numbers
>the SQL CLI (and ODBC) use.

OK.  And for types which are not in the SQL CLI?  Since they aren't defined
by any standard, any sort of answer could be provided?  Or do you have some
magic convention to indicate that the type is not one of the SQL CLI types.

>> Upper or lower case strings?  Similarly, what should be in arrays:
>>
>> @prec = @{$statement->{PRECISION}};
>> @scal = @{$statement->{SCALE}};
>>
>> What information do these array convey for each and every type?
>
>Find an SQL CLI spec (an ODBC book might do but may use different names).

OK.  I'll see what I can do about finding out what the standard is.  Can
you provide a statement to this effect (and a reference to the published
standard which implementers need to use) in the DBI Spec.  This will make
it easier for people like me to know what they have to do.

What is the official reference (URL?) for the SQL CLI spec?

>> With Informix, it seems to me that there are several possible answers to
>> these questions, and different people will find different answers most
>> useful.
>
>Very true. Feel free to add @{$statement->{inf_foobar}} to return some
>Informix specific information or values.

Will do.  I'll put together a suitable name, which might or might not be
something like @{$statement->{typename}}.  Is there a particular naming
convention I should be using?  If it is inf_typename, I shall probably
puke; if it has to be informix_typename, I will survive without puking.
I seem to remember from my perusal of the spec that TypeName has some
particular significance, as well as typename and TYPENAME and maybe even
_typename.

I'd like to suggest that a @{$stmt->{TYPENAME}} returning strings would
be an appropriate addition to DBI.  It would return the type name for the
column in a format which could be used in a CREATE TABLE statement for
that type.

Note that DBD::Informix version 0.25 has been released, and it does not
return the SQL CLI data type numbers.

>> In fact, I suggest that the @type array should contain the full type names
>> for each column in any format that would be equivalent to what is
>> used in the CREATE TABLE statement, with the names in lower case.
>
>Don't do that for all upper case names (see the 'DBI Spec' for details).
>Define your own 'inf_*' attributes if you feel you really must.

The only DBI Spec I know of is the v0.6 spec, and it is very old and not
stable according to its own warning labels (though I don't think it has
changed in over a year).  It was clearly written before Perl 5 arrived.
Are there any plans to revise it to Perl 5 conventions?  Are events really
part of DBI, or are they a speculative specification?

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18682-0@oink>;
          Fri, 13 Dec 1996 18:18:32 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850501000:10:11656:0; Fri, 13 Dec 96 18:16:40 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa925683; 13 Dec 96 18:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA00983 for dbi-users-real; Fri, 13 Dec 1996 07:30:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bulldog.datawatch.com (bulldog.datawatch.com [207.60.138.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA00979 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 07:30:27 -0800 (PST)
Received: from loring (loring.datawatch.com [172.22.11.100]) 
          by bulldog.datawatch.com (8.7.5/8.7.3) with SMTP id KAA14827 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 10:31:11 -0500 (EST)
Message-ID: <32B1763E.7857@datawatch.com>
Date: Fri, 13 Dec 1996 10:29:02 -0500
From: John Loring <loring@datawatch.com>
Reply-To: loring@datawatch.com
Organization: Datawatch Corporation
X-Mailer: Mozilla 3.0 (Win16; U)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: SQL update with Oraperl
References: <199612112013.PAA06498@cse.psu.edu> <32AF65FD.5B29@rochgrp.com> <32B0A46A.1EF8@rochgrp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Terry Dixon wrote:
> All,
> 
> I read every scrap I could find about compilation problems with Perl5,
> DBI, and DBD-Oracle, under Oracle 7.2.3 and Solaris 2.5x86.  After
> recompiling each one several times, I'm happy to say that my original
> Oraperl 'update' script finally works.  If anyone wants to know what I
> tweaked when compiling - just ask.

I'm about to do this same install, and would appreciate the info.
Thanks.

--John

> 
> Thanks for all the help.
> 
> --
> Terry Dixon              mailto:tdixon@rochgrp.com
> The Rochester Group
> 600 Park Avenue
> Rochester,NY 14607       http://www.rochgrp.com/
> USA
> 

========================================================
John Loring         		Datawatch Corporation
Director of IT      		234 Ballardvale St.
loring@datawatch.com		Wilmington, MA 01887
(508) 988-9700 x 690		http://www.datawatch.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18733-0@oink>;
          Fri, 13 Dec 1996 18:23:11 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850501305:10:13221:33; Fri, 13 Dec 96 18:21:45 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1013104; 13 Dec 96 18:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA00899 for dbi-users-real; Fri, 13 Dec 1996 06:25:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA00895 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 06:25:09 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail1.austin.ibm.com (8.6.12/8.6.11) with ESMTP id IAA98570 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 08:25:08 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id IAA29306;
          Fri, 13 Dec 1996 08:25:07 -0600 (CST)
Message-Id: <199612131425.IAA29306@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-users@fugue.com
Subject: DBD::DB2 author needs assistance
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 13 Dec 96 08:25:06 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

My manangement chain has asked for a rough count of the number of
DBD::DB2 users.  So, would everyone that is using DBD::DB2 drop
me some email.  That is problem number one, the easy one.

Problem number two is slight more difficult, management would also
like some feed back on the type of use (ie, is job facilitation,
mission critical or just a nice toy).  Now, I realize that some of
employers might balk at this type info, so don't panic if can't provide
it.

Thanks.
Mike

------------------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21374-0@oink>;
          Fri, 13 Dec 1996 23:54:16 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850510641:9:12677:4; Fri, 13 Dec 96 20:57:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1026016; 13 Dec 96 20:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA01232 for dbi-users-real; Fri, 13 Dec 1996 09:13:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA01228 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 09:13:15 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id RAA27029 for dbi-users@fugue.com; Fri, 13 Dec 1996 17:12:52 GMT
Date: Fri, 13 Dec 96 17:12 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: DBD::Oracle and Oracle 7.3.2 - A PATCH
To: Tim.Bunce@ig.co.uk
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.525684@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <9612131157.AA15144@toad.ig.co.uk>
Tim,

As promised, a patch against Makefile.PL to fix the problem I had
in getting DBD::Oracle to build on my machine.  Machine details are:

SCO UnixWare 2.1.1
Oracle7 Server Release 7.3.2.2.0 - Production Release
Perl version 5.003_11
DBI version 0.73
DBD::Oracle version 0.43

The problem is caused by the fact that the Oracle file
$(ORACLE_HOME)/precomp/env_precomp.mk the following two
macros are defined:

COMPOBJ=$(ORACLE_HOME)/lib
COMPOBJS=$(COMPOBJ)/crti.o $(COMPOBJ)/crt1.o $(COMPOBJ)/__fstd.o

Unfortunately an 'ls *.o' in $ORACLE_HOME/lib reveals:

nnfgt.o     ntcontab.o  osntab.o    osntabst.o  s0main.o

i.e none of the files listed in the COMPOBJS macro actually exist.
COMPOBJS is one of the things put into OTHERLDFLAGS in Makefile.PL
- and so you end up with the non-existent object files being passed
to the linker...BANG!  Here is the appropriate bit of the make output:

Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/home/oracle/product/7.3.2/lib:/shlib:/usr/ccs/lib" 
/bin/cc
-o ./blib/arch/auto/DBD/Oracle/Oracle.so -G -L/usr/ccs/lib -L/usr/ucblib 
-L/usr /local/lib -L/usr/gnu/lib Oracle.o  dbdimp.o 
/home/oracle/product/7.3.2/lib/crti.o /home/oracle/product/7.3.2/lib/crt1.o 
/home/oracle/product/7.3.2/lib/__fstd.o
-L/home/oracle/product/7.3.2/lib -lsql -lsqlnet -lncr -lsqlnet -lclient 
-lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc 
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl 
-lc -lgen -lthread -lm
UX:ld: ERROR: /home/oracle/product/7.3.2/lib/crti.o: fatal error: cannot open 
file for reading
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.

The patch below fixes the problem by adding an entry to the %edit hash in the 
fetch_oci_macros() sub to check that all the files listed in the COMPOBJS make
macro actually exist.  I have left the existing solaris-specific edit in 
place,
but the new edit will be performed on all other machines.  I don't think it
will do any harm, for as long as the files listed in COPMPOBJS exist it will
have no effect.  I have tested this by creating dummy copies of the offending
.o files under $ORACLE_HOME/lib, and it works fine on my machine, but 
obviously
it will need testing on another platform.

*** Makefile.PL Fri Dec 13 16:32:03 1996
--- Makefile.PL.new     Fri Dec 13 16:35:10 1996
***************
*** 256,270 ****
      # makefile (note that %MK stills gets these values).
      my @edit = qw(SHELL CC CFLAGS CCFLAGS OPTIMIZE ASFLAGS RCC LD LDFLAGS 
AR ECHO EXE OBJS);
      my %edit; @edit{@edit} = ('$_ = ""') x @edit;
  
!     $edit{COMPOBJS} = q{
            # Change the COMPOBJS line. (Some files use LIBHOME not COMPOBJ)
            # old: $(COMPOBJ)/crti.o $(COMPOBJ)/crt1.o $(COMPOBJ)/__fstd.o
            # new: $(COMPOBJ)/__fstd.o
            s:\$\S+?/crt[1in]\.o\b::g;
!       } if $Config{osname} eq 'solaris'; # and $Config{gccversion};
! 
      my $mkver = 0;
      my $linkwith = '';
      my $lastline = '';
      my @lines = read_inc_file($procmk);
--- 256,281 ----
      # makefile (note that %MK stills gets these values).
      my @edit = qw(SHELL CC CFLAGS CCFLAGS OPTIMIZE ASFLAGS RCC LD LDFLAGS 
AR ECHO EXE OBJS);
      my %edit; @edit{@edit} = ('$_ = ""') x @edit;
  
!     if ($Config{osname} eq 'solaris') # and $Config{gccversion}
!        {
!        $edit{COMPOBJS} = q{
            # Change the COMPOBJS line. (Some files use LIBHOME not COMPOBJ)
            # old: $(COMPOBJ)/crti.o $(COMPOBJ)/crt1.o $(COMPOBJ)/__fstd.o
            # new: $(COMPOBJ)/__fstd.o
            s:\$\S+?/crt[1in]\.o\b::g;
!           }
!         }
!     else {
!         $edit{COMPOBJS} = q{
!             # Check that the object files in COMPOBJ actually exist -
!             # if not, remove them
!             my $of; foreach $of (split(/=|\s/)) {
!                 s:\Q$of:: if $of ne "COMPOBJS" && ! -e 
expand_mkvars($of,0,0,0);
!                 } 
!             }
!         }
      my $mkver = 0;
      my $linkwith = '';
      my $lastline = '';
      my @lines = read_inc_file($procmk);

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21374-11@oink>;
          Fri, 13 Dec 1996 23:56:24 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850513171:10:06479:0; Fri, 13 Dec 96 21:39:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1006456; 13 Dec 96 21:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA01292 for dbi-users-real; Fri, 13 Dec 1996 09:37:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA01288 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 09:37:03 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA05766;
          Fri, 13 Dec 1996 09:36:30 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA02541;
          Fri, 13 Dec 1996 09:36:43 -0800
Date: Fri, 13 Dec 1996 09:36:43 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612131736.JAA02541@anubis.informix.com>
To: S.Fairey@datasci.co.uk, dbi-users@fugue.com
Cc: johnl@informix.com
Subject: Re: Failed build of DBI:Informix on AIX 4.1.4

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

There is a long-standing problem mixing Informix's "locator.h" file
with system files which use "localedef31.h".  The original bug report
for this was, I think, B8223, from September 1990.  However, nothing
has been done to fix it (and it is outside my control by a long way).

After discussion with someone else who had some problems on AIX (Hi,
Gerhard; I had a bounce when I sent you an email earlier today), we've
agreed that a workable solution is to add the following patch (look for the
"eq 'aix'") to Makefile.PL.  I've also included changes which clean up the
printing of the messages warning that things aren't as straight-forward as
I'd like.

I'll issue a patch file officially in the not too distant future, which
will include this workaround and the 5.00/5.01 bug workaround, and amended
documentation to reflect the new realities of the release.

Thank you for reporting the problem.

Yours,
Jonathan Leffler (johnl@informix.com) #include <witticism.h>

PS: Simon, why did you compile Perl without the prototypes?  I think the
-D_NO_PROTO option suppresses prototypes, and is what leads to the warnings
about __STDC__ being abused.  This code wants to use prototypes if at all
possible.

>From: "Fairey Simon (MS Mail Dir Sync)" <S.Fairey@datasci.co.uk>
>Date: Fri, 13 Dec 1996 15:25:00 -0000
>
>Hi,
>
>The following I believe is all the required information for
>a failed build along with the commands used. If any more
>info is required I will gladly supply it...
>
>Thanks
>
>Simon
>
>*****perl Makefile.PL
>
>
>Configuring DBD::Informix version 0.25...
>Remember to actually read the README file!
>
>Using INFORMIX-ESQL Version 5.05.UC6 from /u/informix
>You need to use a customized ESQL/C compiler script
>which recognizes the INFORMIXC environment variable.
>I'll create a local version and ensure that make uses it.
>
>Uh oh!  We're on a machine which does not use the C compiler to
>create shared libraries.
>
>		Unfortunately, you are also using a version of ESQL/C which does not
>		have a mechanism to tell us which libraries will be needed.  We're
>		going to have to assume that esqlld can sort things out for you.
>		Contact the DBD::Informix maintenance team if it doesn't work.
>		Perl:     perl5.003 aix dl_aix.xs
>System:   aix horus 1 4 002043797600
>Compiler: cc -O -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE
>-D_POSIX_SOURCE  -D_NO_PROTO
>
>Checking if your kit is complete...
>Looks good
>Writing Makefile for DBD::Informix
>
>
>*****make
>
>
>cp InformixTest.pm ./blib/lib/DBD/InformixTest.pm
>cp Informix.pm ./blib/lib/DBD/Informix.pm
>	/bin/perl "-I/usr/local/lib/perl5/aix/5.003" "-I/usr/local/lib/perl5"
>-e 'use ExtUtils::Mksymlists;  Mksymlists("NAME" => "DBD::Informix",
>"DL_FUNCS" => {  }, "DL_VARS" => []);'
>	/bin/perl -I/usr/local/lib/perl5/aix/5.003 -I/usr/local/lib/perl5
>/usr/local/lib/perl5/ExtUtils/xsubpp  -typemap
>/usr/local/lib/perl5/ExtUtils/typemap Informix.xs >xstmp.c && mv xstmp.c
>Informix.c
>	cc -c -I/u/informix/incl/esql -I/usr/local/lib/perl5/aix/5.003/DBI
>-I/usr/local/lib/perl5/site_perl/aix/DBI -qmaxmem=8192 -D_ALL_SOURCE
>-D_ANSI_C_SOURCE -D_POSIX_SOURCE -D_NO_PROTO -O     -DVERSION=\"0.25\"
>-DXS_VERSION=\"0.25\"  -I/usr/local/lib/perl5/aix/5.003/CORE
>-DESQLC_VERSION=505 -DUSE_PROTOTYPES Informix.c
>"esqlc.h", line 64.9: 1506-312 (W) Compiler internal name __STDC__ has
>been defined as a macro.
>"/u/informix/incl/esql/locator.h", line 115.7: 1506-334 (S) Identifier
>loc_t has already been defined on line 181 of
>"/usr/include/sys/localedef31.h".
>"esqlc.h", line 139.8: 1506-313 (W) Compiler internal name __STDC__ has
>been undefined as a macro.
>make: 1254-004 The error code from the last command is 1.
>
>
>Stop.
>
>
>*****env | sort
>
>
>AUTHSTATE=compat
>_=/bin/env
>DBDATE=DMY4/
>DBINCL=/u/informix/incl/tools
>DBLIB=/u/informix/lib/esql
>DBMONEY=_.
>DISPLAY=simonpc:0
>HOME=/home/sf
>INFORMIXDIR=/u/informix
>LANG=En_GB
>LC__FASTMSG=true
>LOCPATH=/usr/lib/nls/loc
>LOGIN=sf
>LOGNAME=sf
>MANPATH=/usr/local/man
>NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/ms
>g/%L/%N.cat:/usr/lib/nls/msg/en_US/%N.cat
>ODMDIR=/etc/objrepos
>PATH=.:/home/sf/bin:/bin:/usr/bin:/usr/local/bin:/u/informix/bin:/usr/uc
>b:/usr/bin/X11:/usr/lib/X11/bx2/bin:/usr/lpp/X11/Xamples/bin:/etc:/usr/s
>bin:/sbin
>SHELL=/usr/bin/csh
>SQLEXEC=/u/informix/lib/sqlturbo
>TBCONFIG=tbcon2int2
>TERM=aixterm
>TZ=CUT0
>USER=sf
>
>
>*****perl -e 'use Config; print Config::myconfig()'
>
>
>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=aix, osver=4.1.4.0, archname=aix
>    uname='aix horus 1 4 002043797600 '
>    hint=recommended, useposix=true, d_sigaction=define
>  Compiler:
>    cc='cc', optimize='-O', gccversion=
>    cppflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE
>-D_POSIX_SOURCE  -D_NO_PROTO'
>    ccflags ='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE
>-D_POSIX_SOURCE  -D_NO_PROTO'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=1, d_casti32=define, d_castneg=
>    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
>  Linker and Libraries:
>    ld='ld', ldflags =' -L/usr/local/lib'
>    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
>    libs=-ldbm -lld -lm -lc -lbsd -lPW
>    libc=/usr/lib/libc.a, so=so
>  Dynamic Linking:
>    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=, ccdlflags='-bE:perl.exp'
>    cccdlflags=' ', lddlflags='-H512 -T512 -bhalt:4 -bM:SRE
>-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc
>-L/usr/local/lib'
>
>
>*****esql -V
>INFORMIX-ESQL Version 5.05.UC6


*** /tmp/da000bc	Wed Dec 31 16:00:00 1969
--- Makefile.PL	Fri Dec 13 09:34:12 1996
***************
*** 1,6 ****
  #!/usr/bin/perl -sw
  #
! # @(#)Makefile.PL	25.20 96/12/09 20:20:08
  #
  # Amendments: Jonathan Leffler (johnl@informix.com)
  # Portions Copyright (c) 1996 Jonathan Leffler
--- 1,6 ----
  #!/usr/bin/perl -sw
  #
! # @(#)Makefile.PL	25.21 96/12/13 09:34:10
  #
  # Amendments: Jonathan Leffler (johnl@informix.com)
  # Portions Copyright (c) 1996 Jonathan Leffler
***************
*** 19,25 ****
  
  %opts = (
  	'NAME'    => 'DBD::Informix',
! 	'VERSION' => '0.25',
  );
  
  print "\nConfiguring DBD::Informix version $opts{VERSION}...\n";
--- 19,25 ----
  
  %opts = (
  	'NAME'    => 'DBD::Informix',
! 	'VERSION' => '0.25p2',
  );
  
  print "\nConfiguring DBD::Informix version $opts{VERSION}...\n";
***************
*** 205,210 ****
--- 205,217 ----
  $opts{DEFINE} .= ' -std1'
  	if (($Config{cc} eq 'cc') && ($Config{osname} eq 'dec_osf'));
  
+ # Workaround Informix bug B08223 (aka B14937, and other numbers too)
+ # AIX localedef31.h defines a loc_t and is used by some system headers.
+ # Informix locator.h also defines a loc_t.  The workaround is to prevent
+ # the localedef31.h declaration from being included.
+ $opts{DEFINE} .= "-D__H_LOCALEDEF"
+ 	if ($Config{osname} eq 'aix');
+ 
  # The Informix headers (like sqlhdr.h) only generate function prototypes if
  # __STD__ is defined.  Without function prototypes, we are often passing
  # pointers to _iq.. functions that the compiler thinks are ints.  This
***************
*** 258,264 ****
  # the files list...
  
  # Default version of $opts{LD}
! $opts{LD} = "INFORMIXC='\$(FULLPERL) esqlld' ESQLLD='$Config{ld} \$(LDDLFLAGS)' \$(ESQL)";
  
  if ($Config{ld} !~ /cc$/ && $Config{ld} ne $Config{cc})
  {
--- 265,272 ----
  # the files list...
  
  # Default version of $opts{LD}
! $opts{LD} = "INFORMIXC='\$(FULLPERL) esqlld' " .
! 			"ESQLLD='$Config{ld} \$(LDDLFLAGS)' \$(ESQL)";
  
  if ($Config{ld} !~ /cc$/ && $Config{ld} ne $Config{cc})
  {
***************
*** 266,275 ****
  	print "create shared libraries.\n";
  	if ($vernum >= 600)
  	{
! 		print q{
! 		Fortunately, you are using a sufficiently new version of ESQL/C
! 		that we can use 'esql -libs' to tell us which libraries to use.
! 		};
  		my $libs = `esql -libs` || die "Couldn't execute 'esql -libs'";
  		$libs =~ s/\n/ /gm;
  		$libs =~ s/-threads// if ($Config{osname} eq 'dec_osf');
--- 274,281 ----
  	print "create shared libraries.\n";
  	if ($vernum >= 600)
  	{
! 		print "Fortunately, you are using a new version of ESQL/C and\n";
! 		print "we can use 'esql -libs' to tell us which libraries to use.\n";
  		my $libs = `esql -libs` || die "Couldn't execute 'esql -libs'";
  		$libs =~ s/\n/ /gm;
  		$libs =~ s/-threads// if ($Config{osname} eq 'dec_osf');
***************
*** 280,291 ****
  	}
  	else
  	{
! 		print q{
! 		Unfortunately, you are also using a version of ESQL/C which does not
! 		have a mechanism to tell us which libraries will be needed.  We're
! 		going to have to assume that esqlld can sort things out for you.
! 		Contact the DBD::Informix maintenance team if it doesn't work.
! 		};
  		# Do not override default version of $opts{LD}
  	}
  }
--- 286,295 ----
  	}
  	else
  	{
! 		print "Unfortunately, you are using a version of ESQL/C which does\n";
! 		print "not have a mechanism to tell us which libraries it needs.\n";
! 		print "We'll assume that esqlld can sort things out for you.\n";
! 		print "Contact the DBD::Informix maintenance team if it doesn't.\n";
  		# Do not override default version of $opts{LD}
  	}
  }


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21374-13@oink>;
          Fri, 13 Dec 1996 23:56:35 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850513331:9:24087:0; Fri, 13 Dec 96 21:42:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1007122; 13 Dec 96 21:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA01542 for dbi-users-real; Fri, 13 Dec 1996 11:05:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from exinis1-1.morgan.com (exinis.ms.com [204.254.197.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA01538 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 11:05:04 -0800 (PST)
Received: (from mail@localhost) 
          by exinis1-1.morgan.com (8.6.12/sendmail.cf.firewall v1.21) 
          id OAA12556 for <dbi-users@fugue.com>;
          Fri, 13 Dec 1996 14:05:02 -0500
Received: from samail1.morgan.com(144.14.9.149) by exinis1-1.morgan.com 
          via smap (V1.3) id sma010540; Fri Dec 13 14:02:13 1996
Received: from sait216.morgan.com (sait216.morgan.com [144.14.24.183]) 
          by samail1.morgan.com (8.8.3/hub v1.41) with ESMTP id OAA18141 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 14:02:12 -0500 (EST)
From: Manoj Gupte <manoj@morgan.com>
Received: (manoj@localhost) 
          by sait216.morgan.com (8.7.5/sendmail.cf.client v1.05) id OAA16061 
          for dbi-users@fugue.com; Fri, 13 Dec 1996 14:02:11 -0500 (EST)
Date: Fri, 13 Dec 1996 14:02:11 -0500 (EST)
Message-Id: <9612131402.ZM16059@morgan.com>
X-Mailer: Z-Mail (3.2.1 10oct95)
To: dbi-users@fugue.com
Subject: Querying column names in Informix
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm using the Informix DBI and would like to populate one array
with the column names from a query and another with all column names in a
table.

I've attempted the following:

1. after executing $cursor:
@names = @{$cursor->{'NAME'}};

I get a core dump on this one.  I noticed in an archived mail to dbi-users
that this function was not available for Informix as of July, 1996.  Are there
any further plans to implement this function for Informix?

2.  after connecting to the database:
  $table = "someTable";
  $ref = $dbh->func( $table, '_ListFields' );

At run time I get
Can't locate DBI object method "_ListFields" via package "DBD::Informix::db"

3.  also after connecting:
 @columns = &db'info_col_names($dbh,$someTable);

I get Undefined subroutine &db::info_col_names


Does anyone know if I am using these incorrectly or if there is a better way
to pick up the column names?  I'm using perl5.003 and DBI version .73.

Best regards,

Manoj

-- 
Manoj Gupte					Email     : manoj@morgan.com
Morgan Stanley Inc.				Telephone : 212-762-2680
7th Floor, 750 7th Avenue,
New York.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21374-15@oink>;
          Fri, 13 Dec 1996 23:56:43 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850513390:10:07359:0; Fri, 13 Dec 96 21:43:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa924306; 13 Dec 96 21:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA01525 for dbi-users-real; Fri, 13 Dec 1996 11:01:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bkinis1-1.morgan.com (bkinis.ms.com [204.254.196.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA01519 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 11:00:59 -0800 (PST)
Received: (from mail@localhost) 
          by bkinis1-1.morgan.com (8.6.12/sendmail.cf.firewall v1.21) 
          id OAA07098 for <dbi-users@fugue.com>;
          Fri, 13 Dec 1996 14:00:54 -0500
Received: from samail1.morgan.com(144.14.9.149) by bkinis1-1.morgan.com 
          via smap (V1.3) id sma006403; Fri Dec 13 13:59:58 1996
Received: from sait216.morgan.com (sait216.morgan.com [144.14.24.183]) 
          by samail1.morgan.com (8.8.3/hub v1.41) with ESMTP id NAA17966 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 13:59:57 -0500 (EST)
From: Manoj Gupte <manoj@morgan.com>
Received: (manoj@localhost) 
          by sait216.morgan.com (8.7.5/sendmail.cf.client v1.05) id NAA16055 
          for dbi-users@fugue.com; Fri, 13 Dec 1996 13:59:57 -0500 (EST)
Date: Fri, 13 Dec 1996 13:59:57 -0500 (EST)
Message-Id: <9612131359.ZM16053@morgan.com>
X-Mailer: Z-Mail (3.2.1 10oct95)
To: dbi-users@fugue.com
Subject: Querying column names in Informix
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm using the Informix DBI and would like to populate one array
with the column names from a query and another with all column names in a
table.

I've attempted the following:

1. after executing $cursor:
@names = @{$cursor->{'NAME'}};

I get a core dump on this one.  I noticed in an archived mail to dbi-users
that this function was not available for Informix as of July, 1996.  Are there
any further plans to implement this function for Informix?

2.  after connecting to the database:
  $table = "someTable";
  $ref = $dbh->func( $table, '_ListFields' );

At run time I get
Can't locate DBI object method "_ListFields" via package "DBD::Informix::db"

3.  also after connecting:
 @columns = &db'info_col_names($dbh,$someTable);

I get Undefined subroutine &db::info_col_names


Does anyone know if I am using these incorrectly or if there is a better way
to pick up the column names?  I'm using perl5.003 and DBI version .73.

Many thanks.
ann mariani
mariani@morgan.com


---End of forwarded mail from MARIANI

-- 
Manoj Gupte					Email     : manoj@morgan.com
Morgan Stanley Inc.				Telephone : 212-762-2680
7th Floor, 750 7th Avenue,
New York.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21374-44@oink>;
          Fri, 13 Dec 1996 23:58:16 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850518369:10:26854:0; Fri, 13 Dec 96 23:06:09 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa916419; 13 Dec 96 23:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA01843 for dbi-users-real; Fri, 13 Dec 1996 11:54:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA01839 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 11:54:21 -0800 (PST)
Received: from anubis.informix.com (anubis.informix.com [158.58.29.164]) 
          by informix.com (8.7.4/8.7.3) with SMTP id LAA16308;
          Fri, 13 Dec 1996 11:52:40 -0800 (PST)
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id LAA02961;
          Fri, 13 Dec 1996 11:52:53 -0800
Date: Fri, 13 Dec 1996 11:52:53 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612131952.LAA02961@anubis.informix.com>
To: dbi-users@fugue.com, manoj@morgan.com
Subject: Re: Querying column names in Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

You omitted to say which version of DBD::Informix.
I'd like to think it was not the latest version, which is 0.25.

No, the info_col_names and such routines have not been implemented,
but it would not be hard to write some code that does it...

In fact, I got some code sent to me by G L Sicherman which may do the job;
I attach it at the end of this message.  I've put some notes into the body
of your message...

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>From: Manoj Gupte <manoj@morgan.com>
>Date: Fri, 13 Dec 1996 14:02:11 -0500 (EST)
>
>I'm using the Informix DBI and would like to populate one array
>with the column names from a query and another with all column names in a
>table.
>
>I've attempted the following:
>
>1. after executing $cursor:
>@names = @{$cursor->{'NAME'}};
>
>I get a core dump on this one.  I noticed in an archived mail to dbi-users
>that this function was not available for Informix as of July, 1996.  Are there
>any further plans to implement this function for Informix?

This works in 0.25.

>2.  after connecting to the database:
>  $table = "someTable";
>  $ref = $dbh->func( $table, '_ListFields' );
>
>At run time I get
>Can't locate DBI object method "_ListFields" via package "DBD::Informix::db"

There is no such function in DBD::Informix 0.25.

>3.  also after connecting:
> @columns = &db'info_col_names($dbh,$someTable);
>
>I get Undefined subroutine &db::info_col_names

Also undefined.

>Does anyone know if I am using these incorrectly or if there is a better way
>to pick up the column names?  I'm using perl5.003 and DBI version .73.
>
>Best regards,
>
>Manoj
>
>--
>Manoj Gupte					Email     : manoj@morgan.com
>Morgan Stanley Inc.				Telephone : 212-762-2680
>7th Floor, 750 7th Avenue,
>New York.

===========================================================================

Date: Thu, 5 Dec 1996 16:29:53 -0500
From: gls@atpsol.cvu.lucent.com (G. L. Sicherman)
To: johnl@informix.com
Subject: info_col

	Date: Thu, 5 Dec 1996 09:13:47 -0800
	From: johnl@informix.com (Jonathan Leffler)
	To: gls@atpsol.cvu.lucent.com

	They weren't on my priority list, but if you can supply the code, I
	may be able to get them into the 0.25 version of DBD::Informix, though
	it is pushing the time limits a bit.

0.26 would be soon enough for me - my hack is good enough for what I'm doing.
Here's the code, in the form of global subs.  My mapping to X/Open database
descriptors is a compromise; please don't feel committed to it.

						--Col. G. L. Sicherman
						  sicherman@lucent.com

#!/usr/lubin/perl

# TEST PROGRAM for info_col and info_col_names:

use DBD::Informix;

# Get an Informix handle and a database handle:

$ifxh = DBI->install_driver('Informix') or die "cannot access Informix\n";
$dbh = $ifxh->connect('dbhost', 'osps') or die "cannot open OSPS database\n";

@ary = &info_col_names($dbh, "rc5_fld_info_fid");
if (@ary>0) {foreach $a (@ary) {print "$a\n";}}
else {print "info_col_names failed\n"};

@ary = &info_col_names($dbh, "bogus");
if (@ary>0) {foreach $a (@ary) {print "$a\n";}}
else {print "info_col_names failed\n"};

%hash = &info_col($dbh, "rc5_fld_info_fid", "rc_type");
if (%hash) {foreach $a (keys %hash) {print "$a = " . $hash{$a} . "\n";}}
else {print "info_col failed\n"};

%hash = &info_col($dbh, "rc5_fld_info_fid", "bogus");
if (%hash) {foreach $a (keys %hash) {print "$a = " . $hash{$a} . "\n";}}
else {print "info_col failed\n"};

$dbh->disconnect;
exit 0;

# END OF TEST PROGRAM.

#	SUBROUTINE: @ary = info_col_names($dbh, $table)

sub info_col_names {
	my ($dbh, $table) = @_;
	my @col;
	my @columns = ();

	my $tabid = &tabid($dbh, $table) or return ();
	my $sh = $dbh->prepare(
		"SELECT colname FROM syscolumns WHERE tabid = $tabid")
		or return ();
	$sh->execute or return ();
	while (@col = $sh->fetchrow) { push @columns, $col[0]; }
	$sh->finish;
	return @columns;
}

#	SUBROUTINE: %hash = info_col($dbh, $table, $column)

sub info_col {
	my ($dbh, $table, $column) = @_;

	my $qcolumn = $dbh->quote($column);
	my $tabid = &tabid($dbh, $table) or return ();
	my $sh = $dbh->prepare(
		"SELECT tabid, coltype, collength FROM syscolumns "
		. "WHERE tabid = $tabid AND colname = $qcolumn")
		or return ();
	$sh->execute or return ();
	my @coldata = $sh->fetchrow or return ();
	$sh->finish;
	return (
		"TABLE_NAME" => $table,
		"TABLE_ID" => $coldata[0],	# nonstandard
		"COLUMN_NAME" => $column,
		"DATA_TYPE" => (
			'CHARACTER',
			'SMALLINT',
			'INTEGER',
			'DOUBLE PRECISION',
			'FLOAT',
			'DECIMAL',
			'INTEGER',		# serial
			'DATE',
			'MONEY',		# nonstandard
			'NULL',			# nonstandard
			'TIMESTAMP',		# date + time
			'BIT',			# byte blob
			'BIT',			# text blob
			'CHARACTER VARYING',
			'INTERVAL',		# nonstandard
			'CHARACTER',		# foreign alphabet
			'CHARACTER VARYING',	# foreign alphabet
		)[$coldata[1]],
		"CHAR_MAX_LENGTH" => $coldata[2],
	);
}

#	SUBROUTINE: $tabid = tabid($dbh, $tablename)

sub tabid {
	my ($dbh, $table) = @_;
	my $qtable = $dbh->quote($table);
	my $sh = $dbh->prepare(
		"SELECT tabid FROM systables WHERE tabname = $qtable")
		or return "";
	$sh->execute or return "";
	my @tabid = $sh->fetchrow;
	$sh->finish;
	return $tabid[0];
}

Date: Thu, 5 Dec 1996 15:00:31 -0800
From: johnl@informix.com (Jonathan Leffler)
To: gls@atpsol.cvu.lucent.com
Subject: Re: info_col

That looks straight-forward enough; I'm simply not sure how to make it available
to users...

Thanks,
Jonathan Leffler (johnl@informix.com) #include <witticism.h>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22840-12@oink>;
          Sat, 14 Dec 1996 02:33:07 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850527311:10:28110:1; Sat, 14 Dec 96 01:35:11 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1028102; 14 Dec 96 1:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA02289 for dbi-users-real; Fri, 13 Dec 1996 14:00:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from Thomases.com (dfw71114.gte.net [206.124.71.114]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA02285 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 14:00:03 -0800 (PST)
Received: (from dave@localhost) by Thomases.com (8.7.4/8.7.5) id PAA19277;
          Fri, 13 Dec 1996 15:59:42 -0600
Date: Fri, 13 Dec 1996 15:59:42 -0600
Message-Id: <199612132159.PAA19277@Thomases.com>
From: Dave Thomas <Dave@Thomases.com>
To: johnl@informix.com
Cc: dbi-users@fugue.com, manoj@morgan.com
Subject: Re: Querying column names in Informix
In-Reply-To: <199612131952.LAA02961@anubis.informix.com>
References: <199612131952.LAA02961@anubis.informix.com>
Mime-Version: 1.0 (generated by tm-edit 7.90)
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've written a simple wrapper for a Select that gets the column names
of the returned fields and uses them to create local variables in a
routine that the user passes in. Might illustrate the technique, or
might be useful in its own right. Usual disclaimers apply:

-----------------------------------------------------------------------------
package Select;

=head1 NAME

Select --  Provide simplified access to select statements of DBI compliant databases.

=head1 SYNOPSIS

    use Select;

    selectSetDBH($dbh);

    select "* from table where name = ? and age = ?",
      binding($name, $age),
      into {
          print "$NAME, $AGE, $SSN .... \n";
      };


   -or-

    select($dbh, "* from table where name = ? and age = ?"),
     ...etc...

=head1 DESCRIPTION

Simplify access to the results of a 'select' statement by generating local
variables containing column values, and passing them into a given block
for each row returned.

The 'binding' parameter is optional if there are no unbound
variables in the statement.

The 'using' block is invoked once for each row in the returned
data. Within the block, variables are set to the values of the 
columns for the row. The variable is given the name of the column,
mapped to upper case. You can name an expression using a syntax like:

     select("credit+debit net from accounts"),
     into {
         print "$NET\n";
     };

Note that the ';' after the 'into' block is mandatory, and Perl may not
warn you it it is missing.

=head1 AUTHOR

Dave Thomas <dave@thomases.com>

=cut

require		Exporter;
@ISA =		qw(Exporter);
@EXPORT =	qw(select binding into selectSetDBH);

use Carp;

#
# Default database handle to use, and a routine to set it
#

my $defaultDBH;
sub selectSetDBH($)
{
    $defaultDBH = shift;
}

############################################################################
#
# The 'binding' and 'into' functions are simply syntactic sugar
#

sub binding(@)
{
    return \@_;
}

sub into(&)
{
    return $_[0];
}

############################################################################
#
# Select is where the fun happens. We try to be clever about our
# argument types

sub select($$;$$)
{
    # If p1 is a reference to a DBD object, use it, otherwise use the
    # default. If no default, bomb out

    my ($stmt, $binds, $into);

    my $dbh = $_[0];

    if (ref($dbh) =~ /^DBD/) {
	shift;
    }
    else {
	$dbh = $defaultDBH || croak "No DBH passed to 'select' and no default given";
    }

    # OK - now looking at  @_ = <stmt>,<bind>,<block> or <stmt><block>

    $stmt = shift;

    $stmt = "select " . $stmt if ($stmt !~ /^(select|SELECT)/);

    croak "Missing 'into' block in select" if (@_ == 0);

    if (@_ == 1) {
	($binds, $into) = ([], shift);
    }
    else {
	($binds, $into) = @_;
    }

    # OK we're cooking

    my ($cp) = caller;

    my $cursor = $dbh->prepare($stmt);

    if (!$cursor) {
	carp "Couldn't prepare cursor for $stmt: $DBI::errstr";
	return undef;
    }

    if (!$cursor->execute(@$binds)) {
	carp "Couldn't execute $stmt: $DBI::errstr";
	return undef;

    }

    # Build the list of column names now

    my @names = @ { $cursor->{NAME} };

    map { s/(\w+) *$/\U$1/ } @names;

    # and traverse the result set

    while ($ref = $cursor->fetch()) {

	@row = @$ref;

	for $i (0..$#names) {
	    $ { "${cp}::$names[$i]" } = $row[$i];
	}

	# and run the block
	eval '&$into' || croak $@;
    }

    
    undef $cursor;

    return 1;
}

1;


-- 

 _________________________________________________________________________
| Dave Thomas - Dave@Thomases.com - Unix and systems consultancy - Dallas |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28332-14@oink>;
          Sun, 15 Dec 1996 22:16:40 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850542689:9:29494:0; Sat, 14 Dec 96 05:51:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa929480; 14 Dec 96 5:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA00640 for dbi-users-real; Fri, 13 Dec 1996 19:56:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from xmission.xmission.com (shea@xmission.xmission.com [198.60.22.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA00636 
          for <dbi-users@fugue.com>; Fri, 13 Dec 1996 19:56:30 -0800 (PST)
Received: (from shea@localhost) by xmission.xmission.com (8.8.4/8.7.5) 
          id UAA29562 for dbi-users@fugue.com;
          Fri, 13 Dec 1996 20:56:21 -0700 (MST)
Date: Fri, 13 Dec 1996 20:56:21 -0700 (MST)
From: Gary Shea <shea@xmission.com>
Message-Id: <199612140356.UAA29562@xmission.xmission.com>
To: dbi-users@fugue.com
Subject: MsqlPerl emulation for DBI-mSQL

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I dunno if anyone is interested in this, but I have a good start
on a DBD-mSQL emulation of Andreas Koenig's Msql interface.

I do not plan to get the various Statement methods such as
name and type working (except for listfields), as there appears
to be no support in the DBD for it.  Hopefully someone will
correct me if I'm wrong.

I mentioned it in some mail to this list a few days ago but never
saw either the message or a response (on the other hand, I have
cron delete all my mailing list traffic every night at 6pm :),
and unfortunately the dbi-users archive is broken this month.
Are there any other dbi-users archives out there, besides the
one in Missouri?

So, if you replied before please do so again, and cc me!  Thanks!

	Gary



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17454-32@oink>;
          Tue, 17 Dec 1996 16:27:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850835812:9:22866:1; Tue, 17 Dec 96 15:16:52 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1015091; 17 Dec 96 15:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA05054 for dbi-users-real; Tue, 17 Dec 1996 03:11:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com ([192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id DAA05050 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 03:11:01 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA23014 
          for dbi-users@fugue.com; Tue, 17 Dec 96 04:10:59 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA27680 
          for dbi-users@fugue.com; Tue, 17 Dec 96 04:10:59 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id MAA20493 for dbi-users@fugue.com; Tue, 17 Dec 1996 12:10:53 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199612171110.MAA20493@ismuc.sps.mot.com>
Subject: DBD-Oracle and mutating variables
To: dbi-users@fugue.com
Date: Tue, 17 Dec 1996 12:10:52 +0100 (MET)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi all,

This problem is making me tear my hair out.  I call PL/SQL functions
using $csr->bind_param_inout() and $csr->execute().  Most of the time
this works fine.  Occasionally I get the error message

Placeholder :p1 value mutated type after bind

and the script dies.

In his announcment for DBD-Oracle-0.40 with PL/SQL support, Tim Bunce
mentioned this behaviour:

"Currently if the variable 'mutates' too much the execute will die
but it's unlikely to happen in typical use. Later I plan to
automatically rebind in such cases."

Looking at dbdimp.c, this "later" has still not come to pass.  Up to
now, I've been working around these mutations by forcing a variable to
be numeric through "$tmp = 0 + $var_to_be_bound" and using \$tmp instead
of \$var_to_be_bound in the bind_param_inout() statement.  (Most of the
PL/SQL functions expect NUMBER type arguments and return NUMBERs.)

Does anyone understand the mutation problem well enough to explain how
I can avoid it?  Is there a general workaround technique I can use?
How much work would it be to "automatically rebind in such cases"?
(Not that I know enough about perl internals and Pro*C to attempt it...)

My environment is as follows

AIX 4.1.3
perl 5.003
DBI-0.73
DBD-Oracle-0.43

Both DBI-0.73 and DBD-Oracle-0.43 are linked statically (using gcc 2.7.0) --
I have an executable in /usr/local/bin called oraperl.  I built the binary
with the workgroup server 7.1.6 but I'm currently using it with the
workgroup server 7.3.2 .  All of it passed "make test" and "make install"
fine.

I have a license for xlc (unbundled compiler) -- I just haven't installed
it yet.

Any hints appreciated.

-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21859-84@oink>;
          Wed, 18 Dec 1996 08:01:25 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850860817:9:19078:0; Tue, 17 Dec 96 22:13:37 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1003969; 17 Dec 96 22:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA05475 for dbi-users-real; Tue, 17 Dec 1996 08:44:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cs.sunysb.edu (sbcs.sunysb.edu [130.245.1.15]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA05471 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 08:44:53 -0800 (PST)
Received: from sbgrad1.csdept (sbgrad1.cs.sunysb.edu [130.245.2.18]) 
          by cs.sunysb.edu (8.6.12/8.6.9) with SMTP id LAA18646 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 11:52:13 -0500
From: monika szulc <mszulc@cs.sunysb.edu>
Message-Id: <199612171652.LAA18646@cs.sunysb.edu>
Subject: help with $cursor->execute command
To: dbi-users@fugue.com
Date: Tue, 17 Dec 1996 11:42:14 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I just started using DBI for Oracle and I have the following problem:

I wrote a script that is supposed to get some information from a database.
Here is part of it:


$drh = DBI->install_driver( 'Oracle' );        
$dbh = $drh->connect('****','***','****' );
die unless $dbh;
#retreive current date

$cursor=$dbh->prepare("SELECT SYSDATE FROM DUAL");
$cursor->execute;
while (@fields = $cursor->fetchrow) {
    $tod_date=@fields;
}

#retreive the last order number;

$cursor=$dbh->prepare("SELECT MAX(ORDERID) FROM ORDERS");
$cursor->execute;
while (@fields=$cursor->fetchrow) {
    ($orderid)=@fields;
}


When I run it I get an error message that says:
Can't call method "execute" without a package or object reference at /users/mszulc/public_html/cgi-bin/order.pl line 47.

Line 47 is the second $cursor->execute command. 
Why doesn't it work? Should I use different name for the second cursor?
I get the same message when I put $cursor->finish after the first execute
command;

Please help.

Monika 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21859-102@oink>;
          Wed, 18 Dec 1996 08:04:36 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850866150:9:18529:1; Tue, 17 Dec 96 23:42:30 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa918464; 17 Dec 96 23:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA05686 for dbi-users-real; Tue, 17 Dec 1996 10:00:00 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cs.sunysb.edu (sbcs.sunysb.edu [130.245.1.15]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA05682 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 09:59:35 -0800 (PST)
Received: from sbgrad1.csdept (sbgrad1.cs.sunysb.edu [130.245.2.18]) 
          by cs.sunysb.edu (8.6.12/8.6.9) with SMTP id NAA19474 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 13:06:59 -0500
From: monika szulc <mszulc@cs.sunysb.edu>
Message-Id: <199612171806.NAA19474@cs.sunysb.edu>
Subject: help with $cursor->execute command
To: dbi-users@fugue.com
Date: Tue, 17 Dec 1996 12:57:00 -0500 (EST)
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,
 
I just started using DBI for Oracle and I have the following problem:
 
I wrote a script that is supposed to get some information from a database.
Here is part of it:

************************************************************
$drh = DBI->install_driver( 'Oracle' );        
$dbh = $drh->connect('****','***','****' );
die unless $dbh;

#retreive current date
 
$cursor=$dbh->prepare("SELECT SYSDATE FROM DUAL");
$cursor->execute;
while (@fields = $cursor->fetchrow) {
    $tod_date=@fields;
}
$cursor->finish;
#retreive the last order number;
 
$cursor=$dbh->prepare("SELECT MAX(ORDERID) FROM ORDERS");
$cursor->execute;
while (@fields=$cursor->fetchrow) {
    ($orderid)=@fields;
}
$cursor->finish;

************************************************************

When I run it I get an error message that says:
Can't call method "execute" without a package or object reference at
/users/mszulc/public_html/cgi-bin/order.pl line 47.
 
Line 47 is the second $cursor->execute command. 
Why doesn't it work? Should I use different name for the second cursor?

Here is also the beginning of debug output.

 DBI::db=HASH(0x17957c) debug level set to 2
    -> prepare for DBD::Oracle::db (DBI::db=HASH(0x1795f4)~0x17957c 'SELECT SYSDATE FROM DUAL')
    <- prepare= DBI::st=HASH(0x179588)
    -> execute for DBD::Oracle::st (DBI::st=HASH(0x179588)~0x1797e0)
    <- execute= '0E0'
    -> fetchrow for DBD::Oracle::st (DBI::st=HASH(0x179588)~0x1797e0)
    <- fetchrow= ( '17-DEC-96' ) [1 items]
    -> fetchrow for DBD::Oracle::st (DBI::st=HASH(0x179588)~0x1797e0)
    <- fetchrow= ( ) [0 items]
    -> finish for DBD::Oracle::st (DBI::st=HASH(0x179588)~0x1797e0)
    <- finish= 1
    -> prepare for DBD::Oracle::db (DBI::db=HASH(0x1795f4)~0x17957c 'SELECT MAX(ORDERID) FROM ORDERS')
    <- prepare= DBI::st=HASH(0x183020)
    -> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x1797e0))
    <- DESTROY= undef
    -> execute for DBD::Oracle::st (DBI::st=HASH(0x183020)~0x1830b0)
    <- execute= '0E0'
    -> fetchrow for DBD::Oracle::st (DBI::st=HASH(0x183020)~0x1830b0)
    <- fetchrow= ( undef ) [1 items]
    -> fetchrow for DBD::Oracle::st (DBI::st=HASH(0x183020)~0x1830b0)
    <- fetchrow= ( ) [0 items]

 
Please help.
 
Monika 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21859-116@oink>;
          Wed, 18 Dec 1996 08:06:22 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850870531:9:09955:1; Wed, 18 Dec 96 00:55:31 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa909949; 18 Dec 96 0:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA06778 for dbi-users-real; Tue, 17 Dec 1996 14:59:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.darwin.com (firewall-user@gateway.darwin.com [199.238.223.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA06774 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 14:59:36 -0800 (PST)
Received: by gateway.darwin.com; id OAA29931;
          Tue, 17 Dec 1996 14:58:12 -0800 (PST)
Received: from rainier.darwin.com(199.238.220.5) by gateway.darwin.com 
          via smap (3.2) id xma029929; Tue, 17 Dec 96 14:57:55 -0800
Received: from olympus.darwin.com by rainier (5.x/SMI-SVR4) id AA10642;
          Tue, 17 Dec 1996 14:58:57 -0800
Received: by olympus.darwin.com (5.x/SMI-SVR4) id AA05291;
          Tue, 17 Dec 1996 14:57:38 -0800
From: yasayko@darwin.com (Michael Yasayko)
Message-Id: <9612172257.AA05291@olympus.darwin.com>
Subject: Re: help with $cursor->execute comma
To: dbi-users@fugue.com
Date: Tue, 17 Dec 1996 14:57:37 -0800 (PST)
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> $cursor=$dbh->prepare("SELECT MAX(ORDERID) FROM ORDERS");
> $cursor->execute;
> while (@fields=$cursor->fetchrow) {
>     ($orderid)=@fields;
> }
> 
> 
> When I run it I get an error message that says:
> Can't call method "execute" without a package or object reference at 
/users/ms
zulc/public_html/cgi-bin/order.pl line 47.
> 
> Line 47 is the second $cursor->execute command. 
> Why doesn't it work? Should I use different name for the second cursor?
> I get the same message when I put $cursor->finish after the first execute
> command;


Check the cursor for existence after doing "$dbh->prepare" but before 
"$cursor->execute"; for example:

    $cursor = $dbh->prepare( $query );
    die unless $cursor;
    $cursor->execute;

If $cursor does not exist at this point, it probably means that your SQL 
command was rejected by the RDBMS back end.

--Mike

Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation
yasayko@darwin.com



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21859-118@oink>;
          Wed, 18 Dec 1996 08:06:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850870548:10:22554:1; Wed, 18 Dec 96 00:55:48 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1022535; 18 Dec 96 0:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA06634 for dbi-users-real; Tue, 17 Dec 1996 14:35:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dragon.ti.com (dragon.ti.com [192.94.94.61]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA06630 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 14:35:50 -0800 (PST)
Received: from lesol1.dseg.ti.com ([157.170.147.17]) by dragon.ti.com (8.6.13) 
          with ESMTP id MAA25039; Tue, 17 Dec 1996 12:20:00 -0600
Received: from nbserv2.dseg.ti.com (nbserv2.dseg.ti.com [157.170.51.109]) 
          by lesol1.dseg.ti.com (8.6.9/8.6.6) with SMTP id MAA03006;
          Tue, 17 Dec 1996 12:19:29 -0600
Received: from cna0210146 (cna0210146.dseg.ti.com) 
          by nbserv2.dseg.ti.com (4.1/SMI-4.1) id AA16718;
          Tue, 17 Dec 96 12:19:28 CST
Message-Id: <32B6E45C.19B6@ti.com>
Date: Tue, 17 Dec 1996 12:20:12 -0600
From: Craig Cobb <cwcobb@ti.com>
Reply-To: cwcobb@ti.com
Organization: Texas Instruments
X-Mailer: Mozilla 3.01 (WinNT; I)
Mime-Version: 1.0
To: monika szulc <mszulc@cs.sunysb.edu>
Cc: dbi-users@fugue.com
Subject: Re: help with $cursor->execute command
References: <199612171652.LAA18646@cs.sunysb.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

There must be some kind of error in you SQL statement.  If the
$dbh->prepare statement is not successful, $cursor will not be set up
properly.

Try the following:
$cursor=$dbh->prepare("SELECT SYSDATE FROM DUAL") ||
                      die $DBI::errstr;

-- 
Regards,
      ----
     |    |           ===========================================
     |    |__<*> ___  Craig Cobb, RF/Microwave Technology Center
     |     _|III|_  | Phone: (972)927-4555    Fax: (972) 995-2243
_____|   /_ III _/  \ Email:  cwcobb@ti.com   TI MSGID: CC96
\_        /III/      |
  \   _  /III/      _|Texas Instruments
   \_/ \ \___>  _ -   13510 N. Central Expressway, MS230
        \      /      Dallas, TX 75243
         \    /       ===========================================
           - _\

monika szulc wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hello,
> 
> I just started using DBI for Oracle and I have the following problem:
> 
> I wrote a script that is supposed to get some information from a database.
> Here is part of it:
> 
> $drh = DBI->install_driver( 'Oracle' );
> $dbh = $drh->connect('****','***','****' );
> die unless $dbh;
> #retreive current date
> 
> $cursor=$dbh->prepare("SELECT SYSDATE FROM DUAL");
> $cursor->execute;
> while (@fields = $cursor->fetchrow) {
>     $tod_date=@fields;
> }
> 
> #retreive the last order number;
> 
> $cursor=$dbh->prepare("SELECT MAX(ORDERID) FROM ORDERS");
> $cursor->execute;
> while (@fields=$cursor->fetchrow) {
>     ($orderid)=@fields;
> }
> 
> When I run it I get an error message that says:
> Can't call method "execute" without a package or object reference at /users/mszulc/public_html/cgi-bin/order.pl line 47.
> 
> Line 47 is the second $cursor->execute command.
> Why doesn't it work? Should I use different name for the second cursor?
> I get the same message when I put $cursor->finish after the first execute
> command;
> 
> Please help.
> 
> Monika
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------

-- 
Regards,
      ----
     |    |           ===========================================
     |    |__<*> ___  Craig Cobb, RF/Microwave Technology Center
     |     _|III|_  | Phone: (972)927-4555    Fax: (972) 995-2243
_____|   /_ III _/  \ Email:  cwcobb@ti.com   TI MSGID: CC96
\_        /III/      |
  \   _  /III/      _|Texas Instruments
   \_/ \ \___>  _ -   13510 N. Central Expressway, MS230
        \      /      Dallas, TX 75243
         \    /       ===========================================
           - _\


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21859-120@oink>;
          Wed, 18 Dec 1996 08:06:51 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850870587:9:10193:0; Wed, 18 Dec 96 00:56:27 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa910172; 18 Dec 96 0:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA06423 for dbi-users-real; Tue, 17 Dec 1996 13:49:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA06419 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 13:49:06 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id NAA11673;
          Tue, 17 Dec 1996 13:48:33 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA04908;
          Tue, 17 Dec 1996 13:47:30 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id NAA06574;
          Tue, 17 Dec 1996 13:47:29 -0800
Date: Tue, 17 Dec 1996 13:47:29 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199612172147.NAA06574@anubis.informix.com>
To: dbi-users@fugue.com, mfraser@dssdev2.med.osd.mil
Cc: johnl@informix.com
Subject: Re: DBD-Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

The ecvt() function is a part of the non-Standard C library.  It is
(or used to be) used internally by printf() and friends when handling
floating point numbers.  Since it is not showing up, it may be that we
need to specify the C library which defines ecvt() somehow (possibly
by adding -lc to the libraries) while building the Informix.so shared
object.  You'll need to find which system library does supply ecvt().
There must be one, somewhere, because Informix ESQL/C would not work
at all, otherwise.  You may need to dissect the esql script to see
which libraries it specifies.

Separately, I note that you have -D_NO_PROTO in your compile line.  Do
you know why that is happening and what that signifies?  The code for
DBD::Informix is generally happiest when compiled with prototypes.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>From: Mike Fraser <mfraser@dssdev2.med.osd.mil>
>Date: Tue, 17 Dec 1996 16:26:28 -0500 (EST)
>
>I installed DBD-Informix V0.25.  The DBI build, test and install went OK.
>The DBD V0.25 build went OK, but the test failed with:
>
>$ make test
>        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/
>lib/perl5/AViiON-dgux/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&run
>tests $verbose); $verbose=0; runtests @ARGV;' t/*.t
>t/basic00...........install_driver(Informix) failed: Can't load './blib/arch/aut
>o/DBD/Informix/Informix.so' for module DBD::Informix: dynamic linker: /usr/bin/p
>erl: relocation error: symbol not found: ecvt at /usr/local/lib/perl5/DynaLoader
>.pm line 140.
>
> at blib/lib/DBD/Informix.pm line 27
>
>I see where Informix.so contains an external reference to 'ecvt' but can
>not find any definition in the informix esql/c files.  Nor can I find
>any usage of 'ecvt' in the DBD-Informix modules.
>
>-------
>Extracts from build log.
>
>Using INFORMIX-ESQL Version 5.02.UC6 from /informix
>
>Perl:     perl5.003 AViiON-dgux dl_dlopen.xs
>System:   dgux logdev01 5.4r3.10t c2-trusted aviion mc88110 
>Compiler: gcc -O2 -Dflock=dg_flock -I/usr/local/include -D_NO_PROTO
>
>
>Any help will be appreciated. TIA.
>
>-------------------------------------------------------------------------
> L. Michael Fraser, Ph.D.            Electronic Data Systems/SIDDOMS     
> Pitts Management Associates, Inc.   5113 Leesburg Pike, Skyline 4/800
> 7946 Goodwood Boulevard             Falls Church, VA 22041-3201
> Baton Rouge,  LA  70806-7634        (703) 845-3815  FAX (703) 845-3899
>   (504) 926-9000  FAX 923-0302      Email: Mike.Fraser@med.osd.mil


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22854-6@oink>;
          Wed, 18 Dec 1996 08:11:17 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850884759:9:04079:0; Wed, 18 Dec 96 04:52:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa904056; 18 Dec 96 4:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA07595 for dbi-users-real; Tue, 17 Dec 1996 18:21:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy.telebusiness.co.nz ([203.97.136.12]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id SAA07591 
          for <dbi-users@fugue.com>; Tue, 17 Dec 1996 18:20:57 -0800 (PST)
Received: by proxy.telebusiness.co.nz 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57) 
          id <01BBECF7.73781F30@proxy.telebusiness.co.nz>;
          Wed, 18 Dec 1996 15:23:42 +1300
Message-ID: <c=NZ%a=_%p=Telebusiness%l=PROXY-961218022340Z-38@proxy.telebusiness.co.nz>
From: Nick Langstone <nickl@telebusiness.co.nz>
To: 'dbi-users' <dbi-users@fugue.com>
Subject: problem with '?' substitution
Date: Wed, 18 Dec 1996 15:23:40 +1300
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi there,

I'm having a problem with the '?' substation from perl to the DBD/DBI
interface to a DB2 database. We have the latest release of the DBD/DBI
and version 2.1 of DB2 on the RS6000.

the problem is as follows.
Create table bob
          ( ID         DECIMAL,
            DESC   CHAR(20)
           )

$sqlcmd = "select ID, DESCRIPTION from bob where ID = ?";

$sth = $dbh->prepare( $sqlcmd );

$val = 1234;
$rc = $sth->execute( $val );

while ((@row =  $sth->fetchrow) )
{
      print "@row \n";
}


( Various error handling etc. not shown )

The problem is that the prepare statement give me the following error

[IBM][CLI Driver][DB2/6000] SQL0301N  The value of a host variable in
the EXECUTE or OPEN statement cannot be used because of its data type.
SQLSTATE=42895

the reason is because the "?" substation is putting ' ( single quote's )
around the substation value
resulting in a statement

$sqlcmd = "select ID, DESCRIPTION from bob where ID = '1234' ";

when the database will only accept

$sqlcmd = "select ID, DESCRIPTION from bob where ID = 1234 ";

because the table is defined with the ID files as DECIMAL ( or INTEGER
...... )


The question :

How do I perform a substation of this type without doing the prepare on
the string ( i.e. the full SQL command including substituted values. )

In the DB2.c prepare function it seems to make a check for numeric
values for the substation and make an attempt to handle them properly,
but it is not working. Is it the  way I'm using the interface or if
there is some other way in which to do the substitution, pleas let me
know.


Thanks for any help and comments ins advance....

Nick Langstone
Senior Analyst Programmer
Telebusiness New Zealand Ltd.


"You can always tell when it's Monday because it's the first fine day
after two days of rain."



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27956-36@oink>;
          Wed, 18 Dec 1996 18:06:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850930473:9:07344:0; Wed, 18 Dec 96 17:34:33 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1004545; 18 Dec 96 17:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA08950 for dbi-users-real; Wed, 18 Dec 1996 05:20:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from llbean.com (llbean.com [199.95.60.20]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id FAA08943 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 05:19:50 -0800 (PST)
Message-ID: <n1361225176.21254@llbean.com>
Date: 18 Dec 1996 08:20:59 -0400
From: Randy Dyer <randy.dyer@llbean.com>
Subject: Re: problem with '?' substit
To: Nick Langstone <nickl@telebusiness.co.nz>
Cc: dbi-users <dbi-users@fugue.com>
X-Mailer: Mail*Link SMTP-QM 3.0.2

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Nick,
Here's what you have to do to use '?'.

#import the predefined SQL type definitions from DB2.pm
use DBI::DB2 qw($attrib_int $attrib_char $attrib_float
                 $attrib_date $attrib_ts $attrib_dec
                 $attrib_ts_nullok $attrib_int_nullok
$attrib_char_nullok
                 $attrib_blobin $attrib_blobout);

$sqlcmd = "select ID, DESCRIPTION from bob where ID = ?";

$sth = $dbh->prepare( $sqlcmd );

$val = 1234;

$sth->bind_param(1, $val, $attrib_dec);

$rc = $sth->execute( );  #DONT specify bind variables here!

while ((@row =  $sth->fetchrow) )
{
      print "@row \n";
}

See the CAVEATS file included with the DBD distribution and the DB2 CLI
manual for more details.
Randy
------------------------------
Date: 12/17/96 11:18 PM
To: Randy Dyer
From: Nick Langstone

    *** From dbi-users -- To unsubscribe, see the end of this message.
***

Hi there,

I'm having a problem with the '?' substation from perl to the DBD/DBI
interface to a DB2 database. We have the latest release of the DBD/DBI
and version 2.1 of DB2 on the RS6000.

the problem is as follows.
Create table bob
          ( ID         DECIMAL,
            DESC   CHAR(20)
           )

$sqlcmd = "select ID, DESCRIPTION from bob where ID = ?";

$sth = $dbh->prepare( $sqlcmd );

$val = 1234;
$rc = $sth->execute( $val );

while ((@row =  $sth->fetchrow) )
{
      print "@row \n";
}


( Various error handling etc. not shown )

The problem is that the prepare statement give me the following error

[IBM][CLI Driver][DB2/6000] SQL0301N  The value of a host variable in
the EXECUTE or OPEN statement cannot be used because of its data type.
SQLSTATE=42895

the reason is because the "?" substation is putting ' ( single quote's )
around the substation value
resulting in a statement

$sqlcmd = "select ID, DESCRIPTION from bob where ID = '1234' ";

when the database will only accept

$sqlcmd = "select ID, DESCRIPTION from bob where ID = 1234 ";

because the table is defined with the ID files as DECIMAL ( or INTEGER
...... )


The question :

How do I perform a substation of this type without doing the prepare on
the string ( i.e. the full SQL command including substituted values. )

In the DB2.c prepare function it seems to make a check for numeric
values for the substation and make an attempt to handle them properly,
but it is not working. Is it the  way I'm using the interface or if
there is some other way in which to do the substitution, pleas let me
know.


Thanks for any help and comments ins advance....

Nick Langstone
Senior Analyst Programmer
Telebusiness New Zealand Ltd.


"You can always tell when it's Monday because it's the first fine day
after two days of rain."



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web
page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed
by hand.
------------------------------------------------------------------------------

------------------ RFC822 Header Follows ------------------
Received: by llbean.com with SMTP;17 Dec 1996 23:18:14 -0400
Received: from toccata.fugue.com ([204.254.239.2]) by llb.llbean.com
          (post.office MTA v1.9.3 ID# 0-12721) with ESMTP id AAA5890
          for <randy.dyer@llbean.com>; Tue, 17 Dec 1996 23:16:22 -0400
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) id
SAA07595 for dbi-users-real; Tue, 17 Dec 1996 18:21:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy.telebusiness.co.nz ([203.97.136.12]) by
toccata.fugue.com (8.8.4/8.6.11) with SMTP id SAA07591 for
<dbi-users@fugue.com>; Tue, 17 Dec 1996 18:20:57 -0800 (PST)
Received: by proxy.telebusiness.co.nz with SMTP (Microsoft Exchange
Server Internet Mail Connector Version 4.0.994.57)
	id <01BBECF7.73781F30@proxy.telebusiness.co.nz>; Wed, 18 Dec 1996
15:23:42 +1300
Message-ID: <c=NZ%a=_%p=Telebusiness%l=PROXY-961218022340Z-38@proxy.telebusiness.co.nz>
From: Nick Langstone <nickl@telebusiness.co.nz>
To: "'dbi-users'" <dbi-users@fugue.com>
Subject: problem with '?' substitution
Date: Wed, 18 Dec 1996 15:23:40 +1300
X-Mailer:  Microsoft Exchange Server Internet Mail Connector Version
4.0.994.57
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00861-14@oink>;
          Thu, 19 Dec 1996 07:39:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850935304:9:05462:0; Wed, 18 Dec 96 18:55:04 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1002043; 18 Dec 96 18:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA09070 for dbi-users-real; Wed, 18 Dec 1996 06:36:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from goofy.zdv.Uni-Mainz.DE (goofy.zdv.Uni-Mainz.DE [134.93.8.176]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA09066 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 06:35:59 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) 
          by goofy.zdv.Uni-Mainz.DE (8.8.4/8.8.4) with ESMTP id PAA19421 
          for dbi-users@fugue.com; Wed, 18 Dec 1996 15:34:49 +0100 (MET)
Message-Id: <199612181434.PAA19421@goofy.zdv.Uni-Mainz.DE>
To: dbi-users@fugue.com
Subject: cgi-script + DBI-Oracle
Date: Wed, 18 Dec 1996 15:34:49 +0100
From: Roya Pashmineh-Azar <pashmine@goofy.zdv.uni-mainz.de>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I have the following problem with using cgi-script and DBI-Oracle:
I want to get some information from database and print on Web-Site.

=========html-file==========
<HTML>
<HEAD><TITLE>IP im ZDV</TITLE></HEAD>
<BODY>
<FORM ACTION="cgi-script" METHOD="POST">
....
<INPUT TYPE="SUBMIT" VALUE="Submit the Search">
<INPUT TYPE="RESET" VALUE="Clear all fields">
</FORM></BODY></HTML>

====================================
:::::::::: cgi-script.pl :::::::::
====================================
#!/usr/local/gnu/bin/perl5 

$ENV{"PATH"} = "/usr/local/oracle/bin";
$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
$ENV{"ORACLE_SID"} = "DB";

use DBI;

printf "Content-type: text/plain\n\n";

for $key (sort keys %ENV) {
    print $key, "=", $ENV{$key}, "\n";	# displayed env. variablen, ok.
}

$drh = DBI->install_driver('Oracle') || die "not ok: $DBI::errstr\n" ; 
$dbh = $drh->connect('DB', '***', '***' ) || die "not ok: $DBI::errstr\n";

die unless $dbh;

$cursor = $dbh->prepare("SELECT var1 FROM tab1") ||  die "not ok: $DBI::errstr \n" ;

$cursor->execute ||  die "not ok: $DBI::errstr \n" ;
while ( $field = $cursor->fetchrow )
{
   print "Field:", $field ,"\n";     # no displayed
}

$cursor->finish;
$dbh->disconnect;

print "after db-access";	# no displayed
================================

When I run it, env. Variable is displayed, but after database connect 
isn't displayed anything. 

do you have any idea? Please help!!!

Roya




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00861-42@oink>;
          Thu, 19 Dec 1996 07:45:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850938406:9:22361:1; Wed, 18 Dec 96 19:46:46 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1018625; 18 Dec 96 19:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA09277 for dbi-users-real; Wed, 18 Dec 1996 08:19:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA09273 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 08:19:13 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA02095 
          for dbi-users@fugue.com; Wed, 18 Dec 96 09:19:09 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA16537 
          for dbi-users@fugue.com; Wed, 18 Dec 96 09:18:57 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id RAA29024; Wed, 18 Dec 1996 17:14:45 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199612181614.RAA29024@ismuc.sps.mot.com>
Subject: Re: cgi-script + DBI-Oracle
To: pashmine@goofy.zdv.uni-mainz.de
Date: Wed, 18 Dec 1996 17:14:44 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <199612181434.PAA19421@goofy.zdv.Uni-Mainz.DE> from "Roya Pashmineh-Azar" at Dec 18, 96 03:34:49 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Try running your script from a shell prompt.

Try looking in your web server log file for error messages -- many web
servers redirect STDERR to such a log file (you could also try redirecting
STDERR yourself).  You might also find Lincoln Stein's CGI and CGI::Carp
modules useful.

In general, you should make sure your Oracle/DBD functions work in a
normal shell environment before you try them in a CGI environment.

Regards,
-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00861-44@oink>;
          Thu, 19 Dec 1996 07:45:20 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850938623:9:23546:5; Wed, 18 Dec 96 19:50:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa923534; 18 Dec 96 19:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA09425 for dbi-users-real; Wed, 18 Dec 1996 08:54:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA09421 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 08:54:33 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA06609 
          for dbi-users@fugue.com; Wed, 18 Dec 96 09:54:32 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA19202 
          for dbi-users@fugue.com; Wed, 18 Dec 96 09:54:31 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id RAA29429; Wed, 18 Dec 1996 17:53:46 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199612181653.RAA29429@ismuc.sps.mot.com>
Subject: Re: DBD-Oracle on AIX
To: lampart@heidelbg.ibm.com (Bernd Lamparter)
Date: Wed, 18 Dec 1996 17:53:45 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <9612181611.AA17172@beo.heidelbg.ibm.com> from "Bernd Lamparter" at Dec 18, 96 05:11:54 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Bernd,

You wrote:
> it seems you came further with DBD-Oracle on AIX than I did.
> Perhaps you can give me a hint:
> I'm working with the same perl/DBI/DBD-version as you, but on AIX 4.2.0
> and with the xlc compiler. perl and DBI tests ran fine, but DBD-Oracle
> crashes in the Oracle library login procedure with SEGV.

I didn't have this particular problem (SEGV).  I did notice that it never
worked with the same ORACLE_SID as sqlplus -- I had to explicitly make it
connect to the tcp_listener daemon -- but that might because of the
slightly non-standard Oracle installation we have here.

Maybe you need to try a different value for ORACLE_SID.

Regards,
-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00861-96@oink>;
          Thu, 19 Dec 1996 07:51:34 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850949121:9:18490:0; Wed, 18 Dec 96 22:45:21 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1014270; 18 Dec 96 22:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA10122 for dbi-users-real; Wed, 18 Dec 1996 11:54:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA10118 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 11:54:47 -0800 (PST)
Received: from cairo.cse.psu.edu (groenvel@cairo.cse.psu.edu [130.203.18.7]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id OAA20430;
          Wed, 18 Dec 1996 14:54:17 -0500 (EST)
Message-Id: <199612181954.OAA20430@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Roya Pashmineh-Azar <pashmine@goofy.zdv.uni-mainz.de>
cc: dbi-users@fugue.com
Subject: Re: cgi-script + DBI-Oracle
In-reply-to: Your message of "Wed, 18 Dec 1996 15:34:49 +0100." <199612181434.PAA19421@goofy.zdv.Uni-Mainz.DE>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 18 Dec 1996 14:54:24 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>$ENV{"PATH"} = "/usr/local/oracle/bin";
>$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
>$ENV{"ORACLE_SID"} = "DB";

I think these belong in a BEGIN block.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00861-100@oink>;
          Thu, 19 Dec 1996 07:51:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 850949189:10:14656:2; Wed, 18 Dec 96 22:46:29 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa918765; 18 Dec 96 22:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA09743 for dbi-users-real; Wed, 18 Dec 1996 10:35:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from huey.disney.com (0@huey.disney.com [204.128.192.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA09738 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 10:35:24 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id KAA00259 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 10:35:18 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA08687 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Wed, 18 Dec 1996 10:29:10 -0800
Received: by wdigl000.is.wdi.disney.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BBECCF.7EC2ED70@wdigl000.is.wdi.disney.com>;
          Wed, 18 Dec 1996 10:37:41 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-961218183422Z-9468@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: 'dbi-users' <dbi-users@fugue.com>, 
    'Nick Langstone' <nickl@telebusiness.co.nz>
Subject: RE: problem with '?' substitution
Date: Wed, 18 Dec 1996 10:34:22 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Try changing your sql to this.
Works on DBD::Oracle, but I dunno about DB2.

$sqlcmd = "select ID, DESCRIPTION from bob where ID = :1";

>----------
>From: 	Nick Langstone[SMTP:nickl@telebusiness.co.nz]
>Sent: 	Wednesday, December 18, 1996 07:23
>To: 	'dbi-users'
>Subject: 	problem with '?' substitution
>
>    *** From dbi-users -- To unsubscribe, see the end of this message.
>***
>
>Hi there,
>
>I'm having a problem with the '?' substation from perl to the DBD/DBI
>interface to a DB2 database. We have the latest release of the DBD/DBI
>and version 2.1 of DB2 on the RS6000.
>
>the problem is as follows.
>Create table bob
>          ( ID         DECIMAL,
>            DESC   CHAR(20)
>           )
>
>$sqlcmd = "select ID, DESCRIPTION from bob where ID = ?";
>
>$sth = $dbh->prepare( $sqlcmd );
>
>$val = 1234;
>$rc = $sth->execute( $val );
>
>while ((@row =  $sth->fetchrow) )
>{
>      print "@row \n";
>}
>
>
>( Various error handling etc. not shown )
>
>The problem is that the prepare statement give me the following error
>
>[IBM][CLI Driver][DB2/6000] SQL0301N  The value of a host variable in
>the EXECUTE or OPEN statement cannot be used because of its data type.
>SQLSTATE=42895
>
>the reason is because the "?" substation is putting ' ( single quote's
>)
>around the substation value
>resulting in a statement
>
>$sqlcmd = "select ID, DESCRIPTION from bob where ID = '1234' ";
>
>when the database will only accept
>
>$sqlcmd = "select ID, DESCRIPTION from bob where ID = 1234 ";
>
>because the table is defined with the ID files as DECIMAL ( or INTEGER
>...... )
>
>
>The question :
>
>How do I perform a substation of this type without doing the prepare on
>the string ( i.e. the full SQL command including substituted values. )
>
>In the DB2.c prepare function it seems to make a check for numeric
>values for the substation and make an attempt to handle them properly,
>but it is not working. Is it the  way I'm using the interface or if
>there is some other way in which to do the substitution, pleas let me
>know.
>
>
>Thanks for any help and comments ins advance....
>
>Nick Langstone
>Senior Analyst Programmer
>Telebusiness New Zealand Ltd.
>
>
>"You can always tell when it's Monday because it's the first fine day
>after two days of rain."
>
>
>
>------------------------------------------------------------------------
>------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the
>web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed
>by hand.
>------------------------------------------------------------------------
>------
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05788-1@oink>;
          Thu, 19 Dec 1996 13:55:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851003663:10:20801:0; Thu, 19 Dec 96 13:54:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1020744; 19 Dec 96 13:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id XAA12486 for dbi-users-real; Wed, 18 Dec 1996 23:51:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from auspex-gw2.auspex.com (auspex-gw.auspex.com [144.48.1.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id XAA12482 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 23:51:27 -0800 (PST)
Received: from auspex.auspex.com ([144.48.8.10]) 
          by auspex-gw2.auspex.com (8.6.12/8.6.12) with ESMTP id XAA11517 
          for <dbi-users@fugue.com>; Wed, 18 Dec 1996 23:51:25 -0800
Received: from merlin.auspex.com by auspex.auspex.com (8.7.2/) id XAA04051;
          Wed, 18 Dec 1996 23:51:25 -0800 (PST)
Date: Wed, 18 Dec 1996 23:51:25 -0800 (PST)
From: kstock@auspex.com (Kevin Stock)
Message-Id: <199612190751.XAA04051@auspex.auspex.com>
To: dbi-users@fugue.com
Subject: Problem loading Oracle.so
Cc: kstock@auspex-gw2.auspex.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello everyone,

Well, I've finally managed to get some access to Oracle again, so I set
about building DBI and DBD. I collected the following versions from CPAN:

	Perl		5.003
	DBI		0.73
	DBD:Oracle	0.43

Perl and DBI built, tested and installed fine. DBI:Oracle appears to build
OK, but the tests fail when it tries to actually load the Oracle module.
Here's the error message (reformatted for readability):

t/base..............
	install_driver(Oracle) failed:
	Can't load '/blib/arch/auto/DBD/Oracle/Oracle.so'
	for module DBD::Oracle:
	ld.so: conflicting usage of dlopen'ed dependents
	at /wrld/service/home/kstock/lib/perl5/DynaLoader.pm line 140.
	at blib/lib/DBD/Oracle.pm line 24
	DBI::install_driver called at t/base.t line 16

Any suggestions?

Lots of information follows. Let me know if I've forgotten anything.

Thanks,

	Kevin



merlin% perl Makefile.PL

 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /disks/system.oracle/product/7.1.6
Reading /disks/system.oracle/product/7.1.6/proc/lib/proc.mk.
System: perl5.003 sunos merlin 4.1.3 1 aushp 
Compiler: cc -O -I/usr/local/include
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       /usr/5bin/cc
  CFLAGS:   -I. -O
  LDFLAGS:  -Bdynamic -L$(LIBHOME)
Linking with /disks/system.oracle/product/7.1.6/lib/osntab.o -locic  -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lm -lnsl -L/usr/5lib -lc

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle

merlin% make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
/wrld/service/home/kstock/bin/perl -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003 -I/wrld/service/home/kstock/lib/perl5 /wrld/service/home/kstock/lib/perl5/ExtUtils/xsubpp  -typemap /wrld/service/home/kstock/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
cc -c -I/disks/system.oracle/product/7.1.6/rdbms/demo -I/wrld/service/home/kstock/lib/perl5/site_perl/sun4-sunos/DBI -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003/DBI -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" -pic -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003/CORE  Oracle.c
"Oracle.c", line 148: warning: statement not reached
"Oracle.c", line 285: warning: statement not reached
"Oracle.c", line 294: warning: statement not reached
"Oracle.c", line 335: warning: statement not reached
"Oracle.c", line 336: warning: statement not reached
"Oracle.c", line 431: warning: statement not reached
"Oracle.c", line 435: warning: statement not reached
cc -c -I/disks/system.oracle/product/7.1.6/rdbms/demo -I/wrld/service/home/kstock/lib/perl5/site_perl/sun4-sunos/DBI -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003/DBI -I/usr/local/include -O     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" -pic -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
LD_RUN_PATH="/disks/system.oracle/product/7.1.6/lib:/lib:/usr/5lib" ld -o blib/arch/auto/DBD/Oracle/Oracle.so -assert nodefinitions -L/usr/local/lib Oracle.o  dbdimp.o /disks/system.oracle/product/7.1.6/lib/osntab.o    -L/disks/system.oracle/product/7.1.6/lib -locic -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lm -lnsl -L/usr/5lib -lc 
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

merlin% make test
PERL_DL_NONLAZY=1 /wrld/service/home/kstock/bin/perl -I./blib/arch -I./blib/lib -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003 -I/wrld/service/home/kstock/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: conflicting usage of dlopen'ed dependents at /wrld/service/home/kstock/lib/perl5/DynaLoader.pm line 140.

 at blib/lib/DBD/Oracle.pm line 24
	DBI::install_driver called at t/base.t line 16
FAILED tests 4-5
	Failed 2/5 tests, 60.00% okay
	Test returned status 2 (wstat 512)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'

merlin% make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /wrld/service/home/kstock/bin/perl -I./blib/arch -I./blib/lib -I/wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003 -I/wrld/service/home/kstock/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't load './blib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so: conflicting usage of dlopen'ed dependents at /wrld/service/home/kstock/lib/perl5/DynaLoader.pm line 140.

 at blib/lib/DBD/Oracle.pm line 24
	DBI::install_driver called at t/base.t line 16
1..5
ok 1
ok 2
ok 3
FAILED tests 4-5
	Failed 2/5 tests, 60.00% okay
	Test returned status 2 (wstat 512)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'

merlin% perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=sunos, osver=4.1.3, archname=sun4-sunos
    uname='sunos merlin 4.1.3 1 aushp '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=true
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=31
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ucblib
    libs=-lnsl -ldbm -ldl -lm -lc -lposix
    libc=/lib/libc.so.1.8, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-pic', lddlflags='-assert nodefinitions -L/usr/local/lib'

@INC: /wrld/service/home/kstock/lib/perl5/sun4-sunos/5.003 /wrld/service/home/kstock/lib/perl5 /wrld/service/home/kstock/lib/perl5/site_perl/sun4-sunos /wrld/service/home/kstock/lib/perl5/site_perl .

merlin% /disks/system.oracle/product/7.1.6/bin/sqlplus ***/***@t:sonofams:AMS

SQL*Plus: Release 3.1.3.7.1 - Production on Wed Dec 18 23:18:38 1996

Copyright (c) Oracle Corporation 1979, 1994.  All rights reserved.


Connected to:
Oracle7 Server Release 7.2.2.4.0 - Production Release
With the distributed option
PL/SQL Release 2.2.2.3.0 - Production

SQL>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-4@oink>;
          Fri, 20 Dec 1996 07:39:48 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851026874:10:23517:1; Thu, 19 Dec 96 20:21:14 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa910373; 19 Dec 96 20:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA13519 for dbi-users-real; Thu, 19 Dec 1996 07:31:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dekalb.vf.mmc.com (dekalb.vf.mmc.com [192.35.35.21]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA13515 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 07:31:04 -0800 (PST)
Received: from franklin.vf.lmco.com ([166.17.5.51]) 
          by dekalb.vf.mmc.com (8.7.6/8.7.3) with ESMTP id KAA24582 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 10:30:55 -0500 (EST)
Received: from enterprise.ATL.LMCO.COM (root@enterprise.ATL.LMCO.COM [166.20.244.20]) 
          by franklin.vf.lmco.com (8.7.6/8.7.3) with ESMTP id KAA05106 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 10:30:55 -0500 (EST)
Received: from valerie (valerie [166.20.244.205]) 
          by enterprise.ATL.LMCO.COM (8.8.4/8.8.4) with SMTP id KAA10723 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 10:30:46 -0500 (EST)
Message-ID: <32B95FAA.70CA@atl.lmco.com>
Date: Thu, 19 Dec 1996 10:30:50 -0500
From: Bob Hackenberg <rhackenb@atl.lmco.com>
Organization: Advanced Technology Laboratories
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
MIME-Version: 1.0
To: "DBI mailing list." <dbi-users@fugue.com>
Subject: use of ora_login
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have question about when ora_login is needed.  To reduce bandwidth on
the mailing list I would appreciate it if you could send responses
directly to me.

I have a login.cgi script that prompts for the user's userid and
password and then calls perform_login(below).  I then pass the
$key,$userid,$password, and $lda to another cgi script that uses this
info to start accessing the data.  Each time I want to access data, I
invoke the subroutine  ProcessRequest with the sql statement I have
prepared.  For this to work properly, ProcessRequest runs ora_login for
each database access.  If I try to reuse the $lda that was passed into
the cgi script from perform_login subroutine and not run ora_login, I
don't get anything back from the database server.  With the ora_login,
it works fine.  

It seems that running ora_login every time is an inefficient way to do
things. Although my code works, I may be taking a wrong approach here.
I'd appreciate suggestions or snippets of code that illustrate a better
way to do it.  

Thanks, 

bob 
(please send comments to rhackenb@atl.lmco.com)

_________________________________________________________

sub perform_login
{
    $ipaddr = $ENV{'REMOTE_HOST'};
    $fname = "/tmp/storage.$$";
    $key = "$$";
    @info = ($userid, $password, $sysid, $ipaddr);
    store(\@info, $fname);
    chmod(0700, $fname);

    $sysid = "baldrige.world";    	    

    if (!($lda = ora_login($sysid, $userid, $password)))
               #rejected by Oracle server
    {
	print HtmlBeginning(
	       "Error logging in to <b>$sysid</b>as<b>$userid</b>\n");
	print &HtmlBreak;
    }
    else
    {
	$csr = ora_do($lda,
	  "execute dbms_session.set_role('atl_user identified by atl_user')");
	#print "<p> Successful: lda = $lda, csr = $csr, key = $key<p>";
	ora_logoff($lda);
            #successful, buttemporarily log out, maintaining login data
	print HtmlBeginning("ATL's Oracle Web Interface");
    }
}


sub ProcessRequest
{
    $root = retrieve("/tmp/storage.$key");
    ($userid, $password, $sysid, $ipaddr) = @$root;
    $sysid = "baldrige.world";
    if ($ipaddr ne $ENV{'REMOTE_HOST'})
    {
	print "Authorization Error!\n";
	print &HtmlEnd;
    }
    
    $lda = ora_login($sysid, $userid, $password) || 
	print "Could not log to $sysid as $userid/$password\n";

#note: if the above two lines are commented out, the next line 
#      doesn't return data.  $lda has the value of the previous login.

    $csr = ora_open($lda, $statement) || &kill_off;

}


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-35@oink>;
          Fri, 20 Dec 1996 07:44:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851032499:10:20019:15; Thu, 19 Dec 96 21:54:59 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1019955; 19 Dec 96 21:54 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA13806 for dbi-users-real; Thu, 19 Dec 1996 09:59:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from athena.romoidoy.com (athena.romoidoy.com [208.193.64.15]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA13802 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 09:59:41 -0800 (PST)
Received: from aurora (sabat@aurora.zoom.com [208.193.64.6]) 
          by athena.romoidoy.com (8.6.12/Romoidoy-Hub-022896) with SMTP 
          id JAA01067; Thu, 19 Dec 1996 09:59:10 -0800
Date: Thu, 19 Dec 1996 09:58:12 -0800 (PST)
From: Sabat <sabat@zoom.com>
X-Sender: sabat@aurora
To: John D Groenveld <groenvel@cse.psu.edu>
cc: Roya Pashmineh-Azar <pashmine@goofy.zdv.uni-mainz.de>, dbi-users@fugue.com
Subject: Re: cgi-script + DBI-Oracle
In-Reply-To: <199612181954.OAA20430@cse.psu.edu>
Message-ID: <Pine.SUN.3.91.961219095744.4906A-100000@aurora>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Wed, 18 Dec 1996, John D Groenveld wrote:

> >$ENV{"PATH"} = "/usr/local/oracle/bin";
> >$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
> >$ENV{"ORACLE_SID"} = "DB";
> 
> I think these belong in a BEGIN block.


Nahhhhhhh. I do that all the time.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-117@oink>;
          Fri, 20 Dec 1996 07:55:21 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851047348:10:26319:0; Fri, 20 Dec 96 02:02:28 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1026301; 20 Dec 96 2:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA14818 for dbi-users-real; Thu, 19 Dec 1996 14:54:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cagw1.att.com (cagw1.att.com [192.128.52.89]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA14814 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 14:54:11 -0800 (PST)
Received: from lynxhub.ho.att.com by caig1.att.att.com (SMI-8.6/EMS-1.2 sol2) 
          id RAA20709; Thu, 19 Dec 1996 17:49:24 -0500
Received: from bartman.ho.att.com ([135.16.115.186]) 
          by lynxhub.ho.att.com (5.x/EMS-1.2 sol2) id AA15276;
          Thu, 19 Dec 1996 17:49:31 -0500
Message-Id: <32B9C778.2948@lynxhub.ho.att.com>
Date: Thu, 19 Dec 1996 17:53:44 -0500
From: Ken Michalek <ken@lynxhub.ho.att.com>
Reply-To: ken@lynxhub.ho.att.com
Organization: 199N62000
X-Mailer: Mozilla 3.0Gold (Win95; I)
Mime-Version: 1.0
To: dbi-users@fugue.com
Cc: ken@lynxhub.ho.att.com, swc@lynxhub.ho.att.com
Subject: Database Login/Password Security Question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm thinking about using DBI to access an oracle database for my
project.
I'm wondering though how to hide the login and password so that people 
cannot just look at the connect method to find it out.  I'm running on
an
SGI IRIX platform so I'm not sure if there are any undumping tools for
that.

Any suggestions will be greatly appreciated.

Thanks
-- 
-------------------------------------------------------------------------
Ken Michalek  AT&T Business Communications Systems    (908)-949-4037
              Internet: ken@lynxhub.ho.att.com   UUCP: !att!lynxhub!ken
-------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-132@oink>;
          Fri, 20 Dec 1996 07:56:41 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851051710:9:01784:1; Fri, 20 Dec 96 03:15:10 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa901768; 20 Dec 96 3:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA15202 for dbi-users-real; Thu, 19 Dec 1996 16:45:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA15198 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 16:45:37 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40323>; Fri, 20 Dec 1996 07:45:26 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA26536;
          Fri, 20 Dec 1996 07:09:02 +0700
Message-Id: <9612200009.AA26536@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 20 Dec 1996 21:47:27 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: cgi-script + DBI-Oracle

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 12:58 AM 12/20/96 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>On Wed, 18 Dec 1996, John D Groenveld wrote:
>
>> >$ENV{"PATH"} = "/usr/local/oracle/bin";
>> >$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
>> >$ENV{"ORACLE_SID"} = "DB";
>> 
>> I think these belong in a BEGIN block.
>
>
>Nahhhhhhh. I do that all the time.
>
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>

usually I never use this variabel environment in my script. I set this in
profile.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-134@oink>;
          Fri, 20 Dec 1996 07:56:51 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851051712:9:01787:2; Fri, 20 Dec 96 03:15:12 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa901780; 20 Dec 96 3:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA15211 for dbi-users-real; Thu, 19 Dec 1996 16:47:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA15207 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 16:47:26 -0800 (PST)
Received: by inter.astra.co.id via suspension id <40329>;
          Fri, 20 Dec 1996 07:45:29 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40322>; Fri, 20 Dec 1996 07:44:14 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA26225;
          Fri, 20 Dec 1996 07:08:40 +0700
Message-Id: <9612200008.AA26225@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 20 Dec 1996 21:47:08 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: Database Login/Password Security Question

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 05:53 AM 12/20/96 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I'm thinking about using DBI to access an oracle database for my
>project.
>I'm wondering though how to hide the login and password so that people 
>cannot just look at the connect method to find it out.  I'm running on
>an
>SGI IRIX platform so I'm not sure if there are any undumping tools for
>that.
>
>Any suggestions will be greatly appreciated.
>
>Thanks
>-- 
>-------------------------------------------------------------------------
>Ken Michalek  AT&T Business Communications Systems    (908)-949-4037
>              Internet: ken@lynxhub.ho.att.com   UUCP: !att!lynxhub!ken
>-------------------------------------------------------------------------
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>

- Some time I use to compile my perl script after it's finish to binary.
- I put in file with owner root and I set that file can't be read accept
root.   (This can happen because user http run as root).
- Take login,password from web every time that run and use cript to protect
this 
  login and password.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-136@oink>;
          Fri, 20 Dec 1996 07:57:00 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851051713:9:01791:0; Fri, 20 Dec 96 03:15:13 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-10.mail.demon.net 
          id aa1009922; 20 Dec 96 3:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA15224 for dbi-users-real; Thu, 19 Dec 1996 16:51:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA15220 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 16:51:26 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40322>; Fri, 20 Dec 1996 07:48:46 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA26880;
          Fri, 20 Dec 1996 07:13:06 +0700
Message-Id: <9612200013.AA26880@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 20 Dec 1996 21:51:41 +0700
To: Bob Hackenberg <rhackenb@atl.lmco.com>, dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: use of ora_login

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 10:30 PM 12/19/96 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I have question about when ora_login is needed.  To reduce bandwidth on
>the mailing list I would appreciate it if you could send responses
>directly to me.
>
>I have a login.cgi script that prompts for the user's userid and
>password and then calls perform_login(below).  I then pass the
>$key,$userid,$password, and $lda to another cgi script that uses this
>info to start accessing the data.  Each time I want to access data, I
>invoke the subroutine  ProcessRequest with the sql statement I have
>prepared.  For this to work properly, ProcessRequest runs ora_login for
>each database access.  If I try to reuse the $lda that was passed into
>the cgi script from perform_login subroutine and not run ora_login, I
>don't get anything back from the database server.  With the ora_login,
>it works fine.  
>
>It seems that running ora_login every time is an inefficient way to do
>things. Although my code works, I may be taking a wrong approach here.
>I'd appreciate suggestions or snippets of code that illustrate a better
>way to do it.  
>
>Thanks, 
>
>bob 
>(please send comments to rhackenb@atl.lmco.com)
>
>_________________________________________________________
>
>sub perform_login
>{
>    $ipaddr = $ENV{'REMOTE_HOST'};
>    $fname = "/tmp/storage.$$";
>    $key = "$$";
>    @info = ($userid, $password, $sysid, $ipaddr);
>    store(\@info, $fname);
>    chmod(0700, $fname);
>
>    $sysid = "baldrige.world";    	    
>
>    if (!($lda = ora_login($sysid, $userid, $password)))
>               #rejected by Oracle server
>    {
>	print HtmlBeginning(
>	       "Error logging in to <b>$sysid</b>as<b>$userid</b>\n");
>	print &HtmlBreak;
>    }
>    else
>    {
>	$csr = ora_do($lda,
>	  "execute dbms_session.set_role('atl_user identified by atl_user')");
>	#print "<p> Successful: lda = $lda, csr = $csr, key = $key<p>";
>	ora_logoff($lda);
>            #successful, buttemporarily log out, maintaining login data
>	print HtmlBeginning("ATL's Oracle Web Interface");
>    }
>}
>
>
>sub ProcessRequest
>{
>    $root = retrieve("/tmp/storage.$key");
>    ($userid, $password, $sysid, $ipaddr) = @$root;
>    $sysid = "baldrige.world";
>    if ($ipaddr ne $ENV{'REMOTE_HOST'})
>    {
>	print "Authorization Error!\n";
>	print &HtmlEnd;
>    }
>    
>    $lda = ora_login($sysid, $userid, $password) || 
>	print "Could not log to $sysid as $userid/$password\n";
>
>#note: if the above two lines are commented out, the next line 
>#      doesn't return data.  $lda has the value of the previous login.
>
>    $csr = ora_open($lda, $statement) || &kill_off;
>
>}
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>

I have confuse because I never user this command to connect ORACLE. My
command this :

use DBI;
$drh=DBI->install_driver('Oracle');
$dbh=$drh->connect('SID','user','password');
die "fail to connect" unless $dbh;

and I user dbh->disconnect from exit. I put that command to connect ORACLE
and disconnect many time.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12625-138@oink>;
          Fri, 20 Dec 1996 07:57:16 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851052338:10:11770:4; Fri, 20 Dec 96 03:25:38 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa903822; 20 Dec 96 3:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA15230 for dbi-users-real; Thu, 19 Dec 1996 16:52:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA15226 
          for <dbi-users@fugue.com>; Thu, 19 Dec 1996 16:52:14 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40323>; Fri, 20 Dec 1996 07:49:21 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA26882;
          Fri, 20 Dec 1996 07:13:44 +0700
Message-Id: <9612200013.AA26882@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 20 Dec 1996 21:52:09 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: use of ora_login

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 10:30 PM 12/19/96 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I have question about when ora_login is needed.  To reduce bandwidth on
>the mailing list I would appreciate it if you could send responses
>directly to me.
>
>I have a login.cgi script that prompts for the user's userid and
>password and then calls perform_login(below).  I then pass the
>$key,$userid,$password, and $lda to another cgi script that uses this
>info to start accessing the data.  Each time I want to access data, I
>invoke the subroutine  ProcessRequest with the sql statement I have
>prepared.  For this to work properly, ProcessRequest runs ora_login for
>each database access.  If I try to reuse the $lda that was passed into
>the cgi script from perform_login subroutine and not run ora_login, I
>don't get anything back from the database server.  With the ora_login,
>it works fine.  
>
>It seems that running ora_login every time is an inefficient way to do
>things. Although my code works, I may be taking a wrong approach here.
>I'd appreciate suggestions or snippets of code that illustrate a better
>way to do it.  
>
>Thanks, 
>
>bob 
>(please send comments to rhackenb@atl.lmco.com)
>
>_________________________________________________________
>
>sub perform_login
>{
>    $ipaddr = $ENV{'REMOTE_HOST'};
>    $fname = "/tmp/storage.$$";
>    $key = "$$";
>    @info = ($userid, $password, $sysid, $ipaddr);
>    store(\@info, $fname);
>    chmod(0700, $fname);
>
>    $sysid = "baldrige.world";    	    
>
>    if (!($lda = ora_login($sysid, $userid, $password)))
>               #rejected by Oracle server
>    {
>	print HtmlBeginning(
>	       "Error logging in to <b>$sysid</b>as<b>$userid</b>\n");
>	print &HtmlBreak;
>    }
>    else
>    {
>	$csr = ora_do($lda,
>	  "execute dbms_session.set_role('atl_user identified by atl_user')");
>	#print "<p> Successful: lda = $lda, csr = $csr, key = $key<p>";
>	ora_logoff($lda);
>            #successful, buttemporarily log out, maintaining login data
>	print HtmlBeginning("ATL's Oracle Web Interface");
>    }
>}
>
>
>sub ProcessRequest
>{
>    $root = retrieve("/tmp/storage.$key");
>    ($userid, $password, $sysid, $ipaddr) = @$root;
>    $sysid = "baldrige.world";
>    if ($ipaddr ne $ENV{'REMOTE_HOST'})
>    {
>	print "Authorization Error!\n";
>	print &HtmlEnd;
>    }
>    
>    $lda = ora_login($sysid, $userid, $password) || 
>	print "Could not log to $sysid as $userid/$password\n";
>
>#note: if the above two lines are commented out, the next line 
>#      doesn't return data.  $lda has the value of the previous login.
>
>    $csr = ora_open($lda, $statement) || &kill_off;
>
>}
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>

I have confuse because I never user this command to connect ORACLE. My
command this :

use DBI;
$drh=DBI->install_driver('Oracle');
$dbh=$drh->connect('SID','user','password');
die "fail to connect" unless $dbh;

and I user dbh->disconnect from exit. I put that command to connect ORACLE
and disconnect many time.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17505-1@oink>;
          Fri, 20 Dec 1996 13:43:00 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851078155:10:12481:1; Fri, 20 Dec 96 10:35:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa904775; 20 Dec 96 10:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id XAA16158 for dbi-users-real; Thu, 19 Dec 1996 23:39:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id XAA16154;
          Thu, 19 Dec 1996 23:39:37 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id IAA04965;
          Fri, 20 Dec 1996 08:39:31 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id JAA15968;
          Fri, 20 Dec 1996 09:39:31 +0100 (MET)
Date: Fri, 20 Dec 1996 09:39:30 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: dbi-users@fugue.com, dbi-announce@fugue.com
Subject: DBD-Ingres-0.02 available
Message-ID: <Pine.SOL.3.95.961220093646.15313C-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This is to announce the general availability of the DBD-Ingres module.

I have uploaded the first release of the Ingres interface for Perl5
to CPAN.

The module supports Ingres 6.4, but is able to access OpenIngres
databases.

It is known to compile and run under Digital Unix, OpenVMS/Alpha SunOS4.1
and Solaris (if you add -lelf to $link_with in Makefile.PL).

A Ingperl-compatibility module has been included, so "old" Ingperl
scripts should be able to function without changes!

Please *READ* the README file........

---
Henrik Tougaard,   ht@datani.dk
Software Consultants, Copenhagen, Denmark
#include <disclaim.std>






------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19025-30@oink>;
          Fri, 20 Dec 1996 18:33:48 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851085023:10:15171:2; Fri, 20 Dec 96 12:30:23 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa909295; 20 Dec 96 12:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA16452 for dbi-users-real; Fri, 20 Dec 1996 02:05:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailhost.auspex.co.uk (mailhost.auspex.co.uk [193.130.16.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id CAA16448 
          for <dbi-users@fugue.com>; Fri, 20 Dec 1996 02:05:27 -0800 (PST)
Received: from uk.auspex.com (mailhub.auspex.com [144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id HAA24749;
          Fri, 20 Dec 1996 07:33:41 GMT
Received: from balzac.fr.auspex.com ([144.48.99.130]) 
          by uk.auspex.com (4.1/SMI-4.1) id AA05210;
          Fri, 20 Dec 96 07:35:07 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id IAA28602; Fri, 20 Dec 1996 08:35:16 +0100 (MET)
Message-Id: <32BA41B4.19A13460@Auspex.Com>
Date: Fri, 20 Dec 1996 08:35:16 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: Bob Hackenberg <rhackenb@atl.lmco.com>
Cc: "DBI mailing list." <dbi-users@fugue.com>
Subject: Re: use of ora_login
References: <32B95FAA.70CA@atl.lmco.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello Bob,
> 
> I have question about when ora_login is needed [...]

The basic model is this:

	&ora_login
		&ora_open
			do some stuff
		&ora_close
		&ora_open
			do some other stuff
		&ora_close
	&ora_logoff

The $lda value returned by &ora_login is more-or-less a pointer to a
block of memory containing the details of the Oracle login connection.
When a program exits, this memory is freed and the connection released.
So, you can't reuse an $lda supplied by a different program.

One way of cutting down the number of &ora_logins would be to write a
daemon which will run in the background. Your CGI script could send the
login details and the daemon return the $lda. Because this $lda would
be in the daemon's memory space, it would not be released until the CGI
script tells it to. You might want to allow some form of timeout so that
you don't waste connections.

	Kevin


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19025-32@oink>;
          Fri, 20 Dec 1996 18:34:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851085055:10:15357:1; Fri, 20 Dec 96 12:30:55 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa909492; 20 Dec 96 12:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id BAA16379 for dbi-users-real; Fri, 20 Dec 1996 01:31:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from kralle.zdv.Uni-Mainz.DE (kralle.zdv.Uni-Mainz.DE [134.93.8.158]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id BAA16375 
          for <dbi-users@fugue.com>; Fri, 20 Dec 1996 01:30:42 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) 
          by kralle.zdv.Uni-Mainz.DE (8.8.4/8.8.4) with ESMTP id KAA21648 
          for dbi-users@fugue.com; Fri, 20 Dec 1996 10:30:27 +0100 (MET)
Message-Id: <199612200930.KAA21648@kralle.zdv.Uni-Mainz.DE>
To: dbi-users@fugue.com
Subject: cgi-script + DBI-Oracle
Date: Fri, 20 Dec 1996 10:30:27 +0100
From: Roya Pashmineh-Azar <pashmine@goofy.zdv.uni-mainz.de>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I got the problem:
I was able to run the script in a normal shell, but I had 
problem to run it in CGI environment. CGI-Scripts use the 
WWW-Server environment. We have set HOME environment 
in "httpd.sh" but I found out that CGI doesn't use it. 
I don't know why?

Anyway I set HOME environment in my script in additional to
other setting (ORACLE_HOME, ORACLE_SID...) and now it works.

Thanks for your mails.

Roya Pashmineh


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28584-16@oink>;
          Mon, 23 Dec 1996 07:39:09 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 851117319:9:25992:3; Fri, 20 Dec 96 21:28:39 GMT
Received: from toccata.fugue.com ([204.254.239.2]) by relay-9.mail.demon.net 
          id aa925964; 20 Dec 96 21:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA17237 for dbi-users-real; Fri, 20 Dec 1996 10:06:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from athena.romoidoy.com (athena.romoidoy.com [208.193.64.15]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA17233 
          for <dbi-users@fugue.com>; Fri, 20 Dec 1996 10:06:21 -0800 (PST)
Received: from aurora (sabat@aurora.zoom.com [208.193.64.6]) 
          by athena.romoidoy.com (8.6.12/Romoidoy-Hub-022896) with SMTP 
          id KAA12931; Fri, 20 Dec 1996 10:06:19 -0800
Date: Fri, 20 Dec 1996 10:05:21 -0800 (PST)
From: Sabat <sabat@zoom.com>
X-Sender: sabat@aurora
To: Achmad Dimyati <dimyati@ai.astra.co.id>
cc: dbi-users@fugue.com
Subject: Re: Database Login/Password Security Question
In-Reply-To: <9612200008.AA26225@gateway.ai.astra.co.id>
Message-ID: <Pine.SUN.3.91.961220100312.2833A-100000@aurora>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Fri, 20 Dec 1996, Achmad Dimyati wrote:

> - I put in file with owner root and I set that file can't be read accept
> root.   (This can happen because user http run as root).

Hmmmm -- not really. You should be *starting* httpd as root,
but it should immediately switch to 'nobody' or some other
unprivileged user as soon as it seizes port 80.

I haven't tried it, but I'm pretty sure your idea would
work regardless -- I suspect you could just set permissions
to -rwx--x--x and have it run.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20403-268@oink>;
          Thu, 2 Jan 1997 10:55:45 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852180764:9:01872:0; Thu, 02 Jan 97 04:52:44 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1004696; 2 Jan 97 4:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA01786 for dbi-users-real; Wed, 1 Jan 1997 16:04:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from andare.fugue.com (andare.fugue.com [192.5.5.213]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA01782 
          for <dbi-users@fugue.com>; Wed, 1 Jan 1997 16:04:16 -0800 (PST)
Received: from [[UNIX: localhost]] ([[UNIX: localhost]]) 
          by andare.fugue.com (8.8.4/8.6.11) with SMTP id QAA00300 
          for <dbi-users@fugue.com>; Wed, 1 Jan 1997 16:02:44 -0800 (PST)
Message-Id: <199701020002.QAA00300@andare.fugue.com>
To: dbi-users@fugue.com
Subject: Problem with the mailing list...
Date: Wed, 01 Jan 1997 16:02:44 -0800
From: Ted Lemon <mellon@fugue.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Security is a wonderful thing.   Unfortunately, I recently updated
sendmail, and the new version no longer accesses files as root.   The
files containing the dbi mailing lists were not world-readable, so
every message sent to dbi-users after my recent system upgrade went
into the bit bucket.   Sigh.

Anyway, if you sent something to the mailing list recently, and didn't
see it come back, it's because it went in the bit bucket, so you'll
have to resend.   Sorry about that.   :'(

			       _MelloN_


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20403-282@oink>;
          Thu, 2 Jan 1997 10:56:30 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852190955:9:08693:0; Thu, 02 Jan 97 07:42:35 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1029118; 2 Jan 97 7:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA01995 for dbi-users-real; Wed, 1 Jan 1997 18:23:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from unb.ca (hermes.csd.unb.ca [131.202.3.20]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id SAA01991 
          for <dbi-users@fugue.com>; Wed, 1 Jan 1997 18:23:24 -0800 (PST)
From: jaf@UNB.ca
Received: (from sarastro.csd.unb.ca [131.202.8.29]) 
          by unb.ca (8.7.6/961016-08:40) id WAA15583 for <dbi-users@fugue.com>;
          Wed, 1 Jan 1997 22:23:23 -0400 (AST)
Received: by jupiter.sun.csd.unb.ca (8.8.4/960921-23:43) id WAA27705;
          Wed, 1 Jan 1997 22:22:57 -0400 (AST)
Date: Wed, 1 Jan 1997 22:22:57 -0400 (AST)
Message-Id: <199701020222.WAA27705@jupiter.sun.csd.unb.ca>
To: dbi-users@fugue.com
Subject: install_driver(Ingres) failed: Can't find loadable object for module 
         DBD::Ingres
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I tried sending this earlier and it bounced.  I see a note from the list
maintainer indicating a problem, so I'll try again.  

I'm a new subscriber, so I'm unfamiliar with the precise nature of traffic
in this list, however, the author of the Ingres module suggested copying
notes about problems to this group, so here goes.  

A final preamble question:  is there an archives for this list so that one
can see whether a problem has been discussed before?

-----  message which bounced  -----------------

I've been looking at the Ingres support module and am fully aware of all
the warnings about pre-Beta software, etc.  I think, however, that I've just
got a relatively simple problem with the actual install but don't know
enough to fix it myself.

The build and make test seemed to work OK.  Only one test gave a message
and the test.pl script seems to indicate that it should have done so in
precisely the way that it did.  So it seems to be basically working in the
install directory.  If people think it necessary, I can re-do the build and
mail a complete log, however, I suspect it's not needed.

After I install the package and attempt to write a simple script to use it,
I get the following error:


  sol [~/bin] {jaf.21}% ingres.test
  install_driver(Ingres) failed: Can't find loadable object for module DBD::Ingres in @INC (/usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/sun4-solaris .) at /usr/local/lib/perl5/site_perl/DBD/Ingres.pm line 23
 	DBI::install_driver called at /usr/local/lib/perl5/DBI.pm line 159
	DBI::connect called at ingres.test line 4

  sol [~/bin] {jaf.22}% cat ingres.test
  #!/usr/local/bin/perl -w
  use strict;
  use DBI;
  my $dbh= DBI->connect('personnel','','','Ingres') 
	or die "$0: $DBI::errstr";
  $dbh-> disconnect or die "$0: $DBI::errstr";
  exit 0;
  sol [~/bin] {jaf.23}% 

My guess is that it is the file Ingres.a that Ingres.pm can not find.
Here is the log from the make install run:

  quirinus [/sources/perl/DBD-Ingres-0.02] 11# make install
  Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/Ingres.a
  Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/extralibs.ld
  Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/extralibs.all
  Installing /usr/local/lib/perl5/site_perl/./DBD/ingtest.pl
  Installing /usr/local/lib/perl5/site_perl/./DBD/Ingres.pm
  Installing /usr/local/lib/perl5/site_perl/./ingperl.pl
  Installing /usr/local/lib/perl5/site_perl/./Ingperl.pm
  Installing /usr/local/lib/perl5/man/man3/./DBD::Ingperl.3
  Writing /usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Ingres/.packlist
  Appending installation info to /usr/local/lib/perl5/sun4-solaris/5.003/perllocal.pod
  quirinus [/sources/perl/DBD-Ingres-0.02] 12#

Note that sol is a SPARC 1000 server running Solaris 2.5 and is the
Ingres server running   6.4/05 (su4.us5/00)  ingres.  The host quirinus
is a SPARC 20 server running Solaris 2.5 and is the NFS server for most
of the workstations and the 1000.  The directories /usr/local and below
are common on the two systems.  At any rate, I also tried running the
install from the 1000 to see if it made any difference (it didn't) and
the package was built on the 1000 because that's where the Ingres libraries
are located:

  sol [/sources/perl/DBD-Ingres-0.02] 5# make install
  Skipping /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/Ingres.a (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/extralibs.ld (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBD/Ingres/extralibs.all (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/./DBD/ingtest.pl (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/./DBD/Ingres.pm (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/./ingperl.pl (unchanged)
  Skipping /usr/local/lib/perl5/site_perl/./Ingperl.pm (unchanged)
  Skipping /usr/local/lib/perl5/man/man3/./DBD::Ingperl.3 (unchanged)
  Writing /usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Ingres/.packlist
  Appending installation info to /usr/local/lib/perl5/sun4-solaris/5.003/perllocal.pod
  sol [/sources/perl/DBD-Ingres-0.02] 6# 

Other information as per the README:

  sol [~/bin] {jaf.7}% perl -e 'use Config; print Config::myconfig()'
  Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
    Platform:
      osname=solaris, osver=2.5, archname=sun4-solaris
      uname='sunos sarastro 5.5 generic_103093-05 sun4m sparc sunw,sparcstation-4 '
      hint=recommended, useposix=true, d_sigaction=define
    Compiler:
      cc='gcc', optimize='-O', gccversion=2.7.2
      cppflags='-I/usr/local/include'
      ccflags ='-I/usr/local/include'
      stdchar='unsigned char', d_stdstdio=define, usevfork=false
      voidflags=15, castflags=0, d_casti32=define, d_castneg=define
      intsize=4, alignbytes=8, usemymalloc=y, randbits=15
    Linker and Libraries:
      ld='gcc', ldflags =' -L/usr/local/lib'
      libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
      libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt
      libc=/lib/libc.so, so=so
    Dynamic Linking:
      dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
      cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib'

  sol [~/bin] {jaf.8}% 

It would seem to me that either the make install has not put something
where it should (but I'm not sure exactly what) or that the @INC array
has to be expanded to locate the install location of the Ingres routines.
I would be appreciative of suggestion for best way to approach this,
thanks very much.
--
O- J. Anthony Fitzgerald, jaf@UNB.ca, http://www.unb.ca/web/CSD/staff/jaf/ -O


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00894-55@oink>;
          Thu, 2 Jan 1997 18:07:32 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852223082:9:08397:1; Thu, 02 Jan 97 16:38:02 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa908258; 2 Jan 97 16:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA05363 for dbi-dev-real; Thu, 2 Jan 1997 05:27:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id FAA05359 
          for <dbi-dev@fugue.com>; Thu, 2 Jan 1997 05:26:57 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id OAA14736;
          Thu, 2 Jan 1997 14:23:23 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id PAA27618;
          Thu, 2 Jan 1997 15:23:32 +0100 (MET)
Date: Thu, 2 Jan 1997 15:23:32 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: dbi-dev@fugue.com
Subject: DBD-Ingres plans, intents etc.
Message-ID: <Pine.SOL.3.95.970102150026.27215A-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

This is a (long-delayed - sorry) letter of intent about the DBD-Ingres
work. I have released the first attempt and have recieved some feedback.
My connection to dbi-dev has now been fixed (thanks to Ted Lemon).
The rest of this letter is a (slightly modified) copy of what I tried to
send sometime late last year:

 This also implies that this is the time when I own up and let the
DBI-community have its say in the future of DBD::Ingres. This note is my
first (feeble) attempt in this direction. 

 I have had three pieces of code to build this from:
 - the old IngPerl
 - DBD::Oracle (versions 0.35 to 0.43)
 - DBD::Informix (version 0.24)

 The code must work with Ingres 6.4 (and preferably earlier versions) and
if possible OpenIngres 1.2. I haven't yet access to an OpenIngres
Installation, but that will change inside a month. There is to my best
knowledge no reason to fear that IngPerl (and DBD::Ingres) wont work
without changes. (Please don't prove me wrong). 

 One of the main differences between Ingres and Oracle is that Ingres
still doesn't have an API. I have seen a manual for an API for OpenIngres,
but my pleasure disappeared when I discovered that it was for DOS 8-{

 This means that we are still stuck with the XXXXXX [expletive deleted]
ESQLC premangler.

 The main consequences is that binding is not available and that the
number of simultaneously open select statements has to be given at
compile-time. 

 I have chosen to copy the cursor handling in the Informix port, by
allocating a predefined number of cursors (numbered from 0 to CURSOR_MAX)
and add logic to chose the next free cursor. The number of cursors should
be a compile option - so the dbdimp module must be passed through two
preprocessors first Perl - to unroll the cursor-loops - and then ESQLC!

 Note: Work is in progress to remove this restraint (spurred on by Kraemer
<szrzs069@sysadm.rz.uni-kiel.de>), I hope to have a new version out in a
few weeks without the cursor-'fiddling'

 Binding is impossible (please prove me wrong) as ESQLC needs to know the
number and type of the binding variables at compile-time, to be able to
handle the bind statement. Of course you could again unroll it, but as
there are 3 different datatypes and up to 300 columns in a row it would
mean that the unrolling has to generate 3**300 (a VERY large number) cases
- this is impossible.

 A consequence of this is that there is no reason to reexecute a
statement. This again leads to the conclusion that dbd_st_finish should
close the open cursor, so that resources held by it may be released -
(mainly storage in the QEF and if autocommit is on then locks etc.)


 Ingres.xs could be a copy of Oracle.xs (with s/Oracle/Ingres/g) [Tim
Bunce argues that it should be], but I have two reasons for not following
this:
 
 Ingres has the "EXEC SQL EXECUTE IMMEDIATE :statement" statement. This is
the perfect implementation of DBI::db::do! It seems to be a waste to have
to do all the prepare, describe and execute stuff when this possibility  
exists.

 The other reason is "neatness":
 - Ingres 6.4 doesn't have blobs. OpenIngres has it - so lets put the
lastest and best version in when we do the OpenIngres version.
 - There are also no binds (see above).
 The size of Ingres.xs is reduced, and it is easier to see which code is
active and which is just leftover from Oracle....

 DBD-Ingres-0.02 required static linking, but the (sub)version
DBD-Ingres-0.0202 that is in CPAN now allows dynamic linking and supports
Solaris 2.x

 
--
Henrik Tougaard                                ht@datani.dk
Software Consultants, Copenhagen, Denmark
#include <std.disclaim>




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01593-4@oink>;
          Thu, 2 Jan 1997 19:05:49 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852231782:9:04233:3; Thu, 02 Jan 97 19:03:02 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005459; 2 Jan 97 19:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA05369 for dbi-users-real; Thu, 2 Jan 1997 05:28:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from unb.ca (hermes.csd.unb.ca [131.202.3.20]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id FAA05365 
          for <dbi-users@fugue.com>; Thu, 2 Jan 1997 05:28:27 -0800 (PST)
From: jaf@UNB.ca
Received: (from sarastro.csd.unb.ca [131.202.8.29]) 
          by unb.ca (8.7.6/961016-08:40) id JAA26126;
          Thu, 2 Jan 1997 09:27:10 -0400 (AST)
Received: by jupiter.sun.csd.unb.ca (8.8.4/960921-23:43) id JAA04643;
          Thu, 2 Jan 1997 09:26:37 -0400 (AST)
Date: Thu, 2 Jan 1997 09:26:37 -0400 (AST)
Message-Id: <199701021326.JAA04643@jupiter.sun.csd.unb.ca>
To: descarte@hermetica.com
Subject: Re: install_driver(Ingres) failed: Can't find loadable object for 
         module DBD::Ingres
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> It looks like your install is building a static version of the Ingres library,
> which means you have to relink perl itself to access the Ingres code. Try
> typing:
> 
> 	make perl
> 
> then run your test script with ./perl.

Thanks for the hint.  This did work, however, I don't want a staticly linked
perl.  

I found that removing the line:

       LINKTYPE => 'static',

from Makefile.PL allowed me to build a dynamically linked module which
appears to work OK.  I'll continue with my own testing.

Thanks again.
--
O- J. Anthony Fitzgerald, jaf@UNB.ca, http://www.unb.ca/web/CSD/staff/jaf/ -O


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18860-193@oink>;
          Mon, 6 Jan 1997 08:06:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852458695:9:12597:0; Sun, 05 Jan 97 10:04:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912555; 5 Jan 97 10:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA02788 for dbi-users-real; Sat, 4 Jan 1997 20:33:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id UAA02784 
          for <dbi-users@fugue.com>; Sat, 4 Jan 1997 20:33:50 -0800 (PST)
Received: by gw.home.vix.com; id UAA27532; Sat, 4 Jan 1997 20:33:48 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: by ping.at with UUCP id AA27309 (5.67b8/ping for dbi-users@fugue.com);
          Sun, 5 Jan 1997 05:30:57 +0100
Received: (from tom@localhost) by eris.site58.ping.at (8.7.5/8.6.11) 
          id FAA03635; Sun, 5 Jan 1997 05:22:08 +0100
From: Thomas Wenrich <wenrich@site58.ping.at>
Message-Id: <199701050422.FAA03635@eris.site58.ping.at>
Subject: Announce: DBD-Solid-0.01
To: dbi-users@fugue.com
Date: Sun, 5 Jan 1997 05:22:07 +0100 (MET)
Cc: Tim.Bunce@ig.co.uk
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi everybody,

just finished a first version of the DBD::Solid perl module to access 
the fine little SOLID RDBMS, one of the few SQL/ODBC capable databases
which are available for Linux.

The purpose of this project was primary to learn a bit about 
ODBC programming and perl modules and to get a handy test environment 
for the SOLID database, so I didn't bother with some of the DBD::Oracle
features (BLOBs, procedure In/Out parameters and rowcache).

I would like to ask everybody who is using SOLID and perl to give it a try.

Thanks to Tim's *great* DBD::Oracle module (where I stole most of the 
code from) it should be fairly stable and useable.

I tested this only with i486 Linux. Porting to other UNIX systems should be
easy, with VMS or NT you are at your own.

The source is available from

	http://members.ping.at/wenrich/DBD-Solid.html

After receiving some feedback (and perhaps fixing bugs) I will place this
on CPAN.

Nice Perling,

Thomas




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27102-9@oink>;
          Mon, 6 Jan 1997 14:19:55 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852560233:9:04446:3; Mon, 06 Jan 97 14:17:13 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1020351; 6 Jan 97 14:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA03839 for dbi-dev-real; Mon, 6 Jan 1997 02:53:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id CAA03835 
          for <dbi-dev@fugue.com>; Mon, 6 Jan 1997 02:53:07 -0800 (PST)
Received: by gw.home.vix.com; id CAA25179; Mon, 6 Jan 1997 02:52:31 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from sysadm.rz.uni-kiel.de by nms.rz.uni-kiel.de with SMTP (PP) 
          id <09038-0@nms.rz.uni-kiel.de>; Mon, 6 Jan 1997 11:54:16 +0100
Received: by sysadm.rz.uni-kiel.de (4.1/SMI-4.1) id AA28541;
          Mon, 6 Jan 97 11:55:02 +0100
Date: Mon, 6 Jan 97 11:55:02 +0100
From: szrzs069@sysadm.rz.uni-kiel.de (Kraemer)
Message-Id: <9701061055.AA28541@sysadm.rz.uni-kiel.de>
To: dbi-dev@fugue.com
Subject: Binding variables with DBD-Ingres

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Happy New Year, everybody!

Henrik Tougaard <ht@datani.dk> wrote about his DBD-Ingres:

>    Binding is impossible (please prove me wrong) as ESQLC needs to know the
> number and type of the binding variables at compile-time, to be able to
> handle the bind statement. Of course you could again unroll it, but as
> there are 3 different datatypes and up to 300 columns in a row it would
> mean that the unrolling has to generate 3**300 (a VERY large number) cases
> - this is impossible.

This is only true if you use the 

  exec sql execute statement-name using variable { ,variable} 

style of the excecute statement (same for open statement). But you may use

  exec sql execute statement-name using descriptor descriptor-name

The descriptor must be 'filled' with descriptions and data of parameters. This can
be done at run-time. The only problem will be the following:

Because Perl only has 'scalar' variables, the DBD-Ingres will not know whether to
create a numeric or alphanumeric variable, if the user-programm does not give this
information. 

Example:

 $st = $dbh->prepare("insert into t values ( ? )" );
 $var = 3;
 $st->execute($var);

 Is this a number or a string? You may get an run time error from Ingres.... 

You do not have this problem if the user program does make use of method bind-param.
Unfortunately there are not standard-attributes for this method (or are there?).

I think we should use something like 'SqlType' and use ISO-Codes of datatypes. 
Something like

 $st = $dbh->prepare("insert into t values ( ? )" );
 $var = 3;
 $st->bind_param(1,$var,{"SqlType" => SQL_INTEGER} );
 $st->execute();

Shouldn't this be a DBI API attribute: mixed-case and not only supported by
one driver. I would strongly suggest not to use a driver specific attribute
and driver specific codes for datatypes. 

BTW... what do you (Tim!) think about exporting the 'constant-functions'
(SQL_INTEGER...) by DBI? Aren't these codes needed by all drivers? 

Comments?
 
>  A consequence of this is that there is no reason to reexecute a
> statement.

No, see above.

> Ingres has the "EXEC SQL EXECUTE IMMEDIATE :statement" statement. This is
> the perfect implementation of DBI::db::do! It seems to be a waste to have
> to do all the prepare, describe and execute stuff when this possibility  
> exists.

But what about 

 $db->do($statement,@pars);

? You cannot supply parameters via execute immediate. 


Best wishes to all of you for 1997.

Dirk Kraemer  





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22720-19@oink>;
          Thu, 9 Jan 1997 15:50:19 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852824513:9:10166:6; Thu, 09 Jan 97 15:41:53 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1018060; 9 Jan 97 15:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id BAA09865 for dbi-users-real; Thu, 9 Jan 1997 01:57:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id BAA09861 
          for <dbi-users@fugue.com>; Thu, 9 Jan 1997 01:57:07 -0800 (PST)
Received: by gw.home.vix.com; id BAA28403; Thu, 9 Jan 1997 01:56:47 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: by inter.astra.co.id via suspension id <40325>;
          Thu, 9 Jan 1997 16:52:13 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40347>; Thu, 9 Jan 1997 16:49:21 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA20601;
          Thu, 9 Jan 1997 16:05:34 +0700
Message-Id: <9701090905.AA20601@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 10 Jan 1997 06:46:35 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: How to get next,back,first and last row

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Why so quite here .... I had using this dbi and dbd quite extensive and
complex using large database oracle for production, I afraid If this going
to ....

Is there anyone know where to get new documentation for new feature of dbi
version 7.3 and dbd Oracle version 0.43 ????

Also what is command to forward and backward between row or to go to first
and last row of fetchrow from database ??? 

I only know this command :

$cursor = $dbh->prepare("SELECT * from table");library_catalog, library_book 
$cursor->execute;

while($row=$cursor->fetchrow)
{
       command .....
}

$cursor1->finish;

is there any possible to $cursor->next,$curosr->last .....

Also how we make this driver work more fast or this latest version (dbi 7.3
and dbd 0.43) more fast then dbi 7.2 and dbd 0.39, I am not yet installing
this new version.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23690-15@oink>;
          Thu, 9 Jan 1997 17:59:11 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852828725:10:10972:10; Thu, 09 Jan 97 16:52:05 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa903037; 9 Jan 97 16:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA10018 for dbi-dev-real; Thu, 9 Jan 1997 05:01:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id FAA10014 
          for <dbi-dev@fugue.com>; Thu, 9 Jan 1997 05:01:00 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id OAA00814 
          for <dbi-dev@fugue.com>; Thu, 9 Jan 1997 14:00:52 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id PAA02555 
          for <dbi-dev@fugue.com>; Thu, 9 Jan 1997 15:01:07 +0100 (MET)
Date: Thu, 9 Jan 1997 15:01:06 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: dbi-dev@fugue.com
Subject: DBD::sth::fetch/fetchrow naming problems
Message-ID: <Pine.SOL.3.95.970109145051.2103A-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

As one of my prime platforms is OpenVMS i have some special problems with
portability for the DBD::Ingres module.

One problem area is case sensitivity.
- Unix is case sensitive
- VMS is not.

There is a DBD::st::fetch and a DBD::st::FETCH function.
I have had to (silently - I had forgotten it until someone reminded me)
drop the fetch-function. [the FETCH function is neccessary to get back
information about the current statement etc.]

Can we agree on a new name for the fetch function (what does it do?) or do
I (and other VMS-porters) have to rename it to something?

Another (minor) annoyance is the length of function names. VMS has a limit
of 31 characters (any more are ignored). Then disconnect_all function in
Ingres.xs is too long [it is encoded as
"XS_DBD__Ingres__dr_disconnect_all"  - 33 chars]. Can we find a shorter
name? Or will the VMS comminity have to live with warnings?

By the way it is amazing how simple it is to get a module to work on two
so different OSes. DBI gave no trouble at all (make test bombs out, but
installation is OK).
--

Henrik Tougaard
ht@datani.dk Software Consultants, Copenhagen, Denmark
#include <std.disclaim>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26754-15@oink>;
          Fri, 10 Jan 1997 07:37:20 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852839168:10:08328:6; Thu, 09 Jan 97 19:46:08 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901972; 9 Jan 97 19:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA10075 for dbi-users-real; Thu, 9 Jan 1997 06:05:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA10071 
          for <dbi-users@fugue.com>; Thu, 9 Jan 1997 06:05:14 -0800 (PST)
Received: by gw.home.vix.com; id GAA18419; Thu, 9 Jan 1997 06:05:13 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from msgw.hsii.ccare.com by SULTAN.HSII.CCARE.COM (PMDF V5.0-5 #4597) 
          id <01IE032V8UK0006QOC@SULTAN.HSII.CCARE.COM> 
          for dbi-users@fugue.com; Thu, 09 Jan 1997 08:05:45 -0600 (CST)
Received: by msgw.hsii.ccare.com with Microsoft Mail 
          id <32D4FB79@msgw.hsii.ccare.com>;
          Thu, 09 Jan 1997 08:06:49 -0600 (CST)
Date: Thu, 09 Jan 1997 08:01:00 -0600 (CST)
From: "Willard, Keith" <KWillard@msmail.hsii.ccare.com>
Subject: dec unix users
To: dbilist <dbi-users@fugue.com>
Message-id: <32D4FB79@msgw.hsii.ccare.com>
X-Mailer: Microsoft Mail V3.0
Content-transfer-encoding: 7BIT
Encoding: 6 TEXT

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Among people who have Dec Unix running on an alpha box and are using oraperl 
what are the versions of OS, DBD, DBI, and Oracle that you have working? 
 The info on this with the distribution appears to be a little dated.

 --Keith Willard


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00184-4@oink>;
          Fri, 10 Jan 1997 14:06:00 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852899776:10:17562:0; Fri, 10 Jan 97 12:36:16 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa926166; 10 Jan 97 12:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id XAA11655 for dbi-users-real; Thu, 9 Jan 1997 23:17:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id XAA11651 
          for <dbi-users@fugue.com>; Thu, 9 Jan 1997 23:17:10 -0800 (PST)
Received: by inter.astra.co.id via suspension id <40329>;
          Fri, 10 Jan 1997 14:16:49 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40328>; Fri, 10 Jan 1997 14:15:03 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA10466;
          Fri, 10 Jan 1997 13:38:44 +0700
Message-Id: <9701100638.AA10466@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 11 Jan 1997 04:17:53 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: result of fetchrow redirect to insert command

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I had develop aplication using dbi and dbd with database oracle.

My problem is I use two database oracle system :

1. Oracle 7.1.6 reside on DEC Alpha 1000 with web server (local)
2. Oracle 7.2.X reside on HP 10-UX with sqlnet connection between DEC to HP

Sometimes I take data from HP than I want insert that result to database on
DEC with bacth processing for performance consideration because HP reside on
remote location than web server.

usually I use this command :

$cursorhp = $dbh->prepare("SELECT * from table");
$cursorhp->execute;

while($tablecontent = $cursorhp->fetchrow)
{
        $dbhdec->do("insert values ($tablecontent[0] .....
}


Is there any command to do this thing like :

$cursorhp = $dbh->prepare("SELECT * from table");
$cursorhp->execute;

$dbhdec->insert($cursorhp->fetchrow) into table (something like this...)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00915-9@oink>;
          Fri, 10 Jan 1997 16:08:09 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852912349:10:19817:3; Fri, 10 Jan 97 16:05:49 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa900722; 10 Jan 97 16:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA11976 for dbi-dev-real; Fri, 10 Jan 1997 04:14:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id EAA11972 
          for <dbi-dev@fugue.com>; Fri, 10 Jan 1997 04:14:16 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id NAA01136;
          Fri, 10 Jan 1997 13:13:49 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id OAA22250;
          Fri, 10 Jan 1997 14:14:03 +0100 (MET)
Date: Fri, 10 Jan 1997 14:14:02 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-dev@fugue.com, bailey@hmivax.humgen.upenn.edu
Subject: Re: DBD::sth::fetch/FETCH naming problems
In-Reply-To: <9701101025.AA11598@toad.ig.co.uk>
Message-ID: <Pine.SOL.3.95.970110140222.21610A-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

On Fri, 10 Jan 1997, Tim Bunce wrote:
> > From: Henrik Tougaard <ht@datani.dk>
> > ...
> > - Unix is case sensitive
> > - VMS is not.
> 
> I presume you mean the linker. Are you *certain* there is no way to have
> case sensitive linking?
Not only the linker. The file-system, commands, and much more is case
insensitive... The VMSperl-porters (Charles Bailey) do a great job with
the rest of perl..
> 
> > There is a DBD::st::fetch and a DBD::st::FETCH function.
> > ...
> > Can we agree on a new name for the fetch function (what does it do?) or do
> > I (and other VMS-porters) have to rename it to something?
> 
> It's too late for that. It's VMS that (appears) broken.
In other words: too bad VMS-users you can't use DBI/DBD ?  ;-}
>
> > Another (minor) annoyance is the length of function names. VMS has a limit
> > of 31 characters (any more are ignored). Then disconnect_all function in
> > Ingres.xs is too long [it is encoded as
> > "XS_DBD__Ingres__dr_disconnect_all"  - 33 chars]. Can we find a shorter
> > name? Or will the VMS comminity have to live with warnings?
> 
> The latter, probably.
OK - its a minor annoyance...
> 
> > By the way it is amazing how simple it is to get a module to work on two
> > so different OSes. DBI gave no trouble at all (make test bombs out, but
> > installation is OK).
> 
> Doesn't the test failing worry you?
> 
Not when the test refers to (among other things) /usr/spool - we have no
such directory. The DBI-test is so full of Unix-isms that it is VERY
difficult to port.

> Tim.
> 

Henrik Tougaard                                ht@datani.dk
Software Consultants, Copenhagen, Denmark
#include <std.disclaim>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08853-33@oink>;
          Mon, 13 Jan 1997 07:39:59 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852926804:10:03656:0; Fri, 10 Jan 97 20:06:44 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918651; 10 Jan 97 20:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA12352 for dbi-dev-real; Fri, 10 Jan 1997 08:44:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from mail.xmission.com (root@mail.xmission.com [198.60.22.22]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA12348 
          for <dbi-dev@fugue.com>; Fri, 10 Jan 1997 08:44:42 -0800 (PST)
Received: from GARYSHEA (slc29.modem.xmission.com [204.228.136.29]) 
          by mail.xmission.com (8.8.4/8.7.5) with SMTP id JAA13455;
          Fri, 10 Jan 1997 09:44:31 -0700 (MST)
Message-Id: <199701101644.JAA13455@mail.xmission.com>
X-Sender: shea@mail.xmission.com
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 10 Jan 1997 09:45:20 -0700
To: dbi-dev@fugue.com
From: shea@xmission.com (Gary Shea)
Subject: DBI-0.73 build failed
Cc: Tim.Bunce@ig.co.uk

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Building DBI-0.73 on Solaris 2.51 for perl5.003_20
with PerlIO/sfio failed with a syntax error in DBI.xs.
I don't have it handy, just thought I'd mention
this in case it hadn't been seen yet.  I do recall
that the error is "before _setbuf_" and there's
only one setbuf in DBI.xs.

Is DBI uptodate wrt the PerlIO changes, or do they
even apply to DBI?  I'm a bit clueless on the subject...

        Gary
-----------------------------------------------------------------------
Gary Shea                                          Salt Lake City, Utah
shea@xmission.com                         http://www.xmission.com/~shea


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08853-68@oink>;
          Mon, 13 Jan 1997 07:44:13 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852935738:10:11637:1; Fri, 10 Jan 97 22:35:38 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011585; 10 Jan 97 22:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA12305 for dbi-users-real; Fri, 10 Jan 1997 08:16:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from worf.qntm.com (worf.qntm.com [146.174.250.100]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA12301 
          for <dbi-users@fugue.com>; Fri, 10 Jan 1997 08:15:59 -0800 (PST)
Received: from mail.qntm.com by worf.qntm.com with ESMTP (1.40.112.8/16.2) 
          id AA247422926; Fri, 10 Jan 1997 08:15:31 -0800
Received: from dns66.qntm.com (dns154.qntm.com) by mail.qntm.com 
          with SMTP (1.37.109.16/16.2) id AA198302853;
          Fri, 10 Jan 1997 08:14:13 -0800
Received: from [146.174.126.77] by dns66.qntm.com with SMTP (1.38.193.4/16.2) 
          id AA02842; Fri, 10 Jan 1997 08:01:12 -0800
Received: by Lutze.qntm.com with Microsoft Mail 
          id <01BBFED5.F8AD0B80@Lutze.qntm.com>;
          Fri, 10 Jan 1997 09:09:23 -0700
Message-Id: <01BBFED5.F8AD0B80@Lutze.qntm.com>
From: Mark Lutze <lutze@qntm.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: result of fetchrow redirect to insert command
Date: Fri, 10 Jan 1997 09:09:17 -0700
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Achmad,

Have you considered using Oracle's data replication features (snapshots)
to copy the data from the remote DB to the Web Server? I have been using
snapshots to replicate data between two 7.1.3 db's for some time now with
fairly good results.

Mark Lutze.
----------
From: 	Achmad Dimyati[SMTP:dimyati@ai.astra.co.id]
Sent: 	Friday, January 10, 1997 2:17 PM
To: 	dbi-users@fugue.com
Subject: 	result of fetchrow redirect to insert command

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I had develop aplication using dbi and dbd with database oracle.

My problem is I use two database oracle system :

1. Oracle 7.1.6 reside on DEC Alpha 1000 with web server (local)
2. Oracle 7.2.X reside on HP 10-UX with sqlnet connection between DEC to HP

Sometimes I take data from HP than I want insert that result to database on
DEC with bacth processing for performance consideration because HP reside on
remote location than web server.

usually I use this command :

$cursorhp = $dbh->prepare("SELECT * from table");
$cursorhp->execute;

while($tablecontent = $cursorhp->fetchrow)
{
        $dbhdec->do("insert values ($tablecontent[0] .....
}


Is there any command to do this thing like :

$cursorhp = $dbh->prepare("SELECT * from table");
$cursorhp->execute;

$dbhdec->insert($cursorhp->fetchrow) into table (something like this...)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08853-88@oink>;
          Mon, 13 Jan 1997 07:46:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 852942500:9:28003:0; Sat, 11 Jan 97 00:28:20 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005889; 11 Jan 97 0:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA12431 for dbi-users-real; Fri, 10 Jan 1997 09:29:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.med.cornell.edu (qmcumc.mail.cornell.edu [140.251.2.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA12427 
          for <dbi-users@fugue.com>; Fri, 10 Jan 1997 09:29:19 -0800 (PST)
Received: from bahpc (pc103232.med.cornell.edu [140.251.2.167]) 
          by mail.med.cornell.edu (8.7.3/8.8.x/cumc1) with SMTP id MAA23462 
          for <dbi-users@fugue.com>; Fri, 10 Jan 1997 12:29:16 -0500
Message-Id: <3.0.32.19970110122846.00a62170@mail.med.cornell.edu>
X-Sender: bah@mail.med.cornell.edu
X-Mailer: Windows Eudora Pro Version 3.0 Demo (32)
Date: Fri, 10 Jan 1997 12:28:46 -0500
To: dbi-users@fugue.com
From: Benjamin Holzman <bah@mail.med.cornell.edu>
Subject: DBD:Informix build failed on AIX 4.1.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

##################
# perl Makefile.PL
##################
Configuring DBD::Informix version 0.23...
Remember to actually read the README file!

What version of Informix are you using? [5/6/7] 7
Using Informix version 7 in /informix
Informix sysliblist: -L/informix/lib -L/informix/lib/esql -lsql -lasf -lgen
-los -lm
System: perl5.003 aix yves 1 4 000006839000  aix dl_aix.xs
Compiler: cc -O -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO

Checking if your kit is complete...
Warning: the following files are missing in your kit:
	Makefile
	Makefile.old
Please inform the author.
Writing Makefile for DBD::Informix

########
# make
########
cp Informix.pm ./blib/lib/DBD/Informix.pm
	/usr/local/bin/perl "-I/usr/local/lib/perl5/aix/5.003"
"-I/usr/local/lib/perl5" -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "DBD::Informix", "DL_FUNCS" => {  }, "DL_VARS" => []);'
	/usr/local/bin/perl -I/usr/local/lib/perl5/aix/5.003
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/ExtUtils/typemap Informix.xs >Informix.tc && mv
Informix.tc Informix.c
	cc -c -I/informix/incl/esql -I/usr/local/lib/perl5/aix/5.003/DBI
-I/usr/local/lib/perl5/site_perl/aix/DBI -qmaxmem=8192 -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O
-DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\"
-I/usr/local/lib/perl5/aix/5.003/CORE  Informix.c
	cc -c -I/informix/incl/esql -I/usr/local/lib/perl5/aix/5.003/DBI
-I/usr/local/lib/perl5/site_perl/aix/DBI -qmaxmem=8192 -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O
-DVERSION=\"0.23\"  -DXS_VERSION=\"0.23\"
-I/usr/local/lib/perl5/aix/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Informix ()
	chmod 644 Informix.bs
	LD_RUN_PATH="/informix/lib/esql:/informix/lib:/lib" ld -o
./blib/arch/auto/DBD/Informix/Informix.so -H512 -T512 -bhalt:4 -bM:SRE
-bI:/usr/local/lib/perl5/aix/5.003/CORE/perl.exp -bE:Informix.exp -b
noentry -lc -L/usr/local/lib Informix.o  dbdimp.o dbdimp.o -L/informix/lib
-L/informix/lib -lbsd   -L/informix/lib -L/informix/lib/esql -lsql -lasf
-lgen -los -lm 
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mblen
ld: 0711-317 ERROR: Undefined symbol: .im_ismctype
ld: 0711-317 ERROR: Undefined symbol: .gl_getcentury
ld: 0711-317 ERROR: Undefined symbol: .gl_wcscmp
ld: 0711-317 ERROR: Undefined symbol: .gl_full_wcscoll
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mbtowc
ld: 0711-317 ERROR: Undefined symbol: .im_iswctype
ld: 0711-317 ERROR: Undefined symbol: .gl_mbsbytes
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mbscpy
ld: 0711-317 ERROR: Undefined symbol: .gl_iconv_expansion
ld: 0711-317 ERROR: Undefined symbol: .gl_miconv
ld: 0711-317 ERROR: Undefined symbol: .gl_full_fgetmb
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mbsnext
ld: 0711-317 ERROR: Undefined symbol: .gl_mbwidth
ld: 0711-317 ERROR: Undefined symbol: .gl_localeconv
ld: 0711-317 ERROR: Undefined symbol: .gl_mbsptime
ld: 0711-317 ERROR: Undefined symbol: .gl_mbsftime
ld: 0711-317 ERROR: Undefined symbol: .gl_nl_langinfo
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mbscat
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_spec2msg_dname
ld: 0711-317 ERROR: Undefined symbol: .im_tomlower
ld: 0711-317 ERROR: Undefined symbol: .gl_case_conv_outbuflen
ld: 0711-317 ERROR: Undefined symbol: .gl_tombsupper
ld: 0711-317 ERROR: Undefined symbol: .gl_tombslower
ld: 0711-317 ERROR: Undefined symbol: .gl_wcsncpy
ld: 0711-317 ERROR: Undefined symbol: .gl_wcslen
ld: 0711-317 ERROR: Undefined symbol: .gl_wcsncmp
ld: 0711-317 ERROR: Undefined symbol: .gl_mbsfmon
ld: 0711-317 ERROR: Undefined symbol: .gl_charoffset
ld: 0711-317 ERROR: Undefined symbol: .im_towlower
ld: 0711-317 ERROR: Undefined symbol: .is_wcstombs
ld: 0711-317 ERROR: Undefined symbol: .gl_full_wcstombs
ld: 0711-317 ERROR: Undefined symbol: .gl_mbstimeinfo
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_spec2lc_fname
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_fname2lc_pieces
ld: 0711-317 ERROR: Undefined symbol: .gl_setlocale_4
ld: 0711-317 ERROR: Undefined symbol: .gl_destroystring
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_pieces2lc_spec
ld: 0711-317 ERROR: Undefined symbol: .gl_cache_registry
ld: 0711-317 ERROR: Undefined symbol: .gl_cv_load
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_spec2cs_num
ld: 0711-317 ERROR: Undefined symbol: .gl_create_null_locale_4
ld: 0711-317 ERROR: Undefined symbol: .gl_lc_unload
ld: 0711-317 ERROR: Undefined symbol: .gl_full_mbschr
ld: 0711-317 ERROR: Undefined symbol: .t_look
ld: 0711-317 ERROR: Undefined symbol: t_errno
ld: 0711-317 ERROR: Undefined symbol: .t_rcv
ld: 0711-317 ERROR: Undefined symbol: .t_rcvudata
ld: 0711-317 ERROR: Undefined symbol: .t_sndudata
ld: 0711-317 ERROR: Undefined symbol: .t_sync
ld: 0711-317 ERROR: Undefined symbol: .t_close
ld: 0711-317 ERROR: Undefined symbol: .t_sndrel
ld: 0711-317 ERROR: Undefined symbol: .t_rcvrel
ld: 0711-317 ERROR: Undefined symbol: .t_rcvdis
ld: 0711-317 ERROR: Undefined symbol: .t_snd
ld: 0711-317 ERROR: Undefined symbol: .t_alloc
ld: 0711-317 ERROR: Undefined symbol: .t_free
ld: 0711-317 ERROR: Undefined symbol: .t_open
ld: 0711-317 ERROR: Undefined symbol: .t_bind
ld: 0711-317 ERROR: Undefined symbol: .t_accept
ld: 0711-317 ERROR: Undefined symbol: .t_listen
ld: 0711-317 ERROR: Undefined symbol: .t_rcvconnect
ld: 0711-317 ERROR: Undefined symbol: .t_connect
ld: 0711-317 ERROR: Undefined symbol: .t_unbind
ld: 0711-317 ERROR: Undefined symbol: .gl_mbsfmtexpand
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.


Stop.

##############
# perl test.pl
##############
install_driver(Informix) failed: Can't locate DBD/Informix.pm in @INC at
(eval 1) line 2.
	DBI::install_driver called at test.pl line 10
Testing: DBI->install_driver( 'Informix' ): 

###############################
# PERL_DBI_DEBUG=2 perl test.pl
###############################
Loaded DBI.pm at test.pl line 3
    DBI dispatch debug level set to 2
DBI->install_driver DBI Informix at test.pl line 10
install_driver(Informix) failed: Can't locate DBD/Informix.pm in @INC at
(eval 1) line 2.
	DBI::install_driver called at test.pl line 10
DBI::END
DBI::disconnect_all DBI
DBI::END complete
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Testing: DBI->install_driver( 'Informix' ): 

#############################
# Using perl 5.003
# Using ESQL/C version 7.21.UD1
#############################

################################################
# perl -e 'use Config; print Config::myConfig()'
################################################
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=aix, osver=4.1.4.0, archname=aix
    uname='aix yves 1 4 000006839000 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include -D_NO_PROTO'
    ccflags ='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lld -lm -lc -lbsd -lPW
    libc=/usr/lib/libc.a, so=so
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-H512 -T512 -bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib'


=================================================================
| Benjamin Holzman         | Server Manager                     |
| (212) 746-4890           | Office of Academic Computing       |
| bah@mail.med.cornell.edu | Cornell University Medical College |
=================================================================


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08853-261@oink>;
          Mon, 13 Jan 1997 08:05:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853132906:10:05543:0; Mon, 13 Jan 97 05:21:46 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909263; 13 Jan 97 5:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA15651 for dbi-users-real; Sun, 12 Jan 1997 16:27:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA15647 
          for <dbi-users@fugue.com>; Sun, 12 Jan 1997 16:27:05 -0800 (PST)
Received: by inter.astra.co.id via suspension id <40322>;
          Mon, 13 Jan 1997 07:27:11 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40321>; Mon, 13 Jan 1997 07:27:00 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA12104;
          Mon, 13 Jan 1997 06:51:05 +0700
Message-Id: <9701122351.AA12104@gateway.ai.astra.co.id>
From: dimyati <dimyati@ai.astra.co.id>
To: dbi-users <dbi-users@fugue.com>
Subject: DBI, DBD and documentation
Date: Thu, 9 Jan 1997 16:29:18 +0700
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello, what so quite here ....

I use new dbi and dbd driver with version 7.3 and dbd 0.43 for Oracle. Is
there any new documentation for using them ??

If I want use command next,back,first and last row on database what that
command ??

I only know this command :

$cursor = $dbh->prepare("SELECT * from table");
$cursor->execute;

while (@temp = $cursor->fetchrow)
{
	command ....
}

$cursor->finish;

are possible like $cursor->next, $cursor->back,$curosr->first .... 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15910-2@oink>;
          Mon, 13 Jan 1997 14:33:56 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853163388:9:07425:10; Mon, 13 Jan 97 13:49:48 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa907280; 13 Jan 97 13:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id BAA16181 for dbi-users-real; Mon, 13 Jan 1997 01:12:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id BAA16177 
          for <dbi-users@fugue.com>; Mon, 13 Jan 1997 01:12:03 -0800 (PST)
Received: by inter.astra.co.id via suspension id <40331>;
          Mon, 13 Jan 1997 16:11:57 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40329>; Mon, 13 Jan 1997 16:11:52 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA31035;
          Mon, 13 Jan 1997 15:35:51 +0700
Message-Id: <9701130835.AA31035@gateway.ai.astra.co.id>
From: dimyati <dimyati@ai.astra.co.id>
To: dbi-users <dbi-users@fugue.com>
Subject: test error when using dbd 0.43
Date: Mon, 13 Jan 1997 16:14:32 +0700
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I had try to install new driver oracle 0.43 but I encounter any error. (I
still use old dbi version 0.72)

Error like happen at the final test with this report :

Testing PL/SQL interaction
Testing bind_param_inout. Expect '200','3800','75800':
Can't locate object method "bind_param_inout" via package "DBI::st" at
test.pl line 294
*** Exit 2
Stop.

I think this line make this error :

$c->bind_param_inout(1, \$param, 100) || die "bind_param_inout
$ora_errstr";

Is this error happen because I still using old DBI 0.72 or perl 5.003 ?. I
hadn't install new DBI 0.73 because there is running program using dbi and
dbd and there using for production. 
 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19502-66@oink>;
          Tue, 14 Jan 1997 07:42:58 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853204241:10:16844:22; Tue, 14 Jan 97 01:10:41 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016833; 14 Jan 97 1:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA16854 for dbi-users-real; Mon, 13 Jan 1997 09:01:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA16850 
          for <dbi-users@fugue.com>; Mon, 13 Jan 1997 09:01:48 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id RAA13943 for dbi-users@fugue.com; Mon, 13 Jan 1997 17:01:05 GMT
Date: Mon, 13 Jan 97 15:58 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: Cant compile DBD Oracle
To: pdoran@lucent.com
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.291653@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <1.5.4.32.19970113153109.0093e770@alemsrv.micro.lucent.com>
> Hi,
> 
> I am new to PERL and am having difficulty compiling the DBD :Oracle 
> package.
> I was able to get both PERL and the DBI package to compile, but I keep
> getting this error when I attempt to compile the DBD package:
> 
> (/mirror/DBD-Oracle-0.43)-->make
> 
>         cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo 

Looks like you have a similar problem to me.  Due to the nasty fact 
that Oracle don't use a standard set of libraries, the Oracle-supplied 
Makefile sometimes refers to libraries that don't exist.  The 
DBD::Oracle install stuff valiantly tries to guess what is needed, but 
is sometimes fooled by the horribleness of the Oracle Makefiles.  Try 
applying the following patch, which scans the list of suspected 
libraries and removes any that don't exist.

Alan Burlison   aburlison@cix.compulink.co.uk

begin 644 Makefile.PL.patch
M*BHJ($UA:V5F:6QE+E!,"49R:2!$96,@,3,@,38Z,S(Z,#,@,3DY-@HM+2T@
M36%K969I;&4N4$PN;F5W"49R:2!$96,@,3,@,38Z,S4Z,3 @,3DY-@HJ*BHJ
M*BHJ*BHJ*BHJ*BH**BHJ(#(U-BPR-S @*BHJ*@H@(" @(" C(&UA:V5F:6QE
M("AN;W1E('1H870@)4U+('-T:6QL<R!G971S('1H97-E('9A;'5E<RDN"B @
M(" @(&UY($!E9&ET(#T@<7<H4TA%3$P@0T,@0T9,04=3($-#1DQ!1U,@3U!4
M24U)6D4@05-&3$%'4R!20T,@3$0@3$1&3$%'4R!!4B!%0TA/($5812!/0DI3
M*3L*(" @(" @;7D@)65D:70[($!E9&ET>T!E9&ET?2 ]("@G)%\@/2 B(B<I
M('@@0&5D:70["B @"B$@(" @("1E9&ET>T-/35!/0DI3?2 ]('%["B @"2 @
M(" C($-H86YG92!T:&4@0T]-4$]"2E,@;&EN92X@*%-O;64@9FEL97,@=7-E
M($Q)0DA/344@;F]T($-/35!/0DHI"B @"2 @(" C(&]L9#H@)"A#3TU03T)*
M*2]C<G1I+F\@)"A#3TU03T)**2]C<G0Q+F\@)"A#3TU03T)**2]?7V9S=&0N
M;PH@( D@(" @(R!N97<Z("0H0T]-4$]"2BDO7U]F<W1D+F\*(" )(" @(',Z
M7"1<4RL_+V-R=%LQ:6Y=7"YO7&(Z.F<["B$@"7T@:68@)$-O;F9I9WMO<VYA
M;65](&5Q("=S;VQA<FES)SL@(R!A;F0@)$-O;F9I9WMG8V-V97)S:6]N?3L*
M(2 *(" @(" @;7D@)&UK=F5R(#T@,#L*(" @(" @;7D@)&QI;FMW:71H(#T@
M)R<["B @(" @(&UY("1L87-T;&EN92 ]("<G.PH@(" @("!M>2! ;&EN97,@
M/2!R96%D7VEN8U]F:6QE*"1P<F]C;6LI.PHM+2T@,C4V+#(X,2 M+2TM"B @
M(" @(",@;6%K969I;&4@*&YO=&4@=&AA=" E34L@<W1I;&QS(&=E=',@=&AE
M<V4@=F%L=65S*2X*(" @(" @;7D@0&5D:70@/2!Q=RA32$5,3"!#0R!#1DQ!
M1U,@0T-&3$%'4R!/4%1)34E:12!!4T9,04=3(%)#0R!,1"!,1$9,04=3($%2
M($5#2$\@15A%($]"2E,I.PH@(" @("!M>2 E961I=#L@0&5D:71[0&5D:71]
M(#T@*"<D7R ]("(B)RD@>"! 961I=#L*(" *(2 @(" @:68@*"1#;VYF:6=[
M;W-N86UE?2!E<2 G<V]L87)I<R<I(",@86YD("1#;VYF:6=[9V-C=F5R<VEO
M;GT*(2 @(" @(" @>PHA(" @(" @(" D961I='M#3TU03T)*4WT@/2!Q>PH@
M( D@(" @(R!#:&%N9V4@=&AE($-/35!/0DI3(&QI;F4N("A3;VUE(&9I;&5S
M('5S92!,24)(3TU%(&YO="!#3TU03T)**0H@( D@(" @(R!O;&0Z("0H0T]-
M4$]"2BDO8W)T:2YO("0H0T]-4$]"2BDO8W)T,2YO("0H0T]-4$]"2BDO7U]F
M<W1D+F\*(" )(" @(",@;F5W.B D*$-/35!/0DHI+U]?9G-T9"YO"B @"2 @
M("!S.EPD7%,K/R]C<G1;,6EN75PN;UQB.CIG.PHA( D@(" @?0HA(" @(" @
M(" @?0HA(" @("!E;'-E('L*(2 @(" @(" @("1E9&ET>T-/35!/0DI3?2 ]
M('%["B$@(" @(" @(" @(" @(R!#:&5C:R!T:&%T('1H92!O8FIE8W0@9FEL
M97,@:6X@0T]-4$]"2B!A8W1U86QL>2!E>&ES=" M"B$@(" @(" @(" @(" @
M(R!I9B!N;W0L(')E;6]V92!T:&5M"B$@(" @(" @(" @(" @;7D@)&]F.R!F
M;W)E86-H("1O9B H<W!L:70H+SU\7',O*2D@>PHA(" @(" @(" @(" @(" @
M("!S.EQ1)&]F.CH@:68@)&]F(&YE(")#3TU03T)*4R(@)B8@(2 M92!E>'!A
M;F1?;6MV87)S*"1O9BPP+# L,"D["B$@(" @(" @(" @(" @(" @('T@"B$@
M(" @(" @(" @(" @?0HA(" @(" @(" @?0H@(" @("!M>2 D;6MV97(@/2 P
M.PH@(" @("!M>2 D;&EN:W=I=&@@/2 G)SL*(" @(" @;7D@)&QA<W1L:6YE
M(#T@)R<["B @(" @(&UY($!L:6YE<R ](')E861?:6YC7V9I;&4H)'!R;V-M
$:RD["B<[
 
end



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19502-73@oink>;
          Tue, 14 Jan 1997 07:43:39 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853204893:9:02703:1; Tue, 14 Jan 97 01:21:33 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa902486; 14 Jan 97 1:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA16588 for dbi-users-real; Mon, 13 Jan 1997 07:12:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ihgw1.lucent.com (ihgw1.lucent.com [207.19.48.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA16584 
          for <dbi-users@fugue.com>; Mon, 13 Jan 1997 07:12:21 -0800 (PST)
Received: from aluxpo by ihig1.firewall.lucent.com (SMI-8.6/EMS-L sol2) 
          id JAA12133; Mon, 13 Jan 1997 09:19:15 -0600
Received: from pdoran (stcpd-pc.micro.lucent.com) 
          by aluxpo (4.1/DCS-aluxpo-M9.3) id AA14107;
          Mon, 13 Jan 97 10:10:55 EST
Message-Id: <1.5.4.32.19970113153109.0093e770@alemsrv.micro.lucent.com>
X-Sender: stcpjd@alemsrv.micro.lucent.com
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 13 Jan 1997 08:31:09 -0700
To: dbi-users@fugue.com
From: "Patrick J. Doran" <pdoran@lucent.com>
Subject: Cant compile DBD Oracle
Cc: Tim.Bunce@ig.co.uk, pdoran@lucent.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I am new to PERL and am having difficulty compiling the DBD :Oracle package.
I was able to get both PERL and the DBI package to compile, but I keep
getting this error when I attempt to complile the DBD pacakage:

(/mirror/DBD-Oracle-0.43)-->make

        cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo -I/opt/perl5/lib/site_perl/
PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O +Onol
imit     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5/lib/PA-RISC1.
1/5.003/CORE  Oracle.c
        cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo -I/opt/perl5/lib/site_perl/
PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O +Onol
imit     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5/lib/PA-RISC1.
1/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/ORACLE/product/7.2.2.3.0/lib:/lib/pa1.1" ld -o ./blib/arch
/auto/DBD/Oracle/Oracle.sl -b -s -a shared -L/usr/local/lib Oracle.o  dbdimp.o /
ORACLE/product/7.2.2.3.0/lib/osntab.o    -L/ORACLE/product/7.2.2.3.0/lib -locic
-lsqlnet -lora -lsqlnet -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lcl -l
m
/usr/ccs/bin/ld: Can't find library for -locic
*** Error exit code 1


What library is causing this problem, an Oracle one???? I am including the
following info that was requested in the installation README.....This is
linking issue (right), does anyone know what I need to do....... PERL works
and the DBI test seemed to run OK.



Here is a complete log of what I did:

(/mirror/DBD-Oracle-0.43)-->perl Makefile.PL
 ###########################################################################
#################
 Configuring DBD::Oracle ...
 
>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.
 
Using Oracle in /ORACLE/product/7.2.2.3.0
Reading /ORACLE/product/7.2.2.3.0/proc/lib/proc.mk.
System: perl5.003 hp-ux mrc1 b.10.01 e 9000819 55631391 8-user license
Compiler: cc -O +Onolimit -D_HPUX_SOURCE -Aa
Linker:   /opt/softbench/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   -I. -O -Aa -D_HPUX_SOURCE +ESsfc +ESlit
  LDFLAGS:  -Wl,-adefault -L$(LIBHOME)
Linking with /ORACLE/product/7.2.2.3.0/lib/osntab.o -locic  -lsqlnet -lora -lsql
net -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lcl -lm
 
Checking if your kit is complete...
Looks good
 
Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.
 
Writing Makefile for DBD::Oracle

(/mirror/DBD-Oracle-0.43)-->make
############################################################################
#######################

cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        /usr/local/bin/perl -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib /
opt/perl5/lib/ExtUtils/xsubpp  -typemap /opt/perl5/lib/ExtUtils/typemap Oracle.x
s >Oracle.tc && mv Oracle.tc Oracle.c
        cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo -I/opt/perl5/lib/site_perl/
PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O +Onol
imit     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5/lib/PA-RISC1.
1/5.003/CORE  Oracle.c
        cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo -I/opt/perl5/lib/site_perl/
PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O +Onol
imit     -DVERSION=\"0.43\"  -DXS_VERSION=\"0.43\" +z -I/opt/perl5/lib/PA-RISC1.
1/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/ORACLE/product/7.2.2.3.0/lib:/lib/pa1.1" ld -o ./blib/arch
/auto/DBD/Oracle/Oracle.sl -b -s -a shared -L/usr/local/lib Oracle.o  dbdimp.o /
ORACLE/product/7.2.2.3.0/lib/osntab.o    -L/ORACLE/product/7.2.2.3.0/lib -locic
-lsqlnet -lora -lsqlnet -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lcl -l
m
/usr/ccs/bin/ld: Can't find library for -locic
*** Error exit code 1

Stop.


Here is some additional info that may be handy......

1.original make error message

 (/mirror/DBD-Oracle-0.43)-->make test

        LD_RUN_PATH="/ORACLE/product/7.2.2.3.0/lib:/lib/pa1.1" ld -o ./blib/arch
/auto/DBD/Oracle/Oracle.sl -b -s -a shared -L/usr/local/lib Oracle.o  dbdimp.o /
ORACLE/product/7.2.2.3.0/lib/osntab.o    -L/ORACLE/product/7.2.2.3.0/lib -locic
-lsqlnet -lora -lsqlnet -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lcl -l
m
/usr/ccs/bin/ld: Can't find library for -locic
*** Error exit code 1
 
Stop.

2. output of make w/ VERBOSE
 
(/mirror/DBD-Oracle-0.43)-->make test TEST_VERBOSE=1

        LD_RUN_PATH="/ORACLE/product/7.2.2.3.0/lib:/lib/pa1.1" ld -o ./blib/arch
/auto/DBD/Oracle/Oracle.sl -b -s -a shared -L/usr/local/lib Oracle.o  dbdimp.o /
ORACLE/product/7.2.2.3.0/lib/osntab.o    -L/ORACLE/product/7.2.2.3.0/lib -locic
-lsqlnet -lora -lsqlnet -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lcl -l
m
/usr/ccs/bin/ld: Can't find library for -locic
*** Error exit code 1
 
Stop.

3. Versions of Software

Perl Version: 5.003
Oracle Version: 7.2.2.3.0
UNIX: HP-UX 10.01

4. Output from perl -V

(/ORACLE/product/7.2.2.3.0)-->perl -V

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux mrc1 b.10.01 e 9000819 55631391 8-user license '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O +Onolimit', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa'
    ccflags ='-D_HPUX_SOURCE -Aa'
    stdchar='unsigned char', d_stdstdio=, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=/usr/lib/libnet.a -lndbm /usr/lib/libmalloc.a /usr/lib/libdld.sl -lm -l
c /usr/lib/libndir.a /usr/lib/libcrypt.a
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -s -a shared -L/usr/local/lib'
 
@INC: /opt/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib /opt/perl5/lib/site_perl/PA
-RISC1.1 /opt/perl5/lib/site_perl .




Help would be greatly appreciated.........................

Patrick J. Doran
Applications Engineer
Lucent Technologies, Microelectronics
Email:		pdoran@lucent.com
Phone:		(610) 391-2747
Fax:		(610) 391-3050
Address:		9999 Hamilton Blvd
		Breingsville,PA 18031-9359
		Room 33A-130E

***************************************************************************
NOTE:  AS A RESULT OF THE AT&T / LUCENT SPLIT, OUR E-MAIL SYSTEM IS IN A
STATE OF FLUX. IF I DO NOT RESPOND IN A TIMELY MANNER TO
YOUR E-MAIL, PLEASE EITHER: 
 1) RESEND WITH YOUR E-MAILER REQUESTING AN AUTO-ACKNOWLEDGEMENT 
 2) CALL OR FAX ME AT THE DIRECT NUMBERS ABOVE
***************************************************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19502-93@oink>;
          Tue, 14 Jan 1997 07:45:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853214718:10:13945:0; Tue, 14 Jan 97 04:05:18 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id ab1013715; 14 Jan 97 4:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA17093 for dbi-users-real; Mon, 13 Jan 1997 11:15:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ihgw2.lucent.com (ihgw2.lucent.com [207.19.48.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA17089 
          for <dbi-users@fugue.com>; Mon, 13 Jan 1997 11:15:21 -0800 (PST)
To: aburlison@cix.compulink.co.uk
Received: from aluxpo by ihig2.firewall.lucent.com (SMI-8.6/EMS-L sol2) 
          id MAA13790; Mon, 13 Jan 1997 12:57:01 -0600
Received: from pdoran (stcpd-pc.micro.lucent.com) 
          by aluxpo (4.1/DCS-aluxpo-M9.3) id AA15379;
          Mon, 13 Jan 97 14:02:19 EST
Message-Id: <1.5.4.32.19970113192228.0095452c@alemsrv.micro.lucent.com>
X-Sender: stcpjd@alemsrv.micro.lucent.com
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 13 Jan 1997 12:22:28 -0700
Original-To: cix.compulink.co.uk!aburlison@micro.lucent.com
From: "Patrick J. Doran" <pdoran@lucent.com>
Subject: Re: Cant compile DBD Oracle
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I tried to apply the patch you sent me, Alan. But I keep getting the same
error :-(


Thanks alot for trying, any other ideas????

P.S.
In your patch you did want me to remove to what you listed on top and
replace it w/ what was on bottom right?? 



At 03:58 PM 1/13/97 GMT0, you wrote:
>In-Reply-To: <1.5.4.32.19970113153109.0093e770@alemsrv.micro.lucent.com>
>> Hi,
>> 
>> I am new to PERL and am having difficulty compiling the DBD :Oracle 
>> package.
>> I was able to get both PERL and the DBI package to compile, but I keep
>> getting this error when I attempt to compile the DBD package:
>> 
>> (/mirror/DBD-Oracle-0.43)-->make
>> 
>>         cc -c -I/ORACLE/product/7.2.2.3.0/rdbms/demo 
>
>Looks like you have a similar problem to me.  Due to the nasty fact 
>that Oracle don't use a standard set of libraries, the Oracle-supplied 
>Makefile sometimes refers to libraries that don't exist.  The 
>DBD::Oracle install stuff valiantly tries to guess what is needed, but 
>is sometimes fooled by the horribleness of the Oracle Makefiles.  Try 
>applying the following patch, which scans the list of suspected 
>libraries and removes any that don't exist.
>
>Alan Burlison   aburlison@cix.compulink.co.uk
>
>begin 644 Makefile.PL.patch
>M*BHJ($UA:V5F:6QE+E!,"49R:2!$96,@,3,@,38Z,S(Z,#,@,3DY-@HM+2T@
>M36%K969I;&4N4$PN;F5W"49R:2!$96,@,3,@,38Z,S4Z,3 @,3DY-@HJ*BHJ
>M*BHJ*BHJ*BHJ*BH**BHJ(#(U-BPR-S @*BHJ*@H@(" @(" C(&UA:V5F:6QE
>M("AN;W1E('1H870@)4U+('-T:6QL<R!G971S('1H97-E('9A;'5E<RDN"B @
>M(" @(&UY($!E9&ET(#T@<7<H4TA%3$P@0T,@0T9,04=3($-#1DQ!1U,@3U!4
>M24U)6D4@05-&3$%'4R!20T,@3$0@3$1&3$%'4R!!4B!%0TA/($5812!/0DI3
>M*3L*(" @(" @;7D@)65D:70[($!E9&ET>T!E9&ET?2 ]("@G)%\@/2 B(B<I
>M('@@0&5D:70["B @"B$@(" @("1E9&ET>T-/35!/0DI3?2 ]('%["B @"2 @
>M(" C($-H86YG92!T:&4@0T]-4$]"2E,@;&EN92X@*%-O;64@9FEL97,@=7-E
>M($Q)0DA/344@;F]T($-/35!/0DHI"B @"2 @(" C(&]L9#H@)"A#3TU03T)*
>M*2]C<G1I+F\@)"A#3TU03T)**2]C<G0Q+F\@)"A#3TU03T)**2]?7V9S=&0N
>M;PH@( D@(" @(R!N97<Z("0H0T]-4$]"2BDO7U]F<W1D+F\*(" )(" @(',Z
>M7"1<4RL_+V-R=%LQ:6Y=7"YO7&(Z.F<["B$@"7T@:68@)$-O;F9I9WMO<VYA
>M;65](&5Q("=S;VQA<FES)SL@(R!A;F0@)$-O;F9I9WMG8V-V97)S:6]N?3L*
>M(2 *(" @(" @;7D@)&UK=F5R(#T@,#L*(" @(" @;7D@)&QI;FMW:71H(#T@
>M)R<["B @(" @(&UY("1L87-T;&EN92 ]("<G.PH@(" @("!M>2! ;&EN97,@
>M/2!R96%D7VEN8U]F:6QE*"1P<F]C;6LI.PHM+2T@,C4V+#(X,2 M+2TM"B @
>M(" @(",@;6%K969I;&4@*&YO=&4@=&AA=" E34L@<W1I;&QS(&=E=',@=&AE
>M<V4@=F%L=65S*2X*(" @(" @;7D@0&5D:70@/2!Q=RA32$5,3"!#0R!#1DQ!
>M1U,@0T-&3$%'4R!/4%1)34E:12!!4T9,04=3(%)#0R!,1"!,1$9,04=3($%2
>M($5#2$\@15A%($]"2E,I.PH@(" @("!M>2 E961I=#L@0&5D:71[0&5D:71]
>M(#T@*"<D7R ]("(B)RD@>"! 961I=#L*(" *(2 @(" @:68@*"1#;VYF:6=[
>M;W-N86UE?2!E<2 G<V]L87)I<R<I(",@86YD("1#;VYF:6=[9V-C=F5R<VEO
>M;GT*(2 @(" @(" @>PHA(" @(" @(" D961I='M#3TU03T)*4WT@/2!Q>PH@
>M( D@(" @(R!#:&%N9V4@=&AE($-/35!/0DI3(&QI;F4N("A3;VUE(&9I;&5S
>M('5S92!,24)(3TU%(&YO="!#3TU03T)**0H@( D@(" @(R!O;&0Z("0H0T]-
>M4$]"2BDO8W)T:2YO("0H0T]-4$]"2BDO8W)T,2YO("0H0T]-4$]"2BDO7U]F
>M<W1D+F\*(" )(" @(",@;F5W.B D*$-/35!/0DHI+U]?9G-T9"YO"B @"2 @
>M("!S.EPD7%,K/R]C<G1;,6EN75PN;UQB.CIG.PHA( D@(" @?0HA(" @(" @
>M(" @?0HA(" @("!E;'-E('L*(2 @(" @(" @("1E9&ET>T-/35!/0DI3?2 ]
>M('%["B$@(" @(" @(" @(" @(R!#:&5C:R!T:&%T('1H92!O8FIE8W0@9FEL
>M97,@:6X@0T]-4$]"2B!A8W1U86QL>2!E>&ES=" M"B$@(" @(" @(" @(" @
>M(R!I9B!N;W0L(')E;6]V92!T:&5M"B$@(" @(" @(" @(" @;7D@)&]F.R!F
>M;W)E86-H("1O9B H<W!L:70H+SU\7',O*2D@>PHA(" @(" @(" @(" @(" @
>M("!S.EQ1)&]F.CH@:68@)&]F(&YE(")#3TU03T)*4R(@)B8@(2 M92!E>'!A
>M;F1?;6MV87)S*"1O9BPP+# L,"D["B$@(" @(" @(" @(" @(" @('T@"B$@
>M(" @(" @(" @(" @?0HA(" @(" @(" @?0H@(" @("!M>2 D;6MV97(@/2 P
>M.PH@(" @("!M>2 D;&EN:W=I=&@@/2 G)SL*(" @(" @;7D@)&QA<W1L:6YE
>M(#T@)R<["B @(" @(&UY($!L:6YE<R ](')E861?:6YC7V9I;&4H)'!R;V-M
>$:RD["B<[
> 
>end
>
>
>
>

Patrick J. Doran
Applications Engineer
Lucent Technologies, Microelectronics
Email:		pdoran@lucent.com
Phone:		(610) 391-2747
Fax:		(610) 391-3050
Address:		9999 Hamilton Blvd
		Breingsville,PA 18031-9359
		Room 33A-130E

***************************************************************************
NOTE:  AS A RESULT OF THE AT&T / LUCENT SPLIT, OUR E-MAIL SYSTEM IS IN A
STATE OF FLUX. IF I DO NOT RESPOND IN A TIMELY MANNER TO
YOUR E-MAIL, PLEASE EITHER: 
 1) RESEND WITH YOUR E-MAILER REQUESTING AN AUTO-ACKNOWLEDGEMENT 
 2) CALL OR FAX ME AT THE DIRECT NUMBERS ABOVE
***************************************************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19502-102@oink>;
          Tue, 14 Jan 1997 07:46:48 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853220190:10:25426:0; Tue, 14 Jan 97 05:36:30 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1025415; 14 Jan 97 5:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA17523 for dbi-users-real; Mon, 13 Jan 1997 14:24:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA17519 
          for <dbi-users@fugue.com>; Mon, 13 Jan 1997 14:23:59 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id WAA01927 for dbi-users@fugue.com; Mon, 13 Jan 1997 22:23:26 GMT
Date: Mon, 13 Jan 97 22:22 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: DBD::Oracle version 0.43 fails 'make test' if not previously installed
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.306142@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have cleaned out every trace of Perl from my machine, and am in the 
process of reinstalling everything from scratch (I'm a masochist!)

I noticed that if DBD::Oracle has not been installed, "make test" fails 
because it cannot find the "do" method (sorry, I have lost the full 
error message).  If a "make install" is done followed by a "make test",
everything is fine.  Looks to me that "make test" is picking up stuff 
from the global Perl library dirs instead of the local blib directory.

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27370-8@oink>;
          Tue, 14 Jan 1997 21:47:51 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853269965:10:00987:3; Tue, 14 Jan 97 19:26:05 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929955; 14 Jan 97 19:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA19046 for dbi-users-real; Tue, 14 Jan 1997 05:23:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cbgw1.lucent.com (cbgw1.lucent.com [192.20.239.133]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id FAA19042 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 05:23:06 -0800 (PST)
To: Tim Bunce <Tim.Bunce@ig.co.uk>
Received: from aluxpo by cbig1.firewall.lucent.com (SMI-8.6/EMS-L sol2) 
          id IAA24650; Tue, 14 Jan 1997 08:16:07 -0500
Received: from pdoran (stcpd-pc.micro.lucent.com) 
          by aluxpo (4.1/DCS-aluxpo-M9.3) id AA06658;
          Tue, 14 Jan 97 08:22:59 EST
Message-Id: <1.5.4.32.19970114134246.00942c94@alemsrv.micro.lucent.com>
X-Sender: stcpjd@alemsrv.micro.lucent.com
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 14 Jan 1997 06:42:46 -0700
Original-To: Tim Bunce <ig.co.uk!Tim.Bunce@micro.lucent.com>
From: "Patrick J. Doran" <pdoran@lucent.com>
Subject: Re: Cant compile DBD Oracle
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

First, I would like to thank everyone who has tried to help me, this is
better support than I hve paid for in the past.

Second, here is the information you requested Tim. 

These drivers seemed to be installed, the output you requested:

(/)find /ORACLE/product -name 'libocic.*' -print
/ORACLE/product/7.2.2.3.0/lib/lobocic.a

This directory is full of lib*.a files.

Also I was able to compile the software by forcing the Makefile.PL to
statically link the Oracle stuff by modiftying the code below to check for
HP-UX versions below 11 (this should force it to statically link on a 10
system right?) It seemed that there was a problem w/ HP-UX 9 and the fix
helped my HP-UX 10 box, any ideas???

# --- Handle special cases ---
# HP-UX 9 cannot link a non-PIC object file into a shared library.
# Since the # .a libs that Oracle supplies contain non-PIC object
# files, we sadly have to build static on HP-UX 9 :
(if ($Config{osname} eq 'hpux' and $Config{osvers} < 11) {
    print "Warning: forced to build static not dynamic on $Config{osname}
$Config{osvers}\n";
    print "         See README and Makefi


What is the effect of statically linking it this way???? What is the
difference between static and dynamic linking???? Should I still be
concerned about compiling this the correct way??


At 11:06 AM 1/14/97 +0000, you wrote:
>
>> From: "Patrick J. Doran" <pdoran@lucent.com>
>> 
>> Hi,
>> 
>> I am new to PERL and am having difficulty compiling the DBD :Oracle package.
>> I was able to get both PERL and the DBI package to compile, but I keep
>> getting this error when I attempt to complile the DBD pacakage:
>> 

>> What library is causing this problem, an Oracle one????
>
>Yes, it's the Oracle OCI library. Perhaps OCI hasn't been installed. Please
>send the output of this command:
>
>	find /ORACLE/product -name 'libocic.*' -print
>
>Tim.
>
>
>

Patrick J. Doran
Applications Engineer
Lucent Technologies, Microelectronics
Email:		pdoran@lucent.com
Phone:		(610) 391-2747
Fax:		(610) 391-3050
Address:		9999 Hamilton Blvd
		Breingsville,PA 18031-9359
		Room 33A-130E

***************************************************************************
NOTE:  AS A RESULT OF THE AT&T / LUCENT SPLIT, OUR E-MAIL SYSTEM IS IN A
STATE OF FLUX. IF I DO NOT RESPOND IN A TIMELY MANNER TO
YOUR E-MAIL, PLEASE EITHER: 
 1) RESEND WITH YOUR E-MAILER REQUESTING AN AUTO-ACKNOWLEDGEMENT 
 2) CALL OR FAX ME AT THE DIRECT NUMBERS ABOVE
***************************************************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28803-2@oink>;
          Tue, 14 Jan 1997 23:05:00 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853282438:9:16849:12; Tue, 14 Jan 97 22:53:58 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916815; 14 Jan 97 22:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA19580 for dbi-dev-real; Tue, 14 Jan 1997 11:17:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA19576;
          Tue, 14 Jan 1997 11:17:38 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id UAA31183;
          Tue, 14 Jan 1997 20:17:33 +0100
Message-Id: <199701141917.UAA31183@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>
Subject: What is the state of DBI/DBD?
Date: Tue, 14 Jan 1997 20:17:08 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

since a while I am looking for a perl database interface for out web
server.
I have found DBI and I am very interested, because I am not bound to one
sort of sql-database.

I have started looking for documentation, the first I found is the
DBI.0.74.readme. I was a little bit suprised. It seems to be from end 1995,
telling me DBI is still alpha code and will be change soon (towards to
ODBC).

Now we have 1997 and I found nothing about ODBC. Wasn't there any
developement inbetween or is the readme still very outdated?

After reading some stuff I have found the dbi www server at
http://www.hermetica.com/technologia/DBI, there it still seem something is
going on.

I am interested in DBI but I am not sure if it't still alive? (Also on this
list there are very few questions and even fewer answers!)

So my questions:
What is the state of DBI/DBD? Alpah, Beta, Released?
Will there still be futher developement?
What is the actual specification? 0.5, 0.6?
Are there plans toward ODBC, like mentioned in the DBI readme?

If DBI has a future I think about writing a postgreSQL (postgres95) DBD
driver. 

Does still sombody does this work?
Where can I find the DBD api/specification?

I hope somebody will take time to answer, because at the moment I am very
insecure whats going on wtih DBI.

Thanks

Gerald



---
Gerald Richter
ECOS  Electronic Communication Services

E-Mail:     richter@ecos.de
WWW:    http://www.ecos.de
Tel:          06133/925151
Fax:         06133/925152
Faxabruf: 06133/93910100


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29131-0@oink>;
          Wed, 15 Jan 1997 00:02:03 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853286274:9:09602:1; Tue, 14 Jan 97 23:57:54 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023506; 14 Jan 97 23:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA19489 for dbi-users-real; Tue, 14 Jan 1997 10:11:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.acilink.org (root@mail.acilink.org [206.246.116.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA19485 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 10:11:37 -0800 (PST)
Received: from clowser.nalda.navy.mil ([138.138.21.79]) 
          by mail.acilink.org (8.8.4/8.6.9) with SMTP id NAA21201;
          Tue, 14 Jan 1997 13:23:29 -0500
Message-Id: <1.5.4.32.19970114180716.0066aa08@mail.acilink.org>
X-Sender: rclowser@mail.acilink.org
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 14 Jan 1997 13:07:16 -0500
To: dbi-users@fugue.com
From: Roy Clowser <rclowser@mail.acilink.org>
Subject: DBD-Oracle-0.43/Oracle 7.3.2.2.0 patch problem
Cc: Tim.Bunce@ig.co.uk

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have been using Perl 5.003, DBI-0.73, and DBD-Oracle-0.43 for the last
couple of months with Oracle 7.3.2 sucessfully.  Yesterday my company
installed an Oracle patch to update to 7.3.2.2.0 which has caused some type
of incompatibility problem.  I have recompiled the DBD-Oracle files (after a
make realclean) successfully hoping that it would solve the problem, however
I am getting a core dump during execution of make test apparently when
ora_login is called.

I tryed to do the perl Makefile.PL -g as suggested in the README, however I
get a message that -g is not a valid option and make croaks.  

I set also tryed setting the variable PERL_DL_DEBUG=2 as suggested,  but I
still get a core dump. From the output however it appears that the
Dynaloader is working properly.. the core dump does not occur until the
connect is attempted.

Here is the output from perl -V:

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=aix, osver=3.2.5, archname=aix
    uname='aix quality 2 3 000022921800 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -I/usr/local/include -D_NO_PROTO'
    ccflags ='-D_ALL_SOURCE -I/usr/local/include -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lld -lm -lc -lbsd -lPW
    libc=/usr/lib/libc.a, so=so
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-H512 -T512 -bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc -L/usr/local/lib'

@INC: /usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl .

---

Here is the output of make test TEST_VERBROSE=1:

DynaLoader.pm loaded (./blib/arch ./blib/lib /usr/local/lib/perl5/aix/5.003
/usr/local/lib/perl5 /usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl .,
/usr/local/lib /lib /usr/lib /usr/ccs/lib)
DynaLoader::bootstrap for FileHandle (auto/FileHandle/FileHandle.so)
DynaLoader::bootstrap for Fcntl (auto/Fcntl/Fcntl.so)
t/base..............DynaLoader.pm loaded (./blib/arch ./blib/lib
/usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl .
/usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl .,
/usr/local/lib /lib /usr/lib /usr/ccs/lib)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.so)
1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
All tests successful.
Files=1,  Tests=5,  0 secs ( 0.32 cusr  0.03 csys =  0.35 cpu)
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/aix/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $
DynaLoader.pm loaded (./blib/arch ./blib/lib /usr/local/lib/perl5/aix/5.003
/usr/local/lib/perl5 /usr/local/lib/perl5/aix/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/aix /usr/local/lib/perl5/site_perl .,
/usr/local/lib /lib /usr/lib /usr/ccs/lib)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.so)

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'xxx/xxx' (via ORACLE_USERID env var or default - recommend
name/passwd@dbname)
(ORACLE_SID='QUAL', TWO_TASK='')
sh: 16901 Memory fault: A memory image file is created as "core".
make: 1254-004 The error code from the last command is -117.

Make Quitting.

---

changed userid/passwd in above output for obvious security reasons, however
was populated correctly for this run.

Any help with this problem would be greatly appreciated.. hope that I have
provided all the correct information.

Thanks,

Roy Clowser
Capstone Corporation
Lexington Park, MD
clowser@mail.acilink.org



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29192-0@oink>;
          Wed, 15 Jan 1997 00:27:04 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853287728:9:16565:16; Wed, 15 Jan 97 00:22:08 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916974; 15 Jan 97 0:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA19948 for dbi-dev-real; Tue, 14 Jan 1997 13:09:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from bienlogic.com ([38.214.78.65]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA19944;
          Tue, 14 Jan 1997 13:09:28 -0800 (PST)
Received: from brubeck.bienlogic.com ([38.214.78.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id NAA12223;
          Tue, 14 Jan 1997 13:07:29 -0800 (PST)
Message-Id: <1.5.4.32.19970114212129.008f7134@38.214.78.65>
X-Sender: lane@38.214.78.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 14 Jan 1997 13:21:29 -0800
To: "G.Richter" <richter@ecos.de>, dbi-users <dbi-users@fugue.com>, 
    dbi-dev <dbi-dev@fugue.com>
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: What is the state of DBI/DBD?

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Gerry,

This is my own nickel:

1) perl, dbi, and dbd are fantastic tools for fast development where there
is not a big premium on reuseability, performance, version control, and
large scale project management.

2) DBD/DBI and perl are the works of some very dedicated and great technical
volunteers. Why and how they are funded is a continuous miracle that is not
guaranteed ad infinitum.

The perl community has been really great and it is not going away. Just
don't make plans for it going forward according to any predictable release
schedule. What you see is what you get.

-Lane
http://bienlogic.com
Creators of http://flirt.com
Powered by DBI/DBD!


At 08:17 PM 1/14/97 +0100, G.Richter wrote:
>    *** From dbi-dev -- To unsubscribe, see the end of this message. ***
>
>Hi,
>
>since a while I am looking for a perl database interface for out web
>server.
>I have found DBI and I am very interested, because I am not bound to one
>sort of sql-database.
>
>I have started looking for documentation, the first I found is the
>DBI.0.74.readme. I was a little bit suprised. It seems to be from end 1995,
>telling me DBI is still alpha code and will be change soon (towards to
>ODBC).
>
>Now we have 1997 and I found nothing about ODBC. Wasn't there any
>developement inbetween or is the readme still very outdated?
>
>After reading some stuff I have found the dbi www server at
>http://www.hermetica.com/technologia/DBI, there it still seem something is
>going on.
>
>I am interested in DBI but I am not sure if it't still alive? (Also on this
>list there are very few questions and even fewer answers!)
>
>So my questions:
>What is the state of DBI/DBD? Alpah, Beta, Released?
>Will there still be futher developement?
>What is the actual specification? 0.5, 0.6?
>Are there plans toward ODBC, like mentioned in the DBI readme?
>
>If DBI has a future I think about writing a postgreSQL (postgres95) DBD
>driver. 
>
>Does still sombody does this work?
>Where can I find the DBD api/specification?
>
>I hope somebody will take time to answer, because at the moment I am very
>insecure whats going on wtih DBI.
>
>Thanks
>
>Gerald
>
>
>
>---
>Gerald Richter
>ECOS  Electronic Communication Services
>
>E-Mail:     richter@ecos.de
>WWW:    http://www.ecos.de
>Tel:          06133/925151
>Fax:         06133/925152
>Faxabruf: 06133/93910100
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29259-0@oink>;
          Wed, 15 Jan 1997 00:47:17 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853289085:10:04896:0; Wed, 15 Jan 97 00:44:45 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1004753; 15 Jan 97 0:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA19593 for dbi-users-real; Tue, 14 Jan 1997 11:20:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA19576;
          Tue, 14 Jan 1997 11:17:38 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id UAA31183;
          Tue, 14 Jan 1997 20:17:33 +0100
Message-Id: <199701141917.UAA31183@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: dbi-users <dbi-users@fugue.com>, dbi-dev <dbi-dev@fugue.com>
Subject: What is the state of DBI/DBD?
Date: Tue, 14 Jan 1997 20:17:08 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

since a while I am looking for a perl database interface for out web
server.
I have found DBI and I am very interested, because I am not bound to one
sort of sql-database.

I have started looking for documentation, the first I found is the
DBI.0.74.readme. I was a little bit suprised. It seems to be from end 1995,
telling me DBI is still alpha code and will be change soon (towards to
ODBC).

Now we have 1997 and I found nothing about ODBC. Wasn't there any
developement inbetween or is the readme still very outdated?

After reading some stuff I have found the dbi www server at
http://www.hermetica.com/technologia/DBI, there it still seem something is
going on.

I am interested in DBI but I am not sure if it't still alive? (Also on this
list there are very few questions and even fewer answers!)

So my questions:
What is the state of DBI/DBD? Alpah, Beta, Released?
Will there still be futher developement?
What is the actual specification? 0.5, 0.6?
Are there plans toward ODBC, like mentioned in the DBI readme?

If DBI has a future I think about writing a postgreSQL (postgres95) DBD
driver. 

Does still sombody does this work?
Where can I find the DBD api/specification?

I hope somebody will take time to answer, because at the moment I am very
insecure whats going on wtih DBI.

Thanks

Gerald



---
Gerald Richter
ECOS  Electronic Communication Services

E-Mail:     richter@ecos.de
WWW:    http://www.ecos.de
Tel:          06133/925151
Fax:         06133/925152
Faxabruf: 06133/93910100


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29640-20@oink>;
          Wed, 15 Jan 1997 04:07:26 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853295287:10:23687:0; Wed, 15 Jan 97 02:28:07 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023557; 15 Jan 97 2:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA19956 for dbi-users-real; Tue, 14 Jan 1997 13:12:23 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com ([38.214.78.65]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA19944;
          Tue, 14 Jan 1997 13:09:28 -0800 (PST)
Received: from brubeck.bienlogic.com ([38.214.78.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id NAA12223;
          Tue, 14 Jan 1997 13:07:29 -0800 (PST)
Message-Id: <1.5.4.32.19970114212129.008f7134@38.214.78.65>
X-Sender: lane@38.214.78.65
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 14 Jan 1997 13:21:29 -0800
To: "G.Richter" <richter@ecos.de>, dbi-users <dbi-users@fugue.com>, 
    dbi-dev <dbi-dev@fugue.com>
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: What is the state of DBI/DBD?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Gerry,

This is my own nickel:

1) perl, dbi, and dbd are fantastic tools for fast development where there
is not a big premium on reuseability, performance, version control, and
large scale project management.

2) DBD/DBI and perl are the works of some very dedicated and great technical
volunteers. Why and how they are funded is a continuous miracle that is not
guaranteed ad infinitum.

The perl community has been really great and it is not going away. Just
don't make plans for it going forward according to any predictable release
schedule. What you see is what you get.

-Lane
http://bienlogic.com
Creators of http://flirt.com
Powered by DBI/DBD!


At 08:17 PM 1/14/97 +0100, G.Richter wrote:
>    *** From dbi-dev -- To unsubscribe, see the end of this message. ***
>
>Hi,
>
>since a while I am looking for a perl database interface for out web
>server.
>I have found DBI and I am very interested, because I am not bound to one
>sort of sql-database.
>
>I have started looking for documentation, the first I found is the
>DBI.0.74.readme. I was a little bit suprised. It seems to be from end 1995,
>telling me DBI is still alpha code and will be change soon (towards to
>ODBC).
>
>Now we have 1997 and I found nothing about ODBC. Wasn't there any
>developement inbetween or is the readme still very outdated?
>
>After reading some stuff I have found the dbi www server at
>http://www.hermetica.com/technologia/DBI, there it still seem something is
>going on.
>
>I am interested in DBI but I am not sure if it't still alive? (Also on this
>list there are very few questions and even fewer answers!)
>
>So my questions:
>What is the state of DBI/DBD? Alpah, Beta, Released?
>Will there still be futher developement?
>What is the actual specification? 0.5, 0.6?
>Are there plans toward ODBC, like mentioned in the DBI readme?
>
>If DBI has a future I think about writing a postgreSQL (postgres95) DBD
>driver. 
>
>Does still sombody does this work?
>Where can I find the DBD api/specification?
>
>I hope somebody will take time to answer, because at the moment I am very
>insecure whats going on wtih DBI.
>
>Thanks
>
>Gerald
>
>
>
>---
>Gerald Richter
>ECOS  Electronic Communication Services
>
>E-Mail:     richter@ecos.de
>WWW:    http://www.ecos.de
>Tel:          06133/925151
>Fax:         06133/925152
>Faxabruf: 06133/93910100
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29641-4@oink>;
          Wed, 15 Jan 1997 04:08:08 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853299627:10:04128:3; Wed, 15 Jan 97 03:40:27 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929750; 15 Jan 97 3:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA20222 for dbi-users-real; Tue, 14 Jan 1997 14:22:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from papillion.segasoft.com (papillion.segasoft.com [198.176.13.35]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA20216 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 14:22:56 -0800 (PST)
Received: from madoka.segasoft.com by papillion.segasoft.com (SMI-8.6/SMI-SVR4) 
          id OAA09650; Tue, 14 Jan 1997 14:27:08 -0800
Received: from madoka.segasoft.com (localhost [127.0.0.1]) 
          by madoka.segasoft.com (8.7.5/8.7.3) with ESMTP id OAA05254 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 14:26:12 -0800 (PST)
Message-Id: <199701142226.OAA05254@madoka.segasoft.com>
X-Mailer: exmh version 1.6.9 8/22/96
To: dbi-users@fugue.com
Subject: Return values from Oracle stored procedures?
Reply-To: scanner@papillion.segasoft.com
X-URI: http://www.apricot.com/~scanner/
X-Face: 6K2.ZvQgQ.NDQLIx.1pW(xRu*">:}&PX-Ad_!!?wU7H4L"wF"0xEwYu=8Or0V+=5?-eO1XL 
        7-0Hom/|]B2C7Uznyol-NVnvEk:+sod^MyB4v4qVpPDemr;b@pZdRSXu.'Gm^t0?2l,j[&t.kbc[UW 
        x6Lz^e$K$W
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 14 Jan 1997 14:26:12 -0800
From: Scanner <scanner@papillion.segasoft.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I just subscribed to this list as well as went through all the
archives I could find. 

My quest has to been to find out if DBI/Perl can call Oracle
stored procedures AND get return values from them.  Now, I saw
a number of messages detailing how to call Oracle stored procedures
but the last messages I saw from Tim Bunce with respect to getting
return values was "thinking about it/planning on it."  But the
archives do not cover December (or the first part of January
which we are in.)

Has there been any progress on this branch?

If not, is jlemon@americantv.com still on this list
and do his patches which (although not optimal and now
how Tim Bunce wanted to do it) still work or are they
available?

We are actually rather desperate for information on this
front in that we made some bad assumptions that 'of course'
you can call stored procedures and get results from them.

--Scanner	(scanner@segasoft.com)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01824-0@oink>;
          Wed, 15 Jan 1997 07:30:33 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853310681:10:02486:0; Wed, 15 Jan 97 06:44:41 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002463; 15 Jan 97 6:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA20717 for dbi-users-real; Tue, 14 Jan 1997 16:16:00 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from papillion.segasoft.com (papillion.segasoft.com [198.176.13.35]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA20713 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 16:15:58 -0800 (PST)
Received: from madoka.segasoft.com by papillion.segasoft.com (SMI-8.6/SMI-SVR4) 
          id QAA11039; Tue, 14 Jan 1997 16:20:14 -0800
Received: from madoka.segasoft.com (localhost [127.0.0.1]) 
          by madoka.segasoft.com (8.7.5/8.7.3) with ESMTP id QAA05537;
          Tue, 14 Jan 1997 16:19:19 -0800 (PST)
Message-Id: <199701150019.QAA05537@madoka.segasoft.com>
X-Mailer: exmh version 1.6.9 8/22/96
To: descarte@hermetica.com
cc: scanner@papillion.segasoft.com, dbi-users@fugue.com
Subject: Re: Return values from Oracle stored procedures?
In-reply-to: Your message of "Wed, 15 Jan 1997 00:35:31 GMT." <199701150035.AAA09545@chewbacca.hermetica.com>
Reply-To: scanner@papillion.segasoft.com
X-URI: http://www.apricot.com/~scanner/
X-Face: 6K2.ZvQgQ.NDQLIx.1pW(xRu*">:}&PX-Ad_!!?wU7H4L"wF"0xEwYu=8Or0V+=5?-eO1XL 
        7-0Hom/|]B2C7Uznyol-NVnvEk:+sod^MyB4v4qVpPDemr;b@pZdRSXu.'Gm^t0?2l,j[&t.kbc[UW 
        x6Lz^e$K$W
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 14 Jan 1997 16:19:18 -0800
From: Scanner <scanner@papillion.segasoft.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Alligator wrote: 
> > My quest has to been to find out if DBI/Perl can call Oracle
> > stored procedures AND get return values from them.  Now, I saw
> > a number of messages detailing how to call Oracle stored procedures
> > but the last messages I saw from Tim Bunce with respect to getting
> > return values was "thinking about it/planning on it."  But the
> > archives do not cover December (or the first part of January
> > which we are in.)
> 
> This is implemented. I believe there are instructions with DBD::Oracle on
> how it works, but it does work.

Very cool. We are very happy.. Are these instructions in part
of the 'test.pl' script? 

Also, I am wondering if I stated incorrectly above.. we want
to call a stored procedure and supply values on IN parameters
and get values out via the OUT parameters (which is not the
same thing as getting a return code from the stored procedure.)

Thank you for your patience with these obtuse questions.

--Scanner	(scanner@segasoft.com)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01931-0@oink>;
          Wed, 15 Jan 1997 07:40:13 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853313796:10:09634:5; Wed, 15 Jan 97 07:36:36 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1009593; 15 Jan 97 7:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA21018 for dbi-users-real; Tue, 14 Jan 1997 17:29:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA21014 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 17:29:25 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.8.3/8.6.12) with SMTP id RAA16480 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 17:30:43 -0800 (PST)
Date: Tue, 14 Jan 1997 17:30:42 -0800 (PST)
From: James Cooper <pixel@organic.com>
To: dbi-users@fugue.com
Subject: TNS problem: never mind
Message-ID: <Pine.GSO.3.95.970114172949.13485L-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello again,

Per the Solaris/Oracle problem:

I fixed the problem...Thanks to truss(1) I found that some libraries
weren't NFS mounted to the clients....my bad.

Cheers,

-- James

--------------------------------------------------------------------------------
                              James Paul Cooper
                      Organic Online - pixel@organic.com
                          ......Know Future......



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02355-0@oink>;
          Wed, 15 Jan 1997 08:28:55 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853314704:9:16046:1; Wed, 15 Jan 97 07:51:44 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916009; 15 Jan 97 7:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA20963 for dbi-users-real; Tue, 14 Jan 1997 17:17:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from caustik.organic.com (h24.n145.organic.com [204.152.145.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA20959 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 17:17:28 -0800 (PST)
Received: from localhost (pixel@localhost) 
          by caustik.organic.com (8.8.3/8.6.12) with SMTP id RAA16364 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 17:18:39 -0800 (PST)
Date: Tue, 14 Jan 1997 17:18:37 -0800 (PST)
From: James Cooper <pixel@organic.com>
To: dbi-users@fugue.com
Subject: TNS alias prob w/DBD::Oracle
Message-ID: <Pine.GSO.3.95.970114171222.13485I-100000@caustik.organic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I've installed DBI-0.73 and DBD::Oracle-0.43 for perl 5.003_20.

compiler: gcc 2.7.2
OS: Solaris 2.5
Database: Oracle 7.3.2

All is well when connecting to Oracle on the same machine (ie. using IPC),
but I'm out of luck when connecting remotely.

But sqlplus works fine from the remote machine.  For example:

caustik /local/src/DBD-Oracle-0.43 > $ORACLE_HOME/bin/sqlplus
scott/tiger@hashdb.organic.com

SQL*Plus: Release 3.3.2.0.0 - Production on Tue Jan 14 17:15:55 1997
Copyright (c) Oracle Corporation 1979, 1994.  All rights reserved.
Connected to:
Oracle7 Server Release 7.3.2.1.0 - Production Release

etc..

...

but the following fails:

my $drh = DBI->install_driver('Oracle') || die "Couldn't install DBD!";
my $dbh = $drh->connect('@hashdb.organic.com', 'scott', 'tiger');

this works fine from the database host:

my $dbh = $drh->connect('ORA1', 'scott', 'tiger');

...

I'm stumped.  Any ideas?

-- James

--------------------------------------------------------------------------------
                              James Paul Cooper
                      Organic Online - pixel@organic.com
                          ......Know Future......



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03589-5@oink>;
          Wed, 15 Jan 1997 13:42:42 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853321846:9:18188:5; Wed, 15 Jan 97 09:50:46 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918243; 15 Jan 97 9:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA21389 for dbi-users-real; Tue, 14 Jan 1997 19:06:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA21385 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 19:06:10 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40429>; Wed, 15 Jan 1997 10:06:21 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA05300;
          Wed, 15 Jan 1997 10:00:51 +0700
Message-Id: <9701150300.AA05300@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 16 Jan 1997 00:05:42 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@AI.ASTRA.CO.ID>
Subject: Re: TNS alias prob w/DBD::Oracle

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

At 08:18 AM 1/15/97 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>Hi,
>
>I've installed DBI-0.73 and DBD::Oracle-0.43 for perl 5.003_20.
>
>compiler: gcc 2.7.2
>OS: Solaris 2.5
>Database: Oracle 7.3.2
>
>All is well when connecting to Oracle on the same machine (ie. using IPC),
>but I'm out of luck when connecting remotely.
>
>But sqlplus works fine from the remote machine.  For example:
>
>caustik /local/src/DBD-Oracle-0.43 > $ORACLE_HOME/bin/sqlplus
>scott/tiger@hashdb.organic.com
>
>SQL*Plus: Release 3.3.2.0.0 - Production on Tue Jan 14 17:15:55 1997
>Copyright (c) Oracle Corporation 1979, 1994.  All rights reserved.
>Connected to:
>Oracle7 Server Release 7.3.2.1.0 - Production Release
>
>etc..
>
>...
>
>but the following fails:
>
>my $drh = DBI->install_driver('Oracle') || die "Couldn't install DBD!";
>my $dbh = $drh->connect('@hashdb.organic.com', 'scott', 'tiger');
>
>this works fine from the database host:
>
>my $dbh = $drh->connect('ORA1', 'scott', 'tiger');
>
>...
>

maybe you can try this one :

$ENV{'ORACLE_HOME'}="/oracle/system/oracle"; #oracle home

use DBI;

$drh=DBI->install_driver('Oracle');
$dbh=$drh->connect('tcp_ovw','user','password');
die "fail to connect oracle" unless $dbh;

#tcp_ovw is name define on tnsnames.ora


>I'm stumped.  Any ideas?
>
>-- James
>
>---------------------------------------------------------------------------
-----
>                              James Paul Cooper
>                      Organic Online - pixel@organic.com
>                          ......Know Future......
>
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by hand.
>------------------------------------------------------------------------------
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03589-15@oink>;
          Wed, 15 Jan 1997 13:43:23 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853326875:9:15543:0; Wed, 15 Jan 97 11:14:35 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028898; 15 Jan 97 11:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id VAA00153 for dbi-users-real; Tue, 14 Jan 1997 21:32:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from athena.romoidoy.com (athena.romoidoy.com [208.193.64.15]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id VAA00184 
          for <dbi-users@fugue.com>; Tue, 14 Jan 1997 21:29:00 -0800 (PST)
Received: from aurora (sabat@aurora.zoom.com [208.193.64.6]) 
          by athena.romoidoy.com (8.6.12/Romoidoy-Hub-022896) with SMTP 
          id VAA00265 for <dbi-users@fugue.com>;
          Tue, 14 Jan 1997 21:30:12 -0800
Date: Tue, 14 Jan 1997 21:28:30 -0800 (PST)
From: Sabat <sabat@zoom.com>
X-Sender: sabat@aurora
To: dbi-users@fugue.com
Subject: Re: What is the state of DBI/DBD?
In-Reply-To: <1.5.4.32.19970114212129.008f7134@38.214.78.65>
Message-ID: <Pine.SUN.3.91.970114212351.9731B-100000@aurora>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Tue, 14 Jan 1997, Lane Sharman wrote:

> 1) perl, dbi, and dbd are fantastic tools for fast development where there
> is not a big premium on reuseability, performance, version control, and
> large scale project management.

Man, I have to disagree, at least as far as performance goes --
stuff I write with the DBI module friggin' blazes. It's at least
as fast as the Web Request Broker, and seems as fast as Pro*C
at making database queries/inserts/whatnot.

I don't see why you couldn't use version control with Perl, btw,
or why large scale project management would be out of the question.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05696-4@oink>;
          Wed, 15 Jan 1997 16:43:49 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853338416:9:21391:1; Wed, 15 Jan 97 14:26:56 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028447; 15 Jan 97 14:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id BAA02069 for dbi-users-real; Wed, 15 Jan 1997 01:39:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from elm.ncs.com.sg (elm.ncs.com.sg [203.116.16.17]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id BAA02064 
          for <dbi-users@fugue.com>; Wed, 15 Jan 1997 01:39:04 -0800 (PST)
Received: from raju.ncs.com.sg (thunder.ncs.com.sg [203.116.16.66]) 
          by elm.ncs.com.sg (8.7.3/8.7.3) with SMTP id RAA21813 
          for <dbi-users@fugue.com>; Wed, 15 Jan 1997 17:28:54 +0800 (SGT)
Received: by raju.ncs.com.sg with Microsoft Mail 
          id <01BC030B.692FDFC0@raju.ncs.com.sg>;
          Wed, 15 Jan 1997 17:42:00 +-800
Message-ID: <01BC030B.692FDFC0@raju.ncs.com.sg>
From: S V S Raju <svsraju@ncs.com.sg>
To: "dbi-users@fugue.com" <dbi-users@fugue.com>
Subject: dbh->disconnect causing problems !!
Date: Wed, 15 Jan 1997 17:41:53 +-800
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

We use perl cgi - dbi .71 to connect to the Oracle database.
But when I try to establish two different connections
using different Oracle user id and password simultaneously
the programs hangs some times. 

Commands :
use DBI;
$dbh = DBI->connect('dev', 'intraadmin/password', '', 'Oracle');
$dbh2 = DBI->connect('dev', 'mastdata/mast123', '', 'Oracle');

The funny thing is the same program gets through perfectly
with the query using the two connections some times while
hangs some times. The problem seems to be with the 
dbh->disconnect ;
dbh2->disconnect ;
statements..... the program never executes beyond this point.

Any one has similar problems ?... Can any one suggest
a solution for our problem ?  We need help urgently....

Thank you in advance,
Raj.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05696-16@oink>;
          Wed, 15 Jan 1997 16:44:28 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853341776:10:15502:3; Wed, 15 Jan 97 15:22:56 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa911819; 15 Jan 97 15:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA02942 for dbi-users-real; Wed, 15 Jan 1997 02:53:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id CAA02937 
          for <dbi-users@fugue.com>; Wed, 15 Jan 1997 02:52:58 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40321>; Wed, 15 Jan 1997 17:52:52 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA31675;
          Wed, 15 Jan 1997 17:50:39 +0700
Message-Id: <9701151050.AA31675@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id (Unverified)
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 16 Jan 1997 07:55:31 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re dbh->disconnect causing problems !!

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>We use perl cgi - dbi .71 to connect to the Oracle database.
>But when I try to establish two different connections
>using different Oracle user id and password simultaneously
>the programs hangs some times. 

>Commands :
>use DBI;
>$dbh = DBI->connect('dev', 'intraadmin/password', '', 'Oracle');
>$dbh2 = DBI->connect('dev', 'mastdata/mast123', '', 'Oracle');

>The funny thing is the same program gets through perfectly
>with the query using the two connections some times while
>hangs some times. The problem seems to be with the 
>dbh->disconnect ;
>dbh2->disconnect ;
>statements..... the program never executes beyond this point.

>Any one has similar problems ?... Can any one suggest
>a solution for our problem ?  We need help urgently....

I had using that and I think I don't have problem but I am using dbi/dbd
with this version (maybe you need upgrade):

DBI version 0.72
DBD version 0.39
perl version 5.003
Oracle version 7.1.6

I usually use this command :

use DBI;

$drh=DBI->install_driver('Oracle');

$dbh=$drh->connect('SID','user','password');
die "fail to connect to oracle" unless $dbh;

$dbh1=$drh->connect('SID','user1','password1');
die "fail to connect to oracle" unless $dbh1;

work around here .....
like :

$cursor=$dbh->prepare("select * from  table");
$cursor1=$dbh1->prepare("select * from  othertable");


$dbh->disconnect;
$dbh1->disconnect;

I hope this can help




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05696-18@oink>;
          Wed, 15 Jan 1997 16:44:35 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853342060:9:13643:0; Wed, 15 Jan 97 15:27:40 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016857; 15 Jan 97 15:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA02966 for dbi-users-real; Wed, 15 Jan 1997 02:54:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id CAA02957 
          for <dbi-users@fugue.com>; Wed, 15 Jan 1997 02:54:25 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40321>; Wed, 15 Jan 1997 17:54:29 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA28917;
          Wed, 15 Jan 1997 17:52:19 +0700
Message-Id: <9701151052.AA28917@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id (Unverified)
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 16 Jan 1997 07:57:09 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: What is the state of DBI/DBD?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

----------
> From: Sabat <sabat@zoom.com>
> To: dbi-users@fugue.com
> Subject: Re: What is the state of DBI/DBD?
> Date: Wednesday, January 15, 1997 12:28 PM
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message.
***
> 
> On Tue, 14 Jan 1997, Lane Sharman wrote:
> 
> > 1) perl, dbi, and dbd are fantastic tools for fast development where
there
> > is not a big premium on reuseability, performance, version control, and
> > large scale project management.
> 
> Man, I have to disagree, at least as far as performance goes --
> stuff I write with the DBI module friggin' blazes. It's at least
> as fast as the Web Request Broker, and seems as fast as Pro*C
> at making database queries/inserts/whatnot.
> 
> I don't see why you couldn't use version control with Perl, btw,
> or why large scale project management would be out of the question.
> 
> 
I think the most usefulness of dbi and dbd is concept universal, like you
can access many databases anywhere and even from many databases format
(Oracle, Informix). 

 Also I agree with comment "fast development" because before I use dbi/dbd,
I had try to implement database access by directly use sqlplus from perl
command even more I had access to another machine so I am also using socket
programming, that really hard to code and maintain.

With dbi/dbd that became more simple and more easier.

Maybe dbi/dbd not fast enough  because I had compare my program using
dbi/dbd and perl with same program using java and request broker from
openlink fro database access and beta jdk 1.1 for access database. 

Performance is out of compromise if I use java program access 200 record
takes little than 1 second (maybe about 100 ms), our dbi/dbd about 3-4
second, but believe me developing java is more hard than perl. So I think
that are point of different.


my regard Achmad Dimyati



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08414-43@oink>;
          Thu, 16 Jan 1997 07:40:52 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853361419:10:01234:0; Wed, 15 Jan 97 20:50:19 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa924783; 15 Jan 97 20:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA05730 for dbi-users-real; Wed, 15 Jan 1997 06:44:39 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.acilink.org (root@mail.acilink.org [206.246.116.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA05725 
          for <dbi-users@fugue.com>; Wed, 15 Jan 1997 06:44:36 -0800 (PST)
Received: from clowser.nalda.navy.mil ([138.138.21.79]) 
          by mail.acilink.org (8.8.4/8.6.9) with SMTP id JAA05006;
          Wed, 15 Jan 1997 09:57:01 -0500
Message-Id: <1.5.4.32.19970115144031.00675538@mail.acilink.org>
X-Sender: rclowser@mail.acilink.org
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 15 Jan 1997 09:40:31 -0500
To: Tim Bunce <Tim.Bunce@ig.co.uk>
From: Roy Clowser <rclowser@mail.acilink.org>
Subject: Re: DBD-Oracle-0.43/Oracle 7.3.2.2.0 patch problem
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

As per the problem I mentioned below.. I have resolved it via the following
method indicated in the README.client:

perl Makefile.PL -m $ORACLE_HOME/rdbms/demo/oracle.mk

Since I am unsure of exactly what this does I do not know why it worked.  I
did not try it originally because we have a full blown oracle 7.3.2
installation including Pro*C and Pro*Cobol so I did not think it would be
applicable, however grasping at straws I gave it a shot.

Unfortunately I can not give you any furthur information about the Oracle
patch, as I did not install it and gave you all the information I was able
to obtain.  We were however in contact with Oracle and their response was
basically, "good luck".

Sorry to have troubled you before attempting this step.. but hopefully this
information may be of help to others.

Thanks very much for your timely response!

Roy

--------

At 07:58 PM 1/14/97 +0000, you wrote:
>
>> From: Roy Clowser <rclowser@mail.acilink.org>
>> 
>> I have been using Perl 5.003, DBI-0.73, and DBD-Oracle-0.43 for the last
>> couple of months with Oracle 7.3.2 sucessfully.  Yesterday my company
>> installed an Oracle patch to update to 7.3.2.2.0 which has caused some type
>> of incompatibility problem.
>
>Please expand. What where the symptoms. What was the (detailed) description
>of the patch/upgrade? Did it mention OCI/Pro*C or needing to relink?
>
>> I have recompiled the DBD-Oracle files (after a
>> make realclean) successfully hoping that it would solve the problem, however
>> I am getting a core dump during execution of make test apparently when
>> ora_login is called.
>
>Is that the same as the original symptoms?
>
>> I tryed to do the perl Makefile.PL -g as suggested in the README, however I
>> get a message that -g is not a valid option and make croaks.  
>
>Works for me. Please send me (directly) a log of the steps from
>'perl Makefile.PL -g' to the error.
>
>> I set also tryed setting the variable PERL_DL_DEBUG=2 as suggested,  but I
>> still get a core dump. From the output however it appears that the
>> Dynaloader is working properly.. the core dump does not occur until the
>> connect is attempted.
>
>I'll need a stack trace before I can begin to help but at the end of the
>day I strongly suspect an Oracle problem. I suggest you talk to Oracle at
>the same time.
>
>Tim.
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08414-82@oink>;
          Thu, 16 Jan 1997 07:44:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853369063:9:14988:2; Wed, 15 Jan 97 22:57:43 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1010428; 15 Jan 97 22:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA08840 for dbi-dev-real; Wed, 15 Jan 1997 11:02:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA08836;
          Wed, 15 Jan 1997 11:02:03 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id UAA02531;
          Wed, 15 Jan 1997 20:01:57 +0100
Message-Id: <199701151901.UAA02531@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: Tim Bunce <Tim.Bunce@ig.co.uk>, dbi-users <dbi-users@fugue.com>, 
    dbi-dev <dbi-dev@fugue.com>
Subject: Re: What is the state of DBI/DBD?
Date: Wed, 15 Jan 1997 19:58:12 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

thanks for those many answers. Now it's clear for me.

Two question are remaining.
> 
> > What is the actual specification? 0.5, 0.6?
> 
> It's moved on. There was a document posted recently giving some details:
> 
> 	Subject: [Announce] DBI 0.73 Draft Spec.
> 	Message-Id: <v03010902aeceb36537ee@[207.6.175.48]>
> 	Date: Sat, 7 Dec 1996 01:12:31 -0500
> 	To: dbi-users@fugue.com
> 	From: "J. Douglas Dunlop" <dunlop@eol.ists.ca>
>
I have just subcribed some hours after this posting, so I didn't get it. I
have took a look at the mailing archive, but there only messages until last
of december. Is there any other possibility to get it?

> 
> > If DBI has a future I think about writing a postgreSQL (postgres95) DBD
> > driver. 
> > 
> > Does still sombody does this work?
> 
> Eh? (But the answer's probably yes :-)
> 
My english is not so good (i.e. very bad. I didn't had liked it at
school...), so what does you mean with this sentence?

Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08414-107@oink>;
          Thu, 16 Jan 1997 07:47:54 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853375173:10:06425:0; Thu, 16 Jan 97 00:39:33 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa919747; 16 Jan 97 0:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA08887 for dbi-users-real; Wed, 15 Jan 1997 11:05:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA08836;
          Wed, 15 Jan 1997 11:02:03 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id UAA02531;
          Wed, 15 Jan 1997 20:01:57 +0100
Message-Id: <199701151901.UAA02531@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: Tim Bunce <Tim.Bunce@ig.co.uk>, dbi-users <dbi-users@fugue.com>, 
    dbi-dev <dbi-dev@fugue.com>
Subject: Re: What is the state of DBI/DBD?
Date: Wed, 15 Jan 1997 19:58:12 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

thanks for those many answers. Now it's clear for me.

Two question are remaining.
> 
> > What is the actual specification? 0.5, 0.6?
> 
> It's moved on. There was a document posted recently giving some details:
> 
> 	Subject: [Announce] DBI 0.73 Draft Spec.
> 	Message-Id: <v03010902aeceb36537ee@[207.6.175.48]>
> 	Date: Sat, 7 Dec 1996 01:12:31 -0500
> 	To: dbi-users@fugue.com
> 	From: "J. Douglas Dunlop" <dunlop@eol.ists.ca>
>
I have just subcribed some hours after this posting, so I didn't get it. I
have took a look at the mailing archive, but there only messages until last
of december. Is there any other possibility to get it?

> 
> > If DBI has a future I think about writing a postgreSQL (postgres95) DBD
> > driver. 
> > 
> > Does still sombody does this work?
> 
> Eh? (But the answer's probably yes :-)
> 
My english is not so good (i.e. very bad. I didn't had liked it at
school...), so what does you mean with this sentence?

Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18479-39@oink>;
          Fri, 17 Jan 1997 07:54:47 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853478706:9:01123:1; Fri, 17 Jan 97 05:25:06 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1018760; 17 Jan 97 5:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA26258 for dbi-users-real; Thu, 16 Jan 1997 16:43:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate.Cadence.COM (mailgate.Cadence.COM [158.140.2.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA26253 
          for <dbi-users@fugue.com>; Thu, 16 Jan 1997 16:43:32 -0800 (PST)
Received: (from smap@localhost) by mailgate.Cadence.COM (8.6.8/8.6.8) 
          id QAA01834 for <dbi-users@fugue.com>;
          Thu, 16 Jan 1997 16:43:31 -0800
Received: from cds251.cadence.com(158.140.98.30) by mailgate.Cadence.COM 
          via smap (V1.0mjr) id sma853461809.001831; Thu Jan 16 16:43:29 1997
Received: from cds251 (localhost [127.0.0.1]) 
          by cds251.Cadence.COM (8.7.3/8.7.3) with SMTP id QAA04493;
          Thu, 16 Jan 1997 16:43:20 -0800 (PST)
Message-ID: <32DECB27.545E@cadence.com>
Date: Thu, 16 Jan 1997 16:43:19 -0800
From: Yvonne Fan <yufen@cadence.com>
Organization: Cadence Design Systems, Inc.
X-Mailer: Mozilla 3.0 (X11; U; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: yufen@cds251.Cadence.COM
Subject: where is DBD::Informix?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I downloaded DBD::Informix couple months ago to try it and I can't find
it no more at
ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/dbperl/DBD/

Where can I get the latest version?

P.S. Please directly reply to me since I'm not on the dbi-users list.

Thanks a lot,
Yvonne


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18479-41@oink>;
          Fri, 17 Jan 1997 07:54:58 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853478708:10:18801:0; Fri, 17 Jan 97 05:25:08 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901015; 17 Jan 97 5:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA24336 for dbi-users-real; Thu, 16 Jan 1997 14:44:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from portal.vpharm.com (portal.vpharm.com [192.80.70.101]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA24331 
          for <dbi-users@fugue.com>; Thu, 16 Jan 1997 14:44:30 -0800 (PST)
Received: from neoprene.vpharm.com by portal.vpharm.com (AIX 3.2/UCB 5.64/4.03) 
          id AA21737; Thu, 16 Jan 1997 17:40:35 -0500
Message-Id: <32DEBDAB.167E@portal.vpharm.com>
Date: Thu, 16 Jan 1997 15:45:47 -0800
From: Pat Walters <pwalters@portal.vpharm.com>
Organization: Vertex Pharmaceuticals
X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Do I need Oracle on the remote machine ?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm relatively new to the world of DBI/DBD and I'm still trying
to figure out how everything works.  I'm currently setting up
a system where an Oracle server on an IBM RS6000 will be accessed
by Perl scripts running on a number of remote SGI workstations.

In order to use DBD::Oracle do I have to have Oracle installed on
the IBM server AND all the SGI workstations which are accessing the
server ?

Thanks in advance for your help,

Pat

-- 
W. Patrick Walters, Ph.D.
Staff Scientist, Computational Chemistry and Molecular Modeling
Vertex Pharmaceuticals, Inc., 130 Waverley St., Cambridge, MA  02139  
Voice: (617)577-6000   FAX: (617)577-6400


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18479-49@oink>;
          Fri, 17 Jan 1997 07:55:47 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853483249:9:16066:0; Fri, 17 Jan 97 06:40:49 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028981; 17 Jan 97 6:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA27278 for dbi-users-real; Thu, 16 Jan 1997 18:05:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id SAA27271 
          for <dbi-users@fugue.com>; Thu, 16 Jan 1997 18:05:45 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id SAA29475;
          Thu, 16 Jan 1997 18:05:13 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA16740;
          Thu, 16 Jan 1997 18:05:09 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id SAA11485;
          Thu, 16 Jan 1997 18:05:08 -0800
Date: Thu, 16 Jan 1997 18:05:08 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701170205.SAA11485@anubis.informix.com>
To: dbi-users@fugue.com, yufen@cadence.com
Subject: Re: where is DBD::Informix?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Two requests inside 5 minutes...  :-)

>Date: Thu, 16 Jan 1997 16:43:19 -0800
>From: Yvonne Fan <yufen@cadence.com>
>Subject: where is DBD::Informix?
>
>Hi,
>
>I downloaded DBD::Informix couple months ago to try it and I can't find
>it no more at
>ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/dbperl/DBD/
>
>Where can I get the latest version?

== Previous answer ==

Date: Thu, 16 Jan 1997 17:48:17 -0800
From: johnl@informix.com (Jonathan Leffler)
To: jwg@nuera.com
Subject: Re: DBD::Informix

I've just been looking at:

http://www.perl.org/CPAN/modules/by-category/07_Database_Interfaces/DBD

This contains DBD::Informix version 0.25, which is the most recent
generally available version of DBD::Informix.  I have development
versions which are better (support for multiple concurrent connections
and AutoCommit, mainly), but these are alpha-ish (operational, but not
complete).

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>Date: Thu, 16 Jan 1997 17:42:46 -0800
>From: Jon Gjerset <jwg@nuera.com>
>To: johnl@informix.com
>Subject: DBD::Informix
>
>Can you tell me the URL of a site that I can download DBD::Informix
>from?  I've been searching all over the internet for it, and all the
>links to it seem to be out of date.

== Additional Information ==

There is still work that I want to do, such as:
    * return the type information in ODBC encoded numbers (though I'm
      not yet sure what to do about those types inside Informix which
      are not recognized by ODBC),
	* return the alpha-string type information in response to some
	  request other than $sth->{TYPES},
	* sort out $sth->{PRECISION} and $sth->{SCALE},
    * get driver level data (number of concurrent connections and name
      of current connection),
    * make sure that the caching algorithms don't get in the way of
      changes in the current database,
	* keep track of changes in current database,
	* keep track of changes in transaction status as a result of
	  $dbh->do('COMMIT WORK') as well as $dbh->commit,
    * work out where DBD::Informix is gratuitously incompatible with
      the provisional DBI 0.73 spec sent out by J Douglas Dunlop
      (dunlop@eol.ists.ca) on 7th December 1996 and decide what to do
      about fixing it.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23062-32@oink>;
          Fri, 17 Jan 1997 14:36:04 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853503016:9:26337:27; Fri, 17 Jan 97 12:10:16 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019282; 17 Jan 97 12:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id WAA00772 for dbi-users-real; Thu, 16 Jan 1997 22:56:49 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from carmen.broder.com (carmen.broder.com [207.77.64.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id WAA00768 
          for <dbi-users@fugue.com>; Thu, 16 Jan 1997 22:56:47 -0800 (PST)
Received: (from uucp@localhost) by carmen.broder.com (8.8.3/8.7.3) id WAA20784;
          Thu, 16 Jan 1997 22:56:42 -0800 (PST)
Received: from ima.broder.com(204.189.16.2) by carmen.broder.com 
          via smap (V1.3) id sma020782; Thu Jan 16 22:56:20 1997
Received: from ccMail by ima.broder.com (IMA Internet Exchange 2.1 Enterprise) 
          id 000015C7; Thu, 16 Jan 97 22:50:02 -0800
Mime-Version: 1.0
Date: Thu, 16 Jan 1997 22:50:18 -0800
Message-ID: <000015C7.1407@broder.com>
From: David_Rolston@broder.com (David Rolston)
Subject: Re: Do I need Oracle on the remote machine ?
To: dbi-users@fugue.com, Pat Walters <pwalters@portal.vpharm.com>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

     Not the Oracle Server, but the Oracle client libraries and SQL*NET 
     files.  You need to compile Perl and DBI and DBD so that you have 
     connectivity to the Oracle server, then you can copy these files to 
     the other SGI workstations.


______________________________ Reply Separator _________________________________
Subject: Do I need Oracle on the remote machine ?
Author:  Pat Walters <pwalters@portal.vpharm.com> at Internet
Date:    1/16/97 3:45 PM


    *** From dbi-users -- To unsubscribe, see the end of this message. ***
     
Hi,
     
I'm relatively new to the world of DBI/DBD and I'm still trying 
to figure out how everything works.  I'm currently setting up
a system where an Oracle server on an IBM RS6000 will be accessed 
by Perl scripts running on a number of remote SGI workstations.
     
In order to use DBD::Oracle do I have to have Oracle installed on 
the IBM server AND all the SGI workstations which are accessing the 
server ?
     
Thanks in advance for your help,
     
Pat
     
-- 
W. Patrick Walters, Ph.D.
Staff Scientist, Computational Chemistry and Molecular Modeling 
Vertex Pharmaceuticals, Inc., 130 Waverley St., Cambridge, MA  02139  
Voice: (617)577-6000   FAX: (617)577-6400
     
     
------------------------------------------------------------------------------ 
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page, 
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand. 
------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25808-2@oink>;
          Fri, 17 Jan 1997 18:53:14 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853527155:10:27671:0; Fri, 17 Jan 97 18:52:35 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa921382; 17 Jan 97 18:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA06172 for dbi-dev-real; Fri, 17 Jan 1997 07:05:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA06167 
          for <dbi-dev@fugue.com>; Fri, 17 Jan 1997 07:05:06 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id QAA06103;
          Fri, 17 Jan 1997 16:04:59 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id RAA15717;
          Fri, 17 Jan 1997 17:05:12 +0100 (MET)
Date: Fri, 17 Jan 1997 17:05:11 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: bailey@HMIVAX.HUMGEN.UPENN.EDU, dbi-dev@fugue.com
Subject: Re: DBD::sth::fetch/FETCH naming problems
In-Reply-To: <9701141929.AA21673@toad.ig.co.uk>
Message-ID: <Pine.SOL.3.95.970117170046.15477A-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

On Tue, 14 Jan 1997, Tim Bunce wrote:
> 
> The workaround is to use the ALIAS directive (originally invented for a
> very different purpose :-)
>... 
> I've used the same approach to avoid the length warning on XS...disconnect_all.
> 
> I'll make a new DBD::Oracle release with this in very soon.
> 
> Developers of other DBD's should take note (if they care about porting to VMS).
> 
> Tim.
> 
It works - thanks! Wonderfull what you can do with tools that you make for
other purposes ;-)

Note that the dbdimp.*c functions dbd_st_fetch and dbd_st_FETCH clash as
well.
May I suggest that we rename dbd_st_fetch to dbd_st_fetchrow?
Just to keep all the dbdimp's similar....

Henrik Tougaard                                ht@datani.dk
Software Consultants, Copenhagen, Denmark
#include <std.disclaim>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-30@oink>;
          Mon, 20 Jan 1997 07:39:24 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853534628:10:04280:0; Fri, 17 Jan 97 20:57:08 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929745; 17 Jan 97 20:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA06244 for dbi-users-real; Fri, 17 Jan 1997 07:11:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from heimdal.datani.dk (heimdal.datani.dk [194.239.199.217]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA06240 
          for <dbi-users@fugue.com>; Fri, 17 Jan 1997 07:11:23 -0800 (PST)
Received: from tyr.datani.dk (tyr.datani.dk [192.66.202.97]) 
          by heimdal.datani.dk (8.7.2/8.7.2) with ESMTP id QAA06129;
          Fri, 17 Jan 1997 16:11:12 +0100 (MET)
Received: from tyr (tyr.datani.dk [192.66.202.97]) 
          by tyr.datani.dk (8.7.2/8.7.2) with SMTP id RAA15957;
          Fri, 17 Jan 1997 17:11:31 +0100 (MET)
Date: Fri, 17 Jan 1997 17:11:30 +0100 (MET)
From: Henrik Tougaard <ht@datani.dk>
X-Sender: ht@tyr
To: dbi-users@fugue.com
Subject: Announce DBD::Ingres-0.04
Message-ID: <Pine.SOL.3.95.970117170529.15477B-100000@tyr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The new release of DBD::Ingres has been uploaded to CPAN.

The major new feature is that it is now possible to connect to more than
one database at the same time!

It is still alpha software, but nearly 2 months of usage here has not
uncovered any serious bugs 8-}

--
Henrik Tougaard                                ht@datani.dk
Software Consultants, Copenhagen, Denmark
#include <std.disclaim>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-39@oink>;
          Mon, 20 Jan 1997 07:40:21 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853535914:10:10335:0; Fri, 17 Jan 97 21:18:34 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa906758; 17 Jan 97 21:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA07736 for dbi-dev-real; Fri, 17 Jan 1997 09:16:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA07732 
          for <dbi-dev@fugue.com>; Fri, 17 Jan 1997 09:16:08 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id LAA140150 
          for <dbi-dev@fugue.com>; Fri, 17 Jan 1997 11:16:06 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id LAA23710;
          Fri, 17 Jan 1997 11:16:01 -0600 (CST)
Message-Id: <199701171716.LAA23710@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: dbi-dev@fugue.com
Subject: Testcase failures.....
Date: Fri, 17 Jan 97 11:16:00 -0600

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Having moved up to perl5.003_20 with DBI-0.73, I now find that the 
testcases for DBD::DB2 now report failure, but not in my code -- 
output follows:


       PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/lib/perl5/aix/5.00320 -I/usr/local/lib/perl5 -e 'use 
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............Value of $install_attributes will not stay shared at (eval 
12) line 1.
DB2_HOME set to /usr/lpp/db2_02_01
Had to create DBD::DB2::dr::imp_data_size unexpectedly at 
/usr/local/lib/perl5/site_perl/DBI.pm line 318.
Use of uninitialized value at /usr/local/lib/perl5/site_perl/DBI.pm line 318.
Driver has not implemented disconnect_all for DBI::dr=HASH(0x200b4c50) at 
/usr/local/lib/perl5/site_perl/DBI.pm line 467
        DBD::_::dr::disconnect_all('DBI::dr=HASH(0x200b4c50)') called at 
/usr/local/lib/perl5/site_perl/DBI.pm line 178
        DBI::disconnect_all('DBI') called at /usr/local/lib/perl5/site_perl/DBI
.pm line 129
        DBI::END() called at t/base.t line 0
        eval {...} called at t/base.t line 0
END failed--cleanup aborted.
dubious
        Test returned status 255 (wstat 65280)
t/main..............ok
Failed Test  Status Wstat Total Fail  Failed  List of failed


Have any of the other developers seen something similar?

Mike
------------------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content of  
mhm@austin.ibm.com                | this posting is independent of 
Modeling, Analysis & Compilers    | official IBM position.
IBM Corporation, Austin, Texas    |



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-81@oink>;
          Mon, 20 Jan 1997 07:45:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853546225:9:25588:0; Sat, 18 Jan 97 00:10:25 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925358; 18 Jan 97 0:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA07516 for dbi-users-real; Fri, 17 Jan 1997 08:58:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel3.hp.com (palrel3.hp.com [15.253.88.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA07511 
          for <dbi-users@fugue.com>; Fri, 17 Jan 1997 08:58:42 -0800 (PST)
Received: from mordor.rsn.hp.com (holder@mordor.rsn.hp.com [15.99.150.126]) 
          by palrel3.hp.com with ESMTP (8.7.5/8.7.3) id IAA01488;
          Fri, 17 Jan 1997 08:58:37 -0800 (PST)
Received: (from holder@localhost) by mordor.rsn.hp.com (8.7.5/8.7.3) 
          id LAA05165; Fri, 17 Jan 1997 11:05:05 -0600 (CST)
To: David_Rolston@broder.com (David Rolston)
Cc: dbi-users@fugue.com, Pat Walters <pwalters@portal.vpharm.com>
Subject: Re: Do I need Oracle on the remote machine ?
References: <000015C7.1407@broder.com>
From: Shane Holder <holder@mordor.rsn.hp.com>
Date: 17 Jan 1997 11:05:04 -0600
In-Reply-To: David_Rolston@broder.com's message of Thu, 16 Jan 1997 22:50:18 -0800
Message-ID: <fawiv4wmdvj.fsf@mordor.rsn.hp.com>
Lines: 15
X-Mailer: Red Gnus v0.81/Emacs 19.34

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>>>>> "David" == David Rolston <David_Rolston@broder.com> writes:

  David> Not the Oracle Server, but the Oracle client libraries and
  David> SQL*NET files.  You need to compile Perl and DBI and DBD so
  David> that you have connectivity to the Oracle server, then you can
  David> copy these files to the other SGI workstations.

The only other file I've needed is the tnsnames.ora file, which I
install in /etc.

-- 
Shane Holder                                 e-mail: holder@rsn.hp.com
Hewlett Packard                               phone:     (214)497-4182
3000 Waterview                       Never underestimate the bandwidth
Richardson, TX 75083                 of a truck moving at 70 MPH.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-122@oink>;
          Mon, 20 Jan 1997 07:49:40 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853576167:10:24695:0; Sat, 18 Jan 97 08:29:27 GMT
Received: from [192.5.5.210] ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1024631; 18 Jan 97 8:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA15406 for dbi-users-real; Fri, 17 Jan 1997 19:50:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from archive.org (was.archive.org [206.14.154.180]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id TAA15401 
          for <dbi-users@fugue.com>; Fri, 17 Jan 1997 19:50:50 -0800 (PST)
Received: from Q.archive.org by archive.org (SMI-8.6/SMI-SVR4) id TAA16585;
          Fri, 17 Jan 1997 19:50:16 -0800
Message-ID: <32E0487B.425B@archive.org>
Date: Fri, 17 Jan 1997 19:50:20 -0800
From: Q J a q u i t h <Q@archive.org>
Organization: Internet Archive
X-Sender: Q J a q u i t h <Q@archive.org>
X-Mailer: Mozilla 4.0b1 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: Tim.Bunce@ig.co.uk
Subject: Problems building static DBD::Oracle on Solaris 2.5, perl 5.003, with 
         gcc
X-Priority: Normal
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've been able to successfully (statically) build, test, and install
Perl 5.003 and DBIv0.74.  I'm having problems with the last stages
of making DBDv0.44

Anyone else get this odd "ld" error?
I've tried 3 different versions of "ld" and they all produce similar
results.  I just upgraded to the most recent DBI and DBD after having
considerable problems with slightly older versions.  I have not been
able to get any extensions to compile dynamically on any version, so
I have been relegated to static throughout.

It's a fresh/clean build of PERL, DBI, and DBD.

Here's the output of:
perl Makefile.PL LINKTYPE=static
make


much TIA!

-Q

-- 
Q Jaquith   Q@archive.org    ofc:415.561.6792  fax:415.561.6795
Internet Archive  San Francisco CA  http://www.archive.org/us/q



Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories 
from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /opt/oracle7
Reading /opt/oracle7/precomp/demo/proc/proc.mk.
Reading /opt/oracle7/precomp/env_precomp.mk.
System: perl5.003 sunos internet 5.5 generic_103093-06 sun4m sparc 
sunw,sparcstation-20 
Compiler: gcc -O -I/usr/local/include
Linker:   /usr/local/sparc-sun-solaris/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) 
$(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib 
-R/opt/SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon 
-lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc 
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm 
-ldl -lm 

Checking if your kit is complete...
Looks good
Warning (will try anyway): No library found for -lclntsh
Writing Makefile for DBD::Oracle
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
perl -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 
/usr/local/lib/perl5/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv 
Oracle.tc Oracle.c
gcc -c -I. -I/opt/oracle7/precomp/public -I/opt/oracle7/rdbms/demo 
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI 
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -O   
  -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic 
-Wno-comment -Wtraditional Oracle.c
Oracle.c: In function `XS_DBD__Oracle__dr_discon_all_':
Oracle.c:45: warning: unused variable `ix'
Oracle.c: In function `XS_DBD__Oracle__db_disconnect':
Oracle.c:149: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_execute':
Oracle.c:286: warning: ANSI C forbids braced-groups within expressions
Oracle.c:295: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow':
Oracle.c:336: warning: ANSI C forbids braced-groups within expressions
Oracle.c:337: warning: ANSI C forbids braced-groups within expressions
Oracle.c:343: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_FETCH_attrib_':
Oracle.c:406: warning: unused variable `ix'
Oracle.c: In function `XS_DBD__Oracle__st_finish':
Oracle.c:433: warning: ANSI C forbids braced-groups within expressions
Oracle.c:437: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:477: warning: ANSI C forbids braced-groups within expressions
gcc -c -I. -I/opt/oracle7/precomp/public -I/opt/oracle7/rdbms/demo 
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI 
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -O   
  -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic 
-Wno-comment -Wtraditional dbdimp.c
dbdimp.c: In function `dbd_db_FETCH':
dbdimp.c:299: warning: value computed is not used
dbdimp.c: In function `dbd_bind_ph':
dbdimp.c:745: warning: value computed is not used
dbdimp.c:755: warning: value computed is not used
dbdimp.c: In function `dbd_st_blob_read':
dbdimp.c:1074: warning: ANSI C forbids braced-groups within expressions
dbdimp.c: In function `dbd_st_FETCH':
dbdimp.c:1247: warning: value computed is not used
dbdimp.c: At top level:
dbdimp.c:161: warning: `dump_error_status' defined but not used
rm -rf blib/arch/auto/DBD/Oracle/Oracle.a
ar cr blib/arch/auto/DBD/Oracle/Oracle.a Oracle.o  dbdimp.o && : 
blib/arch/auto/DBD/Oracle/Oracle.a
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.a
Manifying ./blib/man3/DBD::Oraperl.3
Writing "Makefile.aperl" for this perl
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories 
from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /opt/oracle7
Reading /opt/oracle7/precomp/demo/proc/proc.mk.
Reading /opt/oracle7/precomp/env_precomp.mk.
System: perl5.003 sunos internet 5.5 generic_103093-06 sun4m sparc 
sunw,sparcstation-20 
Compiler: gcc -O -I/usr/local/include
Linker:   /usr/local/sparc-sun-solaris/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) 
$(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib 
-R/opt/SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon 
-lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc 
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm 
-ldl -lm 

Warning (will try anyway): No library found for -lclntsh
Writing Makefile.aperl for DBD::Oracle
make -f Makefile.aperl perl
Writing perlmain.c
cd . && gcc -c  -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE  
-I/usr/local/include -O \
   -DVERSION=\"0.44\" \
-DXS_VERSION=\"0.44\" -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE 
perlmain.c
cat ./blib/arch/auto/DBD/Oracle/extralibs.ld >> 
blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/site_perl/sun4-solaris/auto/DBI/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/DynaLoader/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Fcntl/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/FileHandle/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/ODBM_File/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/SDBM_File/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Safe/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Socket/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
gcc -L/usr/local/lib -o perl -O ./perlmain.o 
/usr/local/lib/perl5/sun4-solaris/5.003/CORE/libperl.a 
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Socket/Socket.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Safe/Safe.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/SDBM_File/SDBM_File.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/ODBM_File/ODBM_File.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/FileHandle/FileHandle.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/Fcntl/Fcntl.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/sun4-solaris/5.003/auto/DynaLoader/DynaLoader.a  
/lib0/usr/local-solaris/lib-SunOS-4.1.3/perl5/site_perl/sun4-solaris/auto/DBI/DBI.a  ./blib/arch/auto/DBD/Oracle/Oracle.a `cat 
./blib/arch/auto/DBD/Oracle/extralibs.all` -lsocket -lnsl -lgdbm -ldb 
-ldl -lm -lc -lcrypt
gcc: Internal compiler error: program ld got fatal signal 11
*** Error code 1
make: Fatal error: Command failed for target `perl'
Current working directory /lib0/home/jaquith/oracle/DBD-Oracle-0.44
*** Error code 1
make: Fatal error: Command failed for target `perl'


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-184@oink>;
          Mon, 20 Jan 1997 07:56:28 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853639194:9:23465:1; Sun, 19 Jan 97 01:59:54 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1018366; 19 Jan 97 1:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA26868 for dbi-users-real; Sat, 18 Jan 1997 13:42:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cism.bus.utexas.edu (cism.bus.utexas.edu [146.6.44.48]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA26863 
          for <dbi-users@fugue.com>; Sat, 18 Jan 1997 13:42:01 -0800 (PST)
Received: from yama.bus.utexas.edu by cism.bus.utexas.edu 
          with SMTP (1.37.109.18/16.2) id AA042083710;
          Sat, 18 Jan 1997 15:41:50 -0600
Date: Sat, 18 Jan 1997 15:41:46 -0600 (CST)
From: Tommi Hakala <tommiih@bus.utexas.edu>
To: dbi-users@fugue.com
Cc: goldy@walt.tsc.com
Subject: LONG datatype in Oracle and Oraperl
Message-Id: <Pine.HPP.3.91.970118153342.18635A-100000@yama.bus.utexas.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have a problem with LONG datatype. I am only managed to get 36508 bytes 
from LONG field. I am using Perl5 and Oraperl. Is it possible to get more 
bytes, if it is, I would like to know how to do it. I use blobread to 
fetch data from Oracle.

Thanks..

-------------------------------------------------------------------------------
Tommi Hakala				     email: tommiih@cism.bus.utexas.edu
910 West 26TH st. 102
78705 Austin, TX, USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-205@oink>;
          Mon, 20 Jan 1997 07:58:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853647347:10:08138:4; Sun, 19 Jan 97 04:15:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1008128; 19 Jan 97 4:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA28445 for dbi-users-real; Sat, 18 Jan 1997 16:04:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tiger.middlebury.edu (tiger.middlebury.edu [140.233.2.207]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA28440 
          for <dbi-users@fugue.com>; Sat, 18 Jan 1997 16:04:52 -0800 (PST)
Received: by tiger.middlebury.edu (AIX 4.1/UCB 5.64/4.03) id AA39246;
          Sat, 18 Jan 1997 19:03:28 -0500
Date: Sat, 18 Jan 1997 19:03:28 -0500 (EST)
From: Otis Gospodnetic <otisg@panther.middlebury.edu>
X-Sender: otisg@tiger.middlebury.edu
To: dbi-users@fugue.com
Subject: DBD::Sybase vs. Sybase::* ?
Message-Id: <Pine.A41.3.95.970118190027.40290A-100000@tiger.middlebury.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I was about to install DBD::Sybase when I read that the author of DBD::Sybase
recommends Sybases::* modules himself.
I was wondering what real life experiences are with DBD::Sybase ?
Is it really as unstable as the author made me believe ?
Also, in terms of speed/efficiency/performance, which of the two modules is a
better choice, DBD::Sybase or Sybase::* ?

Thanks in advance,

Otis
==========================================================================
POPULUS People Locator - The Intelligent White Pages - http://POPULUS.net/
==========================================================================



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02441-372@oink>;
          Mon, 20 Jan 1997 08:18:35 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853736706:9:06003:0; Mon, 20 Jan 97 05:05:06 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa905906; 20 Jan 97 5:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA07793 for dbi-users-real; Sun, 19 Jan 1997 16:41:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA07789 
          for <dbi-users@fugue.com>; Sun, 19 Jan 1997 16:41:50 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40346>; Mon, 20 Jan 1997 14:44:07 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA05765;
          Mon, 20 Jan 1997 07:39:52 +0700
Message-Id: <9701200039.AA05765@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 20 Jan 1997 21:44:38 +0700
To: ajmal@ctc.com, dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: Accessing Oracle directly from perl

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Hi:
>
>I read a comment you made on the dbi-users group about how you implemented db 
>access from perl using sqlplus (before using dbi and dbd). Could you tell
me how 
>you accessed the db from perl using sqlplus ? Was it as simple as exectung a 
>system command from perl like "sqlplus userid/passwd @sqlscript.sql" ?
Assuming 
>that the database is on the same machine of course.
>
>Thanks in advance for your response.
>
>~Ajmal
>
>

I think is like you asking me but I didn't use sql file, I directly send
command to sqlplus, etc :

$user="user";
$ENV{'ORACLE_SID'}="SID";
$ENV{'ORACLE_HOME'}="/oracle/home";

$sqlstat=0;
select(STDOUT);
$|=1;
open(STDOUT,">datasql.dat");
open(SQL,"|/oracle/home/bin/sqlplus -s $user/password");
        
print SQL<<END;
select * from table
exit;
END
close SQL;
close (STDOUT);

the problem I can get the result so I send the result to file (datasql.dat).

If you want to implement access database using perl is better to use
dbi/dbd, it can help you very much. 




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13610-0@oink>;
          Mon, 20 Jan 1997 18:29:20 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853784660:10:05800:2; Mon, 20 Jan 97 18:24:20 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005832; 20 Jan 97 18:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA08480 for dbi-users-real; Mon, 20 Jan 1997 05:06:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id FAA08476 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 05:06:53 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA22595 
          for dbi-users@fugue.com; Mon, 20 Jan 97 06:06:52 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA11199 
          for dbi-users@fugue.com; Mon, 20 Jan 97 06:06:51 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id OAA14675; Mon, 20 Jan 1997 14:06:42 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199701201306.OAA14675@ismuc.sps.mot.com>
Subject: Re: DBD-Oracle and mutating variables
To: Tim.Bunce@ig.co.uk (Tim Bunce)
Date: Mon, 20 Jan 1997 14:06:41 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <9701101738.AA12373@toad.ig.co.uk> from "Tim Bunce" at Jan 10, 97 05:38:05 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi again,

I've had a chance to recompile DBD.  (I took the opportunity to link with
to the 7.3.2 Oracle libraries and DBI-0.74 -- no change in the behaviour).

> > This problem is making me tear my hair out.  I call PL/SQL functions
> > using $csr->bind_param_inout() and $csr->execute().  Most of the time
> > this works fine.  Occasionally I get the error message
> > 
> > Placeholder :p1 value mutated type after bind
> > 
> > and the script dies.
>[...]
> This change would help me help you:
> 
> *** dbdimp.c.1	Fri Jan 10 17:36:03 1997
> --- dbdimp.c	Fri Jan 10 17:36:41 1997

The new error message is:
	"Placeholder :p2 value mutated type after bind (now 7)."
(SVt_PVNV is 6 .)

Since in this case, the variables are in fact read-only, I tried ora_bind:
	ora_bind($csr, $param, $param2);
This resulted in the error message
	"Can't bind unknown placeholder '2' at ...."

Regards,
-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15613-5@oink>;
          Mon, 20 Jan 1997 23:04:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853796603:10:12159:1; Mon, 20 Jan 97 21:43:23 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa905083; 20 Jan 97 21:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA08779 for dbi-users-real; Mon, 20 Jan 1997 09:10:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bsfiles.nerc-bas.ac.uk (bsfiles.nerc-bas.ac.uk [192.171.137.25]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA08772 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 09:09:59 -0800 (PST)
Received: from bssmlsa.nerc-bas.ac.uk 
          by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id RAA17255;
          Mon, 20 Jan 1997 17:09:41 GMT
Date: Mon, 20 Jan 1997 17:09:58 +0000 (GMT)
From: Andy Wood <agw@mail.nerc-bas.ac.uk>
Reply-To: Andrew G Wood <agw@mail.nerc-bas.ac.uk>
To: Rich Roemer <rich_r@amcsi.com>
cc: dbi-users@fugue.com
Subject: Re: dbd - how handle null fields?
In-Reply-To: <6064AF44B8@mail.amcsi.com>
Message-ID: <Pine.SGI.3.95.970120170308.9420C-100000@bssmlsa.nerc-bas.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 20 Jan 1997, Rich Roemer wrote:

> Does anybody know how to avoid getting a error message when printing 
> a field that came from the database when the field is null?

... not really a DBD/DBI problem, just straight perl ...
 
> while ( ($code_num, $desc1, $desc2, $desc3) = @cursor->fetchrow ) {
>     ++$numlines;
> 
>      print OUTPUT1 $code_num, $desc1, $desc2, $desc3, "\n";
> 

for a VERY quick and dirty hack you could try ....

  while ( ($code_num, $desc1, $desc2, $desc3) = @cursor->fetchrow ) {
      ++$numlines;
      $code_num = " " unless defined $code_num;
      $desc1 = " " unless defined $desc1;
      ....    
      print OUTPUT1 $code_num,"\t",$desc1,"\t",$desc2,"\t",$desc3,
                    "\n";

Andy,

+--------------------------------------------+
|   Dr Andy Wood, Database Administrator     |
|   British  Antarctic  Survey               |
|   High Cross, Madingley Road            +----------------------------------+
|   Cambridge,   CB3 0ET,   UK            |    A.G.Wood@bas.ac.uk            |
|      +44 (0) 1223 361188                |    agw@mail.nerc-bas.ac.uk       |
+-----------------------------------------|    A.G.Wood@bcs.org.uk           |
                                          +----------------------------------+




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15613-7@oink>;
          Mon, 20 Jan 1997 23:04:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853796605:9:05227:0; Mon, 20 Jan 97 21:43:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1012112; 20 Jan 97 21:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA08690 for dbi-users-real; Mon, 20 Jan 1997 08:24:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from amcsi.com (router.amcsi.com [198.240.73.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA08686 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 08:24:02 -0800 (PST)
Received: from mail.amcsi.com (mail.amcsi.com [198.99.153.3]) 
          by amcsi.com (8.6.11/8.6.12) with ESMTP id LAA26661 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 11:33:09 -0500
Received: from ADVANTA_COMM/MAILQ by mail.amcsi.com (Mercury 1.21);
          20 Jan 97 12:28:13 +500
Received: from MAILQ by ADVANTA_COMM (Mercury 1.21); 20 Jan 97 12:27:54 +500
From: Rich Roemer <rich_r@amcsi.com>
Organization: Amisys Managed Care Systems Inc.
To: dbi-users@fugue.com
Date: Mon, 20 Jan 1997 12:27:48 EST
Subject: dbd - how handle null fields?
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <6064AF44B8@mail.amcsi.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Does anybody know how to avoid getting a error message when printing 
a field that came from the database when the field is null?  

For example, when the following code runs, I get 2400 lines written 
correctly, but a about 100 records have one or more fields null, and 
I get the following error message:

Use of uninitialized value at rfr0100.pl line 29.
 (which is the print OUTPUT1 statement)

#!/utils/perl/bin/perl -w                                             
#! 
#
# rfr0100.pl - test data extract to flat file.

use DBI;

do 'dbopen.pl';

$fn1 = "rfr0100.lst";
open (OUTPUT1,">$fn1") or die "Can't open $fn1: $!\n";

@cursor = $dbh->prepare( "select substr(code_nbr, 1, 4), \
                                 description,  \
                                 description2, \
                                 description3  \
                                 from code_detail" );

@cursor->execute;

$numlines = 0;

while ( ($code_num, $desc1, $desc2, $desc3) = @cursor->fetchrow ) {
    ++$numlines;

     print OUTPUT1 $code_num, $desc1, $desc2, $desc3, "\n";

}

@cursor->finish;

$dbh->disconnect;

print "Processed $numlines records\n";

close (OUTPUT1) or die "Can't close $fn1: $!\n";
exit;

The datafile is going to be read by a COBOL program, so the data 
fields need to all line up in columns that don't vary.   Currently, 
if one or more fields are null, the following fields shift left, 
which causes the COBOL program to  get the data in the wrong field.

Also - If you know of any good documention on DBD, let me know where 
it is - I haven't found much yet.  I did find the two examples at 
www.hermetica.com, which are good, but they are very basic.

Mucho TIA!
Rich Roemer
Programmer, Open Systems 
AMISYS Managed Care Systems Inc.
5th floor
30 W. Gude Dr.
Rockville MD 20850
(301) 251-8600 (main line)
(301) 738-7305 (direct line)
(301) 251-2925 (fax)
http://www.amcsi.com (web page)
rich_r@amcsi.com  (e-mail)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17385-38@oink>;
          Tue, 21 Jan 1997 07:38:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853813576:10:24308:0; Tue, 21 Jan 97 02:26:16 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa921561; 21 Jan 97 2:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09512 for dbi-users-real; Mon, 20 Jan 1997 14:02:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from idiom.com (root@idiom.com [140.174.82.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA09508 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 14:02:33 -0800 (PST)
Received: from localhost (jason@localhost [127.0.0.1]) 
          by idiom.com (8.8.4/8.8.3) with SMTP id OAA01382 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 14:02:31 -0800 (PST)
Message-Id: <199701202202.OAA01382@idiom.com>
X-Authentication-Warning: idiom.com: jason@localhost [127.0.0.1] didn't use 
                          HELO protocol
To: dbi-users@fugue.com
Subject: What happened to the generic DBD:ODBC project?
Date: Mon, 20 Jan 1997 14:02:31 -0800
From: Jason Venner <jason@idiom.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17385-40@oink>;
          Tue, 21 Jan 1997 07:39:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853813611:9:21722:0; Tue, 21 Jan 97 02:26:51 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1024318; 21 Jan 97 2:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA09399 for dbi-users-real; Mon, 20 Jan 1997 13:10:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cism.bus.utexas.edu (cism.bus.utexas.edu [146.6.44.48]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA09392 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 13:10:00 -0800 (PST)
Received: from yama.bus.utexas.edu by cism.bus.utexas.edu 
          with SMTP (1.37.109.18/16.2) id AA061364588;
          Mon, 20 Jan 1997 15:09:48 -0600
Date: Mon, 20 Jan 1997 15:09:43 -0600 (CST)
From: Tommi Hakala <tommiih@bus.utexas.edu>
To: dbi-users@fugue.com
Subject: LONGS again
Message-Id: <Pine.HPP.3.91.970120145351.21824A-100000@yama.bus.utexas.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am asking again of this Long types. When I am putting/getting 
postscript files to LONG field in Oracle database I everytime get too few 
bytes back. The amount of bytes I get is always different depending what 
file I use, but the amount of bytes is always the same with same file, if 
you know what I mean. I am really confused with this. Does somebody know 
what is wrong with these programs?? Here are the pieces of code I use:

for inserting:
--------------
$ora_cache=1;

$ih = $lda->prepare("insert into ARTICLE(articleID, login, textdata, 
creators) values(:1,:2,:3,:4)") || die "prepare failed!!";

$attrib{'ora_type'} = 8;

$ih->bind_param(1, $articleID) || die "binding placeholder" . $db->errstr;

$ih->bind_param(2, $login) || die "binding placeholder" . $db->errstr;

$ih->bind_param(3, $textdata, \%attrib) || die "binding placeholder for 
LONG" . $db->errstr;

$ih->bind_param(4, $creators) || die "binding placeholder for" . $db->errstr;

$ih->execute || die "execute INSERT into $table: " . $db->errstr;
$ih->finish;

for retrieving:
---------------
	$ora_long=1000000;
	$ora_cache=1;

	my $cur = ora_open ($lda, $que);
	my @fields;
	my $blob;
	my $frag;
	my $ll;
	my $offset;
	@fields = ora_fetch($cur);

	my $length = 4096;	 # use benchmarks to get best value for you
    $offset = 0;
    while (1)
    {
        $frag = $cur->blob_read(0, $offset, $length);
        last unless $frag;
        $ll = length $frag;
        last unless $ll;
        $blob .= $frag;
        $offset += $ll;
    }

	$cur->execute;
	$cur->finish;
    ora_close ($cur);


-------------------------------------------------------------------------------
Tommi Hakala				     email: tommiih@cism.bus.utexas.edu
910 West 26TH st. 102
78705 Austin, TX, USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17385-45@oink>;
          Tue, 21 Jan 1997 07:39:32 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853815093:9:25449:1; Tue, 21 Jan 97 02:51:33 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028142; 21 Jan 97 2:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA09165 for dbi-users-real; Mon, 20 Jan 1997 11:50:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from huey.disney.com (0@huey.disney.com [204.128.192.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA09161 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 11:50:32 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id LAA24006 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 11:50:28 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA09868 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Mon, 20 Jan 1997 11:43:55 -0800
Received: by wdigl000.is.wdi.disney.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BC06C8.0B5DBE10@wdigl000.is.wdi.disney.com>;
          Mon, 20 Jan 1997 11:49:51 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-970120194908Z-36832@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: 'Christian Murphy' <r28874@ismuc.sps.mot.com>
Cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: DBD-Oracle and mutating variables
Date: Mon, 20 Jan 1997 11:49:08 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've seen the older version of this error message.
After forcibly receding my own hairline for a day
or two, I tried initializing the output bind variables in different
ways.

Try variations on:

local foo;
my foo;
my foo = '';

I forget which one worked, but before I changed it, I was getting that 
error message too.

>----------
>From: 	Christian Murphy[SMTP:r28874@ismuc.sps.mot.com]
>Sent: 	Monday, January 20, 1997 05:06
>To: 	Tim.Bunce@ig.co.uk
>Cc: 	dbi-users@fugue.com
>Subject: 	Re: DBD-Oracle and mutating variables
>
>    *** From dbi-users -- To unsubscribe, see the end of this message.
>***
>
>Hi again,
>
>I've had a chance to recompile DBD.  (I took the opportunity to link
>with
>to the 7.3.2 Oracle libraries and DBI-0.74 -- no change in the
>behaviour).
>
>> > This problem is making me tear my hair out.  I call PL/SQL functions
>> > using $csr->bind_param_inout() and $csr->execute().  Most of the time
>> > this works fine.  Occasionally I get the error message
>> > 
>> > Placeholder :p1 value mutated type after bind
>> > 
>> > and the script dies.
>>[...]
>> This change would help me help you:
>> 
>> *** dbdimp.c.1	Fri Jan 10 17:36:03 1997
>> --- dbdimp.c	Fri Jan 10 17:36:41 1997
>
>The new error message is:
>	"Placeholder :p2 value mutated type after bind (now 7)."
>(SVt_PVNV is 6 .)
>
>Since in this case, the variables are in fact read-only, I tried
>ora_bind:
>	ora_bind($csr, $param, $param2);
>This resulted in the error message
>	"Can't bind unknown placeholder '2' at ...."
>
>Regards,
>-christian
>
>
>
>------------------------------------------------------------------------
>------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the
>web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed
>by hand.
>------------------------------------------------------------------------
>------
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17385-47@oink>;
          Tue, 21 Jan 1997 07:39:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853815419:10:28979:1; Tue, 21 Jan 97 02:56:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa926110; 21 Jan 97 2:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09556 for dbi-users-real; Mon, 20 Jan 1997 14:16:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from iasi.com (mirage.iasi.com [199.117.35.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA09552 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 14:16:33 -0800 (PST)
Received: from c3po.iasi.com (c3po.iasi.com [199.117.35.9]) 
          by iasi.com (8.6.12/8.6.12) with SMTP id PAA10061 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 15:21:04 -0700
Received: by c3po.iasi.com (4.1/SMI-4.1) id AA02876; Mon, 20 Jan 97 15:14:22 MST
From: jdl@iasi.com (JD Laub)
Message-Id: <9701202214.AA02876@c3po.iasi.com>
Subject: 'Duplicate free() ignored...' msg?
To: dbi-users@fugue.com
Date: Mon, 20 Jan 1997 15:14:21 -0700 (MST)
Organization: The Psychiatric Ward of Terrors
X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Here's my 3 line script:
#!/usr/local/bin/perl -w
use DBI;
$dbh = DBI->connect('ORCL', "/", "", "Oracle") || die $DBI::errstr;

Here's the output:
Duplicate free() ignored during global destruction.

Anybody else get that message? hpux10.20, gcc2.7.2.1, perl5.003,
dbi0.73, dbd-oracle0.43, oracle7.3.2.
-- 
J.D. Laub (Laubster) |"I think you're very, very, very, very, very,
jdl@iasi.com         |very, very, very, very, ..." - Flying Lizards


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17385-55@oink>;
          Tue, 21 Jan 1997 07:40:15 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853816504:9:28874:1; Tue, 21 Jan 97 03:15:04 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1001551; 21 Jan 97 3:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA09317 for dbi-users-real; Mon, 20 Jan 1997 12:44:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from archive.org (was.archive.org [206.14.154.180]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id MAA09313 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 12:44:00 -0800 (PST)
Received: from Q.archive.org by archive.org (SMI-8.6/SMI-SVR4) id MAA17074;
          Mon, 20 Jan 1997 12:43:27 -0800
Message-ID: <32E3D931.5A98@archive.org>
Date: Mon, 20 Jan 1997 12:44:33 -0800
From: Q J a q u i t h <Q@archive.org>
Organization: Internet Archive
X-Sender: Q J a q u i t h <Q@archive.org>
X-Mailer: Mozilla 4.0b1 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: Tim Bunce <Tim.Bunce@ig.co.uk>
Subject: Re: Problems building static DBD::Oracle on Solaris 2.5, perl 5.003, 
         with gcc
X-Priority: Normal
References: <9701201139.AA10448@toad.ig.co.uk>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've re-unpacked clean and rebuilt and remade over and over and over...
But if I try to build Perl v5.003 w/ dynamic extensions using gcc,
it bombs on the first extension to get built dynamically, every time.
Here is the output for "make".  I'm using /usr/ccs/bin/ld.
[We have 3 "ld"s here because one is gcc's, one is this ccs, one
 is OS-specific other variant...]
So you see, I had to build static because I can't get dynamic to work.
I've spent days trying to build this now.  According to the
READMEs and INSTALLs, these packages should all work for Solaris,
either static or dynamic.  The error message looks like baloney
(I mean, if you look at the file it whines about, it does indeed
look odd and I wonder how DB_File.c could *ever* build so it makes
me think something bizarre is going on.  Here's db.h:

it's "syntax error"-ing out on that "__BEGIN_DECLS" which I've never
seen before and can't seem to find it defined in any other header
files (and apparently gcc can't either ;-)

__BEGIN_DECLS
DB *dbopen __P((const char *, int, int, DBTYPE, const void *));

#ifdef __DBINTERFACE_PRIVATE
DB	*__bt_open __P((const char *, int, int, const BTREEINFO *, 
int));
DB	*__hash_open __P((const char *, int, int, const HASHINFO *, 
int));
DB	*__rec_open __P((const char *, int, int, const RECNOINFO *, 
int));
void	 __dbpanic __P((DB *dbp));
#endif
__END_DECLS


"help me obi-wan kenobi.  you're my only hope."  (isn't that timely)

-Q

-- 
Q Jaquith   Q@archive.org    ofc:415.561.6792  fax:415.561.6795
Internet Archive  San Francisco CA  http://www.archive.org/us/q



"make" output (after "sh Configure -des -dcc=gcc")


make: Warning: Both `makefile' and `Makefile' exist
`sh  cflags libperl.a miniperlmain.o`  miniperlmain.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a perl.o`  perl.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a malloc.o`  malloc.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a gv.o`  gv.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a toke.o`  toke.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a perly.o`  perly.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a op.o`  op.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a regcomp.o`  regcomp.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a dump.o`  dump.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a util.o`  util.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a mg.o`  mg.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a hv.o`  hv.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a av.o`  av.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a run.o`  run.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a pp_hot.o`  pp_hot.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a sv.o`  sv.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a pp.o`  pp.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a scope.o`  scope.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a pp_ctl.o`  pp_ctl.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a pp_sys.o`  pp_sys.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a doop.o`  doop.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a doio.o`  doio.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a regexec.o`  regexec.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a taint.o`  taint.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a deb.o`  deb.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
`sh  cflags libperl.a globals.o`  globals.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 
rm -f libperl.a
ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o 
dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o 
pp_sys.o doop.o doio.o regexec.o taint.o deb.o globals.o 
gcc  -L/usr/local/lib -L/opt/local/lib -o miniperl miniperlmain.o 
libperl.a -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt
./miniperl configpm tmp
sh mv-if-diff tmp lib/Config.pm
./miniperl -Ilib pod/pod2html.PL
Extracting pod2html (with variable substitutions)
./miniperl -Ilib pod/pod2latex.PL
Extracting pod2latex (with variable substitutions)
./miniperl -Ilib pod/pod2man.PL
Extracting pod2man (with variable substitutions)
./miniperl -Ilib pod/pod2text.PL
Extracting pod2text (with variable substitutions)
	AutoSplitting perl library
AutoSplitting Text::ParseWords (lib/auto/Text/ParseWords)
./miniperl minimod.pl > tmp && mv tmp lib/ExtUtils/Miniperl.pm
`sh  cflags libperl.a perlmain.o`  perlmain.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
 

	Making DynaLoader (static)
Writing Makefile for DynaLoader
cp DynaLoader.pm ../../lib/DynaLoader.pm
AutoSplitting DynaLoader (../../lib/auto/DynaLoader)
../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp 
-noprototypes -typemap ../../lib/ExtUtils/typemap dl_dlopen.xs >tmp && 
mv tmp DynaLoader.c
gcc -c  -I/usr/local/include -I/opt/local/include -O     
-DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\"  -I../.. -DLIBC="/lib/libc.so" 
DynaLoader.c
rm -rf ../../lib/auto/DynaLoader/DynaLoader.a
ar cr ../../lib/auto/DynaLoader/DynaLoader.a DynaLoader.o && : 
../../lib/auto/DynaLoader/DynaLoader.a
chmod 755 ../../lib/auto/DynaLoader/DynaLoader.a
gcc  -L/usr/local/lib -L/opt/local/lib  -o perl perlmain.o libperl.a 
lib/auto/DynaLoader/DynaLoader.a  `cat ext.libs` -lsocket -lnsl -lgdbm 
-ldb -ldl -lm -lc -lcrypt
 
	Making utilities
../miniperl -I../lib c2ph.PL
Extracting c2ph (with variable substitutions)
Linking c2ph to pstruct.
../miniperl -I../lib h2ph.PL
Extracting h2ph (with variable substitutions)
../miniperl -I../lib h2xs.PL
Extracting h2xs (with variable substitutions)
../miniperl -I../lib perlbug.PL
Extracting perlbug (with variable substitutions)
../miniperl -I../lib perldoc.PL
Extracting perldoc (with variable substitutions)
../miniperl -I../lib pl2pm.PL
Extracting pl2pm (with variable substitutions)
 
	Making x2p stuff
make: Warning: Both `makefile' and `Makefile' exist
Current working directory 
/lib0/home/jaquith/oracle/perl5/dynamic/perl5.003/x2p
`sh  cflags hash.o` hash.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
`sh  cflags malloc.o` malloc.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
`sh  cflags str.o` str.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
`sh  cflags util.o` util.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
`sh  cflags walk.o` walk.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
`sh  cflags a2p.o`  a2p.c
	  CCCMD =  gcc -c -I/usr/local/include -I/opt/local/include -O  
gcc -L/usr/local/lib -L/opt/local/lib hash.o malloc.o str.o util.o 
walk.o a2p.o -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -o a2p
../miniperl -I../lib s2p.PL
Extracting s2p (with variable substitutions)
../miniperl -I../lib find2perl.PL
Extracting find2perl (with variable substitutions)
touch all

	Making DB_File (dynamic)
Writing Makefile for DB_File
cp DB_File.pm ../../lib/DB_File.pm
AutoSplitting DB_File (../../lib/auto/DB_File)
../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp 
-noprototypes -typemap ../../lib/ExtUtils/typemap -typemap typemap 
DB_File.xs >DB_File.tc && mv DB_File.tc DB_File.c
gcc -c  -I/usr/local/include -I/opt/local/include -O     
-DVERSION=\"1.01\"  -DXS_VERSION=\"1.01\" -fpic -I../..  DB_File.c
In file included from DB_File.c:34:
/usr/local/include/db.h:231: syntax error before `DB'
In file included from /usr/include/fcntl.h:18,
                 from DB_File.c:36:
/usr/include/sys/fcntl.h:114: syntax error before `typedef'
DB_File.c: In function `ParseOpenInfo':
DB_File.c:322: warning: assignment from incompatible pointer type
DB_File.c:362: warning: assignment from incompatible pointer type
*** Error code 1
make: Fatal error: Command failed for target `DB_File.o'
Current working directory 
/lib0/home/jaquith/oracle/perl5/dynamic/perl5.003/ext/DB_File
*** Error code 1
make: Fatal error: Command failed for target 
`lib/auto/DB_File/DB_File.so'


Tim Bunce wrote:
> 
> > From: Q J a q u i t h <Q@archive.org>
> >
> > I've been able to successfully (statically) build, test, and install
> > Perl 5.003 and DBIv0.74.  I'm having problems with the last stages
> > of making DBDv0.44
> >
> > Anyone else get this odd "ld" error?
> > I've tried 3 different versions of "ld" and they all produce similar
> > results.
> 
> Why do you even have 3 different versions of "ld"?!
> (Don't answer that unless it's actually relevant! :-)
> 
> > Here's the output of:
> > perl Makefile.PL LINKTYPE=static
> > make
> 
> Why are you building it static?
> 
> I suggest you start over by unpacking into a new clean directory.
> Use /usr/ccs/bin/ld (which should be early in your PATH).
> Do not use GNU ld. It's practically brain dead for Solaris.
> 
> Do not use LINKTYPE=static unless you still have problems.
> 
> If you still have problems after that then start over with
> a clean directory again and post the problems you get with
> a dynamic build, not the static one.
> 
> Tim.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17557-6@oink>;
          Tue, 21 Jan 1997 07:41:19 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853820459:9:08114:0; Tue, 21 Jan 97 04:20:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa908028; 21 Jan 97 4:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09524 for dbi-users-real; Mon, 20 Jan 1997 14:05:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA09520 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 14:05:18 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id WAA24022 for dbi-users@fugue.com; Mon, 20 Jan 1997 22:04:40 GMT
Date: Mon, 20 Jan 97 22:04 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: "make test" failure of DBD::Oracle 0.44 on UnixWare 2.1.1/Oracle 7.3.2
To: dbi-users@fugue.com, tim.bunce@ig.co.uk
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.532612@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

As the instructions in the README ask, I enclose a log of the build.
This is the same error I initially got with 0.43, but now 'make install'
does not fix it!  The resulting DBD::Oracle works fine if you ignore 
the test errors and just install it anyway.

In addition, the modified version of the patch I submitted to remove 
non-existent object files from the link line works just fine.

Any idea what the "Value of xxx will not stay shared" messages are 
about?

Alan Burlison   aburlison@cix.compulink.co.uk

$ perl Makefile.PL
Value of %linkage will not stay shared at (eval 1) line 1.
Value of $o will not stay shared at (eval 1) line 1.
Value of %linkage will not stay shared at (eval 2) line 1.
Value of $o will not stay shared at (eval 2) line 1.
Value of %linkage will not stay shared at (eval 3) line 1.
Value of $o will not stay shared at (eval 3) line 1.
Value of %linkage will not stay shared at (eval 4) line 1.
Value of $o will not stay shared at (eval 4) line 1.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories 
from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /home/oracle/product/7.3.2
Reading /home/oracle/product/7.3.2/precomp/demo/proc/proc.mk.
Reading /home/oracle/product/7.3.2/precomp/env_precomp.mk.
Deleting $(COMPOBJ)/crti.o from COMPOBJS because 
/home/oracle/product/7.3.2/lib/crti.o doesn't exist.
Deleting $(COMPOBJ)/crt1.o from COMPOBJS because 
/home/oracle/product/7.3.2/lib/crt1.o doesn't exist.
Deleting $(COMPOBJ)/__fstd.o from COMPOBJS because 
/home/oracle/product/7.3.2/lib/__fstd.o doesn't exist.
System: perl5.00320 unix_sv fubar 4.2mp 2.1.1 i386 x86at 
Compiler: /bin/cc -O -I/usr/include -I/usr/ucbinclude
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       `if [ -f /usr/ccs/bin/cc ]; then \
       echo /usr/ccs/bin/cc ; \
    elif [ -x /opt/SUNWspro/bin/cc ]; then \
         echo /opt/SUNWspro/bin/cc ; \
    elif [ -x /usr/bin/idcc ]; then \
         echo "/usr/bin/idcc"; \
    elif [ -x /usr/ccs/bin/ld ]; then  \
          echo "/usr/ccs/bin/ld $(SOLARIS_LD_OPTS)"; \
    else \
         echo "Error No C Compiler or Linker Found."; \
    fi;`
  CFLAGS:   $(GFLAG)  $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) 
$(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) 
Linking with   -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon 
-lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc 
-lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm 
-ldl -lc -lgen -lthread -lm 

Checking if your kit is complete...
Looks good
Processing hints file hints/svr4.pl
Warning (will try anyway): No library found for -lxa
Writing Makefile for DBD::Oracle

$ make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        perl -I/usr/local/lib/perl5/i386-svr4/5.00320 
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv 
Oracle.tc Oracle.c
        /bin/cc -c -I. -I/home/oracle/product/7.3.2/precomp/public 
-I/home/oracle/product/7.3.2/rdbms/demo 
-I/usr/local/lib/perl5/site_perl/i386-svr4/DBI 
-I/usr/local/lib/perl5/i386-svr4/5.00320/DBI -I/usr/include 
-I/usr/ucbinclude -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" 
-Kpic -I/usr/local/lib/perl5/i386-svr4/5.00320/CORE  Oracle.c
UX:acomp: WARNING: "Oracle.xs", line 123: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 214: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 223: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 253: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 254: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 320: end-of-loop code not reached
UX:acomp: WARNING: "Oracle.xs", line 324: end-of-loop code not reached
        /bin/cc -c -I. -I/home/oracle/product/7.3.2/precomp/public 
-I/home/oracle/product/7.3.2/rdbms/demo 
-I/usr/local/lib/perl5/site_perl/i386-svr4/DBI 
-I/usr/local/lib/perl5/i386-svr4/5.00320/DBI -I/usr/include 
-I/usr/ucbinclude -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" 
-Kpic -I/usr/local/lib/perl5/i386-svr4/5.00320/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/home/oracle/product/7.3.2/lib:/shlib:/usr/ccs/lib"
 /bin/cc -o ./blib/arch/auto/DBD/Oracle/Oracle.so -G -L/usr/ccs/lib 
-L/usr/ucblib -L/usr/local/lib Oracle.o  dbdimp.o    
-L/home/oracle/product/7.3.2/lib -lsql -lsqlnet -lncr -lsqlnet -lclient 
-lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric 
-lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket 
-lnsl -lm -ldl -lc -lgen -lthread -lm 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.so
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

$ make test TEST_VERBOSE=1
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch 
-I./blib/lib -I/usr/local/lib/perl5/i386-svr4/5.00320 
-I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); 
$verbose=1; runtests @ARGV;' t/*.t
t/base..............Value of $install_attributes will not stay shared 
at (eval 2) line 1.
1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.55 cusr  0.14 csys =  0.69 cpu)
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch 
-I./blib/lib -I/usr/local/lib/perl5/i386-svr4/5.00320 
-I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.29 $
Value of $install_attributes will not stay shared at (eval 4) line 1.

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.74 Switch by Tim Bunce, version 0.74


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - 
recommended)
 as '/' (via ORACLE_USERID env var or default - recommend 
name/passwd@dbname)
(ORACLE_SID='SID1', TWO_TASK='')
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 20-JAN-97 OPS$WEB NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read 
only)
Expect error message:
Undefined subroutine &DBD::Oracle::db::do called at blib/lib/Oraperl.pm 
line 134.
*** Error code 89 (bu21)
UX:make: ERROR: fatal error.

$ perl -V
Summary of my perl5 (5 patchlevel 3 subversion 20) configuration:
  Platform:
    osname=svr4, osvers=, archname=i386-svr4
    uname='unix_sv fubar 4.2mp 2.1.1 i386 x86at '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio= d_sfio=
  Compiler:
    cc='/bin/cc', optimize='-O', gccversion=
    cppflags='-I/usr/include -I/usr/ucbinclude'
    ccflags ='-I/usr/include -I/usr/ucbinclude'
    stdchar='unsigned char', d_stdstdio=, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='/bin/cc', ldflags ='-L/usr/ccs/lib -L/usr/ucblib 
-L/usr/local/lib'
    libpth=/usr/local/lib /shlib /lib /usr/lib /usr/ccs/lib /usr/ucblib
    libs=/usr/lib/libsocket.so.1 -lnsl -lndbm -ldbm -ldl -lld -lm -lc 
-lcrypt -lucb -lx
    libc=/lib/libc.so, so=so
    useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/ccs/lib -L/usr/ucblib 
-L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under svr4
  Compiled at Jan 13 1997 20:38:52
  @INC:
    /usr/local/lib/perl5/i386-svr4/5.00320
    /usr/local/lib/perl5
    /usr/local/lib/perl5/site_perl/i386-svr4
    /usr/local/lib/perl5/site_perl
    .

$ sqlplus /

SQL*Plus: Release 3.3.2.0.0 - Production on Mon Jan 20 19:41:30 1997

Copyright (c) Oracle Corporation 1979, 1994.  All rights reserved.


Connected to:
Oracle7 Server Release 7.3.2.2.0 - Production Release
PL/SQL Release 2.3.2.2.0 - Production

SQL> exit
Disconnected from Oracle7 Server Release 7.3.2.2.0 - Production Release
PL/SQL Release 2.3.2.2.0 - Production

$ uname -a
UNIX_SV fubar 4.2MP 2.1.1 i386 x86at
$ # UnixWare 2.1.1



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17557-25@oink>;
          Tue, 21 Jan 1997 07:42:54 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853829008:9:28343:0; Tue, 21 Jan 97 06:43:28 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028963; 21 Jan 97 6:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA00232 for dbi-users-real; Mon, 20 Jan 1997 17:59:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nebula.broadvision.com (nebula.broadvision.com [198.211.204.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA00228 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 17:59:45 -0800 (PST)
Received: from broadvision.com (galaxy.broadvision.com [199.35.176.1]) 
          by nebula.broadvision.com (8.7.5/8.7.3) with SMTP id RAA12568;
          Mon, 20 Jan 1997 17:59:44 -0800 (PST)
Received: from andromeda.broadvision.com by broadvision.com (5.x/SMI-SVR4) 
          id AA19050; Mon, 20 Jan 1997 17:59:43 -0800
Received: from andromeda by andromeda.broadvision.com (SMI-8.6/SMI-SVR4) 
          id RAA01034; Mon, 20 Jan 1997 17:59:42 -0800
Message-Id: <32E4230E.292F@broadvision.com>
Date: Mon, 20 Jan 1997 17:59:42 -0800
From: Humphrey Loe <humphrey@broadvision.com>
Organization: BROADVISION
X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Cc: tim.bunce@ig.uk.com
Subject: DBD and shared libraries
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello Everyone,

I'm trying toi get DBD / DBI woking with Oracle v7.3.2, Solaris 2.5 and
DBD 0.43, DBI0.71. I've successfully compiled DBD with all of the
necessary links to the Oracle libraries and such but I still get errors
when I try to connect to my database. My oracle database is not NFS
mounted to the server with the perl compiler. My cgi script returns the
following:

install_driver(Oracle) failed: Can't load
'/opt/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Oracle/Oracle.so'
for module
DBD::Oracle: ld.so.1: /opt/local/bin/perl5: fatal: libclntsh.so.1.0:
can't open file: errno=2 at
/opt/local/lib/perl5/DynaLoader.pm line 140. at
/opt/local/lib/perl5/site_perl/DBD/Oracle.pm line
24 DBI::install_driver called at /opt/local/lib/perl5/site_perl/DBI.pm
line 159 DBI::connect
called at /home/hloe/www/cgi-bin/people.cgi line 45 main::connect_db
called at
/home/hloe/www/cgi-bin/people.cgi line 26 

On further ananlysis I have traced the dependencies or Oracle.so and
have copied libclntsh.so.1.0 into that directory. When I trace all of
the dependencies for Oracle.so there is no entry specifying ld.so.1.

Has anyone else encountered this problem or know where ld.so.1 should be
placed? 

Thanks in advance,

Humphrey Loe


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19765-1@oink>;
          Tue, 21 Jan 1997 10:37:17 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853833466:10:10539:0; Tue, 21 Jan 97 07:57:46 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa911403; 21 Jan 97 7:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA00430 for dbi-users-real; Mon, 20 Jan 1997 19:23:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bienlogic.com ([38.214.78.65]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA00426 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 19:23:06 -0800 (PST)
Received: from brubeck.bienlogic.com ([38.214.78.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id TAA01480;
          Mon, 20 Jan 1997 19:20:44 -0800 (PST)
Message-Id: <3.0.32.19970120193516.00b09830@38.214.78.65>
X-Sender: lane@38.214.78.65
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Mon, 20 Jan 1997 19:35:19 -0800
To: Achmad Dimyati <dimyati@ai.astra.co.id>, ajmal@ctc.com, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Accessing Oracle directly from perl
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

It is a well known technique that SQLPlus can be a powerful output and
formatting option for streamed output. In a cgi context, sqlplus is often
the sole command needed within a perl script to generate very sexy output.

-Lane
Creators of flirt.com
Powered by dbi/dbd

At 09:44 PM 1/20/97 +0700, Achmad Dimyati wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>>Hi:
>>
>>I read a comment you made on the dbi-users group about how you
implemented db 
>>access from perl using sqlplus (before using dbi and dbd). Could you tell
>me how 
>>you accessed the db from perl using sqlplus ? Was it as simple as
exectung a 
>>system command from perl like "sqlplus userid/passwd @sqlscript.sql" ?
>Assuming 
>>that the database is on the same machine of course.
>>
>>Thanks in advance for your response.
>>
>>~Ajmal
>>
>>
>
>I think is like you asking me but I didn't use sql file, I directly send
>command to sqlplus, etc :
>
>$user="user";
>$ENV{'ORACLE_SID'}="SID";
>$ENV{'ORACLE_HOME'}="/oracle/home";
>
>$sqlstat=0;
>select(STDOUT);
>$|=1;
>open(STDOUT,">datasql.dat");
>open(SQL,"|/oracle/home/bin/sqlplus -s $user/password");
>        
>print SQL<<END;
>select * from table
>exit;
>END
>close SQL;
>close (STDOUT);
>
>the problem I can get the result so I send the result to file (datasql.dat).
>
>If you want to implement access database using perl is better to use
>dbi/dbd, it can help you very much. 
>
>
>
>
>---------------------------------------------------------------------------
---
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by
hand.
>---------------------------------------------------------------------------
---
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19765-7@oink>;
          Tue, 21 Jan 1997 10:37:38 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853838082:10:27160:0; Tue, 21 Jan 97 09:14:42 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1027043; 21 Jan 97 9:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA00671 for dbi-users-real; Mon, 20 Jan 1997 20:31:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id UAA00667 
          for <dbi-users@fugue.com>; Mon, 20 Jan 1997 20:31:31 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id UAA06666;
          Mon, 20 Jan 1997 20:27:10 -0800
Date: Mon, 20 Jan 1997 20:27:09 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: Rich Roemer <rich_r@amcsi.com>
cc: dbi-users@fugue.com
Subject: Re: dbd - how handle null fields?
In-Reply-To: <6064AF44B8@mail.amcsi.com>
Message-ID: <Pine.SOL.3.95.970120202449.6654F-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 20 Jan 1997, Rich Roemer wrote:

> while ( ($code_num, $desc1, $desc2, $desc3) = @cursor->fetchrow ) {
>     ++$numlines;
> 
>      print OUTPUT1 $code_num, $desc1, $desc2, $desc3, "\n";
> 
> }

stupid solution:

   if (! defined $desc1) { $desc1 = ''; }

etc.  I have generic routines to fetch my rows as objects from the
databases and this filter is one of the ones I run on them.

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02345-4@oink>;
          Tue, 21 Jan 1997 18:56:20 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853871772:10:08973:3; Tue, 21 Jan 97 18:36:12 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1008968; 21 Jan 97 18:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA01470 for dbi-users-real; Tue, 21 Jan 1997 05:15:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from copper.muller.com (copper.muller.com [198.190.8.8]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id FAA01466 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 05:15:09 -0800 (PST)
From: smaceda@ccmail.muller.com
Received: from ccmail.muller.com 
          by copper.muller.com (1.37.109.16/3.1.090690-Thomson Financial Services) 
          id AA237652477; Tue, 21 Jan 1997 08:14:39 -0500
Received: from ccMail by ccmail.muller.com (SMTPLINK V2.11) id AA853863356;
          Tue, 21 Jan 97 08:14:47 EST
Date: Tue, 21 Jan 97 08:14:47 EST
Message-Id: <9700218538.AA853863356@ccmail.muller.com>
To: dbi-users@fugue.com
Subject: re:Null fields

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

     On Mon, 20 Jan 1997, Rich Roemer wrote:
     
     > while ( ($code_num, $desc1, $desc2, $desc3) = @cursor->fetchrow ) { 
     >     ++$numlines;
     > 
     >      print OUTPUT1 $code_num, $desc1, $desc2, $desc3, "\n"; > 
     > }
     
     You might try perl's format. It's designed for this kind of thing
     
     format STDOUT = 
     @<<<<<<< @|||||||| @>>>>>>>
     $s1,     $s2,      @s3
     .
     
     while ( ($s1,$2,$s3) = @cursor->fetchrow) {
        ++$numlines;
        write;
     }
     
     There's a good description of formats in Programming Perl.
     
     Steve Maceda



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-3@oink>;
          Wed, 22 Jan 1997 07:36:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853877368:9:17268:3; Tue, 21 Jan 97 20:09:28 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917260; 21 Jan 97 20:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA01533 for dbi-users-real; Tue, 21 Jan 1997 06:11:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from fluxus.as220.org (root@bjepson.tiac.net [207.60.59.166]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA01529 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 06:11:36 -0800 (PST)
Received: (from bjepson@localhost) by fluxus.as220.org (8.8.0/8.8.0) 
          id JAA00200; Tue, 21 Jan 1997 09:06:20 -0500
Date: Tue, 21 Jan 1997 09:06:20 -0500 (EST)
From: Brian Jepson <bjepson@ids.net>
To: Jason Venner <jason@idiom.com>
cc: dbi-users@fugue.com
Subject: Re: What happened to the generic DBD:ODBC project?
In-Reply-To: <199701202202.OAA01382@idiom.com>
Message-ID: <Pine.LNX.3.95.970121085104.144D-100000@fluxus.as220.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 20 Jan 1997, Jason Venner wrote:

> * nothing - but the subject says it all *

That's a good question - there's a dependency between that and the
FreeODBC project, which aims to work on building a freely redistributable
ODBC driver development kit using Ke Jin's (kejin@empress.com) iODBC, a
freely redistributable ODBC driver manager.

A while ago, I worked with Tim Bunce and Ke Jin on speccing out this
project, and put up the specs at http://www.ids.net/~bjepson/freeODBC. At
the time, several people signed on to work on it, but nothing has happened
until recently. Unfortunately, my resources have been locked up between
consulting and writing, but that will be loosening up considerably in
early March. 

FreeODBC will be using the work of Dirk Ohme as a departure point. Dirk
has bundled an OS/2 version of iODBC with a driver for mSQL at:

  http://rzsco.fh-albsig.de/~ohme

We've got a couple of people who are interested in volunteering with
FreeODBC, and should be starting their effort soon. The first order of
business seem to be getting the mySQL and mini-SQL drivers running on Unix
with iODBC. Dirk has a mini-SQL driver that links against the OS/2 version
of iODBC, and it really looks like it will build on Unix with minimal
changes. 

In any case, once we get something happening with this, we will be using
this list to talk about the development, as we planned to do over a year
ago. I apologize for the *massive* delay in this, but if anyone is
interested in volunteering, please let me know, and I can hand something
off to you :-)

Regards,

Brian Jepson * (bjepson@ids.net)  *  http://www.ids.net/~bjepson
  Int(ra|er)net Database Developer, Author, Crypto-Fluxologist
Non-Prophet Arts Technology Flux:      http://www.ids.net/~as220
WWW/Database/NT,Java/Database: http://www.ids.net/~bjepson/books



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-14@oink>;
          Wed, 22 Jan 1997 07:36:54 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853879213:9:29648:6; Tue, 21 Jan 97 20:40:13 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021677; 21 Jan 97 20:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA01515 for dbi-users-real; Tue, 21 Jan 1997 06:05:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from amcsi.com (router.amcsi.com [198.240.73.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA01511 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 06:05:27 -0800 (PST)
Received: from mail.amcsi.com (mail.amcsi.com [198.99.153.3]) 
          by amcsi.com (8.6.11/8.6.12) with ESMTP id JAA27922 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 09:14:45 -0500
Received: from ADVANTA_COMM/MAILQ by mail.amcsi.com (Mercury 1.21);
          21 Jan 97 10:09:37 +500
Received: from MAILQ by ADVANTA_COMM (Mercury 1.21); 21 Jan 97 10:09:09 +500
From: Rich Roemer <rich_r@amcsi.com>
Organization: Amisys Managed Care Systems Inc.
To: dbi-users@fugue.com
Date: Tue, 21 Jan 1997 10:09:07 EST
Subject: Re: 'Duplicate free() ignored...' msg?
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <7615585A7B@mail.amcsi.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>
> Here's my 3 line script:
> #!/usr/local/bin/perl -w
> use DBI;
> $dbh = DBI->connect('ORCL', "/", "", "Oracle") || die $DBI::errstr;
> 
> Here's the output:
> Duplicate free() ignored during global destruction.
> 
> Anybody else get that message? hpux10.20, gcc2.7.2.1, perl5.003,
> dbi0.73, dbd-oracle0.43, oracle7.3.2.
> -- 
> J.D. Laub (Laubster) |"I think you're very, very, very, very, very,
> jdl@iasi.com         |very, very, very, very, ..." - Flying Lizards
> 

Here's what I get when I run your script (changes made for 
username/password and location of perl)

/home/rich_r/perl > more rrtest4
#!/usr/bin/perl -w
use DBI;
$dbh = DBI->connect('ORCL', "amiuser1/user1", "", "Oracle") || die $DBI::errstr; exit;

/home/rich_r/perl > rrtest4 
Identifier "main::dbh"used only once: possible typo at rrtest4 line 3.
 ORA-12154: TNS:could not resolve service name (DBD: login failed) at rrtest4 lin e 3.
/home/rich_r/perl >

We're using all the same versions that you are (on our HP system), 
except we use HP C instead of gcc.
Our scripts also run on AIX with DB2.

For what it's worth, here is what we use:

/home/rich_r/perl > ex5.pl                                            
Field: RFR0100 
Field: PRR0200 
Field: PRR0300 
Field: PRR0300 
/home/rich_r/perl> more ex5.pl 
#!/utils/perl/bin/perl -w 
# 
# ex5.pl: basic oracle or db2 test, db open stuff in external, shared file.

use DBI;

use lib "$ENV{'AMISYS_ROOT'}/bin/";
do 'dbopen.pl';

$cursor = $dbh->prepare( "SELECT JOB_NAME FROM ACTIVE_JOB" );

$cursor->execute;

while ( $field = $cursor->fetchrow ) {
    print "Field: $field\n";
  }

$cursor->finish;

$dbh->disconnect;

exit;


Here is our common routine for opening the database, which works on 
Oracle or on DB2 (support for more databases shortly). We needed to 
move user names and passwords out of the script so that our customers 
could easily change those things.  You'll obviously have to twiddle with 
the environment variables a bit...

/home/rich_r/perl > more $AMISYS_ROOT/bin/dbopen.pl
#
# dbopen - standard AMISYS database open commands for perl scripts.
#
# Add the next 2 lines to use this file:
# use lib "$ENV{'AMISYS_ROOT'}/bin/";
# do 'dbopen.pl';

# --------------------------------------------------------------------
# -- Install the correct database driver. the install_driver needs the
# database name, and is fussy about the case. Lowercase our AMISYS
# standard environment var AMISYS_DBTYPE

$dbtype = "\L$ENV{'AMISYS_DBTYPE'}";

   if ($dbtype eq 'oracle')   { $driver_name = "Oracle"; }
elsif ($dbtype eq 'db2')      { $driver_name = "DB2";    }
else { die "Unprepared to deal with database type $dbtype", "\n"; };

$drh = DBI->install_driver( $driver_name );

# --------------------------------------------------------------------
# - Connect to the database.

   if ($dbtype eq 'oracle') {
$dbh = $drh->connect( $ENV{'ORACLE_SID'},
                      $ENV{'AMISYS_USERNAME'},
                      $ENV{'AMISYS_PASSWORD'} ); }
elsif ($dbtype eq 'db2') {
$dbh = $drh->connect( $ENV{'DB2DBDFT'},
                      $ENV{'AMISYS_USERNAME'},
                      $ENV{'AMISYS_PASSWORD'} ); };
# --------------------------------------------------------------------
# -
/home/rich_r/perl > 
Rich Roemer
Programmer, Open Systems 
AMISYS Managed Care Systems Inc.
5th floor
30 W. Gude Dr.
Rockville MD 20850
(301) 251-8600 (main line)
(301) 738-7305 (direct line)
(301) 251-2925 (fax)
http://www.amcsi.com (web page)
rich_r@amcsi.com  (e-mail)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-28@oink>;
          Wed, 22 Jan 1997 07:38:06 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853881307:10:03030:3; Tue, 21 Jan 97 21:15:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912927; 21 Jan 97 21:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA01749 for dbi-users-real; Tue, 21 Jan 1997 07:50:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA01745 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 07:50:16 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id PAA11363 for dbi-users@fugue.com; Tue, 21 Jan 1997 15:49:35 GMT
Date: Tue, 21 Jan 97 15:48 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: DBD - make test failure
To: maresca@enteract.com
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.556647@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <32E4D8D0.3F94@enteract.com>
Mike,

> I'm getting the same error that Alan Burlison reported during the make
> test portion of the DBD compile.  I am compiling DBD for SCO ODT 3.0
> with Perl 5.003_20 and DBI 0.74.  The version of DBD is 
> DBD-Oracle-0.44.

A quick update on this - on my platform (UnixWare 2.1.1), DBI 0.74 and 
DBD::Oracle 0.44 are completely broke.  My advice is to backtrack to 
the previous versions.  I'm trying to figure out what has changed 
between the releases - if i find out I'll let you know.

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-30@oink>;
          Wed, 22 Jan 1997 07:38:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853882076:9:17773:2; Tue, 21 Jan 97 21:27:56 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1007107; 21 Jan 97 21:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA01586 for dbi-users-real; Tue, 21 Jan 1997 06:54:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from enteract.com (babel.enteract.com [206.54.252.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA01582 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 06:54:52 -0800 (PST)
Received: (qmail 29326 invoked from network); 21 Jan 1997 14:54:46 -0000
Received: from unknown (HELO ac6641hya72411.WALGREENS.COM) (207.70.75.65) 
          by babel.enteract.com with SMTP; 21 Jan 1997 14:54:46 -0000
Message-ID: <32E4D8D0.3F94@enteract.com>
Date: Tue, 21 Jan 1997 08:55:12 -0600
From: "Michael J. Maresca" <maresca@enteract.com>
Reply-To: maresca@enteract.com
Organization: Andersen Consulting
X-Mailer: Mozilla 3.01 (Win95; I)
MIME-Version: 1.0
To: DBI-Users Group <dbi-users@fugue.com>
CC: maresca@enteract.com
Subject: DBD - make test failure
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm getting the same error that Alan Burlison reported during the make
test portion of the DBD compile.  I am compiling DBD for SCO ODT 3.0
with Perl 5.003_20 and DBI 0.74.  The version of DBD is DBD-Oracle-0.44.

The version of Oracle I'm using is Oracle version 7.1.  Both the Perl
and DBI compile and installation completed cleanly. However, I received
the following error when I performed the "make test" on the DBD:

        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/per
l5/i386-sco/5.00320 -I/usr/local/lib/perl5 -e 'use Test::Harness
qw(&runtests $v
erbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............Value of $install_attributes will not stay shared at
(eval 2
) line 1.
ok
All tests successful.
Files=1,  Tests=5,  5 secs ( 4.18 cusr  0.18 csys =  4.36 cpu)
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/per
l5/i386-sco/5.00320 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.29 $
Value of $install_attributes will not stay shared at (eval 4) line 1.

Oraperl Emulation Interface version 1.31
Oracle Driver 0.44
DBI-0.74 Switch by Tim Bunce, version 0.74

                                                                               
Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK -
recommended)
 as 'ea11_l/devsvr05' (via ORACLE_USERID env var or default - recommend
name/pas
swd@dbname)
(ORACLE_SID='devsvr05', TWO_TASK='devsvr05')
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 20-JAN-97 EA11_L NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read
only)  

Expect error message:
Undefined subroutine &DBD::Oracle::db::do called at blib/lib/Oraperl.pm
line 134
.
*** Error code -1                                       

Thanks in advance for any help.  This has proved to be a real show
stopper for me.

-Mike Maresca


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-66@oink>;
          Wed, 22 Jan 1997 07:41:15 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853894286:10:07106:0; Wed, 22 Jan 97 00:51:26 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1007054; 22 Jan 97 0:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA00243 for dbi-users-real; Tue, 21 Jan 1997 12:09:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netra.merc.com (netra.merc.com [204.255.152.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA00239 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 12:09:15 -0800 (PST)
Received: from jdperlow (jdperlow.merc.com [204.255.152.24]) 
          by netra.merc.com (8.8.4/970109.10ccg) with SMTP id NAA25919 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 13:08:30 -0700 (MST)
Message-Id: <3.0.32.19970121131130.009d2d10@netra.merc.com>
X-Sender: jdperlow@netra.merc.com
X-Mailer: Windows Eudora Pro Version 3.0 Demo (32)
Date: Tue, 21 Jan 1997 13:11:45 -0700
To: dbi-users@fugue.com
From: Jonathan Perlow <jdperlow@merc.com>
Subject: Retrieving Longs Using DBD::Oracle
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

When I use the blob_read method I receive the following error:

ORA-03115: unsupported network datatype or representation (DBD: oflng error)

Though, I don't believe this to be a DBD-Oracle problem, I thought that
someone might know the solution to this problem. I am using an Oracle 7.2
database running on Solaris 2.5 with tnslsnr 2.2.3.

Jonathan Perlow
Mercury Mail


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-68@oink>;
          Wed, 22 Jan 1997 07:41:25 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853894349:9:26038:0; Wed, 22 Jan 97 00:52:29 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925980; 22 Jan 97 0:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA02135 for dbi-users-real; Tue, 21 Jan 1997 10:44:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from amcsi.com (router.amcsi.com [198.240.73.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA02131 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 10:44:49 -0800 (PST)
Received: from mail.amcsi.com (mail.amcsi.com [198.99.153.3]) 
          by amcsi.com (8.6.11/8.6.12) with ESMTP id NAA28161 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 13:54:07 -0500
Received: from ADVANTA_COMM/MAILQ by mail.amcsi.com (Mercury 1.21);
          21 Jan 97 14:49:01 +500
Received: from MAILQ by ADVANTA_COMM (Mercury 1.21); 21 Jan 97 14:48:47 +500
From: Rich Roemer <rich_r@amcsi.com>
Organization: Amisys Managed Care Systems Inc.
To: dbi-users@fugue.com
Date: Tue, 21 Jan 1997 14:48:45 EST
Subject: embedding perl scripts inside a shell script
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <7ABE903D79@mail.amcsi.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi - thanks to lots of generous help, my perl script now gets data
from oracle or db2, and puts it into a nice flat file that my COBOL
program can read - thanks very much to all of you.  

Now I need a way for my shell script to run the perl script and then
to run the COBOL program.  I want both the shell script and the perl
script in one long script file.  I tried something like this:

#!/usr/bin/sh
export LOGFILE=myjob.log
echo Starting the production job script `date` > $LOGFILE 
rm mydatafile >> $LOGFILE 2>&1
more shell commands....
...
..
echo Now starting the perl database extract `date` >> $LOGFILE
/usr/bin/perl -w << !EOD >> $LOGFILE 2>&1
use DBI;
use dbopen.pl;
$cursor = $dbh->prepare...
....
printf MYDATAFILE "%6s.........
....
exit;
!EOD
more shell commands...
export dd_input=mydatafile
run COBOLprogram <<!EOD >> $LOGFILE 2>&1
answers-to-cobol-prompts..
!EOD
more shell commands....
another  perl script....
etc.
exit

The problem with this is that the shell seems to interpolate the
$variables in the here-document for the perl script, such that when
perl runs, the shell has changed the intended input for perl.  ie,
since the shell doesn't have a environment var called $cursor or $dbh,
it replaces $cursor and $dbh with nothing, and when perl runs, it just
sees =->. 

I also tried putting all the shell script commands into the perl
script, but that was VERY difficult to do, and I couldn't get the
here-documents for the COBOL program to work at all from perl.  Since
I've got hundreds of HP 3000 batch jobs that I can convert to shell scripts,
I realy don't want to convert them to perl scripts, except for the
part that interacts with the database.

  I realy need the shell script and the perl script all 
in-line, in one big file.  Hopefully somebody more familiar with perl
and unix shells knows an easy way that this HP 3000 MPE guy hasn't
seen yet.

Again - much TIA!

Rich Roemer
Programmer, Open Systems 
AMISYS Managed Care Systems Inc.
5th floor
30 W. Gude Dr.
Rockville MD 20850
(301) 251-8600 (main line)
(301) 738-7305 (direct line)
(301) 251-2925 (fax)
http://www.amcsi.com (web page)
rich_r@amcsi.com  (e-mail)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-79@oink>;
          Wed, 22 Jan 1997 07:42:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853897084:9:06886:0; Wed, 22 Jan 97 01:38:04 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016427; 22 Jan 97 1:37 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA02090 for dbi-users-real; Tue, 21 Jan 1997 10:20:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from steele.ohsu.EDU (steele.ohsu.edu [137.53.1.40]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA02086 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 10:20:49 -0800 (PST)
Received: by steele.ohsu.EDU (SMI-8.6/SMI-SVR4) id KAA20792;
          Tue, 21 Jan 1997 10:19:04 -0800
Date: Tue, 21 Jan 1997 10:19:03 -0800 (PST)
From: Li Zhang <zhangl@ohsu.edu>
X-Sender: zhangl@steele
To: dbi-users@fugue.com
cc: Tim.Bunce@ig.co.uk
Subject: Oraperl.pm
Message-ID: <Pine.SOL.3.91.970121090932.5791C-100000@steele>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am trying to connect Oracle Database to the www through CGI-Perl 
script. I want to use Oraperl.pm to do it. I installed the Oraperl.pm on 
our SPARK station-20. But I could not pass the test. Here is information 
I got:
1. perl Makefile.pl 

medir# perl Makefile.PL

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /pub6/app/oracle/product/7.3.2
Reading /pub6/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk.
Reading /pub6/app/oracle/product/7.3.2/precomp/env_precomp.mk.
Argument "2.5.1" isn't numeric in ge at Makefile.PL line 116.
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.
System: perl5.003 sunos medir 5.5.1 generic sun4m sparc sunw,sparcstation-20
Compiler: gcc -O -I/usr/local/include
Linker:   /usr/ucb/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) 
$(PFLAGS) $(S
HARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib 
-R/opt/
SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon 
-lgeneric
 -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 
-lc3v6 -lco
re3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl -lm


Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle

After I run make it shows
 make

medir# make
gcc -c -I. -I/pub6/app/oracle/product/7.3.2/precomp/public 
-I/pub6/app/oracle/pr
oduct/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI 
-I/usr/
local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -O    
-DVERSION=\"0.
43\" -DXS_VERSION=\"0.43\" -fpic 
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE
-Wall -pedantic -Wno-comment -Wtraditional Oracle.c
Oracle.c: In function `XS_DBD__Oracle__db_disconnect':
Oracle.c:148: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_execute':
Oracle.c:285: warning: ANSI C forbids braced-groups within expressions
Oracle.c:294: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow':
Oracle.c:335: warning: ANSI C forbids braced-groups within expressions
Oracle.c:336: warning: ANSI C forbids braced-groups within expressions
Oracle.c:342: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_finish':
Oracle.c:431: warning: ANSI C forbids braced-groups within expressions
Oracle.c:435: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:475: warning: ANSI C forbids braced-groups within expressions
gcc -c -I. -I/pub6/app/oracle/product/7.3.2/precomp/public 
-I/pub6/app/oracle/pr
oduct/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI 
-I/usr/
local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -O    
-DVERSION=\"0.
43\" -DXS_VERSION=\"0.43\" -fpic 
-I/usr/local/lib/perl5/sun4-solaris/5.003/CORE
-Wall -pedantic -Wno-comment -Wtraditional dbdimp.c
dbdimp.c: In function `dbd_st_blob_read':
dbdimp.c:1030: warning: ANSI C forbids braced-groups within expressions
dbdimp.c: At top level:
dbdimp.c:161: warning: `dump_error_status' defined but not used
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
LD_RUN_PATH="/pub6/app/oracle/product/7.3.2/lib:/lib" gcc -o 
blib/arch/auto/DBD/
Oracle/Oracle.so -G -L/usr/local/lib Oracle.o dbdimp.o 
/pub6/app/oracle/product/
7.3.2/lib/__fstd.o   -L/pub6/app/oracle/product/7.3.2/lib -lclntsh -lsql 
-lsqlne
t -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet 
-lclient -l
common -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 
-lnlsrtl3 -lso
cket -lnsl -lm -ldl -lm
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3

After I run make test, sometimes it is unable to connect to database, as 
following:

medir# make test
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/lib/perl5/su
n4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness 
qw(&runtests $verb
ose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.47 cusr  0.15 csys =  0.62 cpu)
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/lib/perl5/su
n4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $
Dbname is

Oraperl Emulation Interface version 1.31
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'zhangl/li' (via ORACLE_USERID env var or default - recommend 
name/passwd@db
name)
(ORACLE_SID='meta', TWO_TASK='')
(It stops here)

Sometimes it shows as following:

medir# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/li
b/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness 
qw(&runt
ests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.51 cusr  0.17 csys =  0.68 cpu)
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/li
b/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $
Dbname is

Oraperl Emulation Interface version 1.31
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'zhangl/li' (via ORACLE_USERID env var or default - recommend 
name/passwd@db
name)
(ORACLE_SID='meta', TWO_TASK='')
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 21-JAN-97 ZHANGL NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of 
transaction
(DBD: oexec error)
csr out of scope...
ora_logoff...
lda out of scope...

Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5

Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.

Testing row cache (5).
Test completed in 0 seconds.

Testing PL/SQL interaction.
Testing bind_param_inout. Expect '200', '3800', '75800':
param='200'
param='3800'
param='75800'

Test complete (6 seconds).
If the tests above have produced the 'expected' output then they have passed.
See README about Bad free() warnings!

2. I am using Oracle 7.3.2 and perl 5.003

3. The output of perl -V is:

medir% perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos medir 5.5.1 generic sun4m sparc sunw,sparcstation-20 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.6.3
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5 
/usr/local/li
b/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl 
/usr/local/lib/per
l5/sun4-solaris .

I aslo tried login as $lda=ora_login('', 'user/passwd@dbname',''), it 
shows the following err msgs:

medir# make test
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/lib/perl5/su
n4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness 
qw(&runtests $verb
ose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  0 secs ( 0.51 cusr  0.17 csys =  0.68 cpu)
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib 
-I/usr/local/lib/perl5/su
n4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $
Dbname is

Oraperl Emulation Interface version 1.31
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'zhangl/li' (via ORACLE_USERID env var or default - recommend 
name/passwd@db
name)
(ORACLE_SID='meta', TWO_TASK='')
ora_login: 12154: ORA-12154: TNS:could not resolve service name (DBD: 
login fail
ed)

Try to connect to the database using an oracle tool like sqlplus
only if that works should you suspect problems with DBD::Oracle.
Try leaving dbname value empty and set dbuser to name/passwd@dbname.

Test aborted.
See README about Bad free() warnings!
make: *** [test_dynamic] Error 2

I read README about Bad free() warnings. But I still could not figure out 
what is wrong. Can you or anybody else help me?




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04163-102@oink>;
          Wed, 22 Jan 1997 07:44:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853900599:10:26861:0; Wed, 22 Jan 97 02:36:39 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918799; 22 Jan 97 2:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA00690 for dbi-users-real; Tue, 21 Jan 1997 13:58:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from idiom.com (root@idiom.com [140.174.82.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA00686 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 13:58:39 -0800 (PST)
Received: from localhost (jason@localhost [127.0.0.1]) 
          by idiom.com (8.8.4/8.8.3) with SMTP id NAA13378 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 13:58:38 -0800 (PST)
Message-Id: <199701212158.NAA13378@idiom.com>
X-Authentication-Warning: idiom.com: jason@localhost [127.0.0.1] didn't use 
                          HELO protocol
To: dbi-users@fugue.com
Subject: Request to an SCO & DB2 user
Date: Tue, 21 Jan 1997 13:58:38 -0800
From: Jason Venner <jason@idiom.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Could someone make me an SCO version of perl 5003 with db2
support?

I am hoping I could use this with IBCS under freebsd to access a db2
database.

Does the dynamic linking work under freebsd IBCS?


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04329-0@oink>;
          Wed, 22 Jan 1997 07:44:27 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853901206:9:20852:6; Wed, 22 Jan 97 02:46:46 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa920848; 22 Jan 97 2:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA00882 for dbi-users-real; Tue, 21 Jan 1997 14:35:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from iasi.com (mirage.iasi.com [199.117.35.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA00878 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 14:35:17 -0800 (PST)
Received: from c3po.iasi.com (c3po.iasi.com [199.117.35.9]) 
          by iasi.com (8.6.12/8.6.12) with SMTP id PAA18344;
          Tue, 21 Jan 1997 15:39:44 -0700
Received: by c3po.iasi.com (4.1/SMI-4.1) id AA20420; Tue, 21 Jan 97 15:33:01 MST
From: jdl@iasi.com (JD Laub)
Message-Id: <9701212233.AA20420@c3po.iasi.com>
Subject: Re: embedding perl scripts inside a shell script
To: rich_r@amcsi.com (Rich Roemer)
Date: Tue, 21 Jan 1997 15:33:01 -0700 (MST)
Cc: dbi-users@fugue.com
In-Reply-To: <7ABE903D79@mail.amcsi.com> from "Rich Roemer" at Jan 21, 97 02:48:45 pm
Organization: The Psychiatric Ward of Terrors
X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Rich Roemer wrote:
> Now I need a way for my shell script to run the perl script and then
> to run the COBOL program.  I want both the shell script and the perl
> script in one long script file.  I tried something like this:
[...]
> echo Now starting the perl database extract `date` >> $LOGFILE
> /usr/bin/perl -w << !EOD >> $LOGFILE 2>&1
> !EOD
[...]
> The problem with this is that the shell seems to interpolate the
> $variables in the here-document for the perl script,

Try escaping one of the characters in your end-of-here-document
indicator (i.e, "\!EOD" rather than "!EOD").
-- 
J.D. Laub (Laubster) |"I think you're very, very, very, very, very,
jdl@iasi.com         |very, very, very, very, ..." - Flying Lizards


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04329-14@oink>;
          Wed, 22 Jan 1997 07:45:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853908635:10:15643:14; Wed, 22 Jan 97 04:50:35 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1015620; 22 Jan 97 4:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA01181 for dbi-users-real; Tue, 21 Jan 1997 16:19:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA01177 
          for <dbi-users@fugue.com>; Tue, 21 Jan 1997 16:19:12 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40323>; Wed, 22 Jan 1997 14:21:15 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA19844;
          Wed, 22 Jan 1997 07:17:03 +0700
Message-Id: <9701220017.AA19844@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 22 Jan 1997 21:22:46 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: where to get new DBI/DBD ?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello, 

I had install DBI 0.73 with DBD Oracle 0.43. But now I read there are new
DBI and DBD that DBI 0.74 and DBD Oracle 0.44. Where I can get this new
DBD/DBD, because I had looking to www.hermetica.com but still the latest
version is DBI 0.73 and DBD Oracle 0.43 ?

Thank's very much for your information.
================================================================
Life like route, sometimes we never know the right way.
Believe me the right way is on God hand.
================================================================
Achmad Dimyati
System Programming Team, IT-Division
PT. Astra International
Jakarta, Indonesia



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09904-32@oink>;
          Wed, 22 Jan 1997 17:17:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853950805:9:02825:6; Wed, 22 Jan 97 16:33:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa902805; 22 Jan 97 16:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA05459 for dbi-users-real; Wed, 22 Jan 1997 03:29:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id DAA05455 
          for <dbi-users@fugue.com>; Wed, 22 Jan 1997 03:29:05 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA25216 
          for dbi-users@fugue.com; Wed, 22 Jan 97 04:29:04 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA29713 
          for dbi-users@fugue.com; Wed, 22 Jan 97 04:29:03 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id MAA01317; Wed, 22 Jan 1997 12:28:57 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199701221128.MAA01317@ismuc.sps.mot.com>
Subject: Re: DBD-Oracle and mutating variables
To: dbi-users@fugue.com
Date: Wed, 22 Jan 1997 12:28:56 +0100 (MET)
Cc: Tim.Bunce@ig.co.uk (Tim Bunce)
In-Reply-To: <9701201359.AA11934@toad.ig.co.uk> from "Tim Bunce" at Jan 20, 97 01:59:07 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> > From: Christian Murphy <r28874@ismuc.sps.mot.com>
> > 
> > The new error message is:
> > 	"Placeholder :p2 value mutated type after bind (now 7)."
> > (SVt_PVNV is 6 .)
> 
> That means that the variable has been 'upgraded' (in internals speak)
> to an SVt_PVMG. In other words it's gained some 'magic'.
> 
> What has happened to the variable since it was bound?

Nothing at the perl source-code level.  I just bind and execute.

I've tried ora_bind instead of bind_param_inout; I've tried adding zero
to parameters.  All my parameters are initalised: I print them out just
before I bind them to make sure.  There are no triggers in any of the
tables.

All this is happening at the bottom of a chain of modules, inside a
method of an object I use for Oracle access.  I've tried to extract
the relevant code to get a small script that fails in the same way, but
of course it works.  It looks like there is some fairly strange
interaction between perl, my modules, DBD/DBI and possibly even the Oracle
libraries or the PL/SQL code.

For now I'm using a workaround: I'm building the whole SQL into one
string, letting perl interpolate the variables so I don't have to worry
about binding.  That works fine.  Other subroutines still use ora_bind and
bind_param_inout with impunity.  *shrug*

Thanks to Tim and everyone else who helped!  I'm sorry I don't have more
time to help track down the bug.

Regards,
-christian

-- 
Christian Murphy <r28874@ismuc.sps.mot.com>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09962-1@oink>;
          Wed, 22 Jan 1997 17:19:42 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853953438:9:18553:9; Wed, 22 Jan 97 17:17:18 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918542; 22 Jan 97 17:17 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA05975 for dbi-users-real; Wed, 22 Jan 1997 04:15:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id EAA05971 
          for <dbi-users@fugue.com>; Wed, 22 Jan 1997 04:15:14 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id MAA11346 for dbi-users@fugue.com; Wed, 22 Jan 1997 12:14:44 GMT
Date: Wed, 22 Jan 97 12:14 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: DBD - make test failure
To: Tim.Bunce@ig.co.uk
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.589637@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <9701221025.AA21802@toad.ig.co.uk>
> You have not statted what version of perl you are using.
> 
> Tim.

5.003_22

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13792-27@oink>;
          Thu, 23 Jan 1997 07:38:32 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 853986171:9:10554:1; Thu, 23 Jan 97 02:22:51 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017077; 23 Jan 97 2:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA12429 for dbi-users-real; Wed, 22 Jan 1997 13:34:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cs.bgsu.edu (maestro.cs.bgsu.edu [129.1.64.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA12425 
          for <dbi-users@fugue.com>; Wed, 22 Jan 1997 13:34:45 -0800 (PST)
Received: from solar (solar.cs.bgsu.edu [129.1.64.5]) 
          by cs.bgsu.edu (8.7.5/950727cs.bgsu.edu) with SMTP id QAA26289 
          for <dbi-users@fugue.com> sender daliniu@cs.bgsu.edu ;
          Wed, 22 Jan 1997 16:34:42 -0500 (EST)
Date: Wed, 22 Jan 1997 16:34:32 -0500 (EST)
From: Dali Niu <daliniu@cs.bgsu.edu>
X-Sender: daliniu@solar
Reply-To: Dali Niu <daliniu@cs.bgsu.edu>
To: dbi-users@fugue.com
Subject: How to install DBI and DBD?
Message-ID: <Pine.GSO.3.93.970122162737.15595A-100000@solar>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Greetings,

I am trying to install DBI and DBD on my Solaris sun machine.
My Oracle database runs on a different host, a Digital Unix machine.

My goal is to be able to connect to the Oracle host from the Sun using the
DBI/DBD software. I just do not know how to install them! I followed
the instructions but I get an error (see below). 

I am not a perl/DBI/DBD expert. Please help!

1.	I downloaded DBI-0.73.tar to my directory /home/user1/dbi. 
	cd /home/user1/dbi
	tar xf DBI-0.73.tar.
	Followed instructions in the README file
		 perl Makefile.PL
    		make
    		make test
	It ran w/o any problems and a whole bunch of files 
	appeared in this directory /home/user1/dbi.
2.	I downloaded DBD-Oracle-0.43.tar into a directory
	/home/user1/dbd
	cd /home/user1/dbd
	tar xf  DBD-Oracle-0.43.tar
		Got a bunch of files.
	perl Makefile.PL

	error "Can't locate DBI.pm in @INC at Makefile.PL line 18
		BEGIN failed--compilation aborted at Makefile.PL line 18
	Line 18 of Makefile.PL looks like 	use DBI 0.71;

Question: How to fix this error? Should both be installed
	  in the same directory. If so what are the revised instructions.
	  Thanks

	Sub Ramakrishnan	rama@cs.bgsu.edu







------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13861-17@oink>;
          Thu, 23 Jan 1997 07:40:47 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854004355:9:27878:5; Thu, 23 Jan 97 07:25:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1003827; 23 Jan 97 7:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA15962 for dbi-users-real; Wed, 22 Jan 1997 17:59:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA15958 
          for <dbi-users@fugue.com>; Wed, 22 Jan 1997 17:59:08 -0800 (PST)
Received: by gw.home.vix.com; id RAA06025; Wed, 22 Jan 1997 17:01:38 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40323>; Thu, 23 Jan 1997 15:03:45 +0700
Received: from [10.1.10.114] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA05831;
          Thu, 23 Jan 1997 07:59:30 +0700
Message-Id: <9701230059.AA05831@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 23 Jan 1997 22:04:28 +0700
To: dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: How to install DBI and DBD?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>I am trying to install DBI and DBD on my Solaris sun machine.
>My Oracle database runs on a different host, a Digital Unix machine.
>
>My goal is to be able to connect to the Oracle host from the Sun using the
>DBI/DBD software. I just do not know how to install them! I followed
>the instructions but I get an error (see below). 
>
>I am not a perl/DBI/DBD expert. Please help!
>

first assume you use perl version 5.003

When I install perl on Digital-Alpha UNIX OSF1, it's automatically install to 
directory /usr/local/ (depend to you)

with Automatic subdirectory :

bin directory ---> perl executable
lib directory --->there are directory site_perl where we will put DBI/DBD 
man directory ---> manual perl 

>1.	I downloaded DBI-0.73.tar to my directory /home/user1/dbi. 
>	cd /home/user1/dbi
>	tar xf DBI-0.73.tar.
>	Followed instructions in the README file
>		 perl Makefile.PL
>    		make
>    		make test
>	It ran w/o any problems and a whole bunch of files 
>	appeared in this directory /home/user1/dbi.

If the test is success you must be root user (depend to target directory) to
install DBI to specific directory (which is /usr/local/lib/site_perl). 
so than you run make install which will put all DBI file automatically to
site_perl directory.

>2.	I downloaded DBD-Oracle-0.43.tar into a directory
>	/home/user1/dbd
>	cd /home/user1/dbd
>	tar xf  DBD-Oracle-0.43.tar
>		Got a bunch of files.
>	perl Makefile.PL
>
>	error "Can't locate DBI.pm in @INC at Makefile.PL line 18
>		BEGIN failed--compilation aborted at Makefile.PL line 18
>	Line 18 of Makefile.PL looks like 	use DBI 0.71;
>

This error because you don't had install DBI to site_perl.
After you successful make DBD and test then you must install DBD to
site_perl directory too by make install.

Here you needed to install Oracle with some of library on instalation
machine (Solaris sun machine), usually Pro*C and Oracle library which need
for make DBD command (Also don't forget to set ORACLE_HOME and ORACLE_SID
environment).

All of this installation takes the default setting of perl/DBI/DBD
instalation, if you fail when make perl with dynamic loading all of this
information may be not very much valuable.But I think on solaris machine you
can install perl with dynamic loading.

PS:
you need sqlnet on both machine (solaris and other machine) to get data from
other machine. 
================================================================
Life like route, sometimes we never know the right way.
Believe me the right way is on God hand.
================================================================
Achmad Dimyati
System Programming Team, IT-Division
PT. Astra International
Jakarta, Indonesia



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17448-1@oink>;
          Thu, 23 Jan 1997 13:47:46 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854021582:9:14415:48; Thu, 23 Jan 97 12:13:02 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id ab914339; 23 Jan 97 12:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id WAA19116 for dbi-users-real; Wed, 22 Jan 1997 22:35:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cism.bus.utexas.edu (cism.bus.utexas.edu [146.6.44.48]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id WAA19111 
          for <dbi-users@fugue.com>; Wed, 22 Jan 1997 22:35:23 -0800 (PST)
Received: from yama.bus.utexas.edu by cism.bus.utexas.edu 
          with SMTP (1.37.109.18/16.2) id AA111041309;
          Thu, 23 Jan 1997 00:35:09 -0600
Date: Thu, 23 Jan 1997 00:35:01 -0600 (CST)
From: Tommi Hakala <tommiih@bus.utexas.edu>
To: dbi-users@fugue.com
Subject: INSERTING LONG
Message-Id: <Pine.HPP.3.91.970123002503.13611A-100000@yama.bus.utexas.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello again!

I have managed to find out that the problem I have is in inserting.
I am trying to insert data to LONG field. It works fine with oraperl4 but 
when I am inserting with perl5 and oraperl it doesnt work. It doesnt 
insert the whole file. Should I wait oraperl to finish inserting or what 
should I do??

Thanks in advance for help...

Here is the working perl4 code:
-------------------------------

#!/usr/local/bin/oraperl

$lda = &ora_login('',"database","passwd") || die "Logon to database failed";

$csr = &ora_open($lda, "insert into LONGTEST(ID, LONGFIELD) values(:1,:2)") 
|| die "Inserting data to table LONGFIELD before binding failed."; 

&ora_bind($csr,1,"$textdata") || die "Binding to table LONGTEST failed."; 
&ora_close($csr);
&ora_logoff($lda);


This perl5 code doesnt insert the whole data:
---------------------------------------------

#!/usr/local/bin/operl5

use Oraperl;

$lda = &ora_login('',"database","passwd") || die "Logon to database failed";

$csr = &ora_open($lda, "insert into LONGTEST(ID, LONGFIELD) values(:1,:2)
") || die "Inserting data to table LONGFIELD before binding failed.";

&ora_bind($csr,1,"$textdata") || die "Binding to table LONGFIELD failed";
&ora_close($csr);
&ora_logoff($lda);


-------------------------------------------------------------------------------
Tommi Hakala				     email: tommiih@cism.bus.utexas.edu
910 West 26TH st. 102
78705 Austin, TX, USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19531-1@oink>;
          Thu, 23 Jan 1997 18:55:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854044615:10:19619:5; Thu, 23 Jan 97 18:36:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019608; 23 Jan 97 18:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA23251 for dbi-users-real; Thu, 23 Jan 1997 04:48:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from centaure.worldnet.net (root@centaure.worldnet.net [194.2.128.249]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA23247 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 04:48:26 -0800 (PST)
Received: from lune1.clavius.tm.fr (lune1.clavius.tm.fr [194.250.212.253]) 
          by centaure.worldnet.net (8.6.12/8.6.12) with SMTP id NAA19605 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 13:48:24 +0100
Message-ID: <32E76162.8D5@worldnet.fr>
Date: Thu, 23 Jan 1997 14:02:26 +0100
From: Yanick Durant <ydurant@worldnet.fr>
Reply-To: ydurant@worldnet.fr
Organization: France en Ligne
X-Mailer: Mozilla 3.01Gold (Win95; I)
MIME-Version: 1.0
To: DBI Liste <dbi-users@fugue.com>
Subject: Illustra and DBI
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Did somebody have ported DBI to use it with Illustra ?

Thanks.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-23@oink>;
          Thu, 23 Jan 1997 23:35:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854056769:10:22780:3; Thu, 23 Jan 97 21:59:29 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1022475; 23 Jan 97 21:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA25299 for dbi-users-real; Thu, 23 Jan 1997 07:52:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from firewall2.cummins.com (firewall-user@fw2.cummins.com [205.230.25.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA25294 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 07:52:39 -0800 (PST)
Received: by firewall2.cummins.com; id KAA20608; Thu, 23 Jan 1997 10:52:38 -0500
Received: from unknown(143.222.15.21) by firewall2.cummins.com via smap (3.2) 
          id xma020590; Thu, 23 Jan 97 10:52:07 -0500
Received: from blitzen.eeg.cummins.com by ceco1.cummins.com;
          (5.65v3.2/1.1.8.2/04Mar96-1128AM) id AA22169;
          Thu, 23 Jan 1997 10:52:07 -0500
Received: from prancer.eeg.cummins.com 
          by blitzen.eeg.cummins.com (5.x/SMI-SVR4) id AA06203;
          Thu, 23 Jan 1997 10:52:06 -0500
Received: from jughead by prancer.eeg.cummins.com (5.x/SMI-SVR4) id AA11194;
          Thu, 23 Jan 1997 10:52:06 -0500
Message-Id: <32E78925.442B@cummins.com>
Date: Thu, 23 Jan 1997 10:52:05 -0500
From: Vinay Sawardekar <v.sawardekar@cummins.com>
Organization: Cummins Engine Company, Inc.
X-Mailer: Mozilla 2.02 (X11; U; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: How to install DBI and DBD?
References: <Pine.GSO.3.93.970122162737.15595A-100000@solar>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Here are a few helpful tips:

1.  After you install DBI make sure the following files exist:
    ./perl_v5.003/lib/site_perl/DBI.pm
    ./perl_v5.003/lib/sun4-solaris/5.003/DBI.pm

2.  When you execute DBD 'perl Makefile.PL' be sure your using the
    correct version of perl.  i.e  ./perl_v5.003/bin/perl

3.  I am not sure about this but your Makefile.PL header may say:
    #!/usr/local/bin/perl -sw
    change it to:
    #!./perl_v5.003/bin/perl -sw

4.  If nothing else works, try this quick & dirty workaround:
    Add the following line in your Makefile.PL (after 'use strict;' line):
    push @INC, "./perl_v5.003/lib/site_perl";

   


Dali Niu wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Greetings,
> 
> I am trying to install DBI and DBD on my Solaris sun machine.
> My Oracle database runs on a different host, a Digital Unix machine.
> 
> My goal is to be able to connect to the Oracle host from the Sun using the
> DBI/DBD software. I just do not know how to install them! I followed
> the instructions but I get an error (see below).
> 
> I am not a perl/DBI/DBD expert. Please help!
> 
> 1.      I downloaded DBI-0.73.tar to my directory /home/user1/dbi.
>         cd /home/user1/dbi
>         tar xf DBI-0.73.tar.
>         Followed instructions in the README file
>                  perl Makefile.PL
>                 make
>                 make test
>         It ran w/o any problems and a whole bunch of files
>         appeared in this directory /home/user1/dbi.
> 2.      I downloaded DBD-Oracle-0.43.tar into a directory
>         /home/user1/dbd
>         cd /home/user1/dbd
>         tar xf  DBD-Oracle-0.43.tar
>                 Got a bunch of files.
>         perl Makefile.PL
> 
>         error "Can't locate DBI.pm in @INC at Makefile.PL line 18
>                 BEGIN failed--compilation aborted at Makefile.PL line 18
>         Line 18 of Makefile.PL looks like       use DBI 0.71;
> 
> Question: How to fix this error? Should both be installed
>           in the same directory. If so what are the revised instructions.
>           Thanks
> 
>         Sub Ramakrishnan        rama@cs.bgsu.edu
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-31@oink>;
          Thu, 23 Jan 1997 23:36:21 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854057815:10:28238:5; Thu, 23 Jan 97 22:16:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa906635; 23 Jan 97 22:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA25886 for dbi-users-real; Thu, 23 Jan 1997 08:47:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from enteract.com (babel.enteract.com [206.54.252.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA25881 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 08:47:36 -0800 (PST)
Received: (qmail 25267 invoked from network); 23 Jan 1997 16:47:30 -0000
Received: from unknown (HELO devkpi01) (207.70.75.65) by babel.enteract.com 
          with SMTP; 23 Jan 1997 16:47:30 -0000
Message-ID: <32E795A5.7FC4@enteract.com>
Date: Thu, 23 Jan 1997 10:45:25 -0600
From: Mike Maresca <maresca@enteract.com>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: Tim.Bunce@ig.co.uk
Subject: Anybody figured anything out on this ...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm wondering if anybody has figured out this problem that I'm having
with the DBD
compilation.  Again, I'm using perl5.003_20 and DBI-0.74.  I'm getting
this problem 
with both DBD-Oracle-0.43 and DBD-Oracle-0.44.  The "make test" output
is:


::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............Value of $install_attributes will not stay shared at
(eval 2) line 1.
ok
All tests successful.
Files=1,  Tests=5,  5 secs ( 4.37 cusr  0.17 csys =  4.54 cpu)
        PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/i386-sco/5.00320 -I/usr/local/lib/perl5 test.pl
Oraperl test application $Revision: 1.28 $
Value of $install_attributes will not stay shared at (eval 4) line 1.
 
Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.74 Switch by Tim Bunce, version 0.74
 
 
Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK -
recommended)
 as 'ea11_l/devsvr05' (via ORACLE_USERID env var or default - recommend
name/passwd@dbname)
(ORACLE_SID='devsvr05', TWO_TASK='devsvr05')
Fields:  4
Names:   'NUM_T',       'DATE_T',       'CHAR_T',       'NULL_T'
Lengths: '40',  '75',   '30',   '0'
Types:   '2',   '12',   '1',    '1'
Data rows:
    fetch: 79.2 23-JAN-97 EA11_L NULL
 
csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read
only)
Expect error message:
Undefined subroutine &DBD::Oracle::db::do called at blib/lib/Oraperl.pm
line 134.
*** Error code -1


Can anybody provide any insight???

Thanks,

Mike Maresca


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-37@oink>;
          Thu, 23 Jan 1997 23:36:44 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854060408:10:11291:0; Thu, 23 Jan 97 23:00:08 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa921225; 23 Jan 97 23:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA27146 for dbi-users-real; Thu, 23 Jan 1997 14:02:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ariad.com (ariad.com [192.190.19.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA27142 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 14:02:38 -0800 (PST)
Received: from [192.190.19.46] (gumby.ariad.com) by ariad.com (4.1/4.1-NEARnet) 
          id AA23446; Thu, 23 Jan 97 17:05:58 EST
Message-Id: <v03010d09af0d9d65d62f@[192.190.19.46]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 23 Jan 1997 17:02:06 -0600
To: dbi-users@fugue.com
From: Mark Duffield <duffield@ariad.com>
Subject: DBI / DBD::Oracle with Mac Perl???

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Has anyone out there attempted to get DBI and DBD::Oracle
working with MacPerl 5.0.3r1m?

Can anyone thing of a reason why it wouldn't/couldn't work
with alittle tweeking?

Thanks,

Mark

--
Mark Duffield                        | "In our every deliberation, we must
Scientific Computing                 |  consider the impact of our decisions
ARIAD Pharmaceuticals                |  on the next seven generations."
26 Landsdowne St.                    |  -- From the Great Law of the
Cambridge, MA  02139 USA             |         Iroquois Confederacy




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-39@oink>;
          Thu, 23 Jan 1997 23:36:51 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854060457:9:21472:32; Thu, 23 Jan 97 23:00:57 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011322; 23 Jan 97 23:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA27079 for dbi-users-real; Thu, 23 Jan 1997 13:41:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from smtp-gw01.ny.us.ibm.net (smtp-gw01.ny.us.ibm.net [165.87.194.252]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id NAA27075 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 13:41:24 -0800 (PST)
Received: (from uucp@localhost) by smtp-gw01.ny.us.ibm.net (8.6.9/8.6.9) 
          id VAA141944; Thu, 23 Jan 1997 21:41:22 GMT
Received: from unknown(206.104.8.12) by smtp-gw01.ny.us.ibm.net 
          via smap (V1.3mjr) id smaSC4Dmb; Thu Jan 23 21:41:03 1997
Message-Id: <1.5.4.32.19970123204636.00671a4c@mail.utexas.edu>
X-Sender: jcbodnar@mail.utexas.edu
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 23 Jan 1997 15:46:36 -0500
To: dbi-users@fugue.com
From: Jason Bodnar <jcbodnar@mail.utexas.edu>
Subject: make test fails for DBD-Informix-0.25
Cc: johnl@informix.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

perl Makefile.PL and make run fine. No compiler errors or warnings.

make test yields numerous errors like:

PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/pe
rl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests
@ARGV;' t/*.t
t/basic00...........install_driver(Informix) failed: Can't load
'./blib/arch/auto/DBD/Informix/Informix.so' for module DBD::In
formix: ld.so.1: /usr/local/bin/perl: fatal: libixsql.so: can't open file:
errno=2 at /usr/local/lib/perl5/DynaLoader.pm line
140.

ENVIRONEMT:

$ env | sort
DBD_INFORMIX_DATABASE=test
DBD_INFORMIX_PASSWORD=informix
DBD_INFORMIX_SERVER=ifmx_online
DBD_INFORMIX_USEERNAME=informix
DBD_INFORMIX_USERNAME=informix
HOME=/home/jason
HOSTTYPE=sparc
HZ=100
INFORMIXDIR=/home/archive/informix
INFORMIXSERVER=ifmx_online
INFORMIXSQLHOSTS=/home/archive/informix/etc/sqlhosts.ifmx
INFORMIXTERM=terminfo
LOGNAME=jason
MAIL=/var/mail/jason
NS_NEWSCONF=/home/archive/ns-news/news-Taz/config/nsnews.conf
ONCONFIG=onconfig.ifmx
OSTYPE=SunOS5
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/ucb:/etc:.:/usr/ccs/bin/:/u
sr/ccs/lib:/home/msql/bin:/usr/nsent-h/Livewire/bi
n:/home/archive/informix/bin:/home/archive/ns-enterprise/bin/https
PS1=\h:\w$
SHELL=/usr/local/bin/bash
SHLVL=2
TERM=vt100
TERMINFO=/usr/share/lib/terminfo
TZ=US/Central
_=/usr/bin/env

Informix-ESQL/C: 7.20 UC1
perl 5.003

$ perl -e 'use Config; print Config::myconfig()'
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos taz 5.5.1 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=2.5.6
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'



--
Jason Bodnar
Internet Programmer
Cox Interactive Media
jasonb@onr.com



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-41@oink>;
          Thu, 23 Jan 1997 23:36:59 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854061104:9:25059:0; Thu, 23 Jan 97 23:11:44 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925021; 23 Jan 97 23:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA26123 for dbi-users-real; Thu, 23 Jan 1997 09:08:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from amcsi.com (router.amcsi.com [198.240.73.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA26118 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 09:08:24 -0800 (PST)
Received: from mail.amcsi.com (mail.amcsi.com [198.99.153.3]) 
          by amcsi.com (8.6.11/8.6.12) with ESMTP id MAA01066 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 12:18:05 -0500
Received: from ADVANTA_COMM/MAILQ by mail.amcsi.com (Mercury 1.21);
          23 Jan 97 13:12:29 +500
Received: from MAILQ by ADVANTA_COMM (Mercury 1.21); 23 Jan 97 13:12:04 +500
From: Rich Roemer <rich_r@amcsi.com>
Organization: Amisys Managed Care Systems Inc.
To: dbi-users@fugue.com
Date: Thu, 23 Jan 1997 13:11:55 EST
Subject: Re: 'Duplicate free() ignored...' msg?
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <A92346405B@mail.amcsi.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim said:
>That seems rather daft and misses the point of the DBI. Why not
>use 'Oracle' and 'DB2' as the value of $ENV{AMISYS_DBTYPE} and pass it
>directly to DBI->connect?

Several reasons:
1. Our shop had already set up and standardized the use and values of 
the AMISYS_DBTYPE variable, before we started investigating the use 
of perl.  Those variables were used by other 
processes, and their exact values 'oracle' and 'db2' would not work 
in the '$drh = DBI->install_driver(xxx); statment.  Rather than 
change the values of the environment  variable, and change all the scripts and 
programs that used the value of that variable, we decided to implement a common 
database open routine that took care of this for us.  This may not be 
the cleanest implimentation, but it works and our customers can 
easily see what's going on, and they can easily modify it. And I don't 
have to wory about the customer getting the case of their 
AMISYS_DBTYPE variable set just right for the DBI connect thingy.

2. We got started with db perl by using the two step connection 
method from the ex2.pl example from the www.hermetica.com web page by 
Descartes as follows:
$drh=DBI->install_driver("driver name");
$dbh=$drh->connect (.....
We didn't know till you pointed it out that this could be done in one 
statement as follows:
$dbh=DBI->connect('',"username","pass","driver name");

3.  Although this statement on hp-ux/oracle works:
$dbh=DBI->connect('',$ENV(AMISYS_USERNAME},
       $ENV{AMISYS_PASSWORD},
       $driver_name)    
it doesn't work on db2.  I'm not sure why.  Perhaps a db2 person can 
help out here.  On our system, the pertinant variables are like so:
DB2DBDFT=db2dev
DB2INSTANCE=db2
DB2_HOME=/home/db2
DBI_DRIVER=DB2
DBI_NAME=db2
AMISYS_DATABASE=db2
AMISYS_DBTYPE=db2
AMISYS_PASSWORD=user1
AMISYS_ROOT=/amisys/rel1/dev
AMISYS_USERNAME=amiuser1

4.   I decided when I saw the differences between Oracle and DB2 that 
there were probably going to be more differences when we got around 
to trying it with Sybase, so it seemed best to isolate this stuff.

So, using Tim's sugestion, I can now simplify my dbopen.pl to the 
following slightly shorter version:

# the install_driver needs the database name, and is fussy about the
# case. Lowercase our AMISYS standard environment var AMISYS_DBTYPE

$dbtype = "\L$ENV{'AMISYS_DBTYPE'}";

   if ($dbtype eq 'oracle')   { $driver_name = "Oracle"; }
elsif ($dbtype eq 'db2')      { $driver_name = "DB2";    }
else { die "Unprepared to deal with database type $dbtype", "\n"; };

if ($dbtype eq 'oracle') {
$dbh = DBI->connect('',
                    $ENV{AMISYS_USERNAME},
                    $ENV{AMISYS_PASSWORD},
                    $driver_name);}
elsif ($dbtype eq 'db2') {
$dbh = DBI->connect($ENV{'DB2DBDFT'},
                    $ENV{AMISYS_USERNAME},
                    $ENV{AMISYS_PASSWORD},
                    $driver_name);};

Thanks again to everybody for helping out!

  
Rich Roemer
Programmer, Open Systems 
AMISYS Managed Care Systems Inc.
5th floor
30 W. Gude Dr.
Rockville MD 20850
(301) 251-8600 (main line)
(301) 738-7305 (direct line)
(301) 251-2925 (fax)
http://www.amcsi.com (web page)
rich_r@amcsi.com  (e-mail)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20283-44@oink>;
          Thu, 23 Jan 1997 23:37:12 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854061560:9:27018:22; Thu, 23 Jan 97 23:19:20 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017024; 23 Jan 97 23:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA27175 for dbi-users-real; Thu, 23 Jan 1997 14:15:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA27171 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 14:15:40 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id OAA03898;
          Thu, 23 Jan 1997 14:15:08 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA19568;
          Thu, 23 Jan 1997 14:14:41 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id OAA16237;
          Thu, 23 Jan 1997 14:14:41 -0800
Date: Thu, 23 Jan 1997 14:14:41 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701232214.OAA16237@anubis.informix.com>
To: dbi-users@fugue.com, jcbodnar@mail.utexas.edu
Cc: johnl@informix.com
Subject: Re: make test fails for DBD-Informix-0.25

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Your LD_LIBRARY_PATH is not set at all, so the dynamic loader doesn't know
from where to pick up the Informix ESQL/C shared libraries.  You need to
add:

export LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql

to your environment -- or build with static libraries, or create symlinks
in /usr/lib pointing to the ESQL/C shared libraries, or ...

It is a common problem; I just set up my environment at login and let it
all take care of itself that way.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>Date: Thu, 23 Jan 1997 15:46:36 -0500
>From: Jason Bodnar <jcbodnar@mail.utexas.edu>
>
>perl Makefile.PL and make run fine. No compiler errors or warnings.
>
>make test yields numerous errors like:
>
>PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
>-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/pe
>rl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests
>@ARGV;' t/*.t
>t/basic00...........install_driver(Informix) failed: Can't load
>'./blib/arch/auto/DBD/Informix/Informix.so' for module DBD::In
>formix: ld.so.1: /usr/local/bin/perl: fatal: libixsql.so: can't open file:
>errno=2 at /usr/local/lib/perl5/DynaLoader.pm line
>140.
>
>ENVIRONEMT:
>
>$ env | sort
>DBD_INFORMIX_DATABASE=test
>DBD_INFORMIX_PASSWORD=informix
>DBD_INFORMIX_SERVER=ifmx_online
>DBD_INFORMIX_USEERNAME=informix
>DBD_INFORMIX_USERNAME=informix
>HOME=/home/jason
>HOSTTYPE=sparc
>HZ=100
>INFORMIXDIR=/home/archive/informix
>INFORMIXSERVER=ifmx_online
>INFORMIXSQLHOSTS=/home/archive/informix/etc/sqlhosts.ifmx
>INFORMIXTERM=terminfo
>LOGNAME=jason
>MAIL=/var/mail/jason
>NS_NEWSCONF=/home/archive/ns-news/news-Taz/config/nsnews.conf
>ONCONFIG=onconfig.ifmx
>OSTYPE=SunOS5
>PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/ucb:/etc:.:/usr/ccs/bin/:/u
>sr/ccs/lib:/home/msql/bin:/usr/nsent-h/Livewire/bi
>n:/home/archive/informix/bin:/home/archive/ns-enterprise/bin/https
>PS1=\h:\w$
>SHELL=/usr/local/bin/bash
>SHLVL=2
>TERM=vt100
>TERMINFO=/usr/share/lib/terminfo
>TZ=US/Central
>_=/usr/bin/env
>
>Informix-ESQL/C: 7.20 UC1
>perl 5.003
>
>$ perl -e 'use Config; print Config::myconfig()'
>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=solaris, osver=2.5.1, archname=sun4-solaris
>    uname='sunos taz 5.5.1 generic sun4u sparc sunw,ultra-1 '
>    hint=recommended, useposix=true, d_sigaction=define
>  Compiler:
>    cc='cc', optimize='-O', gccversion=2.5.6
>    cppflags='-I/usr/local/include'
>    ccflags ='-I/usr/local/include'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>  Linker and Libraries:
>    ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
>    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>    libc=/lib/libc.so, so=so
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <21980-0@oink>;
          Fri, 24 Jan 1997 07:35:52 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854063581:5:26503:0; Thu, 23 Jan 97 23:53:01 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-6.mail.demon.net 
          id aa623693; 23 Jan 97 23:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA27280 for dbi-users-real; Thu, 23 Jan 1997 14:59:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from amcsi.com (router.amcsi.com [198.240.73.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA27276 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 14:59:21 -0800 (PST)
Received: from mail.amcsi.com (mail.amcsi.com [198.99.153.3]) 
          by amcsi.com (8.6.11/8.6.12) with ESMTP id SAA01422 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 18:09:13 -0500
Received: from ADVANTA_COMM/MAILQ by mail.amcsi.com (Mercury 1.21);
          23 Jan 97 19:03:33 +500
Received: from MAILQ by ADVANTA_COMM (Mercury 1.21); 23 Jan 97 19:03:03 +500
From: Rich Roemer <rich_r@amcsi.com>
Organization: Amisys Managed Care Systems Inc.
To: dbi-users@fugue.com
Date: Thu, 23 Jan 1997 19:03:00 EST
Subject: how determine size of database fields in select.
Priority: normal
X-mailer: Pegasus Mail for Windows (v2.23)
Message-ID: <AEFCF80A6A@mail.amcsi.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Ok you dbd/dbi experts, here's a good question about the use of dbd!

Given that I have to extract data from  databases tables and write it out to
 column aligned flat files like the following example, how can 
I enhance the script to interogate the database to find 
out the type and size of each of the returned fields so that I don't 
have to hard-code the type and size in the printf statement?
I don't mean the size of the returned data on each row, the size of 
the field that the data came from.  And the script has to be able to 
run against oracel/db2/sybase etc.

@cursor = $dbh->prepare( "select prov_nbr, \
                          policy_nbr,  \
                          firstname,    \
                          lastname,     \
                          ymdbirth from provider" );
@cursor->execute;
while ( @items = @cursor->fetchrow ) {
    foreach(@items) { $_ = ' ' unless defined $_ };   # fixes nulls
    printf OUT1 "%12s%14s%14s%14s%10s%1s", @items,"\n";
  }

I'd like to do the database field type/size interogation once, before 
the while loop.  Then I would use that info to build a format 
statement that can replace the hardcoded "%12s.." stuff.

For extra credit.... let me know where this kind of documention can 
be found!  I still haven't found much doc or examples on the use of 
dbd/dbi.

Thanks very much!
Rich Roemer
Programmer, Open Systems 
AMISYS Managed Care Systems Inc.
5th floor
30 W. Gude Dr.
Rockville MD 20850
(301) 251-8600 (main line)
(301) 738-7305 (direct line)
(301) 251-2925 (fax)
http://www.amcsi.com (web page)
rich_r@amcsi.com  (e-mail)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21982-7@oink>;
          Fri, 24 Jan 1997 07:36:26 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854069125:10:17387:1; Fri, 24 Jan 97 01:25:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901470; 24 Jan 97 1:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA27568 for dbi-users-real; Thu, 23 Jan 1997 16:19:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.inw.net (ns.inw.net [206.28.240.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA27564 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 16:19:44 -0800 (PST)
Received: from ppp08.madisontelco.com by ns.inw.net;
          (5.65v3.2/1.1.8.2/12Dec95-0444PM) id AA09972;
          Thu, 23 Jan 1997 18:19:40 -0600
Message-Id: <9701240019.AA09972@ns.inw.net>
Comments: Authenticated sender is <mpayne@mail.madisontelco.com>
From: Mike Payne <mpayne@madisontelco.com>
To: dbi-users@fugue.com
Date: Thu, 23 Jan 1997 18:23:16 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
Subject: DBI, DBD and Windows NT
Reply-To: mpayne@madisontelco.com
X-Confirm-Reading-To: mpayne@madisontelco.com
X-Pmrqc: 1
Priority: normal
X-Mailer: Pegasus Mail for Windows (v2.40)

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Does anyone know if there is a module that I can use to access an 
Oracle database from a Windows NT server using Perl?

Thanks,
Mike
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Mike Payne
-----------------------------
mpayne@madisontelco.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21982-9@oink>;
          Fri, 24 Jan 1997 07:36:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854069277:10:17833:4; Fri, 24 Jan 97 01:27:57 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017775; 24 Jan 97 1:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA27576 for dbi-users-real; Thu, 23 Jan 1997 16:20:03 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA27569 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 16:19:56 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id QAA09292;
          Thu, 23 Jan 1997 16:19:24 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA22979;
          Thu, 23 Jan 1997 16:19:17 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id QAA16477;
          Thu, 23 Jan 1997 16:19:17 -0800
Date: Thu, 23 Jan 1997 16:19:17 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701240019.QAA16477@anubis.informix.com>
To: dbi-users@fugue.com, walkerk@fdhc.state.fl.us
Cc: johnl@informix.com
Subject: Re: DBD::Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Ken,

I've copied this response to dbi-users@fugue.com because the circumstances
you describe are likely to be very common, so I can supply the answer once
and maybe other people will note it too.

>From: "Walker, Ken" <walkerk@fdhc.state.fl.us>
>Date: Thu, 23 Jan 1997 18:45:42 -0500
>
>I have downloaded and installed DBD::Informix and all is working well.

Good.

>What I would like to do is have my Perl, CGI, DBI, DBD items installed on
>a web server which does not have any Informix installed.

You cannot use Informix software without at least Informix-Connect being
installed on the machine.  You don't have to have a development system, but
you must have this minimal runtime system (which includes the shared
libraries you will need with DBD::Informix).

>The perl programs would be able to access data on one of two other servers
>with Informix Online installed.  This may be a licensing issue with
>Informix,

It certainly is a licensing issue.  Informix-Connect will give you the
correct software, and you will need to have at least that installed on the
machine where you wish to run Perl with DBD::Informix.

>but I wondered if I just moved the *.so files ....esql/
>to the web server if the DBD::Informix would function properly?

No.  Technically, it would require a number of other files, not least the
gls and msg sub-directories.  Also the shared libraries in lib (as well as
those in lib/esql).  And probably other things too.  Legally, it requires
Informix-Connect, or Informix-ESQL/C.

>If not it seems that I am required to have Informix and my web server
>installed on the same machine.

No, this is not necessary.  But you do need the basic Informix software on
your machine.

>BTW we are running on Solaris 2.4 with the Informix 7.21 Online.

I'm using Solaris 2.5.1 and OnLine 7.21; pretty close.

>Thanks for DBD::Informix and any help you might be able to provide.

Glad you find it useful.  I hope my comments are helpful.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21982-15@oink>;
          Fri, 24 Jan 1997 07:37:08 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854071503:10:24341:0; Fri, 24 Jan 97 02:05:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909132; 24 Jan 97 2:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA27749 for dbi-users-real; Thu, 23 Jan 1997 17:09:52 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from huey.disney.com (0@huey.disney.com [204.128.192.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA27745 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 17:09:51 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id RAA24232 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 17:09:48 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA06004 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Thu, 23 Jan 1997 17:03:12 -0800
Received: by wdigl000.is.wdi.disney.com with Microsoft Exchange (IMC 4.0.837.3) 
          id <01BC0950.3C0140C0@wdigl000.is.wdi.disney.com>;
          Thu, 23 Jan 1997 17:09:46 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-970124010825Z-43575@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>, 
    "'mpayne@madisontelco.com'" <mpayne@madisontelco.com>
Subject: RE: DBI, DBD and Windows NT
Date: Thu, 23 Jan 1997 17:08:25 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Dave Roth's ODBC module from:
http://www.roth.net/odbc/

and a 32 bit odbc driver from www.oracle.com

I've made parts of it work. I started months ago 
when oracle's 32bit drivers were really rough.
I've since gotten newer ones to work w/ excel etc,
but haven't had success connecting w/ this package yet.

Many others have reported success, however.

>----------
>From: 	Mike Payne[SMTP:mpayne@madisontelco.com]
>Sent: 	Thursday, January 23, 1997 10:23
>To: 	dbi-users@fugue.com
>Subject: 	DBI, DBD and Windows NT
>
>    *** From dbi-users -- To unsubscribe, see the end of this message.
>***
>
>Does anyone know if there is a module that I can use to access an 
>Oracle database from a Windows NT server using Perl?
>
>Thanks,
>Mike
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>Mike Payne
>-----------------------------
>mpayne@madisontelco.com
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
>------------------------------------------------------------------------
>------
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the
>web page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed
>by hand.
>------------------------------------------------------------------------
>------
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21982-17@oink>;
          Fri, 24 Jan 1997 07:37:20 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854071717:10:24938:24; Fri, 24 Jan 97 02:08:37 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1024900; 24 Jan 97 2:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA27697 for dbi-users-real; Thu, 23 Jan 1997 16:57:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from inet-smtp-gw-1.us.oracle.com (inet-smtp-gw-1.us.oracle.com [192.86.155.81]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA27693 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 16:57:25 -0800 (PST)
Received: from mailsun3-fddi.us.oracle.com by inet-smtp-gw-1.us.oracle.com 
          with ESMTP (8.6.12/37.7) id QAA28007; Thu, 23 Jan 1997 16:57:24 -0800
Received: by mailsun3-fddi.us.oracle.com (8.7.5/37.9) id QAA18835;
          Thu, 23 Jan 1997 16:54:04 -0800 (PST)
Message-Id: <199701240054.QAA18835@mailsun3-fddi.us.oracle.com>
Date: 23 Jan 97 16:06:27 -0800
From: CGOODRIC <CGOODRIC@US.ORACLE.COM>
To: dbi-users@fugue.com
Subject: Problems with DBI-Oracle-0.43 on Solaris 2.4 / Oracle 7.3.2.1
MIME-Version: 1.0
X-Mailer: Oracle InterOffice (version 4.0.4.0.25)
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

 
I'm having trouble getting the DBI-Oracle software to work correctly. All the  
perl scripts I've written exit mysteriously when &ora_login is called. 
 
My system has the following: 
Sun SparcCenter 1000 running Solaris 2.4 
Perl 5.003 
GCC v2.7.2 
Oracle 7.3.2.1 ($ORACLE_HOME=/new1/oracle/product/7.3.2) 
DBI v0.73 
DBD-Oracle v0.43 
 
The following is the captured output that is requested in the README file: 
 
Script started on Thu Jan 23 15:12:18 1997 
mpserv1% perl Makefile.PL 
 
 Configuring DBD::Oracle ... 
 
>>>	Remember to actually *READ* the README file! 
   	Especially if you have any problems. 
 
Using Oracle in /new1/oracle/product/7.3.2 
Reading /new1/oracle/product/7.3.2/precomp/demo/proc/proc.mk. 
Reading /new1/oracle/product/7.3.2/precomp/env_precomp.mk. 
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error. 
Deleting -lthread from link list as a possible workround. 
System: perl5.003 sunos mpserv1 5.4 generic_101945-27 sun4d sparc  
Compiler: gcc -O  
Linker:   /usr/ccs/bin/ld 
Oracle proc.mk would have used these values but we override them: 
  CC:       cc 
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS)  
$(SHARED_CFLAG) $(ENV_FLAGS) 
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib  
-R/opt/SUNWcluster/lib 
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon  
-lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3  
-lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl -lm  
 
Checking if your kit is complete... 
Looks good 
 
Warning: By default new modules are installed into your 'site_lib' 
directories. Since site_lib directories come after the normal library 
directories you must delete any old DBD::Oracle files and directories from 
your 'privlib' and 'archlib' directories and their auto subdirectories. 
 
Writing Makefile for DBD::Oracle 
mpserv1% make 
cp Oraperl.pm ./blib/lib/Oraperl.pm 
cp Oracle.pm ./blib/lib/DBD/Oracle.pm 
cp oraperl.ph ./blib/lib/oraperl.ph 
perl -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5  
/usr/local/lib/perl5/ExtUtils/xsubpp  -typemap  
/usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc  
Oracle.c 
gcc -c -I. -I/new1/oracle/product/7.3.2/precomp/public  
-I/new1/oracle/product/7.3.2/rdbms/demo  
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI  
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI  -O     -DVERSION=\"0.43\"   
-DXS_VERSION=\"0.43\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE  
-Wall -pedantic -Wno-comment -Wtraditional Oracle.c 
Oracle.c: In function `XS_DBD__Oracle__db_disconnect': 
Oracle.c:148: warning: ANSI C forbids braced-groups within expressions 
Oracle.c: In function `XS_DBD__Oracle__st_execute': 
Oracle.c:285: warning: ANSI C forbids braced-groups within expressions 
Oracle.c:294: warning: ANSI C forbids braced-groups within expressions 
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow': 
Oracle.c:335: warning: ANSI C forbids braced-groups within expressions 
Oracle.c:336: warning: ANSI C forbids braced-groups within expressions 
Oracle.c:342: warning: ANSI C forbids braced-groups within expressions 
Oracle.c: In function `XS_DBD__Oracle__st_finish': 
Oracle.c:431: warning: ANSI C forbids braced-groups within expressions 
Oracle.c:435: warning: ANSI C forbids braced-groups within expressions 
Oracle.c: In function `boot_DBD__Oracle': 
Oracle.c:475: warning: ANSI C forbids braced-groups within expressions 
gcc -c -I. -I/new1/oracle/product/7.3.2/precomp/public  
-I/new1/oracle/product/7.3.2/rdbms/demo  
-I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI  
-I/usr/local/lib/perl5/sun4-solaris/5.003/DBI  -O     -DVERSION=\"0.43\"   
-DXS_VERSION=\"0.43\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE  
-Wall -pedantic -Wno-comment -Wtraditional dbdimp.c 
dbdimp.c: In function `dbd_db_FETCH': 
dbdimp.c:299: warning: value computed is not used 
dbdimp.c: In function `dbd_bind_ph': 
dbdimp.c:707: warning: value computed is not used 
dbdimp.c:719: warning: value computed is not used 
dbdimp.c: In function `dbd_st_blob_read': 
dbdimp.c:1030: warning: ANSI C forbids braced-groups within expressions 
dbdimp.c: In function `dbd_st_FETCH': 
dbdimp.c:1197: warning: value computed is not used 
dbdimp.c: At top level: 
dbdimp.c:161: warning: `dump_error_status' defined but not used 
Running Mkbootstrap for DBD::Oracle () 
chmod 644 Oracle.bs 
LD_RUN_PATH="/new1/oracle/product/7.3.2/lib:/lib" gcc -o  
blib/arch/auto/DBD/Oracle/Oracle.so -G -L/usr/local/lib Oracle.o  dbdimp.o  
/new1/oracle/product/7.3.2/lib/__fstd.o   -L/new1/oracle/product/7.3.2/lib  
-lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet  
-lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3  
-lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl -lm  
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so 
cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs 
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs 
Manifying ./blib/man3/DBD::Oraperl.3 
mpserv1% make test TEST_VERBOSE=1 
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib  
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use  
Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t 
t/base..............1..5 
ok 1 
ok 2 
ok 3 
ok 4 
ok 5 
ok 
All tests successful. 
Files=1,  Tests=5,  1 secs ( 0.73 cusr  0.20 csys =  0.93 cpu) 
PERL_DL_NONLAZY=1 /bin/perl -I./blib/arch -I./blib/lib  
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl 
Oraperl test application $Revision: 1.28 $ 
 
Oraperl Emulation Interface version 1.31  
Oracle Driver 0.43 
DBI-0.73 Switch by Tim Bunce, version 0.73 
 
 
Connecting 
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended) 
 as 'www_mppadm/manager@mpp' (via ORACLE_USERID env var or default - recommend  
name/passwd@dbname) 
(ORACLE_SID='mpp', TWO_TASK='') 
Fields:  4 
Names:   'NUM_T',	'DATE_T',	'CHAR_T',	'NULL_T' 
Lengths: '40',	'75',	'30',	'0' 
Types:   '2',	'12',	'1',	'1' 
Data rows: 
    fetch: 79.2 23-JAN-97 WWW_MPPADM NULL 
 
csr reassigned (forces destruction)... 
Fetch list of tables: 
Fetched: DUAL 
Fetched: SYSTEM_PRIVILEGE_MAP 
Fetched: TABLE_PRIVILEGE_MAP 
Fetched: STMT_AUDIT_OPTION_MAP 
Test ora_do with harmless non-select statement (set transaction read only) 
Expect error message: 
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of  
transaction (DBD: oexec error) 
csr out of scope... 
ora_logoff... 
lda out of scope... 
 
Testing repetitive connect/open/close/disconnect: 
Expect sequence of digits, no other messages: 
1 2 3 4 5  
 
Test interaction of explicit close/logoff and implicit DESTROYs 
Expect just 'done.', no other messages: 
done. 
 
Testing row cache (5). 
Test completed in 1 seconds. 
 
Testing PL/SQL interaction. 
Testing bind_param_inout. Expect '200', '3800', '75800': 
param='200' 
param='3800' 
param='75800' 
 
Test complete (6 seconds). 
If the tests above have produced the 'expected' output then they have passed. 
See README about Bad free() warnings! 
mpserv1% uname -a 
SunOS mpserv1 5.4 Generic_101945-44 sun4d sparc 
mpserv1% perl -V 
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration: 
  Platform: 
    osname=solaris, osver=2.4, archname=sun4-solaris 
    uname='sunos mpserv1 5.4 generic_101945-27 sun4d sparc ' 
    hint=previous, useposix=true, d_sigaction=define 
  Compiler: 
    cc='gcc', optimize='-O', gccversion=2.7.2 
    cppflags='' 
    ccflags ='' 
    stdchar='unsigned char', d_stdstdio=define, usevfork=false 
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define 
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15 
  Linker and Libraries: 
    ld='gcc', ldflags =' -L/usr/local/lib' 
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib 
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt 
    libc=/lib/libc.so, so=so 
  Dynamic Linking: 
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' ' 
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib' 
 
@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5  
/usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl  
/usr/local/lib/perl5/solaris . 
mpserv1% cat blat 
#!/usr/local/bin/perl 
use Oraperl; 
$SIG{__WARN__} = sub { $_[0] =~ /^Bad free/ ? dump : warn $_[0]; }; 
  
print "got here 1\n"; 
$LDA = &ora_login ('', "web_mppadmin/manager\@mpp", '') || die "$!\n"; 
print "got here 2\n"; 
$csr = &ora_open ($LDA, "select table_name from USER_TABLES") || die  
$ora_errstr; 
print "got here 3\n"; 
while(@fields = &ora_fetch($csr)){ 
print "got here 4\n"; 
    print "Fetched: "; print "@fields\n"; 
} 
print "got here 5\n"; 
&ora_close ($csr); 
print "got here 6\n"; 
&ora_logoff ($LDA); 
print "got here 7\n"; 
mpserv1% blat 
got here 1 
  
Abort(coredump) 
mpserv1% adb /usr/local/bin/perl 
core file = core -- program ``blat'' 
SIGIOT 6: abort 
$c 
?(?) + 7fffffff 
_PROCEDURE_LINKAGE_TABLE_() + 12c 
Perl_my_unexec(0x1,0x111268,0x0,0x0,0x0,0xe2491d98) + c 
Perl_pp_goto(0x0,0x9e448,0x31,0x10bb88,0x0,0x0) + 9b0 
Perl_pp_dump(0x67120,0xf,0x10bbb6,0x0,0x0,0x0) + 4 
Perl_runops(0x160b08,0xdffff878,0x9c400,0x0,0x0,0x1) + 28 
perl_call_sv(0xa45ac,0x9f410,0xdffff90c,0x0,0x88,0x0) + 430 
Perl_warn(0xa45ac,0x9be08,0x3,0x103400,0x0,0x1c) + 114 
[1] + Stopped (user)           adb /usr/local/bin/perl 
mpserv1% exit 
 
script done on Thu Jan 23 15:15:00 1997 
 
script done on Thu Jan 23 15:15:00 1997 
 
 
Thanx, 
 
Calvin. 
 
___________________________________________________________________________ 
 
 .  .		    Calvin Goodrich	  "Play for blood! Play Calvinball!" 
 |\/|assively 	    Systems Manager, MPP   - Calvin & Hobbes 
 | _|_		    Oracle, Inc. 
   |__)arallel	    Phone: 415/506-9680 
   | ___	    Fax:   415/506-7409 
     |__)roducts    Pager: 800/SKYPAGE PIN#4954355 or 
     |		           4954355@skymail.com (<240 chars) 
		    Email: cgoodric@us.oracle.com 
___________________________________________________________________________ 
    For MPP Technical and Marketing questions email INFOMPP@us.oracle.com 
 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <21982-25@oink>;
          Fri, 24 Jan 1997 07:38:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854074099:10:01600:0; Fri, 24 Jan 97 02:48:19 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1001575; 24 Jan 97 2:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA27822 for dbi-users-real; Thu, 23 Jan 1997 17:40:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gate.chips.ibm.com (gate.chips.ibm.com [192.91.197.61]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA27818 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 17:40:43 -0800 (PST)
Received: from mailrelay.btv.ibm.com (mailrelay.btv.ibm.com [9.66.4.12]) 
          by gate.chips.ibm.com (8.8.5/8.8.5) with ESMTP id UAA129840;
          Thu, 23 Jan 1997 20:40:11 -0500
Received: from postoffice.btv.ibm.com (postoffice.btv.ibm.com [9.66.4.40]) 
          by mailrelay.btv.ibm.com (8.8.5/8.8.5) with ESMTP id UAA29850;
          Thu, 23 Jan 1997 20:40:07 -0500
Received: from alta.btv.ibm.com (alta.btv.ibm.com [9.66.96.90]) 
          by postoffice.btv.ibm.com (8.8.5/8.8.5) with SMTP id UAA76984;
          Thu, 23 Jan 1997 20:40:10 -0500
Received: by btv.ibm.com (AIX 4.1/UCB 5.64/fs4.03) id AA31048;
          Thu, 23 Jan 1997 20:40:09 -0500
Message-Id: <9701240140.AA31048@btv.ibm.com>
To: Rich Roemer <rich_r@amcsi.com>
Cc: dbi-users@fugue.com
X-Note-Format: RFC822
Subject: Re: how determine size of database fields in select.
In-Reply-To: <AEFCF80A6A@mail.amcsi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Id: <49732.854070009.1@alta.btv.ibm.com>
Date: Thu, 23 Jan 1997 20:40:09 -0500
From: Jim Mecke <mecke@btv.ibm.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Your message dated: Thu, 23 Jan 1997 19:03:00 EST
>
>I'd like to do the database field type/size interogation once, before 
>the while loop.  Then I would use that info to build a format 
>statement that can replace the hardcoded "%12s.." stuff.
>
AT least for DB2, you get this information from the system tables ( 
assuming you have select auth on them).

I use something like:

 "select colname,colno,typename,length,nulls from syscat.columns where tabschema='YOUR_SCHEMA' and tabname='YOUR_TABLE_NAME' order by colno"

>For extra credit.... let me know where this kind of documention can 
>be found!  I still haven't found much doc or examples on the use of 
>dbd/dbi.
>
I think I found the system table descriptions in the DB2 Admin guide.

Regards...Jim
      __________________________________________________________________
    /   Jim Mecke - Analog and Mixed Signal Solutions (802) 769-6269   /
   /  mecke@btv.ibm.com  IBM Microelectronics,  Burlington VT         /
  /_________________________________________________________________ /



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22041-7@oink>;
          Fri, 24 Jan 1997 07:39:52 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854082447:10:21687:0; Fri, 24 Jan 97 05:07:27 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021678; 24 Jan 97 5:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA28827 for dbi-users-real; Thu, 23 Jan 1997 20:07:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from DGS.dgsys.com (root@dgs.dgsys.com [204.97.64.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id UAA28823 
          for <dbi-users@fugue.com>; Thu, 23 Jan 1997 20:07:53 -0800 (PST)
Received: from DGS (dgs.dgsys.com) by DGS.dgsys.com (5.0/SMI-SVR4) id AA04870;
          Thu, 23 Jan 1997 23:04:27 -0500
Date: Thu, 23 Jan 1997 23:04:27 -0500 (EST)
From: Robert Nicholson <steffi@dgs.dgsys.com>
X-Sender: steffi@DGS
To: dbi-users@fugue.com
Subject: Output parameters?
Message-Id: <Pine.SOL.3.94.970123230221.2727C-100000@DGS>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

OK Oracle is brain dead when it comes to Stored Procedures. You cannot
return multiple result sets without resorting to tacky output parameters.
I know last time I looked the Oracle module did'nt support them. Is there
any plans to add support for them or does everybody have the luxury of
working with Sybase? and _don't talk to me about cursor variables and
plsql!



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25296-0@oink>;
          Fri, 24 Jan 1997 15:21:33 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854118920:9:22982:14; Fri, 24 Jan 97 15:15:20 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1027556; 24 Jan 97 15:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id FAA29941 for dbi-users-real; Fri, 24 Jan 1997 05:31:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from fluxus.as220.org (bjepson@bjepson.tiac.net [207.60.59.166]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id FAA29937 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 05:31:37 -0800 (PST)
Received: (from bjepson@localhost) by fluxus.as220.org (8.8.0/8.8.0) 
          id IAA00121; Fri, 24 Jan 1997 08:24:31 -0500
Date: Fri, 24 Jan 1997 08:24:30 -0500 (EST)
From: Brian Jepson <bjepson@ids.net>
To: Jason Venner <jason@idiom.com>
cc: dbi-users@fugue.com
Subject: Re: What happened to the generic DBD:ODBC project?
In-Reply-To: <Pine.LNX.3.95.970121085104.144D-100000@fluxus.as220.org>
Message-ID: <Pine.LNX.3.95.970124082150.116A-100000@fluxus.as220.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Tue, 21 Jan 1997, Brian Jepson wrote:

> 
   (lots of stuff about FreeODBC deleted)
> 
[...]
> 
> In any case, once we get something happening with this, we will be using
> this list to talk about the development, as we planned to do over a year
  ^^^^^^^^^
[...]

Oops - sorry. That should have read dbi-dev - I spaced out and started
globbing after the fourth character of the list name :-) 

Brian Jepson * (bjepson@ids.net)  *  http://www.ids.net/~bjepson
  Int(ra|er)net Database Developer, Author, Crypto-Fluxologist
Non-Prophet Arts Technology Flux:      http://www.ids.net/~as220
WWW/Database/NT,Java/Database: http://www.ids.net/~bjepson/books



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25847-1@oink>;
          Fri, 24 Jan 1997 17:07:45 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854125522:10:05076:3; Fri, 24 Jan 97 17:05:22 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005026; 24 Jan 97 17:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA00317 for dbi-users-real; Fri, 24 Jan 1997 07:59:58 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailhost.auspex.co.uk (ns.auspex.co.uk [195.11.31.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA00304 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 07:54:35 -0800 (PST)
Received: from uk.auspex.com (mailhub.auspex.com [144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id GAA01067;
          Fri, 24 Jan 1997 06:40:49 GMT
Received: from balzac.fr.auspex.com by uk.auspex.com (4.1/SMI-4.1) id AA11048;
          Fri, 24 Jan 97 06:42:02 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id HAA21586; Fri, 24 Jan 1997 07:41:59 +0100 (MET)
Message-Id: <32E859B6.446B9B3D@Auspex.Com>
Date: Fri, 24 Jan 1997 07:41:58 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: Rich Roemer <rich_r@amcsi.com>
Cc: dbi-users@fugue.com
Subject: Re: how determine size of database fields in select.
References: <AEFCF80A6A@mail.amcsi.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi Rich,

> Given that I have to extract data from  databases tables and write it out to
>  column aligned flat files like the following example, how can
> I enhance the script to interogate the database to find
> out the type and size of each of the returned fields so that I don't
> have to hard-code the type and size in the printf statement?

In the Oraperl distribution (for Perl v4) one of the examples is a
script (called "sql") which does exactly that. It should run fine
under DBD's Oraperl emulation, or you could use it as a starting
point for a native DBI version.

> For extra credit.... let me know where this kind of documention can
> be found!  I still haven't found much doc or examples on the use of
> dbd/dbi.

Everything that was ever distributed for Oraperl is applicable to
DBD:Oracle in Oraperl emulation mode.

	Kevin

"Oraperl's dead, but it won't lie down"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26038-5@oink>;
          Fri, 24 Jan 1997 17:52:58 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854128351:9:20700:3; Fri, 24 Jan 97 17:52:31 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa920676; 24 Jan 97 17:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA00402 for dbi-users-real; Fri, 24 Jan 1997 08:40:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA00398 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 08:40:09 -0800 (PST)
Received: by gw.home.vix.com; id IAA26308; Fri, 24 Jan 1997 08:30:48 -0800
X-btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us
Received: from uk.auspex.com (mailhub.auspex.com [144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id GAA01067;
          Fri, 24 Jan 1997 06:40:49 GMT
Received: from balzac.fr.auspex.com by uk.auspex.com (4.1/SMI-4.1) id AA11048;
          Fri, 24 Jan 97 06:42:02 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id HAA21586; Fri, 24 Jan 1997 07:41:59 +0100 (MET)
Message-Id: <32E859B6.446B9B3D@Auspex.Com>
Date: Fri, 24 Jan 1997 07:41:58 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: Rich Roemer <rich_r@amcsi.com>
Cc: dbi-users@fugue.com
Subject: Re: how determine size of database fields in select.
References: <AEFCF80A6A@mail.amcsi.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi Rich,

> Given that I have to extract data from  databases tables and write it out to
>  column aligned flat files like the following example, how can
> I enhance the script to interogate the database to find
> out the type and size of each of the returned fields so that I don't
> have to hard-code the type and size in the printf statement?

In the Oraperl distribution (for Perl v4) one of the examples is a
script (called "sql") which does exactly that. It should run fine
under DBD's Oraperl emulation, or you could use it as a starting
point for a native DBI version.

> For extra credit.... let me know where this kind of documention can
> be found!  I still haven't found much doc or examples on the use of
> dbd/dbi.

Everything that was ever distributed for Oraperl is applicable to
DBD:Oracle in Oraperl emulation mode.

	Kevin

"Oraperl's dead, but it won't lie down"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26058-3@oink>;
          Fri, 24 Jan 1997 17:57:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854128619:10:21785:0; Fri, 24 Jan 97 17:56:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021757; 24 Jan 97 17:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA00458 for dbi-users-real; Fri, 24 Jan 1997 08:52:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from steele.ohsu.EDU (steele.ohsu.edu [137.53.1.40]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA00454 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 08:52:53 -0800 (PST)
Received: by steele.ohsu.EDU (SMI-8.6/SMI-SVR4) id IAA22118;
          Fri, 24 Jan 1997 08:51:21 -0800
Date: Fri, 24 Jan 1997 08:51:20 -0800 (PST)
From: Li Zhang <zhangl@ohsu.edu>
X-Sender: zhangl@steele
To: dbi-users@fugue.com
Subject: Oraperl
Message-ID: <Pine.SOL.3.91.970124084655.20316A@steele>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Does anyone connect the Oracle to www site without using DBI/DBD?  I am 
just wondering if there is another way to connect Oracle database from www.

Your answer will be greately appreciated.

Li



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27314-1@oink>;
          Fri, 24 Jan 1997 19:17:49 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854133325:9:21572:9; Fri, 24 Jan 97 19:15:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa921523; 24 Jan 97 19:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA00694 for dbi-users-real; Fri, 24 Jan 1997 10:13:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from inet-smtp-gw-1.us.oracle.com (inet-smtp-gw-1.us.oracle.com [192.86.155.81]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA00690 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 10:13:07 -0800 (PST)
Received: from mailsun3-fddi.us.oracle.com by inet-smtp-gw-1.us.oracle.com 
          with ESMTP (8.6.12/37.7) id KAA18855; Fri, 24 Jan 1997 10:13:07 -0800
Received: by mailsun3-fddi.us.oracle.com (8.7.5/37.9) id KAA05691;
          Fri, 24 Jan 1997 10:09:55 -0800 (PST)
Message-Id: <199701241809.KAA05691@mailsun3-fddi.us.oracle.com>
Date: 24 Jan 97 09:57:47 -0800
From: "AENG.US.ORACLE.COM" <AENG@US.ORACLE.COM>
To: dbi-users@fugue.com
Subject: DBI/DBD software
MIME-Version: 1.0
X-Mailer: Oracle InterOffice (version 4.0.4.0.25)
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi, 
 
Could someone point me to where I can get a copy of DBI/DBD? 
 
Thanks 
 
Andrew


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27349-4@oink>;
          Fri, 24 Jan 1997 19:28:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854134050:9:25147:43; Fri, 24 Jan 97 19:27:30 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925610; 24 Jan 97 19:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA00738 for dbi-users-real; Fri, 24 Jan 1997 10:24:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ibmmail.COM (ibmmail.com [199.171.26.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA00734 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 10:24:14 -0800 (PST)
Message-Id: <199701241824.KAA00734@toccata.fugue.com>
Received: from ibmmail by ibmmail.COM (IBM VM SMTP V2R3) with BSMTP id 1125;
          Fri, 24 Jan 97 13:23:35 EST
Date: Fri, 24 Jan 1997 10:07:30 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: dbi-users@fugue.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Calling stored procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have just installed DBD:Oracle 0.44 and DBI 0.74.  I need to call an Oracle   
stored procedure which returns results to me, such as ora_error and ora_error_  
id.  I assume this was not possible using oraperl, but is it possible using     
Perl5?  Maybe using the latest versions of DBD and DBI?  If so, if I can call   
stored procedures with output parameters, then how do I do it?  Thanks you for  
the help.                                                                       

Thanks,                                                                         
Greg Pellegrom                                                                  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04608-0@oink>;
          Mon, 27 Jan 1997 07:35:53 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854322441:5:11060:0; Sun, 26 Jan 97 23:47:21 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-6.mail.demon.net 
          id aa629326; 26 Jan 97 23:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA00428 for dbi-users-real; Sun, 26 Jan 1997 14:40:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from firewall2.cummins.com (firewall-user@fw2.cummins.com [205.230.25.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA00424 
          for <dbi-users@fugue.com>; Sun, 26 Jan 1997 14:40:48 -0800 (PST)
Received: by firewall2.cummins.com; id RAA08165; Sun, 26 Jan 1997 17:40:46 -0500
Received: from unknown(143.222.15.21) by firewall2.cummins.com via smap (3.2) 
          id xma008162; Sun, 26 Jan 97 17:40:23 -0500
Received: from blitzen.eeg.cummins.com by ceco1.cummins.com;
          (5.65v3.2/1.1.8.2/04Mar96-1128AM) id AA07237;
          Sun, 26 Jan 1997 17:40:23 -0500
Received: from prancer.eeg.cummins.com 
          by blitzen.eeg.cummins.com (5.x/SMI-SVR4) id AA25924;
          Sun, 26 Jan 1997 17:40:22 -0500
Received: from jughead by prancer.eeg.cummins.com (5.x/SMI-SVR4) id AA13303;
          Sun, 26 Jan 1997 17:40:21 -0500
Message-Id: <32EBDD55.633D@cummins.com>
Date: Sun, 26 Jan 1997 17:40:21 -0500
From: Vinay Sawardekar <v.sawardekar@cummins.com>
Organization: Cummins Engine Company, Inc.
X-Mailer: Mozilla 2.02 (X11; U; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Calling stored procedures
References: <199701241824.KAA00734@toccata.fugue.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This works for me:


# open cursor for the output
#
$csr = &ora_open($lda, q{
     BEGIN
        MY_STORED_PROCEDURE(:1, :2);
     END;
}) || die "ora_open failed: $ora_errstr";
 

# define data type attributes
#
$char_attrib = { ora_type => 1 }; # 1 = VARCHAR2 (ala oraperl2.4)
                                  # 5 = STRING   (ala oraperl2.4)
 
# prepare the parameters
#
$csr->bind_param       (1, $my_first_param,   $char_attrib);
$csr->bind_param_inout (2, \$my_second_param, $char_attrib);
 
# execute the statement
#
$csr->execute || die "execute $ora_errstr";


Notes:
In the above example, MY_STORED_PROCEDURE is a stored procedure that
will accept $my_first_param as input and return $my_second_param as
output.

Hope it helps.


Greg Pellegrom USAET(UTC -05:00) wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> I have just installed DBD:Oracle 0.44 and DBI 0.74.  I need to call an Oracle
> stored procedure which returns results to me, such as ora_error and ora_error_
> id.  I assume this was not possible using oraperl, but is it possible using
> Perl5?  Maybe using the latest versions of DBD and DBI?  If so, if I can call
> stored procedures with output parameters, then how do I do it?  Thanks you for
> the help.
> 
> Thanks,
> Greg Pellegrom
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04612-17@oink>;
          Mon, 27 Jan 1997 07:37:51 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854139047:9:23231:0; Fri, 24 Jan 97 20:50:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa923074; 24 Jan 97 20:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA00968 for dbi-users-real; Fri, 24 Jan 1997 11:32:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate (mailgate.badg.com [208.197.111.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA00964 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 11:32:51 -0800 (PST)
Received: from relay.badg.com by mailgate (5.x/SMI-SVR4) id AA01372;
          Fri, 24 Jan 1997 14:32:37 -0500
Received: from omega.badg.com by relay.badg.com 
          via smtpd (for po.badg.com [208.197.111.4]) with SMTP;
          24 Jan 1997 19:23:01 UT
Received: from syoung.badg.com by omega (SMI-8.6/SMI-SVR4) id OAA17616;
          Fri, 24 Jan 1997 14:39:09 -0500
Message-Id: <3.0.32.19970124143147.006a0578@omega.badg.com>
X-Sender: syoung@omega.badg.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Fri, 24 Jan 1997 14:31:55 -0500
To: Achmad Dimyati <dimyati@ai.astra.co.id>, dbi-users@fugue.com
From: "Shawn K. Young" <syoung@badg.com>
Subject: Re: where to get new DBI/DBD ?
Mime-Version: 1.0
Content-Type: text/enriched; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

<underline><color><param>0000,0000,fefe</param>ftp://ftp.hkstar.com/pub/CPAN/authors/Tim_Bunce/

</color></underline> Directory of /pub/CPAN/authors/Tim_Bunce  

<bold><bigger><bigger>Current directory is /pub/CPAN/authors/Tim_Bunce

</bigger></bigger></bold> 

----------------

			Welcome to ftp.hkstar.com Local time is Sat Jan 25 03:30:38 1997.  You
are user number 42 out of a possible 45.  All transfers to and from this
ftp server are logged. If you do not like this, disconnect now. This ftp
server supports compress and/or tar on the fly:
	Get:	<<directory>.tar.Z	Actions:	tar and compress
		<<file>.Z				compress Email suggestions and questions to
ftpadmin@hkstar.com. 

----------------

<</pub/CPAN/authors/>Up to higher level directory

 <</pub/CPAN/authors/Tim_Bunce/CHECKSUMS> CHECKSUMS                     
571 bytes Thu Jun 06 00:00:00 1996   <</pub/CPAN/authors/Tim_Bunce/DBD/>
DBD/                                     Tue Jul 23 00:00:00 1996
Directory  <</pub/CPAN/authors/Tim_Bunce/DBI/> DBI/                      
              Mon Jan 20 19:56:00 1997 Directory 


At 09:22 PM 1/22/97 +0700, Achmad Dimyati wrote:

>    *** From dbi-users -- To unsubscribe, see the end of this message.
***

>

>Hello, 

>

>I had install DBI 0.73 with DBD Oracle 0.43. But now I read there are
new

>DBI and DBD that DBI 0.74 and DBD Oracle 0.44. Where I can get this 
new

>DBD/DBD, because I had looking to www.hermetica.com but still the
latest

>version is DBI 0.73 and DBD Oracle 0.43 ?

>

>Thank's very much for your information.

>================================================================

>Life like route, sometimes we never know the right way.

>Believe me the right way is on God hand.

>================================================================

>Achmad Dimyati

>System Programming Team, IT-Division

>PT. Astra International

>Jakarta, Indonesia

>

>

>

>------------------------------------------------------------------------------

>To unsubscribe from this list, please visit http://www.fugue.com/dbi.

>If you are without web access, or if you are having trouble with the web
page,

>please send mail to dbi-request@fugue.com.   Please try to use the web

>page first - it will take a long time for your request to be processed
by hand.

>------------------------------------------------------------------------------

>

>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04826-43@oink>;
          Mon, 27 Jan 1997 07:50:35 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854149888:9:17298:0; Fri, 24 Jan 97 23:51:28 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1007811; 24 Jan 97 23:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA01519 for dbi-users-real; Fri, 24 Jan 1997 14:47:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from us.itd.umich.edu (0@stimpy.us.itd.umich.edu [141.211.164.7]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA01515 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 14:47:20 -0800 (PST)
From: dsj@us.itd.umich.edu
Received: from ren.us.itd.umich.edu by us.itd.umich.edu (8.8.3/2.2) with ESMTP 
          id RAA01471; Fri, 24 Jan 1997 17:47:16 -0500 (EST)
Received: by ren.us.itd.umich.edu (8.8.3/dumb-1.0) id RAA01679;
          Fri, 24 Jan 1997 17:46:04 -0500 (EST)
Date: Fri, 24 Jan 1997 17:46:04 -0500 (EST)
Message-Id: <199701242246.RAA01679@ren.us.itd.umich.edu>
To: dbi-users@fugue.com, yasayko@darwin.com
Subject: Re: Oraperl

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Michael,

> A lot of people I've talked with are using JDBC, the Java RDBMS 
> interface.  Of course, this would mean that you would have to use Java 
> rather than Perl for your Web interface...

If you are working from Windows, this might be great.  If you are working
from a Unix platform, then you have to obtain an Oracle JDBC driver for
the unix platform you are on.  (Presumably Solaris).  Java comes with
a free JDBC-ODBC bridge, but you still have to provide the ORACLE ODBC
driver.  These are available commercially at about $2500 (for which 
price you might just buy a WinTel machine that all ready comes with
the driver).

I have a pointer to a public domain set of ODBC drivers at:
http://www.rose-hulman.edu/Users/groups/WCC/Projects/source/database/iodbc-2.12/IAFA-PACKAGE, but I don't know the status.

--Dale Johnson, Univ of Michigan.

============ From: Michael Yasayko

> From owner-dbi-users@fugue.com Fri Jan 24 16:46:21 1997
> Precedence: junk
> Subject: Re: Oraperl
> To: dbi-users@fugue.com
> Date: Fri, 24 Jan 1997 12:45:09 -0800 (PST)
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> > Does anyone connect the Oracle to www site without using DBI/DBD?  I am 
> > just wondering if there is another way to connect Oracle database from www.
> 
> A lot of people I've talked with are using JDBC, the Java RDBMS 
> interface.  Of course, this would mean that you would have to use Java 
> rather than Perl for your Web interface...
> 
> Anyone else know much about Oraperl/DBI::Oracle's "competitors"?
> 
> --Mike
> 
> -----------------------------------------------------------------
> Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation
> 
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04826-80@oink>;
          Mon, 27 Jan 1997 07:54:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854157503:10:18878:4; Sat, 25 Jan 97 01:58:23 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918602; 25 Jan 97 1:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA01935 for dbi-users-real; Fri, 24 Jan 1997 16:59:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mas.atext.com (mas.atext.com [204.62.245.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA01931 
          for <dbi-users@fugue.com>; Fri, 24 Jan 1997 16:59:56 -0800 (PST)
Received: from muddy (muddy.atext.com [204.62.245.145]) 
          by mas.atext.com (8.6.9/8.6.9) with SMTP id RAA29591;
          Fri, 24 Jan 1997 17:06:17 -0800
Message-ID: <32E95ACF.75A9@excite.com>
Date: Fri, 24 Jan 1997 16:58:55 -0800
From: Parva Oskoui <parva@excite.com>
Organization: Excite Inc.
X-Mailer: Mozilla 3.0 (X11; U; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Michael Yasayko <yasayko@darwin.com>
CC: dbi-users@fugue.com
Subject: Re: Oraperl
References: <9701242045.AA00819@olympus.darwin.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm not sure what you mean by Java RDBMS? If you mean a tool written in
java that interfaces with an RDBMS such as Oracle, you can check
netdynamics (among others) which has precisely such tools. I think their
home page  is just www.netdynamics.com or something like that.
Have you tried searching for things like "RDBMS interface using Java" or
"oracle interface in Java" or such? Of course using the Excite search
engine will give you the best results!  : ))
Same goes for people who ask where the site for DBI/DBD is! Just search
for it...and then bookmark it when you find it!  : )

Parva

Michael Yasayko wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> > Does anyone connect the Oracle to www site without using DBI/DBD?  I am
> > just wondering if there is another way to connect Oracle database from www.
> 
> A lot of people I've talked with are using JDBC, the Java RDBMS
> interface.  Of course, this would mean that you would have to use Java
> rather than Perl for your Web interface...
> 
> Anyone else know much about Oraperl/DBI::Oracle's "competitors"?
> 
> --Mike
> 
> -----------------------------------------------------------------
> Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------

-- 
Parva Oskoui
943-1270


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12064-0@oink>;
          Mon, 27 Jan 1997 12:33:31 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854368230:10:13660:0; Mon, 27 Jan 97 12:30:30 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1013603; 27 Jan 97 12:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA01507 for dbi-users-real; Mon, 27 Jan 1997 03:31:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id DAA01503 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 03:31:54 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA25156 
          for dbi-users@fugue.com; Mon, 27 Jan 97 04:31:53 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA15409 
          for dbi-users@fugue.com; Mon, 27 Jan 97 04:31:52 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id MAA07814; Mon, 27 Jan 1997 12:31:46 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199701271131.MAA07814@ismuc.sps.mot.com>
Subject: Re: DBI/DBD software
To: AENG@US.ORACLE.COM
Date: Mon, 27 Jan 1997 12:31:45 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <199701241809.KAA05691@mailsun3-fddi.us.oracle.com> from "AENG.US.ORACLE.COM" at Jan 24, 97 09:57:47 am
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> Could someone point me to where I can get a copy of DBI/DBD? 

[I haven't seen any public replies yet.]

You can get the modules via the perl.com multiplexer:

http://www.perl.com/cgi-bin/cpan_mod?module=DBI
http://www.perl.com/cgi-bin/cpan_mod?module=DBD::Oracle

The multiplexer will redirect your request to an FTP site near you.

There's something of a home page for the DBI/DBD effort at

http://www.hermetica.com/technologia/DBI/DBD/

(See also one directory level up.)

There's also a useful archive of messages sent to this list
at http://www.coe.missouri.edu/~faq/lists/dbi.html .

Regards,
-christian




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13578-3@oink>;
          Mon, 27 Jan 1997 15:59:31 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854378590:9:04242:22; Mon, 27 Jan 97 15:23:10 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa904270; 27 Jan 97 15:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA01737 for dbi-users-real; Mon, 27 Jan 1997 06:06:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from carmen.broder.com (carmen.broder.com [207.77.64.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA01733 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 06:06:14 -0800 (PST)
Received: (from uucp@localhost) by carmen.broder.com (8.8.5/8.7.3) id GAA06426;
          Mon, 27 Jan 1997 06:06:08 -0800 (PST)
Received: from ima.broder.com(204.189.16.2) by carmen.broder.com 
          via smap (V1.3) id sma006420; Mon Jan 27 06:06:05 1997
Received: from ccMail by ima.broder.com (IMA Internet Exchange 2.1 Enterprise) 
          id 00006B4F; Mon, 27 Jan 97 06:00:07 -0800
Mime-Version: 1.0
Date: Sun, 26 Jan 1997 19:06:42 -0800
Message-ID: <00006B4F.1407@broder.com>
From: David_Rolston@broder.com (David Rolston)
Subject: Re[2]: Oraperl
To: Michael Yasayko <yasayko@darwin.com>, Parva Oskoui <parva@excite.com>
Cc: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

     Michael had it right, actually.  There is a specification similar to 
     ODBC for connecting to a database via JAVA.  It is my understanding 
     that Several vendors are now offering a JDBC library.  
     
     On a seperate but related question, I wonder if anyone is using 
     Netscape's Livewire's database connectivity, and if so, what do they 
     think of it?


______________________________ Reply Separator _________________________________
Subject: Re: Oraperl
Author:  Parva Oskoui <parva@excite.com> at Internet
Date:    1/24/97 4:58 PM


    *** From dbi-users -- To unsubscribe, see the end of this message. ***
     
I'm not sure what you mean by Java RDBMS? If you mean a tool written in 
java that interfaces with an RDBMS such as Oracle, you can check 
netdynamics (among others) which has precisely such tools. I think their 
home page  is just www.netdynamics.com or something like that.
Have you tried searching for things like "RDBMS interface using Java" or 
"oracle interface in Java" or such? Of course using the Excite search 
engine will give you the best results!  : ))
Same goes for people who ask where the site for DBI/DBD is! Just search 
for it...and then bookmark it when you find it!  : )
     
Parva
     
Michael Yasayko wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. *** 
> 
> > Does anyone connect the Oracle to www site without using DBI/DBD?  I am
> > just wondering if there is another way to connect Oracle database from www. 
> 
> A lot of people I've talked with are using JDBC, the Java RDBMS
> interface.  Of course, this would mean that you would have to use Java 
> rather than Perl for your Web interface...
> 
> Anyone else know much about Oraperl/DBI::Oracle's "competitors"? 
> 
> --Mike
> 
> ----------------------------------------------------------------- 
> Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by 
hand.
> ------------------------------------------------------------------------------
     
-- 
Parva Oskoui
943-1270
     
     
------------------------------------------------------------------------------ 
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page, 
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand. 
------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14222-10@oink>;
          Mon, 27 Jan 1997 16:59:37 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854383508:9:05150:3; Mon, 27 Jan 97 16:45:08 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa905100; 27 Jan 97 16:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA01948 for dbi-users-real; Mon, 27 Jan 1997 07:35:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from snowden.micron.net (snowden.micron.net [198.60.253.136]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA01944 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 07:35:57 -0800 (PST)
Received: from cskickel.micron.com (fwext.micron.com [204.134.212.40]) 
          by snowden.micron.net (8.8.2/8.7.3) with SMTP id IAA13297 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 08:35:19 -0700 (MST)
From: ckickel@micron.net (Craig Kickel)
To: dbi-users@fugue.com
Subject: Win32::ODBC
Date: Mon, 27 Jan 1997 08:37:36 -0700
Organization: Micron Internet Services
Reply-To: ckickel@micron.net
Message-ID: <32eccb0e.258085797@relay.micron.net>
X-Mailer: Forte Agent .99g/32.339
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello all,

	Has anyone looked into the Win32::ODBC package from Roth
Consulting (http://www.roth.net/odbc)?  It's not DBI compliant but
perhaps it would be a good assist for the DBI/ODBC project.  I'd be
interested in general good/no good thoughts as well.

	(I haven't tried it yet myself.  I'm looking for a more Unix based
solution.)

	--Craig
_____________________________________________
Craig Kickel             | (208) 368-1417
Software Engineer        | ckickel@micron.net
Micron Internet Services |
_____________________________________________


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15553-0@oink>;
          Mon, 27 Jan 1997 19:00:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854391467:9:29091:0; Mon, 27 Jan 97 18:57:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928788; 27 Jan 97 18:56 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA02134 for dbi-users-real; Mon, 27 Jan 1997 09:21:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA02130 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 09:21:50 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id JAA03805;
          Mon, 27 Jan 1997 09:14:24 -0800
Date: Mon, 27 Jan 1997 09:14:24 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: Kevin Stock <KStock@auspex.com>
cc: Rich Roemer <rich_r@amcsi.com>, dbi-users@fugue.com
Subject: Re: how determine size of database fields in select.
In-Reply-To: <32E859B6.446B9B3D@Auspex.Com>
Message-ID: <Pine.SOL.3.95.970127090420.3682A-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Of possible use:

I wrote two perl programs which query the Oracle data dictionary to
dump out descriptions, including comments, fields and their sizes
to html.  It seemed the easiest way to maintain the documentation,
since at the early stages of development the tables were changing
hour to hour.

In the interest of simplicity, here they are.  Sorry to waste
bandwidth.  The tabs got mashed somehow, but it's only an example.

----------------------------------------------------------------------


#!/usr/bin/perl
#
# dumpTables - dump a description of all tables belonging to
# hard coded user to html
#

use Oraperl;

# standard HTML header
print "Content-type: text/html\n\n";

# document title
print "<HEAD>\n<TITLE>Stc Oracle Tables</TITLE>\n</HEAD>\n";

# 
print "<h1>Oracle Tables</h1>";

my $header = <<END_HEADER;
The following tables are currently defined in the Oracle data
dictionary for tablespace HOPPER_SPACE
END_HEADER

print $header;


my $sqlCommand = "select table_name from user_tables " .
    "where tablespace_name = 'HOPPER_SPACE'";

my $csr = ora_open($lid, $sqlCommand);

print "<ul>\n";
my $stop;
while (! $stop) {
    @data = &ora_fetch($csr);
    if ($#data < 0) {
        $stop = 1;
    }
    else {
        my $table = $data[0];
        print "<li><a href=/cgi-bin/sql/dumpTableDesc/$table>$table</a>\n";

        # was there a comment associated with this table?
        my $sql2 =
            "select comments from user_tab_comments " .
                "where table_name = '$table'";

        my $csr2 = ora_open($lid, $sql2);
        my @data2 = &ora_fetch($csr2);
        if ($#data2 >= 0) {
            print "<br>$data2[0]<p>\n";
        }
        
    }
}
print "</ul>\n";


ora_close($csr); 

ora_logoff($lid);

----------------------------------------------------------------------



#!/usr/bin/perl

# use Tim Bunces marvelous interface
use Oraperl;

# standard HTML header
print "Content-type: text/html\n\n";

my $table = $ENV{'PATH_INFO'};
$table =~ s/^\///;

# document title
print "<HEAD>\n<TITLE>Oracle Table Description</TITLE>\n</HEAD>\n";

# 
print "<h1>Oracle Table Description:</h1>\n";
print "<h2>$table</h2>\n";

my $header = <<END_HEADER;
The following columns are currently defined in the Oracle data
dictionary for table $table in tablespace HOPPER_SPACE:
END_HEADER

print "<p><hr><p>\n", $header, "\n";


my $lid = ora_login('HOPPER','hopper','bac0mat');

#
# was there a comment associated with this table?
#
my $sqlCommand =
    "select comments from user_tab_comments where table_name = '$table'";
my $csr = ora_open($lid, $sqlCommand);
my @data = &ora_fetch($csr);
if ($#data >= 0) {
    print "<h4>Comment</h4>\n";
    print "<p>$data[0]\n";
}

#
# print all columns
#
$sqlCommand = 
    "select column_name, " . 
    "data_type, " .
    "data_length, " .
    "data_precision, " .
    "data_scale " .
    "from user_tab_columns where table_name = '$table'";

$csr = ora_open($lid, $sqlCommand);

print "<p><table border>\n";
print "<tr align = left>",
    "<th>Column name</th>",
    "<th>Column type</th>",
    "<th>Constraint</th>",
    "<th>Comment</th>\n";

my $stop;
while (! $stop) {
    @data = &ora_fetch($csr);
    if ($#data < 0) {
        $stop = 1;
    }
    else {
	my($column_name,
	   $data_type,
	   $data_length,
	   $data_precision,
	   $data_scale) = @data;

	print "<tr align=left><td>",$column_name,"</td>";
	print "<td>",$data_type, "(";
	if ($data_type eq "NUMBER") {
	    print $data_precision,",",$data_scale;
	}
	else {
	    print $data_length;
	}
	print ")</td>";

	# is there a constraint associated with this column?
	my $sql3 = 
	    "select constraint_name from user_cons_columns " .
		"where table_name = '$table' " .
		    "and column_name = '$column_name'";
	my $csr3 = ora_open($lid, $sql3);
	my @data3 = &ora_fetch($csr3);
	my $constraint_name;
	if ($#data3 < 0) {
	    print "<td></td>";
	}
	else {
	    $constraint_name = $data3[0];
	    # print "<td>$constraint_name</td>";
	    my $sql4 = 
		"select " .
		    "constraint_type, " .
		     "search_condition, " .
		     "r_constraint_name, " .
                     "delete_rule, " .
                     "status " .
		"from user_constraints " .
		    "where constraint_name = '$constraint_name'";
	    my $csr4 = ora_open($lid, $sql4);
	    my @data4 = ora_fetch($csr4);
	    if ($#data4 >= 0) {
		my ($constraint_type, 
		    $search_condition,
		    $r_constraint_name,
		    $delete_rule,
		    $status) = @data4;
		if ($constraint_type eq "P") {
		    print "<td>PRIMARY KEY</td>";
		} elsif ($constraint_type eq "C") {
		    print "<td>CHECK $search_condition</td>";
		} elsif ($constraint_type eq "R") {
		    my $sql5 = 
			"select table_name, column_name from " .
			"user_cons_columns " .
			"where constraint_name = '$r_constraint_name'";
		    my $csr5 = ora_open($lid, $sql5);
		    my @data5 = ora_fetch($csr5);
		    my ($table_name,$column_name) = @data5;
		    print "<td>REFERENCES ",
		    "$table_name($column_name)</td>";
		} elsif ($constraint_type eq "U") {
		    print "<td>UNIQUE</td>";
		}
	    }
	    else {
		print "<td></td>";
	    }
	}
	    
	#
	# was there a comment associated with this column?
	#
	my $sqlCom2 =
	    "select comments from user_col_comments " .
	    "where table_name = '$table' " .
	    "and column_name = '$column_name'";
	my $csr2 = ora_open($lid, $sqlCom2);
	my @data2 = &ora_fetch($csr2);
	if (($#data2 >= 0) && ($data2[0] ne '')) {
	    print "<td>$data2[0]</td>";
	}
   else {
       print "<td></td>";
	}
	print "\n";
}
}

print "</table>\n";


ora_close($csr); 

ora_logoff($lid);

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15983-2@oink>;
          Mon, 27 Jan 1997 19:54:50 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854394705:9:20082:1; Mon, 27 Jan 97 19:51:45 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016301; 27 Jan 97 19:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA02315 for dbi-users-real; Mon, 27 Jan 1997 10:38:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from enteract.com (babel.enteract.com [206.54.252.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA02311 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 10:38:33 -0800 (PST)
Received: (qmail 4370 invoked from network); 27 Jan 1997 18:38:27 -0000
Received: from unknown (HELO devkpi01) (207.70.75.65) by babel.enteract.com 
          with SMTP; 27 Jan 1997 18:38:27 -0000
Message-ID: <32ECF5A5.AC@enteract.com>
Date: Mon, 27 Jan 1997 12:36:21 -0600
From: Mike Maresca <maresca@enteract.com>
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: David Rolston <David_Rolston@broder.com>
CC: Michael Yasayko <yasayko@darwin.com>, Parva Oskoui <parva@excite.com>, 
    dbi-users@fugue.com
Subject: Re: Oraperl
References: <00006B4F.1407@broder.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

David Rolston wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
>      Michael had it right, actually.  There is a specification similar to
>      ODBC for connecting to a database via JAVA.  It is my understanding
>      that Several vendors are now offering a JDBC library.
> 
>      On a seperate but related question, I wonder if anyone is using
>      Netscape's Livewire's database connectivity, and if so, what do they
>      think of it?
> 
> ______________________________ Reply Separator _________________________________
> Subject: Re: Oraperl
> Author:  Parva Oskoui <parva@excite.com> at Internet
> Date:    1/24/97 4:58 PM
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> I'm not sure what you mean by Java RDBMS? If you mean a tool written in
> java that interfaces with an RDBMS such as Oracle, you can check
> netdynamics (among others) which has precisely such tools. I think their
> home page  is just www.netdynamics.com or something like that.
> Have you tried searching for things like "RDBMS interface using Java" or
> "oracle interface in Java" or such? Of course using the Excite search
> engine will give you the best results!  : ))
> Same goes for people who ask where the site for DBI/DBD is! Just search
> for it...and then bookmark it when you find it!  : )
> 
> Parva
> 
> Michael Yasayko wrote:
> >
> >     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> >
> > > Does anyone connect the Oracle to www site without using DBI/DBD?  I am
> > > just wondering if there is another way to connect Oracle database from www.
> >
> > A lot of people I've talked with are using JDBC, the Java RDBMS
> > interface.  Of course, this would mean that you would have to use Java
> > rather than Perl for your Web interface...
> >
> > Anyone else know much about Oraperl/DBI::Oracle's "competitors"?
> >
> > --Mike
> >
We are currently in the process of implementing a LiveWire to connect to
an Oracle database.  It's pretty good.  We have not run into any
problems
as of yet.

-Mike Maresca
Andersen Consulting


> > -----------------------------------------------------------------
> > Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation
> >
> > ------------------------------------------------------------------------------
> > To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> > If you are without web access, or if you are having trouble with the web page,
> > please send mail to dbi-request@fugue.com.   Please try to use the web
> > page first - it will take a long time for your request to be processed by
> hand.
> > ------------------------------------------------------------------------------
> 
> --
> Parva Oskoui
> 943-1270
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16262-2@oink>;
          Mon, 27 Jan 1997 20:32:53 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854397109:9:05374:0; Mon, 27 Jan 97 20:31:49 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa905121; 27 Jan 97 20:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA02428 for dbi-users-real; Mon, 27 Jan 1997 11:24:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy2.ba.best.com (root@proxy2.ba.best.com [206.184.139.13]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA02424 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 11:24:54 -0800 (PST)
Received: from redcomet.justintime.com (redcomet.justintime.com [206.86.125.17]) 
          by proxy2.ba.best.com (8.8.5/8.8.3) with SMTP id LAA21022;
          Mon, 27 Jan 1997 11:23:48 -0800 (PST)
Received: from redcomet (localhost) by redcomet.justintime.com (5.x/SMI-SVR4) 
          id AA15897; Mon, 27 Jan 1997 11:18:40 -0800
Message-Id: <32ECFF90.59F0@justintime.com>
Date: Mon, 27 Jan 1997 11:18:40 -0800
From: Mike Linksvayer <ml@justintime.com>
Organization: Just in Time Solutions, Inc.
X-Mailer: Mozilla 3.0 (X11; U; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Oraperl vs other tools
References: <00006B4F.1407@broder.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

David Rolston wrote:
>      Michael had it right, actually.  There is a specification similar to
>      ODBC for connecting to a database via JAVA.  It is my understanding
>      that Several vendors are now offering a JDBC library.

WebLogic is one such vendor.  I used their JDBC/T3 product last summer.
It was very very slow.  I've heard that it has improved considerably
since then, and I can't wait to try it again.
 
>      On a seperate but related question, I wonder if anyone is using
>      Netscape's Livewire's database connectivity, and if so, what do they
>      think of it?

We use LiveWire for a few clients (mostly with Oracle, once with Informix).
My major gripes about LiveWire are that JavaScript has many bugs and not
many features and LiveWire currently only supports Oracle 7.1.  You can
make it work with 7.2 and 7.3 (on Solaris anyway) and sqlnet though.  On
NT I've had to use ODBC to get LiveWire to work with Oracle 7.3.

Overall I'd choose Perl and DBI/DBD almost 100 percent of the time.
Unfortunately it's not always my decision, though in most cases I
end up using Perl for some part of a project since it's so much more
flexible and quick than anything else out there.

--
Mike Linksvayer          Just in Time Solutions, Inc.
Web Engineer             http://www.justintime.com
ml@justintime.com        444 DeHaro Suite 132 San Francisco CA 94107
tel +1 415 487 7870x14   fax +1 415 487 7877


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18844-15@oink>;
          Tue, 28 Jan 1997 07:37:15 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854411487:10:19123:5; Tue, 28 Jan 97 00:31:27 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901406; 28 Jan 97 0:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA03152 for dbi-users-real; Mon, 27 Jan 1997 15:17:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id PAA03148 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 15:17:38 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id AAA20469 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 00:17:33 +0100
Message-Id: <199701272317.AAA20469@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: dbi-users <dbi-users@fugue.com>
Subject: Error Makefile.Pl in DBD-mSQL
Date: Tue, 28 Jan 1997 00:17:11 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

when I try to run the Makefile.PL from DBD-mSQL-0.60pl9 I get the following
error message. Can anybody help me?

perl Makefile.PL
"%att" is not exported by the ExtUtils::MakeMaker module at
/usr/lib/perl5/Exporter.pm line 95
        Exporter::export called at /usr/lib/perl5/Exporter.pm line 149
        Exporter::import called at Makefile.PL line 12
        main::BEGIN called at /usr/lib/perl5/ExtUtils/MakeMaker.pm line 0
        eval {...} called at /usr/lib/perl5/ExtUtils/MakeMaker.pm line 0
Can't continue after import errors at Makefile.PL line 12
BEGIN failed--compilation aborted at Makefile.PL line 12.


Thanks Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18844-20@oink>;
          Tue, 28 Jan 1997 07:37:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854412599:10:23645:1; Tue, 28 Jan 97 00:49:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa906360; 28 Jan 97 0:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA03233 for dbi-users-real; Mon, 27 Jan 1997 15:51:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from m2.acer.net (m2.acer.net [203.66.109.38]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id PAA03229 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 15:51:32 -0800 (PST)
Received: from ms1.pclan.com.tw (root@[203.65.200.196]) 
          by m2.acer.net (8.8.4/8.8.3) with ESMTP id HAA14204 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 07:54:59 +0800 (CST)
Received: from eric.liyuan.com.tw (ericyu.200.65.203.IN-ADDR.ARPA [203.65.200.230]) 
          by ms1.pclan.com.tw (8.7.6/8.7.3) with SMTP id WAA13785 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 22:03:15 +0800
Message-ID: <32ED4032.25D0@ms1.pclan.com.tw>
Date: Tue, 28 Jan 1997 07:54:27 +0800
From: ericyu <ericyu@ms1.pclan.com.tw>
Organization: Liyuan Info Ldt., Co.
X-Mailer: Mozilla 3.0Gold (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: So many multiply defined symbols on Setup DBD::Oracle on SCO box
References: <199701251234.EAA26720@stimpy.quickquote.com> <32EC20A2.752E@ms1.pclan.com.tw> <32ECBA18.6441@ms1.pclan.com.tw>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'v installed DBI 0.73 successfully on SCO OpenServer 3.2v5.0.2.
There is some truble when I want to install DBD-Oracle-0.44 on SCO.
I'm using Oracle 7.1.4 (Workgroup) without Pro*C.
 
  I'v done the follows:
perl Makefile.PL -m $ORACLE_HOME/rdbms/lib/oracle.mk (ok!)
make (ok!)

After I make test, the error messages come out:
 .
 .
 .
ld: Symbol _cleanup in /usr/ccs/lib/libc.a is multiply defined. First
 defined in /usr/oracle7/lib/olc.o

ld: Symbol _xflsbuf in /usr/ccs/lib/libc.a is multiply defined. First
 defined in /usr/oracle7/lib/olc.o

ld: Symbol fflush in /usr/ccs/lib/libc.a is multiply defined. First
 defined in /usr/oracle7/lib/olc.o
*** Error code 1 (bu21)
*** Error code 1 (bu21)

 I've tried to modify the file - Makefile.aperl in line 962, add " -u
fflush" before -lc. But it still doesn't work. I get the same error
massages.

  How should I do to resolve them? Now, I'm having a hard time. Thank
you for any help or suggestions.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18905-1@oink>;
          Tue, 28 Jan 1997 07:39:30 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854414746:9:15713:0; Tue, 28 Jan 97 01:25:46 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa915528; 28 Jan 97 1:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA03364 for dbi-users-real; Mon, 27 Jan 1997 16:33:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from rodan.rs.itd.umich.edu (0@rodan.rs.itd.umich.edu [141.211.83.21]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA03360 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 16:33:22 -0800 (PST)
Received: from froggy by rodan.rs.itd.umich.edu (8.7.5/2) id TAA21539;
          Mon, 27 Jan 1997 19:32:02 -0500 (EST)
Message-ID: <32ECE025.1D8A@umich.edu>
Date: Mon, 27 Jan 1997 12:04:37 -0500
From: Dan DeMaggio <dmag@umich.edu>
X-Mailer: Mozilla 3.01 (WinNT; I)
MIME-Version: 1.0
To: ckickel@micron.net
CC: dbi-users@fugue.com
Subject: Re: Win32::ODBC
References: <32eccb0e.258085797@relay.micron.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Craig Kickel wrote:
>         Has anyone looked into the Win32::ODBC package from Roth
> Consulting (http://www.roth.net/odbc)?  It's not DBI compliant but
> perhaps it would be a good assist for the DBI/ODBC project.  I'd be
> interested in general good/no good thoughts as well.

Microsoft has made sure that you can get ODBC Drivers and ODBC Driver
Managers for Windows (in fact, NT Workstation 4.0 comes with an ODBC
driver for SQL Server.) For non-windows platforms, you are on your own.
Although some companies have written ODBC drivers and managers, they are
expensive solutions. A freeware ODBC Driver Manager is in the works, but
writing your own ODBC drivers is hard for some databases. For example,
SQL Server's over-the-wire protocol is called Tabular Data Stream. I can
find no documentation on it in my MSDN Enterprise subscription.

Win32::ODBC can't really help on UNIX platforms since it just calls ODBC
Drivers (which are plentiful on Windows platforms). Porting it to UNIX
would require you buy ODBC drivers for UNIX. Eventually market forces
(or hackers) will solve the problem. ;)

		-=Dan=- (dmag@umich.edu)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18905-3@oink>;
          Tue, 28 Jan 1997 07:39:41 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854414752:9:15733:0; Tue, 28 Jan 97 01:25:52 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002273; 28 Jan 97 1:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA03355 for dbi-users-real; Mon, 27 Jan 1997 16:32:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from rodan.rs.itd.umich.edu (0@rodan.rs.itd.umich.edu [141.211.83.21]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA03351 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 16:32:18 -0800 (PST)
Received: from froggy by rodan.rs.itd.umich.edu (8.7.5/2) id TAA21328;
          Mon, 27 Jan 1997 19:30:47 -0500 (EST)
Message-ID: <32ECE025.1D8A@umich.edu>
Date: Mon, 27 Jan 1997 12:04:37 -0500
From: Dan DeMaggio <dmag@umich.edu>
X-Mailer: Mozilla 3.01 (WinNT; I)
MIME-Version: 1.0
To: ckickel@micron.net
CC: dbi-users@fugue.com
Subject: Re: Win32::ODBC
References: <32eccb0e.258085797@relay.micron.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Craig Kickel wrote:
>         Has anyone looked into the Win32::ODBC package from Roth
> Consulting (http://www.roth.net/odbc)?  It's not DBI compliant but
> perhaps it would be a good assist for the DBI/ODBC project.  I'd be
> interested in general good/no good thoughts as well.

Microsoft has made sure that you can get ODBC Drivers and ODBC Driver
Managers for Windows (in fact, NT Workstation 4.0 comes with an ODBC
driver for SQL Server.) For non-windows platforms, you are on your own.
Although some companies have written ODBC drivers and managers, they are
expensive solutions. A freeware ODBC Driver Manager is in the works, but
writing your own ODBC drivers is hard for some databases. For example,
SQL Server's over-the-wire protocol is called Tabular Data Stream. I can
find no documentation on it in my MSDN Enterprise subscription.

Win32::ODBC can't really help on UNIX platforms since it just calls ODBC
Drivers (which are plentiful on Windows platforms). Porting it to UNIX
would require you buy ODBC drivers for UNIX. Eventually market forces
(or hackers) will solve the problem. ;)

		-=Dan=- (dmag@umich.edu)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <18905-5@oink>;
          Tue, 28 Jan 1997 07:39:52 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854414883:9:16282:1; Tue, 28 Jan 97 01:28:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916116; 28 Jan 97 1:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA03382 for dbi-users-real; Mon, 27 Jan 1997 16:35:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from rodan.rs.itd.umich.edu (0@rodan.rs.itd.umich.edu [141.211.83.21]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA03378 
          for <dbi-users@fugue.com>; Mon, 27 Jan 1997 16:35:48 -0800 (PST)
Received: from froggy by rodan.rs.itd.umich.edu (8.7.5/2) id TAA21891;
          Mon, 27 Jan 1997 19:34:22 -0500 (EST)
Message-ID: <32ECE025.1D8A@umich.edu>
Date: Mon, 27 Jan 1997 12:04:37 -0500
From: Dan DeMaggio <dmag@umich.edu>
X-Mailer: Mozilla 3.01 (WinNT; I)
MIME-Version: 1.0
To: ckickel@micron.net
CC: dbi-users@fugue.com
Subject: Re: Win32::ODBC
References: <32eccb0e.258085797@relay.micron.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Craig Kickel wrote:
>         Has anyone looked into the Win32::ODBC package from Roth
> Consulting (http://www.roth.net/odbc)?  It's not DBI compliant but
> perhaps it would be a good assist for the DBI/ODBC project.  I'd be
> interested in general good/no good thoughts as well.

Microsoft has made sure that you can get ODBC Drivers and ODBC Driver
Managers for Windows (in fact, NT Workstation 4.0 comes with an ODBC
driver for SQL Server.) For non-windows platforms, you are on your own.
Although some companies have written ODBC drivers and managers, they are
expensive solutions. A freeware ODBC Driver Manager is in the works, but
writing your own ODBC drivers is hard for some databases. For example,
SQL Server's over-the-wire protocol is called Tabular Data Stream. I can
find no documentation on it in my MSDN Enterprise subscription.

Win32::ODBC can't really help on UNIX platforms since it just calls ODBC
Drivers (which are plentiful on Windows platforms). Porting it to UNIX
would require you buy ODBC drivers for UNIX. Eventually market forces
(or hackers) will solve the problem. ;)

		-=Dan=- (dmag@umich.edu)




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22429-3@oink>;
          Tue, 28 Jan 1997 12:12:28 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854449429:9:21960:14; Tue, 28 Jan 97 11:03:49 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1003320; 28 Jan 97 11:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA04842 for dbi-users-real; Tue, 28 Jan 1997 02:06:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de ([194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id CAA04838 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 02:06:23 -0800 (PST)
Received: from pcdv14.elster.elster-group.com (usrttyS0.ecos.de [194.162.213.100]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id LAA00779;
          Tue, 28 Jan 1997 11:06:01 +0100
Message-Id: <199701281006.LAA00779@merkur.ecos.de>
Reply-To: richter <richter@ecos.de>
From: "G.Richter" <richter@ecos.de>
To: Bob Wilkinson <bwilkinson@pindar.co.uk>
Cc: dbi-users <dbi-users@fugue.com>
Subject: Re: Error Makefile.Pl in DBD-mSQL
Date: Tue, 28 Jan 1997 10:59:24 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
> 
> Gerald,
>        This error is documented in the README!

Sorry, asking things already in the README. I have done this late in the
evening. I have read the README but didn't notice that.

> You need to edit the Makefile,
> and remove the "%att" entry in the Makefile (it only occurs once). Then
"make"
> again.
> 
Thanks
Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23687-4@oink>;
          Tue, 28 Jan 1997 16:55:26 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854468526:10:17453:6; Tue, 28 Jan 97 16:22:06 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017445; 28 Jan 97 16:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA05175 for dbi-users-real; Tue, 28 Jan 1997 07:00:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from snowden.micron.net (snowden.micron.net [198.60.253.136]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA05171 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 07:00:39 -0800 (PST)
Received: from cskickel.micron.com (fwext.micron.com [204.134.212.40]) 
          by snowden.micron.net (8.8.2/8.7.3) with SMTP id IAA13533;
          Tue, 28 Jan 1997 08:00:29 -0700 (MST)
From: ckickel@micron.net (Craig Kickel)
To: Dan DeMaggio <dmag@umich.edu>
Cc: dbi-users@fugue.com
Subject: Re: Win32::ODBC
Date: Tue, 28 Jan 1997 08:02:42 -0700
Organization: Micron Internet Services
Reply-To: ckickel@micron.net
Message-ID: <32ef130e.342053476@relay.micron.net>
References: <32eccb0e.258085797@relay.micron.net> <32ECE025.1D8A@umich.edu>
In-Reply-To: <32ECE025.1D8A@umich.edu>
X-Mailer: Forte Agent .99g/32.339
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Dan,

	Your info on ODBC for Unix might be a little out of date.  We've
just purchased an ODBC package from Intersolv for Sun Solaris (with
Sybase drivers).  While we choose Intersolv, it was a tight contest
between them, Visigenic, and a third vendor whose name escapes me
right now.

	The single Sybase license we bought was $195.  Sure, I'd rather
have a free copy, but the price isn't too bad.  Also, I'm sure that
there is some price break if you buy in quantity.

	ODBC is rapidly gaining strength on all platforms, not just
Windows.  It's just a shame that WIN32::ODBC seems to be so focused on
the Window's OS.  But, the code does look like fairly straight forward
C++.  Perhaps porting it won't be so bad...

	--Craig

On Mon, 27 Jan 1997 12:04:37 -0500, Dan DeMaggio <dmag@umich.edu>
wrote:

>    *** From dbi-users -- To unsubscribe, see the end of this message. =
***
>
>Craig Kickel wrote:
>>         Has anyone looked into the Win32::ODBC package from Roth
>> Consulting (http://www.roth.net/odbc)?  It's not DBI compliant but
>> perhaps it would be a good assist for the DBI/ODBC project.  I'd be
>> interested in general good/no good thoughts as well.
>
>Microsoft has made sure that you can get ODBC Drivers and ODBC Driver
>Managers for Windows (in fact, NT Workstation 4.0 comes with an ODBC
>driver for SQL Server.) For non-windows platforms, you are on your own.
>Although some companies have written ODBC drivers and managers, they are
>expensive solutions. A freeware ODBC Driver Manager is in the works, but
>writing your own ODBC drivers is hard for some databases. For example,
>SQL Server's over-the-wire protocol is called Tabular Data Stream. I can
>find no documentation on it in my MSDN Enterprise subscription.
>
>Win32::ODBC can't really help on UNIX platforms since it just calls ODBC
>Drivers (which are plentiful on Windows platforms). Porting it to UNIX
>would require you buy ODBC drivers for UNIX. Eventually market forces
>(or hackers) will solve the problem. ;)
>
>		-=3DDan=3D- (dmag@umich.edu)
_____________________________________________
Craig Kickel             | (208) 368-1417
Software Engineer        | ckickel@micron.net
Micron Internet Services |
_____________________________________________


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23687-7@oink>;
          Tue, 28 Jan 1997 16:56:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854469709:10:24872:15; Tue, 28 Jan 97 16:41:49 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928186; 28 Jan 97 16:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA05206 for dbi-users-real; Tue, 28 Jan 1997 07:34:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from isgate.is (isgate.is [193.4.58.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA05202 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 07:34:02 -0800 (PST)
Received: from njala.saga.is by isgate.is (8.7.5-M/ISnet/14-10-91);
          Tue, 28 Jan 1997 15:33:53 GMT
Received: from adal.hagkaup.is by njala.saga.is (8.7.5/ISnet/10-08-95);
          Tue, 28 Jan 1997 15:33:56 GMT
Received: from sun5.hagkaup.is by adal.hagkaup.is (8.7.5/ISnet/25-02-95);
          Tue, 28 Jan 1997 15:33:50 GMT
Received: from sib(6.12.94) by sun5.hagkaup.is (8.7.5/) id PAA07890;
          Tue, 28 Jan 1997 15:32:28 GMT
From: Yngvi Sigurjonsson <yngvi@hagkaup.is>
Message-Id: <199701281532.PAA07890@sun5.hagkaup.is>
Subject: DBD::Oracle::db::do undefined
To: dbi-users@fugue.com
Date: Tue, 28 Jan 1997 15:32:27 +0000 (GMT)
X-Mailer: ELM [version 2.4ME+ PL22 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi!

I was trying to upgrade my DBI/DBD perl setup but ran into some problems
if I do make test for DBD::Oracle it finishes with:
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
Undefined subroutine &DBD::Oracle::db::do called at blib/lib/Oraperl.pm line 134.
*** Error code 255
make: Fatal error: Command failed for target `test_dynamic'

This does not look like the expected error message, does it.

I also see some:
Value of $install_attributes will not stay shared at (eval 2) line 1.
warnings.


My setup is:
This is perl, version 5.003_20
 
Copyright 1987-1996, Larry Wall
 
        + suidperl security patch
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
 
DBI 0.44
and DBD

Should I downgrade my perl?
Thanks for any help.

Regards 
	Yngvi


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26682-4@oink>;
          Wed, 29 Jan 1997 07:36:36 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854481526:9:17515:1; Tue, 28 Jan 97 19:58:46 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917391; 28 Jan 97 19:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA05579 for dbi-users-real; Tue, 28 Jan 1997 10:46:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bkinis1-1.morgan.com (bkinis.ms.com [204.254.196.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA05575 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 10:46:52 -0800 (PST)
From: MARIANI@morgan.com
Received: (from mail@localhost) by bkinis1-1.morgan.com (8.8.4/fw v1.22) 
          id NAA27141 for <dbi-users@fugue.com>;
          Tue, 28 Jan 1997 13:46:49 -0500 (EST)
Message-Id: <199701281846.NAA27141@bkinis1-1.morgan.com>
Received: from unknown(138.20.31.2) by bkinis1-1.morgan.com via smap (V1.3) 
          id smaa26908; Tue Jan 28 13:46:07 1997
Received: from EMC2 by MORGANF.MORGAN.COM (IBM MVS SMTP V2R2.1) with BSMTP 
          id 5140; Tue, 28 Jan 97 01:45:55 EST
Date: Tue 28 Jan 1997 01:45 ET
To: dbi-users@fugue.com
Subject: Informix temp tables

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm trying to select into a temp table using Informix DBI:

 $dbh->do("select cl_id from clients into temp tmpcli")

I get the error CURSOR not on SELECT statement.

Is it possible to select into a dynamically created temp table, or do I need
to create the table, select the records, insert into the table, and later drop
it?

I saw a similar question posted to dbi-users in November, but I found no
reply.

Many thanks.
ann mariani


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26682-33@oink>;
          Wed, 29 Jan 1997 07:40:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854487524:10:15644:1; Tue, 28 Jan 97 21:38:44 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925554; 28 Jan 97 21:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA05727 for dbi-users-real; Tue, 28 Jan 1997 12:08:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA05723 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 12:08:54 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id MAA13018;
          Tue, 28 Jan 1997 12:08:19 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA03225;
          Tue, 28 Jan 1997 12:08:17 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id MAA04588;
          Tue, 28 Jan 1997 12:08:17 -0800
Date: Tue, 28 Jan 1997 12:08:17 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701282008.MAA04588@anubis.informix.com>
To: MARIANI@morgan.com, dbi-users@fugue.com
Subject: Re: Informix temp tables

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: MARIANI@morgan.com
>Date: Tue 28 Jan 1997 01:45 ET
>
>I'm trying to select into a temp table using Informix DBI:
>
> $dbh->do("select cl_id from clients into temp tmpcli")
>
>I get the error CURSOR not on SELECT statement.
>
>Is it possible to select into a dynamically created temp table, or do I need
>to create the table, select the records, insert into the table, and later drop
>it?
>
>I saw a similar question posted to dbi-users in November, but I found no
>reply.

Which version of DBD::Informix are you using?

I think it must be v0.24 or some earlier version.

I have tested:

$dbh->do("select * from systables into temp t1");

with my development version (DBD::Informix v0.50 pre-alpha), and it works
fine (and I don't think I've changed anything since v0.25 to fix the
problem).  I think that DBD::Informix v0.24 would have had problems, being
confused by the fact that the statement starts with the keyword 'SELECT'
but cannot be treated like a standard SELECT statement.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

PS: This applies to everyone who submits a problem to dbi-users@fugue.com
or to dbi-dev@fugue.com:

Whenever you report a problem in DBI or any of the DBD drivers, please be
specific about the versions of the software you are using.  For
DBD::Informix, please also specify the platform and the version of ESQL/C
which you are using.  Eg: I'd report DBI v0.74, DBD::Informix 0.50p1,
ESQL/C 7.21.UC1, Sun Sparc 10, Solaris 2.5.1.  I imagine that the other DBD
developers would appreciate equivalent information for the database systems
they are working on.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26682-59@oink>;
          Wed, 29 Jan 1997 07:42:38 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854493516:10:21058:9; Tue, 28 Jan 97 23:18:36 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021092; 28 Jan 97 23:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA06068 for dbi-users-real; Tue, 28 Jan 1997 14:04:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA06064 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 14:04:00 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id RAA00515;
          Tue, 28 Jan 1997 17:04:36 -0500 (EST)
Message-Id: <199701282204.RAA00515@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Yngvi Sigurjonsson <yngvi@hagkaup.is>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle::db::do undefined
In-reply-to: Your message of "Tue, 28 Jan 1997 15:32:27 GMT." <199701281532.PAA07890@sun5.hagkaup.is>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 28 Jan 1997 17:03:21 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I had to downgrade to 5.003_18 from 23. Can't complain, I'm just too greedy 
for sfio.
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26682-74@oink>;
          Wed, 29 Jan 1997 07:44:20 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854503938:9:22383:1; Wed, 29 Jan 97 02:12:18 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa922240; 29 Jan 97 2:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA06599 for dbi-users-real; Tue, 28 Jan 1997 16:55:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA06595 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 16:55:11 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id QAA25439;
          Tue, 28 Jan 1997 16:54:36 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA11586;
          Tue, 28 Jan 1997 16:54:34 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id QAA06901;
          Tue, 28 Jan 1997 16:54:34 -0800
Date: Tue, 28 Jan 1997 16:54:34 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701290054.QAA06901@anubis.informix.com>
To: dbi-users@fugue.com, hassan1@unm.edu
Cc: johnl@informix.com
Subject: Re: Make test fails for DBD-Informix-0.23

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Date: Tue, 28 Jan 1997 16:55:29 -0700 (MST)
>From: Todd Hassan <hassan1@unm.edu>
>Subject: Make test fails for DBD-Informix-0.23
>
>I am trying to compile DBD-Informix-0.23, but the make test fails.  I was
>able to compile DBI 0.73 no problem.  The make for  DBD-Informix-0.24
>failed horribly, so I went to  DBD-Informix-0.23.  Here is the info I
>compiled:

I'd like to suggest that you jumped in the wrong direction.  You
should have upgraded to DBD::Informix v0.25 rather than revert to
v0.23.

I took over starting immediately after version 0.24 was released by
Alligator Descartes, my honourable predecessor in the list of people
who have helped develop DBD::Informix.  I released version 0.25 in
early December 1996, and it has been available via CPAN since then.
The versions prior to 0.25 (and especially prior to 0.24) will receive
scant support from me, mainly because I am unfamiliar with them.

>CIS> make test
>PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
>install_driver(Informix) failed: Can't load './blib/arch/auto/DBD/Informix/Informix.so' for module DBD::Informix: ld.so.1: /usr/local/bin/perl: fatal: relocation error: symbol not found: gl_full_mbscat: referenced in ./blib/arch/auto/DBD/Informix/Informix
>.so at /usr/local/lib/perl5/DynaLoader.pm line 140.
>
>[...]
>
>DBI 0.73
>
>INFORMIX-ESQL Version 7.20.UC2
>
>[...]

Given that you are using ESQL/C 7.20.UC2, your problem is primarily
that the library list changed between 7.1x and 7.2x ESQL/C, and you
need to get -lgls into the command line which creates the
DBD::Informix shared library.  The symbol gl_full_mbscat() is defined
in the GLS library, libgls.so, which is new with 7.2x ESQL/C.

The v0.25 make process gets around that problem, especially on Solaris
because that's where the DBD::Informix development is now being done,
and that environment has been exhaustively tested, therefore.  And I'm
using 7.21.UC1 ESQL/C, which is not very different from what you have.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26682-86@oink>;
          Wed, 29 Jan 1997 07:45:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854510800:10:07389:0; Wed, 29 Jan 97 04:06:40 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912841; 29 Jan 97 4:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA06971 for dbi-users-real; Tue, 28 Jan 1997 18:54:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate.Cadence.COM (mailgate.Cadence.COM [158.140.2.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id SAA06967 
          for <dbi-users@fugue.com>; Tue, 28 Jan 1997 18:54:57 -0800 (PST)
Received: (from smap@localhost) by mailgate.Cadence.COM (8.6.8/8.6.8) 
          id SAA13792; Tue, 28 Jan 1997 18:54:49 -0800
Received: from cds251.cadence.com(158.140.98.30) by mailgate.cadence.com 
          via smap (V1.0mjr) id sma854506488.013789; Tue Jan 28 18:54:48 1997
Received: from cds251 (localhost [127.0.0.1]) 
          by cds251.Cadence.COM (8.7.3/8.7.3) with SMTP id SAA13526;
          Tue, 28 Jan 1997 18:54:45 -0800 (PST)
Message-ID: <32EEBBF5.225@cadence.com>
Date: Tue, 28 Jan 1997 18:54:45 -0800
From: Yvonne Fan <yufen@cadence.com>
Organization: Cadence Design Systems, Inc.
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: johnl@informix.com, yufen@cds251.Cadence.COM
Subject: Where can I get ESQL/C?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I just installed informix on-line 7.1 that comes with Netscape
Enterprise server and  was trying to make DBD-informix-0.25.
However, it complains about ESQL/C not properly installed.

I'm fairly new to Informix...So my question may sound pretty dump: Where
can I get ESQL/C? Can I download it from somewhere for free?  

Thanks for the help!

Appreciated,
Yvonne


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03251-10@oink>;
          Wed, 29 Jan 1997 16:55:14 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854552763:9:12906:25; Wed, 29 Jan 97 15:46:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912950; 29 Jan 97 15:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA07960 for dbi-users-real; Wed, 29 Jan 1997 06:39:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA07956 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 06:39:05 -0800 (PST)
Received: by gateway.fcmc.com; id JAA17381;
          Wed, 29 Jan 1997 09:39:02 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma017337; Wed, 29 Jan 97 09:38:37 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA07834;
          Wed, 29 Jan 97 09:38:36 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA23103; Wed, 29 Jan 97 09:38:28 EST
Date: Wed, 29 Jan 97 09:38:28 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9701291438.AA23103@anderson.fcmc.com>
To: MARIANI@morgan.com
Subject: Re: Informix temp tables
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The lousy implementation of Informix-DBD 0.23 mistakes such
a SQL code. Use version 0.25 which was released a couple of months
ago (courtesy of johnl@informix.com (Jonathan Leffler)).

Regards

Serge Davidov (DBA)
Fuji Capital Markets Corporation (New York)
(212)898-2936

 

> From owner-dbi-users@fugue.com Tue Jan 28 18:44:05 1997
> Sender: owner-dbi-users@fugue.com
> From: MARIANI@morgan.com
> Date: Tue 28 Jan 1997 01:45 ET
> To: dbi-users@fugue.com
> Subject: Informix temp tables
> Content-Length: 974
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hi,
> 
> I'm trying to select into a temp table using Informix DBI:
> 
>  $dbh->do("select cl_id from clients into temp tmpcli")
> 
> I get the error CURSOR not on SELECT statement.
> 
> Is it possible to select into a dynamically created temp table, or do I need
> to create the table, select the records, insert into the table, and later drop
> it?
> 
> I saw a similar question posted to dbi-users in November, but I found no
> reply.
> 
> Many thanks.
> ann mariani
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------
> 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03251-12@oink>;
          Wed, 29 Jan 1997 16:55:22 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854552772:10:20503:3; Wed, 29 Jan 97 15:46:12 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1020369; 29 Jan 97 15:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA07973 for dbi-users-real; Wed, 29 Jan 1997 06:47:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA07969 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 06:47:05 -0800 (PST)
Received: by gateway.fcmc.com; id JAA17660;
          Wed, 29 Jan 1997 09:47:02 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma017657; Wed, 29 Jan 97 09:46:52 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA07932;
          Wed, 29 Jan 97 09:46:52 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA23183; Wed, 29 Jan 97 09:46:45 EST
Date: Wed, 29 Jan 97 09:46:45 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9701291446.AA23183@anderson.fcmc.com>
To: yufen@cadence.com
Subject: Re: Where can I get ESQL/C?
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

ESQL/C is shipped by Informix as separate package.
So, most certainly you'll have to buy it :-(

Cheers

Serge Davidov (DBA)
Fuji Capital Markets Corporation (New York)
(212)898-2936


> From owner-dbi-users@fugue.com Wed Jan 29 01:47:37 1997
> Sender: owner-dbi-users@fugue.com
> Date: Tue, 28 Jan 1997 18:54:45 -0800
> From: Yvonne Fan <yufen@cadence.com>
> Organization: Cadence Design Systems, Inc.
> X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m)
> Mime-Version: 1.0
> To: dbi-users@fugue.com
> Cc: johnl@informix.com, yufen@cds251.Cadence.COM
> Subject: Where can I get ESQL/C?
> Content-Type> : > text/plain> ; > charset=us-ascii> 
> Content-Transfer-Encoding: 7bit
> Content-Length: 904
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hi,
> 
> I just installed informix on-line 7.1 that comes with Netscape
> Enterprise server and  was trying to make DBD-informix-0.25.
> However, it complains about ESQL/C not properly installed.
> 
> I'm fairly new to Informix...So my question may sound pretty dump: Where
> can I get ESQL/C? Can I download it from somewhere for free?  
> 
> Thanks for the help!
> 
> Appreciated,
> Yvonne
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------
> 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03856-1@oink>;
          Wed, 29 Jan 1997 18:01:54 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854557701:9:18579:5; Wed, 29 Jan 97 17:08:21 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id ab918564; 29 Jan 97 17:08 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA08042 for dbi-users-real; Wed, 29 Jan 1997 07:41:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from icd.cc.purdue.edu (bartley@icd.cc.purdue.edu [128.210.249.14]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA08038 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 07:41:38 -0800 (PST)
Received: (from bartley@localhost) by icd.cc.purdue.edu (8.8.5/8.8.5) 
          id KAA129708; Wed, 29 Jan 1997 10:41:16 -0500
Date: Wed, 29 Jan 1997 10:41:16 -0500
From: Eric Bartley <bartley@icd.cc.purdue.edu>
Message-Id: <199701291541.KAA129708@icd.cc.purdue.edu>
To: dbi-users@fugue.com
Subject: Fix: can't login DBD-Oracle under AIX 4.1.4
Cc: Tim.Bunce@ig.co.uk, pat@ssc.upenn.edu

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Just to start off:
	OS: AIX 4.1.4.0
	Perl: 5.003
	Oracle: 7.3.2.1
	DBI: 0.73
	DBD-Oracle: 0.44

Background, from searching the mailing list archives this problem may
be same/related to one posted by Pat Hildebrand (pat@ssc.upenn.edu) on
October 8, 1996. In his message Pat was using DBD-Oracle 0.39 and perl
didn't core dump on him, but the end result and environment are
similar.

The problem, perl, DBI, and DBD-Oracle build Ok under AIX but DBD-Oracle
fails it's test while trying to login to the database. In my case perl
core dumped (output included later).

After playing around I found that the order and number of libraries
that $ORACLE_HOME/precomp/demo/proc.mk and
$ORACLE_HOME/rdbms/demo/oracle.mk were different. If I generated the
DBD-Oracle make file using oracle.mk (after patching Makefile.PL, see
below) it compiled, was able to login, and passed the tests.

Ok, great it appears to work for me. Can anyone tell me why? Is it just a
mistake on Oracle's part for this particular version? Is there something
more general that I'm missing here?

Eric Bartley

>>>> Patch for Makefile.PL
As Makefile.PL is it stops processing Oracle's makefile as soon as it
finds a target. The problem with is that the first include file has some
targets at the end of it, which means that we never process the rest of
the original make file. Oracle.mk in my case, combines definitions from
the include file to produce the correct list of libraries. Here's my patch:

*** Makefile.PL	Tue Jan 14 16:49:38 1997
--- ../saved/Makefile.PL	Wed Jan 29 08:25:56 1997
***************
*** 287,293 ****
  	chomp;
  	push(@MK, '') if ($_ eq '' and $lastline ne '');
  	next unless $_;
! 	last if m/^\w+\s*:[^=]/;	# gone too far, reached actual targets
  
  	unless($MK{mkver}) {	# still need to get version number
  	    # This is tough since some versions of proc.mk split the
--- 287,295 ----
  	chomp;
  	push(@MK, '') if ($_ eq '' and $lastline ne '');
  	next unless $_;
! 	next if /^\s*#/; # get rid of comments
! 	next if /^[A-Za-zx0-9\$\-\/.()_+]+\s*:[^=]*/; # get rid of targets
! 	next if /^\t/; # get rid of targets
  
  	unless($MK{mkver}) {	# still need to get version number
  	    # This is tough since some versions of proc.mk split the

>>>>> Script of build with proc.mk and stack trace then build with oracle.mk
icd perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=aix, osver=4.1.4.0, archname=aix
    uname='aix icd 1 4 000535306700 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO'
    ccflags ='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lld -lm -lc -lbsd -lPW
    libc=/usr/lib/libc.a, so=so
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib'

@INC: /home/icd/a/bartley/lib/perl5/aix/5.003 /home/icd/a/bartley/lib/perl5 /home/icd/a/bartley/lib/perl5/site_perl/aix /home/icd/a/bartley/lib/perl5/site_perl .

icd perl Makefile.PL

 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /opt/oracle
Reading /opt/oracle/precomp/demo/proc/proc.mk.
Reading /opt/oracle/precomp/env_precomp.mk.
System: perl5.003 aix icd 1 4 000535306700 
Compiler: cc -O -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       $(ORACLE_HOME)/bin/oraxlc 
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) 
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lm -lld -lm -lm 

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
icd make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
	perl "-I/home/icd/a/bartley/lib/perl5/aix/5.003" "-I/home/icd/a/bartley/lib/perl5" -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME" => "DBD::Oracle", "DL_FUNCS" => {  }, "DL_VARS" => []);'
	perl -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 /home/icd/a/bartley/lib/perl5/ExtUtils/xsubpp  -typemap /home/icd/a/bartley/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
	cc -c -I. -I/opt/oracle/precomp/public -I/opt/oracle/rdbms/demo -I/home/icd/a/bartley/lib/perl5/site_perl/aix/DBI -I/home/icd/a/bartley/lib/perl5/aix/5.003/DBI -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/home/icd/a/bartley/lib/perl5/aix/5.003/CORE  Oracle.c
	cc -c -I. -I/opt/oracle/precomp/public -I/opt/oracle/rdbms/demo -I/home/icd/a/bartley/lib/perl5/site_perl/aix/DBI -I/home/icd/a/bartley/lib/perl5/aix/5.003/DBI -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/home/icd/a/bartley/lib/perl5/aix/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
	chmod 644 Oracle.bs
	LD_RUN_PATH="/opt/oracle/lib:/lib" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.so -H512 -T512 -bhalt:4 -bM:SRE -bI:/home/icd/a/bartley/lib/perl5/aix/5.003/CORE/perl.exp -bE:Oracle.exp -b noentry -lc -L/usr/local/lib Oracle.o  dbdimp.o    -L/opt/oracle/lib -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lm -lld -lm -lm 
	chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.so
	cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
	chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
Target "makemakerdflt" is up to date.
icd make test
	PERL_DL_NONLAZY=1 /home/icd/a/bartley/bin/perl -I./blib/arch -I./blib/lib -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  1 secs ( 0.63 cusr  0.16 csys =  0.79 cpu)
	PERL_DL_NONLAZY=1 /home/icd/a/bartley/bin/perl -I./blib/arch -I./blib/lib -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 test.pl
Oraperl test application $Revision: 1.29 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'labops/badBoys' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='pucc')
make: The signal code from the last command is 11.


Stop.
icd dbx ../bin/perl
Type 'help' for help.
reading symbolic information ...
[using memory image in core]

Segmentation fault in reset_pthread_kill at 0xd0a976ec
0xd0a976ec (reset_pthread_kill+0x38) 7c03292e        stx   r0,r3,r5
(dbx) where
reset_pthread_kill(??) at 0xd0a976ec
sigaction(??, ??, ??) at 0xd0a9879c
signal.signal(??, ??) at 0xd09a5688
osnsui(??, ??, ??) at 0xd090f2d0
osntns1(??, ??, ??, ??, ??, ??, ??, ??) at 0xd090cdc0
osncon(0x0, 0xd1, 0x1803, 0x2015083c, 0x200447ac, 0x200447a4, 0x20044788, 0x200447cc) at 0xd089eb30
upiini(??, ??, ??, ??) at 0xd07e5878
upiah0(??, ??, ??, ??) at 0xd07fcb44
upilgn(0x20044760, 0x2002dce8, 0xe, 0x2002dec8, 0x0, 0x0, 0x0, 0x0) at 0xd09156a0
upilon(??, ??, ??, ??, ??, ??) at 0xd09151c4
ocirlo(??, ??, ??, ??, ??, ??, ??) at 0xd07c4340
dbd_db_login(??, ??, ??, ??) at 0xd07bcffc
XS_DBD__Oracle__db__login(??) at 0xd07ba90c
Perl_pp_entersub() at 0x10049fc0
Perl_runops() at 0x10028ff8
perl.perl_call_sv(??, ??) at 0x1001696c
XS_DBI_dispatch(??) at 0xd0219d1c
Perl_pp_entersub() at 0x10049fc0
Perl_runops() at 0x10028ff8
perl_run(??) at 0x10014ee4
main(??, ??, ??) at 0x10000320
(dbx) quit
icd make realclean
	rm -rf Oracle.c ./blib Makefile.aperl ./blib/arch/auto/DBD/Oracle/extralibs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe Oracle.bs Oracle.bso Oracle.def Oracle.exp
	mv Makefile Makefile.old 2>/dev/null
	rm -rf ./blib/lib/auto/DBD/Oracle ./blib/arch/auto/DBD/Oracle
	rm -f ./blib/arch/auto/DBD/Oracle/Oracle.so ./blib/arch/auto/DBD/Oracle/Oracle.bs
	rm -f ./blib/arch/auto/DBD/Oracle/Oracle.a
	rm -f ./blib/lib/Oraperl.pm ./blib/lib/DBD/Oracle.pm ./blib/lib/oraperl.ph
	rm -rf Makefile Makefile.old
icd perl Makefile.PL -m /opt/oracle/rdbms/demo/oracle.mk

 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /opt/oracle
Reading /opt/oracle/rdbms/demo/oracle.mk.
Reading /opt/oracle/rdbms/lib/env_rdbms.mk.
System: perl5.003 aix icd 1 4 000535306700 
Compiler: cc -O -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       $(ORACLE_HOME)/bin/oraxlc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
  LDSTRING: `cat $(ORACLE_HOME)/rdbms/lib/sysclib`
Linking with  -L/opt/oracle/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lm -lld -lm -lm -lcore3

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
icd make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
	perl "-I/home/icd/a/bartley/lib/perl5/aix/5.003" "-I/home/icd/a/bartley/lib/perl5" -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME" => "DBD::Oracle", "DL_FUNCS" => {  }, "DL_VARS" => []);'
	perl -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 /home/icd/a/bartley/lib/perl5/ExtUtils/xsubpp  -typemap /home/icd/a/bartley/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
	cc -c -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public -I. -I/opt/oracle/rdbms/demo -I/home/icd/a/bartley/lib/perl5/site_perl/aix/DBI -I/home/icd/a/bartley/lib/perl5/aix/5.003/DBI -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/home/icd/a/bartley/lib/perl5/aix/5.003/CORE  Oracle.c
	cc -c -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public -I. -I/opt/oracle/rdbms/demo -I/home/icd/a/bartley/lib/perl5/site_perl/aix/DBI -I/home/icd/a/bartley/lib/perl5/aix/5.003/DBI -qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/usr/local/include -D_NO_PROTO -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/home/icd/a/bartley/lib/perl5/aix/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
	chmod 644 Oracle.bs
	LD_RUN_PATH="/opt/oracle/lib:/lib" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.so -H512 -T512 -bhalt:4 -bM:SRE -bI:/home/icd/a/bartley/lib/perl5/aix/5.003/CORE/perl.exp -bE:Oracle.exp -b noentry -lc -L/usr/local/lib Oracle.o  dbdimp.o    -L/opt/oracle/lib -L/opt/oracle/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lm -lld -lm -lm -lcore3 
	chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.so
	cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
	chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
Target "makemakerdflt" is up to date.
icd make test
	PERL_DL_NONLAZY=1 /home/icd/a/bartley/bin/perl -I./blib/arch -I./blib/lib -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  0 secs ( 0.66 cusr  0.07 csys =  0.73 cpu)
	PERL_DL_NONLAZY=1 /home/icd/a/bartley/bin/perl -I./blib/arch -I./blib/lib -I/home/icd/a/bartley/lib/perl5/aix/5.003 -I/home/icd/a/bartley/lib/perl5 test.pl
Oraperl test application $Revision: 1.29 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.73 Switch by Tim Bunce, version 0.73


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'labops/badBoys' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='', TWO_TASK='pucc')
Fields:  4
Names:   'NUM_T',	'DATE_T',	'CHAR_T',	'NULL_T'
Lengths: '40',	'75',	'30',	'0'
Types:   '2',	'12',	'1',	'1'
Data rows:
    fetch: 79.2 29-JAN-97 LABOPS NULL

csr reassigned (forces destruction)...
Fetch list of tables:
Fetched: DUAL
Fetched: SYSTEM_PRIVILEGE_MAP
Fetched: TABLE_PRIVILEGE_MAP
Fetched: STMT_AUDIT_OPTION_MAP
Test ora_do with harmless non-select statement (set transaction read only)
Expect error message:
ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error)
csr out of scope...
ora_logoff...
lda out of scope...

Testing repetitive connect/open/close/disconnect:
Expect sequence of digits, no other messages:
1 2 3 4 5 

Test interaction of explicit close/logoff and implicit DESTROYs
Expect just 'done.', no other messages:
done.

Testing row cache (5).
Test completed in 1 seconds.

Testing PL/SQL interaction.
Testing numeric bind_param_inout. Expect '200', '3800', '75800':
param='200'
param='3800'
param='75800'
Testing string bind_param_inout. Expect '**foo**':
param='**foo**'

Test complete (4 seconds).
If the tests above have produced the 'expected' output then they have passed.
Target "test" is up to date.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03856-9@oink>;
          Wed, 29 Jan 1997 18:02:40 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854558990:9:27843:0; Wed, 29 Jan 97 17:29:50 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa927716; 29 Jan 97 17:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA08092 for dbi-users-real; Wed, 29 Jan 1997 08:26:36 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from firewall2.cummins.com (firewall-user@fw2.cummins.com [205.230.25.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA08088 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 08:26:33 -0800 (PST)
Received: by firewall2.cummins.com; id LAA23129; Wed, 29 Jan 1997 11:26:31 -0500
Received: from unknown(143.222.15.21) by firewall2.cummins.com via smap (3.2) 
          id xma023124; Wed, 29 Jan 97 11:26:03 -0500
Received: from blitzen_new.eeg.cummins.com by ceco1.cummins.com;
          (5.65v3.2/1.1.8.2/04Mar96-1128AM) id AA01564;
          Wed, 29 Jan 1997 11:26:03 -0500
Received: from prancer.eeg.cummins.com 
          by blitzen.eeg.cummins.com (5.x/SMI-SVR4) id AA03270;
          Wed, 29 Jan 1997 11:26:02 -0500
Received: from jughead by prancer.eeg.cummins.com (5.x/SMI-SVR4) id AA27009;
          Wed, 29 Jan 1997 11:26:01 -0500
Message-Id: <32EF7A19.68BA@cummins.com>
Date: Wed, 29 Jan 1997 11:26:01 -0500
From: Vinay Sawardekar <v.sawardekar@cummins.com>
Organization: Cummins Engine Company, Inc.
X-Mailer: Mozilla 2.02 (X11; U; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Module security issue
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Although this is not purely a DBI issue it is kinda related to it (the truth is
I am desperate after unsuccessfully trying sources like comp.lang.perl.module ...).


Can anyone of you Perl gurus help me with my current problem?

I have created a module called 'Security.pm' that is like a wrapper
around 'Oracle.pm'.  Basically my intention is to prevent
certain users from performing certain operations on certain tables
(believe me its not a database security issue but a more complex one.)

My problem is that the 'Security.pm' module needs to be made
available to all users (they can 'use' it in their Perl scripts) but they
should not be allowed to copy or even look at the contents.

I have tried making the file executable only at the OS level (UNIX) but the Perl
interpreter could not read it - quite obvious.

So how do I make the Perl interpreter read a module that has no read permissions or
is encripted or hidden?

Your help would be greatly appreciated.

Thanks.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03979-0@oink>;
          Wed, 29 Jan 1997 18:10:58 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854561395:9:13969:2; Wed, 29 Jan 97 18:09:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa913947; 29 Jan 97 18:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA08179 for dbi-users-real; Wed, 29 Jan 1997 09:07:39 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA08175 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 09:07:37 -0800 (PST)
Received: by gateway.fcmc.com; id MAA25359;
          Wed, 29 Jan 1997 12:07:32 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma025352; Wed, 29 Jan 97 12:07:25 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA09433;
          Wed, 29 Jan 97 12:07:24 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA26246; Wed, 29 Jan 97 12:07:18 EST
Date: Wed, 29 Jan 97 12:07:18 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9701291707.AA26246@anderson.fcmc.com>
To: descarte@hermetica.com
Subject: Re: (Sorry) Informix temp tables
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Sorry for words,  nothing personal.
I had a lot of problems w/ old versions 
(got to rewrite some things in dbdimp.ec),
that's why an exitement of new one is that big.
Definetely, the humanity will ever appreciate 
the efforts of the past generations!!

-- Take it easy

Serge Davidov (DBA)
Fuji Capital Markets Corporation (New York)
(212)898-2936


> From descarte@hermetica.com Wed Jan 29 11:43:39 1997
> From: descarte@hermetica.com
> Subject: Re: Informix temp tables
> To: serge@fcmc.com (Serge Davidov (DBA))
> Date: Wed, 29 Jan 1997 17:39:13 +0000 (GMT)
> Cc: MARIANI@morgan.com, dbi-users@fugue.com
> X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
> X-Mailer: ELM [version 2.4 PL24]
> Mime-Version: 1.0
> Content-Type> : > text/plain> ; > charset=US-ASCII> 
> Content-Transfer-Encoding: 7bit
> Content-Length: 454
> 
> 
> > The lousy implementation of Informix-DBD 0.23 mistakes such
> > a SQL code. Use version 0.25 which was released a couple of months
> > ago (courtesy of johnl@informix.com (Jonathan Leffler)).
> 
> Thanks for the vote of confidence in the previous versions.
> 
> Makes me wonder why I bother, sometimes.
> 
> > Serge Davidov (DBA)
> 
> A.
> 
> -- 
> Alligator Descartes       |
> descarte@hermetica.com    |   "Lobey est le petit garcon!" -- Bud Neill
> http://www.hermetica.com  |
> 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04805-5@oink>;
          Wed, 29 Jan 1997 19:05:55 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854563562:10:29044:0; Wed, 29 Jan 97 18:46:02 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028843; 29 Jan 97 18:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA08282 for dbi-users-real; Wed, 29 Jan 1997 09:44:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA08278 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 09:44:19 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id JAA13810;
          Wed, 29 Jan 1997 09:40:38 -0800
Date: Wed, 29 Jan 1997 09:40:38 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: Vinay Sawardekar <v.sawardekar@cummins.com>
cc: dbi-users@fugue.com
Subject: Re: Module security issue
In-Reply-To: <32EF7A19.68BA@cummins.com>
Message-ID: <Pine.SOL.3.95.970129091940.13603A-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Wed, 29 Jan 1997, Vinay Sawardekar wrote:

> I have created a module called 'Security.pm' that is like a wrapper
> around 'Oracle.pm'.  Basically my intention is to prevent
> certain users from performing certain operations on certain tables
> (believe me its not a database security issue but a more complex one.)

OK, I believe you (but there is a _very_ robust mechanism for access
control built into oracle on a user/role/view basis).  And if it's not
handled at the DBMS level, have you disabled access to sql*plus?

> My problem is that the 'Security.pm' module needs to be made
> available to all users (they can 'use' it in their Perl scripts) but they
> should not be allowed to copy or even look at the contents.
> I have tried making the file executable only at the OS level (UNIX) but 
> the Perl interpreter could not read it - quite obvious.

How big is Security.pm?  Could you re-write it in C and load it
dynamically?  That would hide the sources, at least.

Making a setuid version of perl won't work, cause if they can execute
it they can write a one-liner to type the Security.pm module.

How about going the other direction?  Making Security.pm a program
with setuid (via emulation or a wrapper) that reads and excutes the
users code (via eval)?  Then they would always execute as the setuid
account, but you could still establish their identity...

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04805-8@oink>;
          Wed, 29 Jan 1997 19:06:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854563827:9:01400:35; Wed, 29 Jan 97 18:50:27 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901624; 29 Jan 97 18:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA08306 for dbi-users-real; Wed, 29 Jan 1997 09:55:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA08302 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 09:55:17 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id JAA13874;
          Wed, 29 Jan 1997 09:51:30 -0800
Date: Wed, 29 Jan 1997 09:51:30 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: Vinay Sawardekar <v.sawardekar@cummins.com>
cc: dbi-users@fugue.com
Subject: Re: Module security issue
In-Reply-To: <Pine.SOL.3.95.970129091940.13603A-100000@serac>
Message-ID: <Pine.SOL.3.95.970129094434.13603B-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Wed, 29 Jan 1997, Chris Abajian wrote:

> How about going the other direction?  Making Security.pm a program
> with setuid (via emulation or a wrapper) that reads and excutes the
> users code (via eval)?  Then they would always execute as the setuid
> account, but you could still establish their identity...
 
whoops, I spoke too soon.  that doesn't work either.  their code could
still type the file.  Interesting problem, pretty hard.  I'd go for
compiled C code.  Which could conceivably be disassembled... be sure
to mash up any strings used as passwords.

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-22@oink>;
          Thu, 30 Jan 1997 07:38:09 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854568725:10:00947:3; Wed, 29 Jan 97 20:12:05 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1000923; 29 Jan 97 20:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA08498 for dbi-users-real; Wed, 29 Jan 1997 11:05:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from firewall2.cummins.com (firewall-user@fw2.cummins.com [205.230.25.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id LAA08494 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 11:05:26 -0800 (PST)
Received: by firewall2.cummins.com; id OAA28520; Wed, 29 Jan 1997 14:05:25 -0500
Received: from unknown(143.222.15.21) by firewall2.cummins.com via smap (3.2) 
          id xma028500; Wed, 29 Jan 97 14:04:50 -0500
Received: from blitzen_new.eeg.cummins.com by ceco1.cummins.com;
          (5.65v3.2/1.1.8.2/04Mar96-1128AM) id AA08827;
          Wed, 29 Jan 1997 14:04:50 -0500
Received: from prancer.eeg.cummins.com 
          by blitzen.eeg.cummins.com (5.x/SMI-SVR4) id AA11761;
          Wed, 29 Jan 1997 14:04:49 -0500
Received: from jughead by prancer.eeg.cummins.com (5.x/SMI-SVR4) id AA29650;
          Wed, 29 Jan 1997 14:04:49 -0500
Message-Id: <32EF9F50.679E@cummins.com>
Date: Wed, 29 Jan 1997 14:04:48 -0500
From: Vinay Sawardekar <v.sawardekar@cummins.com>
Organization: Cummins Engine Company, Inc.
X-Mailer: Mozilla 2.02 (X11; U; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Re: Module security issue
References: <Pine.SOL.3.95.970129091940.13603A-100000@serac>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Chris Abajian wrote:
> 
> On Wed, 29 Jan 1997, Vinay Sawardekar wrote:
> 
> > I have created a module called 'Security.pm' that is like a wrapper
> > around 'Oracle.pm'.  Basically my intention is to prevent
> > certain users from performing certain operations on certain tables
> > (believe me its not a database security issue but a more complex one.)
> 
> OK, I believe you (but there is a _very_ robust mechanism for access
> control built into oracle on a user/role/view basis).  And if it's not
> handled at the DBMS level, have you disabled access to sql*plus?
Yur right about moving the security to the DBMS level and thats what
our final goal is.  We are in the midst of redesigning the entire system
and thats going to take us least a year.  The 'Security.pm' is a temporary 
solution to our security problem and its going to go end of the year.
Also, we have disabled access to sql*plus.


> 
> > My problem is that the 'Security.pm' module needs to be made
> > available to all users (they can 'use' it in their Perl scripts) but they
> > should not be allowed to copy or even look at the contents.
> > I have tried making the file executable only at the OS level (UNIX) but
> > the Perl interpreter could not read it - quite obvious.
> 
> How big is Security.pm?  Could you re-write it in C and load it
> dynamically?  That would hide the sources, at least.
Hmmm!  Does this mean that if I rewrite it in 'C' I can use it like a
Perl module - for example can I have access to a variable in the 'C' module
from a Perl script?  Right now I am using something like Security::my_black_listed_users.



> 
> Making a setuid version of perl won't work, cause if they can execute
> it they can write a one-liner to type the Security.pm module.
> 
Yes, but if they have no idea how the methods in 'Security.pm' work they
will not be in the position to write their own.  The users are not competent
enough to mess with Oraperl but are smart enough to modify the hardcoded
conditions in 'Security.pm'.


Thanks for your help.   I think I'll go with the compiled C code for now.

Although I wish there was some better way of implementing business rules
in Perl modules.  


> 
> ----------------------------------------------------------------------
> Chris Abajian                                 couloir@u.washington.edu
> Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
> University of Washington, Box 357730                fax (206) 685-7301
> Seattle, WA 98195


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-46@oink>;
          Thu, 30 Jan 1997 07:41:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854576882:10:17539:0; Wed, 29 Jan 97 22:28:02 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017502; 29 Jan 97 22:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA08836 for dbi-users-real; Wed, 29 Jan 1997 13:14:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bkinis1-1.morgan.com (bkinis.ms.com [204.254.196.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA08830 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 13:14:04 -0800 (PST)
From: MARIANI@morgan.com
Received: (from mail@localhost) by bkinis1-1.morgan.com (8.8.4/fw v1.22) 
          id QAA22932 for <dbi-users@fugue.com>;
          Wed, 29 Jan 1997 16:14:00 -0500 (EST)
Message-Id: <199701292114.QAA22932@bkinis1-1.morgan.com>
Received: from unknown(138.20.31.2) by bkinis1-1.morgan.com via smap (V1.3) 
          id smaa22756; Wed Jan 29 16:13:32 1997
Received: from EMC2 by MORGANF.MORGAN.COM (IBM MVS SMTP V2R2.1) with BSMTP 
          id 8463; Wed, 29 Jan 97 04:13:15 EST
Date: Wed 29 Jan 1997 04:12 ET
To: dbi-users@fugue.com
Subject: Remote DB access for Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I need to query 2 databases using DBI.  One is the local database, the other
is on a remote machine.

 ($dbh = $drh->connect( db1 ) )
 works for the first

but

 ($dbh = $drh->connect( "//MACHINE/db2" ) )
 returns SQL error -926:
    INFORMIX-OnLine is not licensed for distributed data access.

I can access the remote database using dbaccess and also via a c program.  I
only have the problem using the perl DBI.

Do you have any ideas about how to query a database on a remote machine?

I'm using

 DBI v0.73
 ESQL/C  5.?
 DBD::Informix 0.25
 Sun Sparc 20
 Solaris 2.4
 Informix 5.04

Many thanks.

ann mariani
mariani@morgan.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-51@oink>;
          Thu, 30 Jan 1997 07:41:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854578039:9:03488:31; Wed, 29 Jan 97 22:47:19 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa903622; 29 Jan 97 22:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA08897 for dbi-users-real; Wed, 29 Jan 1997 13:41:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dn800e0.fingerhut.com (dn800e0-ext.fingerhut.com [204.221.45.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA08893 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 13:41:32 -0800 (PST)
Received: from dn800e0.fingerhut.com (root@localhost) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with ESMTP id PAA08251;
          Wed, 29 Jan 1997 15:42:10 -0600 (CST)
Received: from seag.fingerhut.com (GF007E0.SEAG.fingerhut.com [151.210.140.7]) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with SMTP id PAA08247;
          Wed, 29 Jan 1997 15:42:09 -0600 (CST)
Received: from gf006e0.fingerhut.com. by seag.fingerhut.com (SMI-8.6/SMI-SVR4) 
          id PAA15698; Wed, 29 Jan 1997 15:41:14 -0600
Received: by gf006e0.fingerhut.com. (5.x/SMI-SVR4) id AA20691;
          Wed, 29 Jan 1997 15:41:12 -0600
Date: Wed, 29 Jan 1997 15:41:12 -0600
Message-Id: <9701292141.AA20691@gf006e0.fingerhut.com.>
From: Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com>
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: DBI-0.75 problems with Perl 5.003_23 on Solaris 2.4
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

DBI.c fails to compile with an error in a prototype:

techarch@priam .../.cpan/build/DBI-0.75> perl Makefile.PL && make
 
    Remember to actually *read* the README file!
 
    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.
 
    DO NOT build the DBI under the Perl source tree.
 
    Use 'make test' to execute self tests.
 
    Install DBI (using 'make install' before building DBD::* drivers.
 
MakeMaker (v5.39)
Checking if your kit is complete...
Looks good
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/opt/gnu/perl/bin/perl
 
WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.
 
Writing Makefile for DBI
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
/opt/gnu/perl/bin/perl -I/opt/gnu/perl/lib -I/opt/gnu/perl/lib /opt/gnu/perl/lib/ExtUtils/xsubpp  -typemap /opt/gnu/perl/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
cc -c  -I/opt/gnu/include -O     -DVERSION=\"0.75\"  -DXS_VERSION=\"0.75\" -Kpic -I/opt/gnu/perl/lib/CORE  DBI.c
"DBI.xs", line 958: operands have incompatible types:
         pointer to struct cv {pointer to struct xpvcv {..} sv_any, ulong sv_refcnt, ulong sv_flags} ":" pointer to struct sv {pointer to void sv_any, ulong sv_refcnt, ulong sv_flags}
"DBI.xs", line 958: warning: argument #1 is incompatible with prototype:
        prototype: pointer to struct sv {pointer to void sv_any, ulong sv_refcnt, ulong sv_flags} : "/opt/gnu/perl/lib/CORE/proto.h", line 329
        argument : pointer to struct cv {pointer to struct xpvcv {..} sv_any, ulong sv_refcnt, ulong sv_flags}
cc: acomp failed for DBI.c
*** Error code 2
make: Fatal error: Command failed for target `DBI.o'
echarch@priam .../.cpan/build/DBI-0.75> perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 23) configuration:
  Platform:
    osname=solaris, osvers=2.4, archname=sun4-solaris
    uname='sunos gf006e0 5.4 generic_101945-32 sun4m sparc '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio= d_sfio=
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/opt/gnu/include'
    ccflags ='-I/opt/gnu/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags ='-L/usr/local/lib -L/opt/gnu/lib -L/usr/local/slib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib /usr/local/slib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib -L/usr/local/slib'
 
 
Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jan 29 1997 14:43:57
  @INC:
    /opt/gnu/perl/lib
    /opt/gnu/perl/lib/site_perl/sun4-solaris
    /opt/gnu/perl/lib/site_perl
    .


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-53@oink>;
          Thu, 30 Jan 1997 07:41:57 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854578046:9:03935:3; Wed, 29 Jan 97 22:47:26 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023859; 29 Jan 97 22:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA08902 for dbi-users-real; Wed, 29 Jan 1997 13:42:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dn800e0.fingerhut.com (dn800e0-ext.fingerhut.com [204.221.45.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA08898 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 13:41:59 -0800 (PST)
Received: from dn800e0.fingerhut.com (root@localhost) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with ESMTP id PAA08188;
          Wed, 29 Jan 1997 15:39:56 -0600 (CST)
Received: from seag.fingerhut.com (GF007E0.SEAG.fingerhut.com [151.210.140.7]) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with SMTP id PAA08184;
          Wed, 29 Jan 1997 15:39:55 -0600 (CST)
Received: from gf006e0.fingerhut.com. by seag.fingerhut.com (SMI-8.6/SMI-SVR4) 
          id PAA15683; Wed, 29 Jan 1997 15:39:00 -0600
Received: by gf006e0.fingerhut.com. (5.x/SMI-SVR4) id AA20606;
          Wed, 29 Jan 1997 15:38:58 -0600
Date: Wed, 29 Jan 1997 15:38:58 -0600
Message-Id: <9701292138.AA20606@gf006e0.fingerhut.com.>
From: Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com>
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: DBI-0.74 problems with Perl 5.003_23 on Solaris 2.4
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I rebuilt DBI-0.74 with Perl 5.003_23, and it compiled OK, but the
tests fail with the following:

perl Makefile.PL && make
 
    Remember to actually *read* the README file!
 
    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.
 
    DO NOT build the DBI under the Perl source tree.
 
    Use 'make test' to execute self tests.
 
    Install DBI (using 'make install' before building DBD::* drivers.
 
MakeMaker (v5.39)
Checking if your kit is complete...
Looks good
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/opt/gnu/perl/bin/perl
 
WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.
 
Writing Makefile for DBI
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
/opt/gnu/perl/bin/perl -I/opt/gnu/perl/lib -I/opt/gnu/perl/lib /opt/gnu/perl/lib/ExtUtils/xsubpp  -typemap /opt/gnu/perl/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
cc -c  -I/opt/gnu/include -O     -DVERSION=\"0.74\"  -DXS_VERSION=\"0.74\" -Kpic -I/opt/gnu/perl/lib/CORE  DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
LD_RUN_PATH="" cc -o blib/arch/auto/DBI/DBI.so -G -L/usr/local/lib -L/opt/gnu/lib -L/usr/local/slib DBI.o     
chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs ./blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
techarch@priam .../.cpan/build/DBI-0.74> make test
PERL_DL_NONLAZY=1 /opt/gnu/perl/bin/perl -I./blib/arch -I./blib/lib -I/opt/gnu/perl/lib -I/opt/gnu/perl/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
Global symbol "Is_VMS" requires explicit package name at /opt/gnu/perl/lib/Test/Harness.pm line 56.
 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
techarch@priam .../.cpan/build/DBI-0.74> perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 23) configuration:
  Platform:
    osname=solaris, osvers=2.4, archname=sun4-solaris
    uname='sunos gf006e0 5.4 generic_101945-32 sun4m sparc '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio= d_sfio=
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/opt/gnu/include'
    ccflags ='-I/opt/gnu/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags ='-L/usr/local/lib -L/opt/gnu/lib -L/usr/local/slib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib /usr/local/slib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib -L/usr/local/slib'
 
 
Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jan 29 1997 14:43:57
  @INC:
    /opt/gnu/perl/lib
    /opt/gnu/perl/lib/site_perl/sun4-solaris
    /opt/gnu/perl/lib/site_perl
    .


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-63@oink>;
          Thu, 30 Jan 1997 07:43:02 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854580947:10:09686:31; Wed, 29 Jan 97 23:35:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1009658; 29 Jan 97 23:35 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA09093 for dbi-users-real; Wed, 29 Jan 1997 14:40:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dn800e0.fingerhut.com (dn800e0-ext.fingerhut.com [204.221.45.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA09089 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 14:40:02 -0800 (PST)
Received: from dn800e0.fingerhut.com (root@localhost) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with ESMTP id QAA10205;
          Wed, 29 Jan 1997 16:40:51 -0600 (CST)
Received: from seag.fingerhut.com (GF007E0.SEAG.fingerhut.com [151.210.140.7]) 
          by dn800e0.fingerhut.com (8.7.5/8.7.3) with SMTP id QAA10201;
          Wed, 29 Jan 1997 16:40:51 -0600 (CST)
Received: from gf006e0.fingerhut.com. by seag.fingerhut.com (SMI-8.6/SMI-SVR4) 
          id QAA16086; Wed, 29 Jan 1997 16:39:55 -0600
Received: by gf006e0.fingerhut.com. (5.x/SMI-SVR4) id AA23603;
          Wed, 29 Jan 1997 16:39:51 -0600
Date: Wed, 29 Jan 1997 16:39:51 -0600
Message-Id: <9701292239.AA23603@gf006e0.fingerhut.com.>
From: Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com>
To: dbi-users@fugue.com, Tim.Bunce@ig.co.uk
Subject: Re: DBI-0.74 problems with Perl 5.003_23 on Solaris 2.4
In-Reply-To: <9701292138.AA20606@gf006e0.fingerhut.com.>
References: <9701292138.AA20606@gf006e0.fingerhut.com.>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Bruce Albrecht writes:
 >     *** From dbi-users -- To unsubscribe, see the end of this message. ***
 > 
 > I rebuilt DBI-0.74 with Perl 5.003_23, and it compiled OK, but the
 > tests fail with the following:

I'm building Perl 5.003_24 right now, but it's got a fix for
lib/Test/Harness.pm that would explain this problem.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-89@oink>;
          Thu, 30 Jan 1997 07:45:47 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854591281:10:21003:17; Thu, 30 Jan 97 02:28:01 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021021; 30 Jan 97 2:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA09569 for dbi-users-real; Wed, 29 Jan 1997 17:08:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA09565 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 17:08:53 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id BAA04561 for dbi-users@fugue.com; Thu, 30 Jan 1997 01:08:23 GMT
Date: Thu, 30 Jan 97 01:08 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Tim releases DBI-0.75 - HURRAH! It won't compile - BOO!
To: dbi-users@fugue.com
Cc: tim.bunce@ig.co.uk
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.858101@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Small buglet (?) in DBI.xs in version 0.75, line 958:

UX:acomp: ERROR: "DBI.xs", line 958: operands have incompatible types: 
op ":"
UX:acomp: WARINING: "DBI.xs", line 958: argument is incompatible with 
prototype: arg #1

Platform is UnixWare 2.1.1 and Perl 5.002_24

An explicit cast to (SV*) is required thusly:

                                        HERE
                                        vvvvv   
outitems = perl_call_sv(isGV(imp_msv) ? (SV*)GvCV(imp_msv) : imp_msv,   
                      gimme);
                      
Methinks a compiler bug, perhaps?  AFAICS, GvCV returns a SV* - but 
after all it is very late on in the evening!

Even worse, DBD::Oracle v 0.44 still dies with the "uninitialised 
value" errors already reported :-(

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06429-99@oink>;
          Thu, 30 Jan 1997 07:46:51 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854596027:9:24975:2; Thu, 30 Jan 97 03:47:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005220; 30 Jan 97 3:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA09789 for dbi-users-real; Wed, 29 Jan 1997 18:49:11 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id SAA09785 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 18:49:08 -0800 (PST)
Received: by gateway.fcmc.com; id VAA09557;
          Wed, 29 Jan 1997 21:49:02 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma009555; Wed, 29 Jan 97 21:48:52 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA14012;
          Wed, 29 Jan 97 21:48:51 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA07057; Wed, 29 Jan 97 21:48:44 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9701300248.AA07057@anderson.fcmc.com>
Subject: Re: Informix temp tables
To: descarte@hermetica.com
Date: Wed, 29 Jan 1997 21:48:43 -0500 (EST)
Cc: dbi-users@fugue.com
X-Mailer: ELM [version 2.4 PL24]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

 Sorry for words,  nothing personal.
 I had a lot of problems w/ old versions 
 (got to rewrite some things in dbdimp.ec),
 that's why an exitement of new one is that big.
 Definetely, the humanity will ever appreciate 
 the efforts of the past generations!!
 
 -- Take it easy
 
 Serge Davidov (DBA)
 Fuji Capital Markets Corporation (New York)
 (212)898-2936
 
 
> > From descarte@hermetica.com Wed Jan 29 11:43:39 1997
> > From: descarte@hermetica.com
> > Subject: Re: Informix temp tables
> > To: serge@fcmc.com (Serge Davidov (DBA))
> > Date: Wed, 29 Jan 1997 17:39:13 +0000 (GMT)
> > Cc: MARIANI@morgan.com, dbi-users@fugue.com
> > X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
> > X-Mailer: ELM [version 2.4 PL24]
> > Mime-Version: 1.0
> > Content-Type> : > text/plain> ; > charset=US-ASCII> 
> > Content-Transfer-Encoding: 7bit
> > Content-Length: 454
> > 
> > 
> > > The lousy implementation of Informix-DBD 0.23 mistakes such
> > > a SQL code. Use version 0.25 which was released a couple of months
> > > ago (courtesy of johnl@informix.com (Jonathan Leffler)).
> > 
> > Thanks for the vote of confidence in the previous versions.
> > 
> > Makes me wonder why I bother, sometimes.
> > 
> > > Serge Davidov (DBA)
> > 
> > A.
> > 
> > -- 
> > Alligator Descartes       |
> > descarte@hermetica.com    |   "Lobey est le petit garcon!" -- Bud Neill
> > http://www.hermetica.com  |
> > 
> 
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------
> 
> 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <06629-1@oink>;
          Thu, 30 Jan 1997 07:47:22 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854603234:10:23822:1; Thu, 30 Jan 97 05:47:14 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023756; 30 Jan 97 5:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA10093 for dbi-users-real; Wed, 29 Jan 1997 20:55:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns1.cmpu.net (root@ns1.computek.net [204.96.11.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id UAA10089 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 20:55:26 -0800 (PST)
Received: from bambam.computek.net (bambam.computek.net [207.13.21.250]) 
          by ns1.cmpu.net (8.8.5/8.8.4) with SMTP id VAA16482 
          for <dbi-users@fugue.com>; Wed, 29 Jan 1997 21:51:34 -0600
Date: Wed, 29 Jan 1997 22:58:10 -0600 (CST)
From: M Bailey <bailey@computek.net>
To: dbi-users@fugue.com
Subject: really sick of it
Message-ID: <Pine.SUN.3.91.970129223123.11215D-100000@bambam.computek.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

-----BEGIN PGP SIGNED MESSAGE-----

Quite a while ago by some bad chance I subscribed to this mail group.
I'm sure any longtime reader of the group is familar with the problems
of mail list management that have occurred in the past. 

All of a sudden after many months I am again receiving a lot of mail from a 
group I did not subscribed to nor solicit.

The web page provided to manage this service is still as lame as ever.
I see no button to unsubscribe from the group. 

When I directly emailed the admin for this dist. group many many months ago 
I seem to remember getting a reply with the remark "get a clue" or something 
to that affect (the person was a real asshole and I hope they rot in cyber-hell).  

I know I emailed the entire group and that was not an accident. This is simply my
way of getting attention because I am getting your unwanted attention. I simply want 
to get off the merry go round again. 

Whoever is managing this group please take notice and drop me again from this group. 
and try to fix whatever db problem you have with your dist group or at the very 
least how bout a few more options on your subscriber web page such as:

unsubcribe from all dbi mail groups 

sorry to take everyone's time again. But this is REALLY frustrating.



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: PGP Signed with PineSign 1.0

iQCVAwUBMvAqIOMM6HIIjdv9AQG19QQAuvUpRvVb7OTkpTHqOIWmZ9KaghtSxQ3u
zB6KjMAOZ8Wq3XRfVpUOk78VOQyOho9Nq23T+fTwRNyY2xZxHUORrXJoq8mfflwT
cc6b32HERUD2TL3NLh5ZFTLboiFOD0ULw8U7VRK46Wbh3RkG7qfm6dsS1/KaBZHq
kiCodN5ogZM=
=ZvAx
-----END PGP SIGNATURE-----
 
-Mike
	     My email, my opinions, nothing more nothing less 
**********************************************************************
*     Mike Bailey                    email bailey@computek.net       *
* pgp key server www-swiss.ai.mit.edu/~bal/pks-commands.html#extract *
* PGP fingerprint =  C3 3B 63 E9 57 4F D6 93  35 0D 66 16 47 28 05 22*
**********************************************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08851-18@oink>;
          Thu, 30 Jan 1997 10:58:05 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854621422:9:07706:0; Thu, 30 Jan 97 10:50:22 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002727; 30 Jan 97 10:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id BAA10743 for dbi-users-real; Thu, 30 Jan 1997 01:39:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cegelecproj.co.uk (ganymede.cegelecproj.co.uk [159.245.72.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id BAA10739 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 01:39:41 -0800 (PST)
Received: from vampire.cegelecproj.co.uk (cerberus.cegelecproj.co.uk) 
          by cegelecproj.co.uk (4.1/SMI-4.1) id AA00254;
          Thu, 30 Jan 97 09:39:02 GMT
Received: from phantom.cegelecproj.co.uk 
          by vampire.cegelecproj.co.uk (SMI-8.6/SMI-SVR4) id JAA11819;
          Thu, 30 Jan 1997 09:29:10 GMT
Received: by phantom.cegelecproj.co.uk (SMI-8.6/SMI-SVR4) id JAA09653;
          Thu, 30 Jan 1997 09:29:09 GMT
Date: Thu, 30 Jan 1997 09:29:09 GMT
From: Steve_Kilbane@cegelecproj.co.uk
Message-Id: <199701300929.JAA09653@phantom.cegelecproj.co.uk>
X-Planation: X-Faces images can be viewed with the XFaces program
To: dbi-users@fugue.com, v.sawardekar@cummins.com
Subject: Re: Module security issue
X-Face: Iqsa(US9p?)Y^W+6Ff[Z]<t?\A!eaL'DG{20*#{C1;'Ct&}L}B^/1(aYI@hP)4!<}7D=2gm 
        8!$T`8QNfK<te\20%A\`wm*wa2"^Up*Qs"X}KeV*3XeB2te&sKp*t`N;^BDh[6=K{ZBE=O>rM"uFE) 
        lFDjag1e]\/#2

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> Yur right about moving the security to the DBMS level and thats what
> our final goal is.  We are in the midst of redesigning the entire system
> and thats going to take us least a year.  The 'Security.pm' is a temporary 
> solution to our security problem and its going to go end of the year.

Hmm. Security implimented by hiding the source code is a little like
sticking your head under the sheets when you think hear a burglar in your
room: the protection is imaginary at best.

You should be using some sort of authentication/encryption. If you can't
authenticate against some sort of user database, you could always consider
encrypting the source code, and only users who can provide a suitable
decryption key get to run it. :-) Be warned that the user could
circumvent that, too, by just running perl with -d...

steve



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <10583-2@oink>;
          Thu, 30 Jan 1997 18:01:02 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854640009:5:19392:3; Thu, 30 Jan 97 16:00:09 GMT
Received: from relay-finch.mail.demon.net ([158.152.1.63]) 
          by relay-5.mail.demon.net id aa519013; 30 Jan 97 15:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-finch.mail.demon.net 
          id aa002538; 30 Jan 97 15:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA11299 for dbi-users-real; Thu, 30 Jan 1997 06:41:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from news.prc.com (news.nntp.prc.com [140.188.128.29]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA11295 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 06:41:40 -0800 (PST)
Received: from mcl2.prc.com (ems.prc.com [140.188.192.202]) 
          by news.prc.com (8.7.5/8.6.12) with SMTP id JAA04254 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 09:15:24 -0500 (EST)
Received: by mcl2.prc.com 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) 
          id <01BC0E8E.6148D800@mcl2.prc.com>; Thu, 30 Jan 1997 09:17:13 -0500
Message-ID: <c=US%a=_%p=PRC%l=MCL5-970130141810Z-1983@mcl2.prc.com>
From: Metzger Karen <Metzger_Karen@ems.prc.com>
To: 'Kevin Stock' <KStock@auspex.com>
Cc: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: really sick of it
Date: Thu, 30 Jan 1997 09:18:10 -0500
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Encoding: 71 TEXT

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Dear Kevin Stock et al,

Just an innocent bystander, & I've been quietly observing for a while, &
thought I'd put in my two cents, since you certainly aren't too bashful
to do the same.

I don't know that I've ever seen any tantrums quite like those exhibited
in the past by the administrators of this list. It's really too bad that
is the case. Occasionally, if the users are overlooked, disrespected,
publicly reprimanded, they are likely to get upset. If you don't like
your volunteer job, then don't do it. There are plenty of other people
who have manners that can do what you do with some finesse.

Karen M.
>----------
>From: 	Kevin Stock
>Sent: 	Thursday, January 30, 1997 5:52 AM
>To: 	M Bailey
>Cc: 	dbi-users@fugue.com
>Subject: 	Re: really sick of it
>
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>> All of a sudden after many months I am again receiving a lot of mail from a
>> group I did not subscribed to nor solicit.
>
>This is not the fault of the mailing list or its administrator. There
>are, unfortunately, people who gather and misuse email addresses.
>
>> The web page provided to manage this service is still as lame as ever.
>> I see no button to unsubscribe from the group.
>
>There is a paragraph which reads:
>
>| Current Subscribers:
>|
>| If you are already subscribed to some mailing lists and wish to
>| change or cancel your subscription, [...]
>
>Seems clear to me. After you find your entry, you get a list of
>checkboxes; you uncheck them to unsubscribe.
>
>> I know I emailed the entire group and that was not an accident. This is
>>simply my
>> way of getting attention because I am getting your unwanted attention. I
>>simply want
>> to get off the merry go round again.
>
>So, because you can't be bothered to read the Web page, we must all
>put up with your tantrum.
>
>> Whoever is managing this group please take notice and drop me again from
>>this group.
>
>Managing the mailing list is a volunteer job. If you use the tools
>provided, you will make life much simpler for yourself and for others.
>
>	Kevin
>
>
>-----------------------------------------------------------------------------
>-
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
>page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by
>hand.
>-----------------------------------------------------------------------------
>-
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10586-5@oink>;
          Thu, 30 Jan 1997 18:01:30 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854625977:9:04796:0; Thu, 30 Jan 97 12:06:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1026776; 30 Jan 97 12:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA10874 for dbi-users-real; Thu, 30 Jan 1997 02:51:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailhost.auspex.co.uk (ns.auspex.co.uk [195.11.31.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id CAA10870 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 02:51:14 -0800 (PST)
Received: from uk.auspex.com ([144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id KAA06519;
          Thu, 30 Jan 1997 10:51:06 GMT
Received: from balzac.fr.auspex.com ) by uk.auspex.com (4.1/mail.byaddr) 
          id AA12308 for bailey@computek.net; Thu, 30 Jan 97 10:51:01 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id LAA01233; Thu, 30 Jan 1997 11:52:41 +0100 (MET)
Message-Id: <32F07D77.2781E494@Auspex.Com>
Date: Thu, 30 Jan 1997 11:52:39 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: M Bailey <bailey@computek.net>
Cc: dbi-users@fugue.com
Subject: Re: really sick of it
References: <Pine.SUN.3.91.970129223123.11215D-100000@bambam.computek.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> All of a sudden after many months I am again receiving a lot of mail from a
> group I did not subscribed to nor solicit.

This is not the fault of the mailing list or its administrator. There
are, unfortunately, people who gather and misuse email addresses.

> The web page provided to manage this service is still as lame as ever.
> I see no button to unsubscribe from the group.

There is a paragraph which reads:

| Current Subscribers:
|
| If you are already subscribed to some mailing lists and wish to
| change or cancel your subscription, [...]

Seems clear to me. After you find your entry, you get a list of
checkboxes; you uncheck them to unsubscribe.

> I know I emailed the entire group and that was not an accident. This is simply my
> way of getting attention because I am getting your unwanted attention. I simply want
> to get off the merry go round again.

So, because you can't be bothered to read the Web page, we must all
put up with your tantrum.

> Whoever is managing this group please take notice and drop me again from this group.

Managing the mailing list is a volunteer job. If you use the tools
provided, you will make life much simpler for yourself and for others.

	Kevin


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10625-74@oink>;
          Thu, 30 Jan 1997 18:10:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854644874:9:03626:1; Thu, 30 Jan 97 17:21:14 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1015341; 30 Jan 97 17:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA11455 for dbi-users-real; Thu, 30 Jan 1997 08:18:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from psci.sas.upenn.edu (pat@PSCI.SAS.UPENN.EDU [130.91.92.84]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA11451 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 08:18:42 -0800 (PST)
Received: (from pat@localhost) by psci.sas.upenn.edu (8.8.5/8.7.3) id LAA62662 
          for dbi-users@fugue.com; Thu, 30 Jan 1997 11:18:33 -0500
From: Pat Hildebrand <pat@ssc.upenn.edu>
Message-Id: <199701301618.LAA62662@psci.sas.upenn.edu>
Subject: Re: Fix: can't login DBD-Oracle under AIX 4.1.4
To: bartley@icd.cc.purdue.edu (Eric Bartley)
Date: Thu, 30 Jan 1997 11:16:55 -0500 (EST)
In-Reply-To: <199701291541.KAA129708@icd.cc.purdue.edu> from "Eric Bartley" at Jan 29, 97 10:41:16 am
X-Mailer: ELM [version 2.4 PL23-upenn3.1]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

We had not solved our problems so we tried again using DBI-0.75 and
DBD-Oracle-0.44 as instructed in the readme and again had problems. We
then tried using Eric Bartley's fix and everything is fine with the
installation and test (I still have to check on all of my oraperl
scripts to see if they move as easily as advertized).

    Oracle 7.3.2.1
    AIX 4.1.4


                   Pat Hildebrand



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10625-76@oink>;
          Thu, 30 Jan 1997 18:10:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854645297:9:06606:2; Thu, 30 Jan 97 17:28:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa906542; 30 Jan 97 17:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA11485 for dbi-users-real; Thu, 30 Jan 1997 08:30:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from andare.fugue.com (mellon.tiac.net [206.119.204.48]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id IAA11481;
          Thu, 30 Jan 1997 08:30:49 -0800 (PST)
Received: from [[UNIX: localhost]] ([[UNIX: localhost]]) 
          by andare.fugue.com (8.8.4/8.6.11) with SMTP id IAA00598;
          Thu, 30 Jan 1997 08:30:45 -0800 (PST)
Message-Id: <199701301630.IAA00598@andare.fugue.com>
To: M Bailey <bailey@computek.net>
cc: dbi-users@fugue.com
Subject: Re: really sick of it
In-reply-to: Your message of "Wed, 29 Jan 1997 22:58:10 CST." <Pine.SUN.3.91.970129223123.11215D-100000@bambam.computek.net>
Date: Thu, 30 Jan 1997 08:30:43 -0800
From: Ted Lemon <mellon@fugue.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> The web page provided to manage this service is still as lame as ever.
> I see no button to unsubscribe from the group. 

To quote from the lame web page to which you refer:

    The checkboxes below indicate the current state of your
    subscriptions. If you wish to subscribe to a a list to which you
    are not yet subscribed, click the checkbox next to it.  

    >>> If you wish to unsubscribe from a mailing list to which you are <<<
    >>> currently subscribed, likewise click the checkbox next to it.   <<<

I don't know of a better way to word this, although I'm open to
suggestions.   Putting useful explanatory text here is complicated by
the fact that what you see depends on what web browser you're running,
and on what operating system.   So to some extent I have to trust that
you already know how to operate your web browser.

For example, if you run Netscape under the X Window System, you see
Three-D buttons, which appear to be out if you're not subscribed, and
in if you are.   If you're running Netscape on the Mac, you see empty
boxes if you're not subscribed, and boxes with X marks in them if you
are.   I think on Win95 you see empty boxes or boxes with check marks
in them.   I'm sure Microsoft Explorer does something completely
different.

> All of a sudden after many months I am again receiving a lot of mail from a 
> group I did not subscribed to nor solicit.

I'm sorry about that.   The reason this happened to you is that there
was a bug in the mailing list software such that if you were not
subscribed to the announce mailing list, you didn't get mail for the
other lists either, regardless of whether or not you had subscribed.
When I fixed the bug, you started getting mail again.

In any case, the solution for you is to go to the web page and enter
your last name (you're the only Bailey on the list, so there's no
point in getting more specific).   Then when it brings up your
subscription record, enter your passcode (click on the button that
says ``Click here to mail your passcode to yourself'' if you don't
have a record of your passcode) and click on the checkbox to the left
of the phrase ``send me mail for DBI users''.  This is the only
mailing list to which you're currently subscribed, so clicking once
should raise the 3-d button, erase the X or checkmark, or whatever.
Then click on Apply Changes.   Your subscription should be gone, and
you will receive a confirmation message by email.   You may receive a
few more messages from dbi-users that were sent before you subscribed
and have not yet been delivered to you, but you shouldn't get any more
mail after those have been delivered.

Please remember that this mailing list is a free service, and that you
did subscribe willingly - nobody added you to the list without your
permission.  Because it's a free service, the level of personal
service you get isn't very high - I've tried to automate it as much as
possible.  Calling me an asshole because I don't provide you with
free, personalized service isn't very constructive, or, for that
matter, very accurate.

			       _MelloN_


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10625-79@oink>;
          Thu, 30 Jan 1997 18:10:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854645434:10:18854:1; Thu, 30 Jan 97 17:30:34 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1018796; 30 Jan 97 17:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA11494 for dbi-users-real; Thu, 30 Jan 1997 08:33:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from v7.vitro.com (www.vitro.com [149.32.254.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA11490 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 08:32:55 -0800 (PST)
Received: from imapc.vitro.com by v7.vitro.com with SMTP;
          Thu, 30 Jan 1997 11:30:39 -0500
Received: from ccMail 
          by imapc.vitro.com (IMA Internet Exchange 2.02 Enterprise) 
          id 2F0CC280; Thu, 30 Jan 97 11:28:24 -0500
Mime-Version: 1.0
Date: Thu, 30 Jan 1997 11:26:15 -0500
Message-ID: <2F0CC280.1669@vit-ms.ccmail.vitro.com>
From: DILLAHUS@vit-ms.ccmail.vitro.com (DILLAHUS)
Subject: really sick of it
To: dbi-users@fugue.com
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

     
I would also like my name removed from the list.
Thank YOU

SHENDA DILLAHUS email address dillahus@vitro.com


______________________________ Forward Header __________________________________
Subject: really sick of it
Author:  M Bailey <bailey@computek.net> at Internet
Date:    1/29/97 10:58 PM


    *** From dbi-users -- To unsubscribe, see the end of this message. ***

-----BEGIN PGP SIGNED MESSAGE-----

Quite a while ago by some bad chance I subscribed to this mail group.
I'm sure any longtime reader of the group is familar with the problems
of mail list management that have occurred in the past. 

All of a sudden after many months I am again receiving a lot of mail from a 
group I did not subscribed to nor solicit.

The web page provided to manage this service is still as lame as ever.
I see no button to unsubscribe from the group. 

When I directly emailed the admin for this dist. group many many months ago 
I seem to remember getting a reply with the remark "get a clue" or something 
to that affect (the person was a real asshole and I hope they rot in
cyber-hell).  

I know I emailed the entire group and that was not an accident. This is simply
my
way of getting attention because I am getting your unwanted attention. I simply
want 
to get off the merry go round again. 

Whoever is managing this group please take notice and drop me again from this
group. 
and try to fix whatever db problem you have with your dist group or at the very 
least how bout a few more options on your subscriber web page such as:

unsubcribe from all dbi mail groups 

sorry to take everyone's time again. But this is REALLY frustrating.



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: PGP Signed with PineSign 1.0

iQCVAwUBMvAqIOMM6HIIjdv9AQG19QQAuvUpRvVb7OTkpTHqOIWmZ9KaghtSxQ3u
zB6KjMAOZ8Wq3XRfVpUOk78VOQyOho9Nq23T+fTwRNyY2xZxHUORrXJoq8mfflwT
cc6b32HERUD2TL3NLh5ZFTLboiFOD0ULw8U7VRK46Wbh3RkG7qfm6dsS1/KaBZHq
kiCodN5ogZM=
=ZvAx
-----END PGP SIGNATURE-----
 
-Mike
             My email, my opinions, nothing more nothing less 
**********************************************************************
*     Mike Bailey                    email bailey@computek.net       *
* pgp key server www-swiss.ai.mit.edu/~bal/pks-commands.html#extract *
* PGP fingerprint =  C3 3B 63 E9 57 4F D6 93  35 0D 66 16 47 28 05 22*
**********************************************************************



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12284-1@oink>;
          Thu, 30 Jan 1997 19:12:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854648876:10:09485:1; Thu, 30 Jan 97 18:27:56 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929763; 30 Jan 97 18:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA11639 for dbi-users-real; Thu, 30 Jan 1997 09:27:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from serac. (serac.mbt.washington.edu [128.95.231.215]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA11635 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 09:27:16 -0800 (PST)
Received: from localhost by serac. (SMI-8.6/SMI-SVR4) id JAA17326;
          Thu, 30 Jan 1997 09:23:40 -0800
Date: Thu, 30 Jan 1997 09:23:40 -0800 (PST)
From: Chris Abajian <chrisa@serac.mbt.washington.edu>
X-Sender: chrisa@serac
To: dbi-users@fugue.com
Subject: Re: email eternal flamewar
In-Reply-To: <9701292141.AA20691@gf006e0.fingerhut.com.>
Message-ID: <Pine.SOL.3.95.970130091331.17237B-100000@serac>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

To review:

The software is now a mission-critical component of our system and
I got it free.  Comes with an email conference for support, also
free.  They're of high quality and had a large impact on the cost
of our publicly funded research.  [Many thanks to all involved.]  If
the signal-to-noise ratio of the conference degrades occaisionally,
so what?  On my keyboard the 'D' key is located between 'S' and 'F',
just under 'E'.

Every email conference I've ever been in (which is quite a few) 
periodically has arguments about the listserver, email manners, etc.
It never accomplishes anything except wasting bandwidth & people's 
time.

----------------------------------------------------------------------
Chris Abajian                                 couloir@u.washington.edu
Dept. of Molecular Biotechnology, K-326            work (206) 616-1020
University of Washington, Box 357730                fax (206) 685-7301
Seattle, WA 98195



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12678-2@oink>;
          Thu, 30 Jan 1997 19:52:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854652468:9:23786:0; Thu, 30 Jan 97 19:27:48 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1000954; 30 Jan 97 19:27 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA11864 for dbi-users-real; Thu, 30 Jan 1997 10:27:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate.Cadence.COM (mailgate.Cadence.COM [158.140.2.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA11860 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 10:27:22 -0800 (PST)
Received: (from smap@localhost) by mailgate.Cadence.COM (8.6.8/8.6.8) 
          id KAA18716; Thu, 30 Jan 1997 10:27:16 -0800
Received: from cds251.cadence.com(158.140.98.30) by mailgate.cadence.com 
          via smap (V1.0mjr) id sma854648833.018701; Thu Jan 30 10:27:13 1997
Received: from cds251 (localhost [127.0.0.1]) 
          by cds251.Cadence.COM (8.7.3/8.7.3) with SMTP id KAA14511;
          Thu, 30 Jan 1997 10:27:00 -0800 (PST)
Message-ID: <32F0E7F3.715A@cadence.com>
Date: Thu, 30 Jan 1997 10:26:59 -0800
From: Yvonne Fan <yufen@cadence.com>
Organization: Cadence Design Systems, Inc.
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: johnl@informix.com, serge@fcmc.com, dsj@us.itd.umich.edu
CC: dbi-users@fugue.com, yufen@cds251.Cadence.COM
Subject: Re: Where can I get ESQL/C?
References: <199701290336.TAA08024@anubis.informix.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Actually, I got a ESQL/C Runtime from Netscape (You know, run the
"installesqrt" thing). And after installation, I can't find a excutable
"esql" under ~infromix/bin which DBD-informix-0.25 complained about,
however, there is a "esqlvers" under ~informix/bin that tells me I'm
using ESQL version 7.12.

Is installing ESQL/C Runtime sufficient for compiling DBD-informix?

How do I test if my ESQL is properly installed and working? Can I
connect to the remote DB and test some queries like Oracle SQLnet
(%sqlplus login/passwd@t:machine:DBname) via command line?

I'm sorry that I have so many questions which are really not about DBD
since I didn't have the menu nor did I get an answer from Netscape.
You're the only place I can turn to.

I'll be very appreciated for any help!

Thanks again,
Yvonne

Jonathan Leffler wrote:
> 
> You can buy it from Informix -- it is not available for free.
> Any more than OnLine is available for free.
> 
> Yours,
> Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
> 
> >From yufen@cadence.com Tue Jan 28 18:55 PST 1997
> >Date: Tue, 28 Jan 1997 18:54:45 -0800
> >From: Yvonne Fan <yufen@cadence.com>
> >Mime-Version: 1.0
> >To: dbi-users@fugue.com
> >Cc: johnl@informix.com, yufen@cds251.Cadence.COM
> >Subject: Where can I get ESQL/C?
> >Content-Transfer-Encoding: 7bit
> >
> >Hi,
> >
> >I just installed informix on-line 7.1 that comes with Netscape
> >Enterprise server and  was trying to make DBD-informix-0.25.
> >However, it complains about ESQL/C not properly installed.
> >
> >I'm fairly new to Informix...So my question may sound pretty dump: Where
> >can I get ESQL/C? Can I download it from somewhere for free?
> >
> >Thanks for the help!
> >
> >Appreciated,
> >Yvonne
> >


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12678-10@oink>;
          Thu, 30 Jan 1997 19:52:44 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854653307:10:05969:2; Thu, 30 Jan 97 19:41:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929207; 30 Jan 97 19:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA11936 for dbi-users-real; Thu, 30 Jan 1997 10:41:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from speedy.speakeasy.org (speedy.speakeasy.org [199.238.226.57]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA11932 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 10:41:31 -0800 (PST)
Received: (from brett@localhost) by speedy.speakeasy.org (8.8.5/8.7.3) 
          id KAA02287; Thu, 30 Jan 1997 10:39:36 -0800 (PST)
Date: Thu, 30 Jan 1997 10:39:36 -0800 (PST)
Message-Id: <199701301839.KAA02287@speedy.speakeasy.org>
From: Brett McCormick <brett@speedy.speakeasy.org>
To: Metzger Karen <Metzger_Karen@ems.prc.com>
Cc: 'Kevin Stock' <KStock@auspex.com>, 
    "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: RE: really sick of it
In-Reply-To: <c=US%a=_%p=PRC%l=MCL5-970130141810Z-1983@mcl2.prc.com>
References: <c=US%a=_%p=PRC%l=MCL5-970130141810Z-1983@mcl2.prc.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Regardless, people need to figure out themselves how to
subscribe/unsubscribe from the list.

On Thu, 30 January 1997, at 09:18:10, Metzger Karen wrote:

> Dear Kevin Stock et al,
> 
> Just an innocent bystander, & I've been quietly observing for a while, &
> thought I'd put in my two cents, since you certainly aren't too bashful
> to do the same.
> 
> I don't know that I've ever seen any tantrums quite like those exhibited
> in the past by the administrators of this list. It's really too bad that
> is the case. Occasionally, if the users are overlooked, disrespected,
> publicly reprimanded, they are likely to get upset. If you don't like
> your volunteer job, then don't do it. There are plenty of other people
> who have manners that can do what you do with some finesse.
> 
> Karen M.
> >----------
> >From: 	Kevin Stock
> >Sent: 	Thursday, January 30, 1997 5:52 AM
> >To: 	M Bailey
> >Cc: 	dbi-users@fugue.com
> >Subject: 	Re: really sick of it
> >
> >    *** From dbi-users -- To unsubscribe, see the end of this message. ***
> >
> >> All of a sudden after many months I am again receiving a lot of mail from a
> >> group I did not subscribed to nor solicit.
> >
> >This is not the fault of the mailing list or its administrator. There
> >are, unfortunately, people who gather and misuse email addresses.
> >
> >> The web page provided to manage this service is still as lame as ever.
> >> I see no button to unsubscribe from the group.
> >
> >There is a paragraph which reads:
> >
> >| Current Subscribers:
> >|
> >| If you are already subscribed to some mailing lists and wish to
> >| change or cancel your subscription, [...]
> >
> >Seems clear to me. After you find your entry, you get a list of
> >checkboxes; you uncheck them to unsubscribe.
> >
> >> I know I emailed the entire group and that was not an accident. This is
> >>simply my
> >> way of getting attention because I am getting your unwanted attention. I
> >>simply want
> >> to get off the merry go round again.
> >
> >So, because you can't be bothered to read the Web page, we must all
> >put up with your tantrum.
> >
> >> Whoever is managing this group please take notice and drop me again from
> >>this group.
> >
> >Managing the mailing list is a volunteer job. If you use the tools
> >provided, you will make life much simpler for yourself and for others.
> >
> >	Kevin
> >
> >
> >-----------------------------------------------------------------------------
> >-
> >To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> >If you are without web access, or if you are having trouble with the web
> >page,
> >please send mail to dbi-request@fugue.com.   Please try to use the web
> >page first - it will take a long time for your request to be processed by
> >hand.
> >-----------------------------------------------------------------------------
> >-
> >
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14298-0@oink>;
          Fri, 31 Jan 1997 07:37:04 +0000
Received: from relay-5.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854682804:5:05002:0; Fri, 31 Jan 97 03:53:24 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-5.mail.demon.net 
          id aa504988; 31 Jan 97 3:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA13497 for dbi-users-real; Thu, 30 Jan 1997 19:04:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA13493 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 19:04:18 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.7.5/8.7.3) with ESMTP id WAA14161;
          Thu, 30 Jan 1997 22:05:21 -0500 (EST)
Message-Id: <199701310305.WAA14161@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: Serene Taleb-Agha <serene@netsinc.com>
cc: dbi-users@fugue.com
Subject: Re: Problems with blob_read in DBD::Oracle
In-reply-to: Your message of "Thu, 30 Jan 1997 15:25:55 EST." <32F103D3.41C67EA6@netsinc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 30 Jan 1997 22:03:59 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Upgrade to 0.74 and 0.44. DBD-Oracle-0.73 contained a memory leak and required 
you to set $ora_cache=1.

BTW This list is archived @ http://www.rosat.mpe-garching.mpg.de/mailing-lists/
 and http://www.coe.missouri.edu/~faq/lists/ among other places.

John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-1@oink>;
          Fri, 31 Jan 1997 07:37:24 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854654843:10:14876:3; Thu, 30 Jan 97 20:07:23 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909398; 30 Jan 97 20:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA12043 for dbi-users-real; Thu, 30 Jan 1997 11:07:10 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA12039 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 11:07:08 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id LAA13311;
          Thu, 30 Jan 1997 11:06:30 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA24756;
          Thu, 30 Jan 1997 11:06:27 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id LAA07566;
          Thu, 30 Jan 1997 11:06:27 -0800
Date: Thu, 30 Jan 1997 11:06:27 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701301906.LAA07566@anubis.informix.com>
To: dsj@us.itd.umich.edu, johnl@informix.com, serge@fcmc.com, yufen@cadence.com
Cc: dbi-users@fugue.com, yufen@cds251.Cadence.COM
Subject: Re: Where can I get ESQL/C?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Date: Thu, 30 Jan 1997 10:26:59 -0800
>From: Yvonne Fan <yufen@cadence.com>
>
>Actually, I got a ESQL/C Runtime from Netscape (You know, run the
>"installesqrt" thing). And after installation, I can't find a excutable
>"esql" under ~informix/bin which DBD-informix-0.25 complained about,
>however, there is a "esqlvers" under ~informix/bin that tells me I'm
>using ESQL version 7.12.
>
>Is installing ESQL/C Runtime sufficient for compiling DBD-informix?

No, the ESQL/C Runtime allows you to run pre-existing ESQL/C applications.
It does not provide the ESQL/C compiler, deliberately.  You have to have
the ESQL/C Development system to get the compiler.

>How do I test if my ESQL is properly installed and working? Can I
>connect to the remote DB and test some queries like Oracle SQLnet
>(%sqlplus login/passwd@t:machine:DBname) via command line?

Well, normally if you get the ESQL/C RunTime, you also have some ESQL/C
application which can be tested to see whether it can connect to the (an)
Informix database.  If you don't have some sort of OnLine (or SE) licence
on your machine, you won't have DB-Access, which is another way of testing
connectivity...

>I'm sorry that I have so many questions which are really not about DBD
>since I didn't have the menu nor did I get an answer from Netscape.
>You're the only place I can turn to.

It takes some time to get to know everything about all this.  I'm still
working on it after 10 years!

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

>Jonathan Leffler wrote:
>> You can buy it from Informix -- it is not available for free.
>> Any more than OnLine is available for free.
>>
>>
>> >Date: Tue, 28 Jan 1997 18:54:45 -0800
>> >From: Yvonne Fan <yufen@cadence.com>
>> >
>> >I just installed informix on-line 7.1 that comes with Netscape
>> >Enterprise server and  was trying to make DBD-informix-0.25.
>> >However, it complains about ESQL/C not properly installed.
>> >
>> >I'm fairly new to Informix...So my question may sound pretty dump: Where
>> >can I get ESQL/C? Can I download it from somewhere for free?


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-31@oink>;
          Fri, 31 Jan 1997 07:41:12 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854659923:9:11239:6; Thu, 30 Jan 97 21:32:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1013526; 30 Jan 97 21:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA12286 for dbi-users-real; Thu, 30 Jan 1997 12:25:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.industry.net (mail.industry.net [208.147.96.38]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA12282 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 12:25:39 -0800 (PST)
Received: from dev.industry.net ([208.147.97.44]) 
          by mail.industry.net (Netscape Mail Server v1.1) with SMTP 
          id AAA14372 for <dbi-users@fugue.com>;
          Thu, 30 Jan 1997 15:24:54 -0400
Message-ID: <32F103D3.41C67EA6@netsinc.com>
Date: Thu, 30 Jan 1997 15:25:55 -0500
From: Serene Taleb-Agha <serene@netsinc.com>
Organization: Industry Net
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Problems with blob_read in DBD::Oracle
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello all,

I've been having trouble with the DBD::Oracle function blob_read. When I
call it, I get nothing back and $ora_errstr gets set to: 

ORA-01016: This function can be called only after a fetch (DBD: oflng
error)

This happens under the following configuration:
Perl 5.003
Oraperl Emulation Interface version 1.31 
Oracle Driver 0.43
DBI-0.73 Switch by Tim Bunce, version 0.73

but blob_read works fine under the following configuration:
Perl 5.002
Oraperl Emulation Interface version 1.23 
Oracle Driver 1.21 
DBI-0.66 Switch by Tim Bunce, version 0.66

I dug into the DBD::Oracle C code and traced the error to a call to
oflng, but that's as far as I have been able to get. Is anyone familiar
with this error?

Thanks!

Serene


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-49@oink>;
          Fri, 31 Jan 1997 07:43:23 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854662281:9:25910:4; Thu, 30 Jan 97 22:11:21 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1026175; 30 Jan 97 22:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA12518 for dbi-users-real; Thu, 30 Jan 1997 13:16:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA12514 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 13:16:27 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id NAA18895;
          Thu, 30 Jan 1997 13:15:48 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA28370;
          Thu, 30 Jan 1997 13:15:47 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id NAA01051;
          Thu, 30 Jan 1997 13:15:47 -0800
Date: Thu, 30 Jan 1997 13:15:47 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199701302115.NAA01051@anubis.informix.com>
To: MARIANI@morgan.com, dbi-users@fugue.com
Subject: Re: Remote DB access for Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: MARIANI@morgan.com
>Date: Wed 29 Jan 1997 04:12 ET
>
>I need to query 2 databases using DBI.  One is the local database, the other
>is on a remote machine.
>
> ($dbh = $drh->connect( db1 ) )
>
>works for the first but
>
> ($dbh = $drh->connect( "//MACHINE/db2" ) )
> returns SQL error -926:
>    INFORMIX-OnLine is not licensed for distributed data access.

This is somewhat unusual, I think.  I've not seen that problem, anyway.  I
would expect to use the database@server notation to connect to the remote
database from OnLine; I'd only use //machine/database for SE.  Since you
are using 5.0x OnLine and ESQL/C, the message probably means you do not
have Informix-Star, but that syntax is only supported if you do have I-Star
installed.  If the database is actually on the local OnLine server, you
shouldn't need I-Star, but if it is on some otehr machine, you will.

If you were using 6.0x or later, then I-Star is no longer a separate
product and it would not be an issue.

>I can access the remote database using dbaccess and also via a c program.  I
>only have the problem using the perl DBI.

I don't have a good explanation of why it seems to work via DB-Access.

>Do you have any ideas about how to query a database on a remote machine?
>
>I'm using
>
> DBI v0.73
> ESQL/C  5.?
> DBD::Informix 0.25
> Sun Sparc 20
> Solaris 2.4
> Informix 5.04

Thanks for the detailed version information.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-75@oink>;
          Fri, 31 Jan 1997 07:46:43 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854669641:10:06059:3; Fri, 31 Jan 97 00:14:01 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005958; 31 Jan 97 0:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA12704 for dbi-users-real; Thu, 30 Jan 1997 14:15:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from papillion.segasoft.com (papillion.segasoft.com [198.176.13.35]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA12700 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 14:15:10 -0800 (PST)
Received: from beowulf.segasoft.com 
          by papillion.segasoft.com (SMI-8.6/SMI-SVR4) id OAA19134;
          Thu, 30 Jan 1997 14:19:36 -0800
Message-Id: <3.0.1.32.19970130141151.0068c3bc@pop3.segasoft.com>
X-Sender: barnettm@pop3.segasoft.com
X-Mailer: Windows Eudora Light Version 3.0.1 beta 7 (32)
Date: Thu, 30 Jan 1997 14:11:51 -0800
To: dbi-users@fugue.com
From: Marc Barnett <barnettm@papillion.segasoft.com>
Subject: Problems compiling DBI 0.75 under Irix 5.3 and 6.2
Cc: Tim.Bunce@ig.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Trying to compile DBI 0.75 on two machines, the first a XL running 6.2 with
SGI's cc, and an Impact 2000 running 5.3 with both SGI's cc and gcc.

The log is from the XL and cc. The compilation error is the same on 5.3

Note: Both 0.73 and 0.74 have/do compile just fine on both machines.

Thanks alot...

As requested this is the log:

>>> perl Makefile.PL
MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
	NAME => q[DBI]
	PREREQ_PM => {  }
	VERSION_FROM => q[DBI.pm]
	clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/sbin/perl
Writing Makefile for DBI
modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.


>>>make
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
	/usr/sbin/perl -I/usr/lib/perl5/IP19-irix/5.003 -I/usr/lib/perl5
/usr/lib/perl5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/ExtUtils/typemap
DBI.xs >DBI.tc && mv DBI.tc DBI.c
	cc -32 -c  -D_BSD_TYPES -D_BSD_TIME -Olimit 3000 -DLANGUAGE_C -O
-DVERSION=\"0.75\"  -DXS_VERSION=\"0.75\"
-I/usr/lib/perl5/IP19-irix/5.003/CORE  DBI.c
cfe: Error: DBI.c, line 966: Unacceptable operand of conditional operator.
 	    outitems = perl_call_sv((((imp_msv)->sv_flags & 0xff )  == SVt_PVGV)
? ((((XPVGV*)(imp_msv)->sv_any ) ->xgv_gp) ->gp_cv)  : imp_msv, gimme);
 	--------------------------------------------------------------------------^
*** Error code 1 (bu21)


>>>perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=irix, osver=, archname=IP19-irix
    uname='irix64 orasrv 6.2 03131016 ip19 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc -32', optimize='-O', gccversion=
    cppflags='-D_BSD_TYPES -D_BSD_TIME -DLANGUAGE_C'
    ccflags ='-D_BSD_TYPES -D_BSD_TIME -Olimit 3000 -DLANGUAGE_C'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lsun -lm -lc -lcrypt -lbsd -lPW
    libc=/usr/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags=' ', lddlflags='-32 -shared -L/usr/local/lib'

@INC: /usr/lib/perl5/IP19-irix/5.003 /usr/lib/perl5
/usr/lib/perl5/site_perl/IP19-irix /usr/lib/perl5/site_perl .





-- 
Marc Barnett                    They call me a demon, a monster.
barnettm@segasoft.com         Me, me! Just remember my children;
(415) 802-6342              A mind is a wonderful thing to taste


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-90@oink>;
          Fri, 31 Jan 1997 07:49:07 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854673077:9:27397:3; Fri, 31 Jan 97 01:11:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1020331; 31 Jan 97 1:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA12894 for dbi-users-real; Thu, 30 Jan 1997 16:03:17 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from yama.bus.utexas.edu (yama.bus.utexas.edu [146.6.44.39]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA12890 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 16:03:08 -0800 (PST)
Message-Id: <199701310003.QAA12890@toccata.fugue.com>
Received: by yama.bus.utexas.edu (1.37.109.18/16.2) id AA204688942;
          Thu, 30 Jan 1997 18:02:22 -0600
From: Ram Chellappa <ram@yama.bus.utexas.edu>
Subject: Inserting longs in Oracle using DBI
To: dbi-users@fugue.com
Date: Thu, 30 Jan 1997 18:02:22 -0600 (CST)
Reply-To: ram@cism.bus.utexas.edu
X-Hpvue$Revision: 1.8 $
Mime-Version: 1.0
Content-Type: Message/rfc822
X-Vue-Mime-Level: 4
X-Mailer: ELM [version 2.4ME+ PL27 (25)]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=ELM854668942-20457-0_
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

--ELM854668942-20457-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


-- 
RAMNATH K CHELLAPPA                       Ph: 512-467-7813 (home)
Doctoral Candidate			      512-471-7962 (office)
Center for Information Systems Management
Department of MSIS		            
University of Texas, Austin.       Web: http://cism.bus.utexas.edu/ram 
			  	 email: ram@cism.bus.utexas.edu 
--Some people have 10 years of experience,      	    
while some have one year of experience,
10 times over !!!

--ELM854668942-20457-0_
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename=a
Content-Description: a
Content-Transfer-Encoding: 7bit

COULD SOMEONE PLEASE REPLY TO THIS >>>>>>

DBI-0.74
DBD-0.44


I have managed to find out that the problem I have is in inserting.
I am trying to insert data to LONG field. It works fine with oraperl4 but 
when I am inserting with perl5 and oraperl it doesnt work. It doesnt 
insert the whole file. Should I wait oraperl to finish inserting or what 
should I do??

Thanks in advance for help...

Here is the working perl4 code:
-------------------------------

#!/usr/local/bin/oraperl

$lda = &ora_login('',"database","passwd") || die "Logon to database failed";

$csr = &ora_open($lda, "insert into LONGTEST(ID, LONGFIELD) values(:1,:2)") 
|| die "Inserting data to table LONGFIELD before binding failed."; 

&ora_bind($csr,1,"$textdata") || die "Binding to table LONGTEST failed."; 
&ora_close($csr);
&ora_logoff($lda);


This perl5 code doesnt insert the whole data:
---------------------------------------------

#!/usr/local/bin/operl5

use Oraperl;

$lda = &ora_login('',"database","passwd") || die "Logon to database failed";

$csr = &ora_open($lda, "insert into LONGTEST(ID, LONGFIELD) values(:1,:2)
") || die "Inserting data to table LONGFIELD before binding failed.";

&ora_bind($csr,1,"$textdata") || die "Binding to table LONGFIELD failed";
&ora_close($csr);
&ora_logoff($lda);


-------------------------------------------------------------------------------
Tommi Hakala				     email: tommiih@cism.bus.utexas.edu
910 West 26TH st. 102
78705 Austin, TX, USA


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------


--ELM854668942-20457-0_--


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14302-94@oink>;
          Fri, 31 Jan 1997 07:49:38 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854674394:9:02636:2; Fri, 31 Jan 97 01:33:14 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa902546; 31 Jan 97 1:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA12987 for dbi-users-real; Thu, 30 Jan 1997 16:30:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from steele.ohsu.EDU (steele.ohsu.edu [137.53.1.40]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id QAA12983 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 16:30:45 -0800 (PST)
Received: by steele.ohsu.EDU (SMI-8.6/SMI-SVR4) id QAA16404;
          Thu, 30 Jan 1997 16:29:10 -0800
Date: Thu, 30 Jan 1997 16:29:08 -0800 (PST)
From: Li Zhang <zhangl@ohsu.edu>
X-Sender: zhangl@steele
To: dbi-users <dbi-users@fugue.com>
Subject: Bad free() warning
Message-ID: <Pine.SOL.3.91.970130155700.10825F-100000@steele>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Thank all of you who gave me many generous helps. I am sorry to post 
simple questions. I am  a new user of DBI/DBD. I have another question 
about "Bad free() warnings".

My perl script connected to Oracle Database successfully and I got my 
select results. At the same time, I got "Bad free() ignored during global 
destruction". I read Tim's README and it said using the following code to 
hide them:

  $SIG{_WARN_} =sub {warn $_[0] unless $_[0]=~ /^Bad free/ }

Can anyone tell me where I put this code and how to use it?

If there is more than one row selected, &ora_fetch($csr) returns all of 
selected rows or just one row? In my script, it just returns one row. For 
example, in sqlplus, after "select * from mrcon where sui='S700567';", we 
can get all rows which have same sui value. But in Oraperl, I got only 
one row. 

My environment:

Oracle 7.3.2
Perl 5.003
DBI-0.74
DBD-Oracle-0.44

SunOS 5.5.1

Li Zhang


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14566-7@oink>;
          Fri, 31 Jan 1997 07:52:42 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854692133:9:23326:2; Fri, 31 Jan 97 06:28:53 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id ab1014870; 31 Jan 97 6:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id VAA13919 for dbi-users-real; Thu, 30 Jan 1997 21:29:23 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from carmen.broder.com (carmen.broder.com [207.77.64.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id VAA13915 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 21:29:22 -0800 (PST)
Received: (from uucp@localhost) by carmen.broder.com (8.8.5/8.7.3) id VAA00479;
          Thu, 30 Jan 1997 21:29:20 -0800 (PST)
Received: from ima.broder.com(204.189.16.2) by carmen.broder.com 
          via smap (V1.3) id sma000474; Thu Jan 30 21:29:07 1997
Received: from ccMail by ima.broder.com (IMA Internet Exchange 2.1 Enterprise) 
          id 00009808; Thu, 30 Jan 97 21:23:12 -0800
Mime-Version: 1.0
Date: Thu, 30 Jan 1997 21:24:25 -0800
Message-ID: <00009808.1407@broder.com>
From: David_Rolston@broder.com (David Rolston)
Subject: Re: Bad free() warning
To: dbi-users <dbi-users@fugue.com>, Li Zhang <zhangl@ohsu.edu>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

     Ok, the answer to your ora_fetch question: ora_fetch returns one row 
     in an array, one column per field in the array.  ora_fetch will fail 
     when there are no rows left in the result set.
     
     So you need something like:
     
     while ((@rowdata) = ora_fetch($csr)) {
       #Do your row processing here.
       #$rowdata[0] will contain value of first column in row
     }
     
     Ok?

______________________________ Reply Separator _________________________________
Subject: Bad free() warning
Author:  Li Zhang <zhangl@ohsu.edu> at Internet
Date:    1/30/97 4:29 PM


    *** From dbi-users -- To unsubscribe, see the end of this message. ***
     
Thank all of you who gave me many generous helps. I am sorry to post 
simple questions. I am  a new user of DBI/DBD. I have another question 
about "Bad free() warnings".
     
My perl script connected to Oracle Database successfully and I got my 
select results. At the same time, I got "Bad free() ignored during global 
destruction". I read Tim's README and it said using the following code to 
hide them:
     
  $SIG{_WARN_} =sub {warn $_[0] unless $_[0]=~ /^Bad free/ }
     
Can anyone tell me where I put this code and how to use it?
     
If there is more than one row selected, &ora_fetch($csr) returns all of 
selected rows or just one row? In my script, it just returns one row. For 
example, in sqlplus, after "select * from mrcon where sui='S700567';", we 
can get all rows which have same sui value. But in Oraperl, I got only 
one row. 
     
My environment:
     
Oracle 7.3.2
Perl 5.003
DBI-0.74
DBD-Oracle-0.44
     
SunOS 5.5.1
     
Li Zhang
     
     
------------------------------------------------------------------------------ 
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page, 
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand. 
------------------------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14566-25@oink>;
          Fri, 31 Jan 1997 07:55:05 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854696095:10:27490:0; Fri, 31 Jan 97 07:34:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1027367; 31 Jan 97 7:34 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id WAA14155 for dbi-users-real; Thu, 30 Jan 1997 22:46:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailhost.auspex.co.uk (ns.auspex.co.uk [195.11.31.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id WAA14151 
          for <dbi-users@fugue.com>; Thu, 30 Jan 1997 22:46:19 -0800 (PST)
Received: from uk.auspex.com ([144.48.94.10]) 
          by mailhost.auspex.co.uk (8.6.12/8.6.9) with SMTP id GAA14773;
          Fri, 31 Jan 1997 06:46:14 GMT
Received: from balzac.fr.auspex.com ) by uk.auspex.com (4.1/mail.byaddr) 
          id AA25271 for zhangl@ohsu.edu; Fri, 31 Jan 97 06:46:10 GMT
Received: from dickens ([144.48.92.6]) by balzac.fr.auspex.com (8.7.2/8.6.9) 
          with SMTP id HAA08571; Fri, 31 Jan 1997 07:44:20 +0100 (MET)
Message-Id: <32F194C2.794BDF32@Auspex.Com>
Date: Fri, 31 Jan 1997 07:44:18 +0100
From: Kevin Stock <KStock@auspex.com>
Organization: Auspex Systems European Technical Support Centre
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.4 sun4m)
Mime-Version: 1.0
To: Li Zhang <zhangl@ohsu.edu>
Cc: dbi-users <dbi-users@fugue.com>
Subject: Re: Bad free() warning
References: <Pine.SOL.3.91.970130155700.10825F-100000@steele>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> If there is more than one row selected, &ora_fetch($csr) returns all of
> selected rows or just one row? In my script, it just returns one row. For
> example, in sqlplus, after "select * from mrcon where sui='S700567';", we
> can get all rows which have same sui value. But in Oraperl, I got only
> one row.

&ora_fetch() will return all rows, but only one at a time. Typically
you would use it in a loop, like this:

	$csr = &ora_open($lda, "select * from mrcon where sui='S700567'");

	while (@data = &ora_fetch($csr))
	{
		# do something with the data...
	}

	&ora_close($csr);

Hope that helps,

	Kevin


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17903-31@oink>;
          Fri, 31 Jan 1997 16:09:35 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854723756:10:12567:2; Fri, 31 Jan 97 15:15:56 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa911542; 31 Jan 97 15:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA14981 for dbi-users-real; Fri, 31 Jan 1997 06:28:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from continental.com ([169.152.160.128]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA14977 
          for <dbi-users@fugue.com>; Fri, 31 Jan 1997 06:28:30 -0800 (PST)
Received: from [169.152.160.78] by continental.com (SMI-8.6/SMI-SVR4) 
          id JAA18853; Fri, 31 Jan 1997 09:25:37 -0500
Date: Fri, 31 Jan 1997 09:25:37 -0500
Message-Id: <v01540b00af176bf1588d@[169.152.160.78]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Li Zhang <zhangl@ohsu.edu>, dbi-users <dbi-users@fugue.com>
From: sentman@cci.continental.com (James Sentman)
Subject: Re: Bad Free error fix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Though
$SIG{_WARN_} =sub {warn $_[0] unless $_[0]=~ /^Bad free/ }
is what is reccommended in the readme I could not get this to run properly
and since I have only ever had the problem when a program quits I simply
added:

END{
        close (stderr);
}

This is probibly not the best idea to use when debugging code, but it does
keep the message off the bottom of the CGI scripted pages that I am serving
from our database.

James Sentman

__________________________________________________________________
 James Sentman                        sentman@cci.continental.com
 Internet Systems Specialist                    Continental Cable
 http://www.continental.com/       http://shoga.wwa.com/~sentman/
__________________________________________________________________
        "Let's have some new cliches."
            --Samuel Goldwyn




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17903-34@oink>;
          Fri, 31 Jan 1997 16:09:44 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854724208:10:15084:2; Fri, 31 Jan 97 15:23:28 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1015049; 31 Jan 97 15:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA14974 for dbi-users-real; Fri, 31 Jan 1997 06:24:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from iasi.com (mirage.iasi.com [199.117.35.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA14970 
          for <dbi-users@fugue.com>; Fri, 31 Jan 1997 06:24:11 -0800 (PST)
Received: from c3po.iasi.com (c3po.iasi.com [199.117.35.9]) 
          by iasi.com (8.6.12/8.6.12) with SMTP id HAA29092;
          Fri, 31 Jan 1997 07:28:44 -0700
Received: by c3po.iasi.com (4.1/SMI-4.1) id AA21209; Fri, 31 Jan 97 07:21:49 MST
From: jdl@iasi.com (JD Laub)
Message-Id: <9701311421.AA21209@c3po.iasi.com>
Subject: Re: 'Duplicate free() ignored...' msg?
To: Tim.Bunce@ig.co.uk (Tim Bunce)
Date: Fri, 31 Jan 1997 07:21:49 -0700 (MST)
Cc: dbi-users@fugue.com
In-Reply-To: <9701211012.AA15657@toad.ig.co.uk> from "Tim Bunce" at Jan 21, 97 10:12:44 am
Organization: The Psychiatric Ward of Terrors
X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> > From: jdl@iasi.com (JD Laub)
> > Duplicate free() ignored during global destruction.

Tim Bunce wrote:
> Looks like you've not actually read the README.

Quite the contrary.  "Duplicate free" is not mentioned anywhere in the
README.  With your comment, however, I looked for something similar,
and the section on "Bad free" seems like a close match.

While recompiling everything from scratch to make sure I didn't miss
anything, I noticed the message appears during perl's lib/odbm.t test.
I'll poke into it myself some more, but if nothing comes of that it
sounds like I should pursue the issue with the perl folks rather than
the dbi/dbd folks.
-- 
J.D. Laub (Laubster) |"I think you're very, very, very, very, very,
jdl@iasi.com         |very, very, very, very, ..." - Flying Lizards


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17903-38@oink>;
          Fri, 31 Jan 1997 16:09:57 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854724763:10:18058:24; Fri, 31 Jan 97 15:32:43 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa918595; 31 Jan 97 15:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA15023 for dbi-users-real; Fri, 31 Jan 1997 06:40:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gatekeeper.ray.com (gatekeeper.ray.com [138.125.162.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA15017 
          for <dbi-users@fugue.com>; Fri, 31 Jan 1997 06:40:09 -0800 (PST)
Received: (mailer@localhost) by gatekeeper.ray.com (8.7.5/8.7.3) id JAA00759;
          Fri, 31 Jan 1997 09:40:27 -0500
Received: from swlvx2.msd.ray.com by gatekeeper.ray.com;
          Fri Jan 31 09:39:23 1997
Received: from caesun16.msd.ray.com (caesun16.msd.ray.com [138.127.76.114]) 
          by swlvx2.msd.ray.com (8.6.12/8.6.12) with ESMTP id JAA06291;
          Fri, 31 Jan 1997 09:39:19 -0500
Received: from slpabu.msd.ray.com (slpabu.msd.ray.com [138.127.80.12]) 
          by caesun16.msd.ray.com (8.6.9/8.6.9) with ESMTP id JAA06024;
          Fri, 31 Jan 1997 09:40:30 -0500
Received: (lab@localhost) by slpabu.msd.ray.com (8.6.10/8.6.9) id JAA01967;
          Fri, 31 Jan 1997 09:39:43 -0500
Date: Fri, 31 Jan 1997 09:39:43 -0500
Message-Id: <199701311439.JAA01967@slpabu.msd.ray.com>
From: "Leonhard Brenner {13031} 7149 [ ]" <lab@caesun16.msd.ray.com>
To: David_Rolston@broder.com
CC: dbi-users@fugue.com, zhangl@ohsu.edu
In-reply-to: <00009808.1407@broder.com> (David_Rolston@broder.com)
Subject: Re[1]: Bad free() warning
X-Mailer: Rmail v 19.30
Reply-to: lab@caesun16.msd.ray.com
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>  $SIG{_WARN_} =sub {warn $_[0] unless $_[0]=~ /^Bad free/ }
>     
>Can anyone tell me where I put this code and how to use it?

Here is an example that uses it:
require 'getopts.pl';

#This is bug fix for Oracles libraries!
#See README about Bad free() warnings!
$SIG{__WARN__} = sub {
 	($_[0] =~ /^Bad free/);
};

use Oraperl;

###########################################################
####                   Login Process
###########################################################
$system_id = 'caess2';
$username  = 'brenner';
$password  = 'brenner';
$lda = &ora_login($system_id, $username, $password);

$handle = &ora_do($lda, "begin iusers($handle, \'Brenner\', \'Lenny\', \'lab@caesun.msd.ray.com\', 44444); end;");

$handle = &ora_open($lda, "begin iusers(:1, :2, :3, :4); end;");
&ora_bind($handle, 'Brenner', 'Lenny', 'lab@caesun.msd.ray.com', 44444);
#$handle->execute;
&ora_close($handle);

&ora_logoff($lda);
	


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17903-41@oink>;
          Fri, 31 Jan 1997 16:10:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854725418:9:23197:35; Fri, 31 Jan 97 15:43:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021679; 31 Jan 97 15:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA15105 for dbi-users-real; Fri, 31 Jan 1997 06:53:09 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from enteract.com (babel.enteract.com [206.54.252.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA15101 
          for <dbi-users@fugue.com>; Fri, 31 Jan 1997 06:53:07 -0800 (PST)
Received: (qmail 29893 invoked from network); 31 Jan 1997 14:53:02 -0000
Received: from unknown (HELO ac6641hya72411.WALGREENS.COM) (207.70.75.65) 
          by babel.enteract.com with SMTP; 31 Jan 1997 14:53:02 -0000
Message-ID: <32F2077F.4200@enteract.com>
Date: Fri, 31 Jan 1997 08:53:51 -0600
From: "Michael J. Maresca" <maresca@enteract.com>
Reply-To: maresca@enteract.com
Organization: Andersen Consulting
X-Mailer: Mozilla 3.01 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD/DBI
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Is there a good place to download documentation on the DBD module (ie.
functions - objects) or maybe a book?

Thanks,

MJM


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt2.demon.co.uk by oink with SMTP (PP) id <25935-2@oink>;
          Mon, 3 Feb 1997 07:37:30 +0000
Received: from relay-6.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854923447:6:27008:0; Sun, 02 Feb 97 22:44:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-5.mail.demon.net 
          id aa517358; 2 Feb 97 22:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA19716 for dbi-users-real; Sun, 2 Feb 1997 14:02:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy.telebusiness.co.nz ([203.97.136.12]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA19712 
          for <dbi-users@fugue.com>; Sun, 2 Feb 1997 14:02:56 -0800 (PST)
Received: by proxy.telebusiness.co.nz 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57) 
          id <01BC11C2.2C449130@proxy.telebusiness.co.nz>;
          Mon, 3 Feb 1997 11:05:32 +1300
Message-ID: <c=NZ%a=_%p=Telebusiness%l=PROXY-970202220531Z-50@proxy.telebusiness.co.nz>
From: Nick Langstone <nickl@telebusiness.co.nz>
To: 'dbi-users' <dbi-users@fugue.com>
Subject: Need Features Listing for DBD/DBI
Date: Mon, 3 Feb 1997 11:05:31 +1300
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

HI there,

This is a request for information. I feel that this is the best forum to
ask this question as you are the people that know DBD/DBI the best ....

A Little background on our company.
We provide systems integration services for a number of companies around
the world in a neich market. We supply a front end product that we
interface to back end servers and existing systems. To make our own life
easy we are using DBD/DBI to access databases ( currently DB2 and
working on one for Oracle ) as a generic database interface. We also use
Perl for various data manipulations and processing.

What I need is information about what features each of the Databases
provides and what limitations the DBD/DBI's have. ( i.e. the DB2 DBD/DBI
does not support stored procedures that return parameters )

The general topics of interest are:

Multiple connections per process
Transaction processing
Rollback and commit
Stored Procedures
User Data Types
User Functions
.....( Anything else that I can not think of )


Also What are the future plans for the DBD/DBI's i.e. will the support
un-supported features in the near future ?


I Know this is a very general question but it is of interest to me and
I'm sure that others will also find it useful.

Thanks 
Nick Langstone
( Senior Analyst Programmer )




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25933-215@oink>;
          Mon, 3 Feb 1997 08:01:28 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854923284:10:11161:1; Sun, 02 Feb 97 22:41:24 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011164; 2 Feb 97 22:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA19674 for dbi-users-real; Sun, 2 Feb 1997 13:40:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA19670 
          for <dbi-users@fugue.com>; Sun, 2 Feb 1997 13:40:51 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.5/8.8.5) 
          id NAA01481 for dbi-users@fugue.com;
          Sun, 2 Feb 1997 13:40:49 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199702022140.NAA01481@abyss.ecst.csuchico.edu>
Subject: OEXEC error when binding
To: dbi-users@fugue.com
Date: Sun, 2 Feb 1997 13:40:48 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi all,
My question might be out of scope of this list, but I'd appreciate any
help.

I'm using
Perl 5.003. DBI .73, DBD Oracle .43, HPUX 9.05, Oracle 7.1.3.0.0

I'm trying to insert records in a table. I bind the variables. I get
an ORA 1008 error (not all variables bound) 
The data is inserted, but variables with spaces in them are truncated
to include only the first word before the space.
How can I get around this problem?
I know this is an Oracle question, but I didn't know who to ask. Our
DBA is too busy to help.

Thanks in advance.
Kal.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25933-234@oink>;
          Mon, 3 Feb 1997 08:03:58 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854937522:10:18138:6; Mon, 03 Feb 97 02:38:42 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa915147; 3 Feb 97 2:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA20067 for dbi-users-real; Sun, 2 Feb 1997 17:47:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pww.pencom.com (nygw.pww.pencom.com [204.217.198.176]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id RAA20063 
          for <dbi-users@fugue.com>; Sun, 2 Feb 1997 17:47:27 -0800 (PST)
Received: (from phj@localhost) by pww.pencom.com (8.7.4/YaThink?) id QAA18715;
          Sun, 2 Feb 1997 16:46:48 -0500
Date: Sun, 2 Feb 1997 16:46:48 -0500 (EST)
From: Patricia Ju <phj@pencom.com>
To: dbi-users@fugue.com
Subject: Official summary of robustness and upgrade path ?
Message-ID: <Pine.LNX.3.91.970202164443.18706A-100000@nygw.pww.pencom.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi there.

I've recommended DBI and DBD::Oracle for a client's Web/database 
integration project.  They've requested information on the robustness and 
the upgrade path (will it change much ?  how much ?) of both DBI and 
DBD::Oracle.

Can someone official-like send me accurate information/estimates based on 
your involvement in the development ?

It would be much appreciated.

Thanks!

Patricia Ju


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25933-243@oink>;
          Mon, 3 Feb 1997 08:05:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854943840:9:02536:3; Mon, 03 Feb 97 04:24:00 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa902471; 3 Feb 97 4:23 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA20228 for dbi-users-real; Sun, 2 Feb 1997 19:36:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA20224 
          for <dbi-users@fugue.com>; Sun, 2 Feb 1997 19:36:42 -0800 (PST)
Received: by inter.astra.co.id via suspension id <40321>;
          Mon, 3 Feb 1997 17:38:52 +0700
Received: by inter.astra.co.id via suspension id <40403>;
          Mon, 3 Feb 1997 17:37:44 +0700
Received: from gateway.ai.astra.co.id ([10.1.10.2]) by inter.astra.co.id 
          with SMTP id <40339>; Mon, 3 Feb 1997 17:22:46 +0700
Received: from [10.1.17.72] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA29217;
          Mon, 3 Feb 1997 09:43:16 +0700
Message-Id: <9702030243.AA29217@gateway.ai.astra.co.id>
X-Sender: dimyati@ai.astra.co.id
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 3 Feb 1997 23:49:35 +0700
To: Patricia Ju <phj@pencom.com>, dbi-users@fugue.com
From: Achmad Dimyati <dimyati@ai.astra.co.id>
Subject: Re: Official summary of robustness and upgrade path ?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Hi there.
>
>I've recommended DBI and DBD::Oracle for a client's Web/database 
>integration project.  They've requested information on the robustness and 
>the upgrade path (will it change much ?  how much ?) of both DBI and 
>DBD::Oracle.
>

For my opinion I think you don't need to upgrade path for using DBI/DBD
because DBI/DBD is  automatic call by dynamic link from perl. 

Until now when I made any new instalation machine for other web server (I
developing intranet application and made many instalation intranet server),
and I copy many program from the original one, there are not any trouble ( I
use same machine and OS including web server).

I think path for DBI/DBD and perl really not need to change, the always same.

The robustness of DBI/DBD with Oracle for now I had developing many intranet
application using DBI/DBD:Oracle and until now there is no problem. And
record I control is had more than 200-700 record and DBI/DBD give enough
respons time.
================================================================
Life like route, sometimes we never know the right way.
Believe me the right way is on God hand.
================================================================
Achmad Dimyati
System Programming Team, IT-Division
PT. Astra International
Jakarta, Indonesia



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04154-1@oink>;
          Mon, 3 Feb 1997 16:23:45 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854976338:10:13373:2; Mon, 03 Feb 97 13:25:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909984; 3 Feb 97 13:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA20867 for dbi-users-real; Mon, 3 Feb 1997 04:18:00 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from srv01s4.cas.org (srv01s4.cas.org [134.243.50.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA20863 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 04:17:58 -0800 (PST)
Date: Mon, 3 Feb 1997 07:17:25 -0500
From: ccollins@cas.org (Charles Collins)
Message-Id: <9702031217.AA13267@cas.org>
To: dbi-users@fugue.com
Subject: Error messages from DBI
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am unable to get access to error messages via $dbh->errstate and
$dbh->errmsg. I keep getting the following error:

Can't locate DBI object method "errstate" via package "DBD::Oracle::db".

Are there methods in place for accessing error messages and return codes?

I've also tried $dbh->{Error}, $dbh->{ErrStr}, and $dbh->{ROW_COUNT}. All of
these return an unrecognised attribute error message.

I'm creating a new class that inherits all of the DBI methods and I want a
"clean" way to get at the above data.

Thanks!

Chuck
--
Charles W. Collins     |Chemical Abstracts Service |E-mail address
3419 Cheshire Rd.      |2540 Olentangy River Road  |ccollins@cas.org
Delaware, Ohio   43015 |Columbus, Ohio  43202      |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04154-19@oink>;
          Mon, 3 Feb 1997 16:24:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854984588:10:02368:3; Mon, 03 Feb 97 15:43:08 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002243; 3 Feb 97 15:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA21096 for dbi-users-real; Mon, 3 Feb 1997 06:44:25 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from DGS.dgsys.com (root@dgs.dgsys.com [204.97.64.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA21092 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 06:44:23 -0800 (PST)
Received: from DGS (dgs.dgsys.com) by DGS.dgsys.com (5.0/SMI-SVR4) id AA28943;
          Mon, 3 Feb 1997 09:38:55 -0500
Date: Mon, 3 Feb 1997 09:38:55 -0500 (EST)
From: Robert Nicholson <steffi@dgs.dgsys.com>
X-Sender: steffi@DGS
To: Achmad Dimyati <dimyati@ai.astra.co.id>
Cc: Patricia Ju <phj@pencom.com>, dbi-users@fugue.com
Subject: Re: Official summary of robustness and upgrade path ?
In-Reply-To: <9702030243.AA29217@gateway.ai.astra.co.id>
Message-Id: <Pine.SOL.3.94.970203093810.28745A-100000@DGS>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I believe the only problem you'll have is if you want to make use of
output parameters. Currently DBI doesn't handle that.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04154-21@oink>;
          Mon, 3 Feb 1997 16:24:48 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854984592:10:02366:11; Mon, 03 Feb 97 15:43:12 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002309; 3 Feb 97 15:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA21086 for dbi-users-real; Mon, 3 Feb 1997 06:39:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gate.texaco.com (gate.texaco.com [144.5.1.252]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA21082 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 06:39:54 -0800 (PST)
Received: by gate.texaco.com id AA20475 (Mail SMTP Gateway 3.0 
          for dbi-users@fugue.com); Mon, 3 Feb 1997 08:39:47 -0600
Message-Id: <c=US%a=MCI%p=TEXACO%l=MSX01005-970203143850Z-73278@exchange.texaco.com>
From: "Bilotti, Frank D." <bilotfd@texaco.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: DBI and Irix 5
Date: Mon, 3 Feb 1997 08:38:50 -0600
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Pardon the newbie question, but what is the status of Perl-DBI under
Irix 5 ?


Frank Bilotti
Texaco EPTD
phone: (713) 954-6140                       fax: (713) 954-6113
texnet: 659-6140                                 bilotfd@texaco.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04154-25@oink>;
          Mon, 3 Feb 1997 16:25:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854985998:10:11073:0; Mon, 03 Feb 97 16:06:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1010942; 3 Feb 97 16:06 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA21142 for dbi-users-real; Mon, 3 Feb 1997 07:08:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pww.pencom.com (nygw.pww.pencom.com [204.217.198.176]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA21138 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 07:08:17 -0800 (PST)
Received: (from phj@localhost) by pww.pencom.com (8.7.4/YaThink?) id GAA05396;
          Mon, 3 Feb 1997 06:07:27 -0500
Date: Mon, 3 Feb 1997 06:07:27 -0500 (EST)
From: Patricia Ju <phj@pencom.com>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com
Subject: Re: Official summary of robustness and upgrade path ?
In-Reply-To: <9702031113.AA06305@toad.ig.co.uk>
Message-ID: <Pine.LNX.3.91.970203060104.5330A-100000@nygw.pww.pencom.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi there, Tim... I was hoping to lure you out with this.  You are 
certainly as official-like as I wanted.


On Mon, 3 Feb 1997, Tim Bunce wrote:
> I hereby (re)state my intention that existing Oraperl scripts will continue
> to work unchanged for the forseeable future (and then some).

We aren't using the Oraperl emulation.  Just strict DBI calls.
 
> I can also offer commercial support agreements. (More news on this later.)

Now this is good news.  Where can I learn more and how much later ?  (:
 
> As for 'robustness' I can tell you that we have customers using it in
> mission-critical systems handling millions of records per day.

Cool.  Do you have a list of names ?

Do I have assurance from you that DBI will remain somewhat stable in 
its current form and DBD::Oracle as well ?  Plus, will the database 
drivers *probably* continue to work, even as the database engines 
themselves change ?  (e.g. Is it likely that critical modifications to 
the drivers will be made, in the case that the vendors themselves changed 
something?)


Thanks so much for the response.



Patricia


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04219-0@oink>;
          Mon, 3 Feb 1997 16:38:05 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854987643:10:21009:1; Mon, 03 Feb 97 16:34:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1020980; 3 Feb 97 16:33 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA21218 for dbi-users-real; Mon, 3 Feb 1997 07:29:21 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from srv01s4.cas.org (srv01s4.cas.org [134.243.50.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA21214 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 07:29:20 -0800 (PST)
Date: Mon, 3 Feb 1997 10:28:45 -0500
From: ccollins@cas.org (Charles Collins)
Message-Id: <9702031528.AA18719@cas.org>
To: dbi-users@fugue.com
Subject: using blob_read() to get a LONG from Oracle
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I need to use the blob_read method to retrieve a LONG data type from Oracle. I
need to know the following:

1) What is $field? I can't locate any documentation on this.

2) Can I skip the $len value and get the entire LONG back or do I have to make
a guess at the length?

$csr->blob_read($field, $offset, $len [, \$dest, $destoffset]);

Thanks!

Chuck


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04765-0@oink>;
          Mon, 3 Feb 1997 17:07:07 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854989467:9:10815:30; Mon, 03 Feb 97 17:04:27 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002918; 3 Feb 97 17:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA21268 for dbi-users-real; Mon, 3 Feb 1997 08:03:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.techsoft.com (abyss.techsoft.com [205.160.68.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA21264 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 08:02:47 -0800 (PST)
Received: from cc:Mail (PU Serial #1520) 
          by abyss.techsoft.com (PostalUnion/SMTP(tm) v2.1.9e 
          for Windows NT(tm)) id AA-1997Feb03.095635.1520.6746;
          Mon, 03 Feb 1997 09:58:42 -0600
From: kabernard@techsoft.com (KABERNARD)
Cc: dbi-users@fugue.com ('dbi-users@fugue.com')
Message-ID: <1997Feb03.095635.1520.6746@abyss.techsoft.com>
X-Conversion-ID: <cc:Mail/#87433/TECHSOFT>
X-Mailer: cc:Mail via PostalUnion/SMTP for Windows NT
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Organization: Technical Software Services, Inc.
Date: Mon, 03 Feb 1997 09:58:42 -0600
Subject: Re[2]: really sick of it

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

 =
If someone is too stupid or lazy to figure out how to get off a mailing
list, that is their tuff luck.  =

My thanks to the admins of all lists.  I hope anyone who criticizes you get=
s =
leprosy.

Kurt




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05122-1@oink>;
          Mon, 3 Feb 1997 18:01:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 854991759:10:17080:5; Mon, 03 Feb 97 17:42:39 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa927905; 3 Feb 97 17:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA21375 for dbi-users-real; Mon, 3 Feb 1997 08:34:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from DGS.dgsys.com (root@dgs.dgsys.com [204.97.64.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA21371 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 08:34:25 -0800 (PST)
Received: from DGS (dgs.dgsys.com) by DGS.dgsys.com (5.0/SMI-SVR4) id AA11962;
          Mon, 3 Feb 1997 11:28:29 -0500
Date: Mon, 3 Feb 1997 11:28:29 -0500 (EST)
From: Robert Nicholson <steffi@dgs.dgsys.com>
X-Sender: steffi@DGS
To: descarte@hermetica.com
Cc: Robert Nicholson <steffi@dgs.dgsys.com>, dimyati@ai.astra.co.id, 
    phj@pencom.com, dbi-users@fugue.com
Subject: Re: Official summary of robustness and upgrade path ?
In-Reply-To: <199702031611.QAA20287@chewbacca.hermetica.com>
Message-Id: <Pine.SOL.3.94.970203112753.10822A-100000@DGS>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Since when? The las5t release I used was the .38 oraperl interface.

On Mon, 3 Feb 1997 descarte@hermetica.com wrote:

> 
> > I believe the only problem you'll have is if you want to make use of
> > output parameters. Currently DBI doesn't handle that.
> 
> Wrong. DBI does handle that. DBD::Oracle does. DBD::DB2 may not.
> 
> A.
> 
> -- 
> Alligator Descartes       |
> descarte@hermetica.com    |   "Lobey est le petit garcon!" -- Bud Neill
> http://www.hermetica.com  |
> 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08750-20@oink>;
          Tue, 4 Feb 1997 07:37:59 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855038500:10:16422:0; Tue, 04 Feb 97 06:41:40 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa927361; 4 Feb 97 6:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id VAA23285 for dbi-users-real; Mon, 3 Feb 1997 21:40:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id VAA23278 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 21:40:11 -0800 (PST)
Received: by gw.home.vix.com; id LAA10692; Mon, 3 Feb 1997 11:05:50 -0800
Received: by gateway.darwin.com; id LAA20731;
          Mon, 3 Feb 1997 11:04:54 -0800 (PST)
Received: from rainier.darwin.com(199.238.220.5) by gateway.darwin.com 
          via smap (3.2) id xma020729; Mon, 3 Feb 97 11:04:28 -0800
Received: from olympus.darwin.com by rainier (5.x/SMI-SVR4) id AA08905;
          Mon, 3 Feb 1997 11:03:49 -0800
Received: by olympus.darwin.com (5.x/SMI-SVR4) id AA09243;
          Mon, 3 Feb 1997 11:01:50 -0800
From: yasayko@darwin.com (Michael Yasayko)
Message-Id: <9702031901.AA09243@olympus.darwin.com>
Subject: Re: Error messages from DBI
To: ccollins@cas.org (Charles Collins)
Date: Mon, 3 Feb 1997 11:01:49 -0800 (PST)
Cc: dbi-users@fugue.com
In-Reply-To: <9702031217.AA13267@cas.org> from "Charles Collins" at Feb 3, 97 07:17:25 am
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> I am unable to get access to error messages via $dbh->errstate and
> $dbh->errmsg. I keep getting the following error:
> 
> Can't locate DBI object method "errstate" via package "DBD::Oracle::db".
> 
> Are there methods in place for accessing error messages and return codes?
> 
> I've also tried $dbh->{Error}, $dbh->{ErrStr}, and $dbh->{ROW_COUNT}. All of
> these return an unrecognised attribute error message.

I've been using:

  $DBI::err

and

  $DBI::errstr

with DBI-0.73 / DBD-Oracle-0.35.  They haven't failed me yet.

--Mike

______________________________________________________________________________
Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08750-22@oink>;
          Tue, 4 Feb 1997 07:38:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855038523:10:16477:0; Tue, 04 Feb 97 06:42:03 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016459; 4 Feb 97 6:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id VAA23297 for dbi-users-real; Mon, 3 Feb 1997 21:40:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id VAA23289 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 21:40:16 -0800 (PST)
From: mhm@austin.ibm.com
Received: by gw.home.vix.com; id KAA09766; Mon, 3 Feb 1997 10:59:32 -0800
Received: from dax.austin.ibm.com ([9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id HAA59126;
          Mon, 3 Feb 1997 07:22:15 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id HAA07334;
          Mon, 3 Feb 1997 07:18:42 -0600 (CST)
Message-Id: <199702031318.HAA07334@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: Nick Langstone <nickl@telebusiness.co.nz>
cc: 'dbi-users' <dbi-users@fugue.com>
Subject: Re: Need Features Listing for DBD/DBI
In-reply-to: Your message of Mon, 03 Feb 97 11:05:31 +1300. <c=NZ%a=_%p=Telebusiness%l=PROXY-970202220531Z-50@proxy.telebusiness.co.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 03 Feb 97 07:18:42 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Nick Langstone <nickl@telebusiness.co.nz>  writes:
> A Little background on our company.
> We provide systems integration services for a number of companies around
> the world in a neich market. We supply a front end product that we
> interface to back end servers and existing systems. To make our own life
> easy we are using DBD/DBI to access databases ( currently DB2 and
> working on one for Oracle ) as a generic database interface. We also use
> Perl for various data manipulations and processing.
> 
> What I need is information about what features each of the Databases
> provides and what limitations the DBD/DBI's have. ( i.e. the DB2 DBD/DBI
> does not support stored procedures that return parameters )

DBD::DB2 will support output parameters on stored procedures now if you
know DB2 CLI or in version 0.63 if you don't (don't go looking for 0.63
yet as I have not finished putting it together yet).

> The general topics of interest are:
> 
> Multiple connections per process

Not yet in DB2 as it requires a fairly major restructuring of the internal
data structure handling.  It is on the list of things to be done as
several parties have asked for it.

> Transaction processing

Available.

> Rollback and commit

Available.

> Stored Procedures

Currently, only input procedures or those that don't return a result
set.  DBD-DB2-0.63 should support procedures returning a result set.

> User Data Types

I'm not sure what you mean by "User Data Types".  DBD::DB2 can and does
support all of the data types supported by DB2 (the database).  Conceivably
you could add structures/unions to the list of data types by using blob
space......

> User Functions
> .....( Anything else that I can not think of )
> 

Well, given that source is distributed...one can do just about anything
if one knows perl and DB2 CLI/ODBC.
 
> Also What are the future plans for the DBD/DBI's i.e. will the support
> un-supported features in the near future ?

DBD::DB2 is, like most of the drivers, a spare time project.  It only
gets worked on when all my real work is done or when someone reports what
I deem to be a severe error.  Unfortunately, I don't foresee any change
in status any time soon (I'm already working on various things 20 hours
a day, 7 days a week).

Mike
-- 
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |






------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08803-0@oink>;
          Tue, 4 Feb 1997 07:38:33 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855038798:9:28179:0; Tue, 04 Feb 97 06:46:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928168; 4 Feb 97 6:46 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id VAA23400 for dbi-users-real; Mon, 3 Feb 1997 21:52:49 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gw.home.vix.com (gw.home.vix.com [192.5.5.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id VAA23395 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 21:52:47 -0800 (PST)
Received: by gw.home.vix.com; id UAA29279; Mon, 3 Feb 1997 20:12:37 -0800
Received: from brubeck.bienlogic.com ([38.214.78.104]) 
          by bienlogic.com (8.7.3/8.7.3) with SMTP id UAA12422;
          Mon, 3 Feb 1997 20:07:44 -0800 (PST)
Message-Id: <3.0.32.19970203202426.00b43b18@38.214.78.65>
X-Sender: lane@38.214.78.65
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Mon, 03 Feb 1997 20:24:29 -0800
To: Nick Langstone <nickl@telebusiness.co.nz>, 
    'dbi-users' <dbi-users@fugue.com>
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: Need Features Listing for DBD/DBI
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Nick,

This is not a flame so do not take it as one. The folks who write DBI/DBD
software do it as a contribution to the general welfare of folks like you
and me. To then go and ask them to write and then maintain gobs of
documentation that help make your job easier is probably not what they have
in mind as a very high priority.

I would suggest respectfully that you scout the archives, faqs, etc and
take it upon yourself to develop and maintain this document for the better
good of the DBI/DBD community - as well as yourself.

-Lane
Bien Logic
Creators of http://flirt.com
Powered By DBI/DBD


At 11:05 AM 2/3/97 +1300, Nick Langstone wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>HI there,
>
>This is a request for information. I feel that this is the best forum to
>ask this question as you are the people that know DBD/DBI the best ....
>
>A Little background on our company.
>We provide systems integration services for a number of companies around
>the world in a neich market. We supply a front end product that we
>interface to back end servers and existing systems. To make our own life
>easy we are using DBD/DBI to access databases ( currently DB2 and
>working on one for Oracle ) as a generic database interface. We also use
>Perl for various data manipulations and processing.
>
>What I need is information about what features each of the Databases
>provides and what limitations the DBD/DBI's have. ( i.e. the DB2 DBD/DBI
>does not support stored procedures that return parameters )
>
>The general topics of interest are:
>
>Multiple connections per process
>Transaction processing
>Rollback and commit
>Stored Procedures
>User Data Types
>User Functions
>.....( Anything else that I can not think of )
>
>
>Also What are the future plans for the DBD/DBI's i.e. will the support
>un-supported features in the near future ?
>
>
>I Know this is a very general question but it is of interest to me and
>I'm sure that others will also find it useful.
>
>Thanks 
>Nick Langstone
>( Senior Analyst Programmer )
>
>
>
>
>---------------------------------------------------------------------------
---
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by
hand.
>---------------------------------------------------------------------------
---
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10287-24@oink>;
          Tue, 4 Feb 1997 12:01:56 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855053063:9:09655:1; Tue, 04 Feb 97 10:44:23 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019937; 4 Feb 97 10:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA21974 for dbi-users-real; Mon, 3 Feb 1997 09:14:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gate.moeninc.com (gate.moen.com [158.62.197.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA21970 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 09:14:48 -0800 (PST)
Received: by gate.moeninc.com; id MAA28979; Mon, 3 Feb 1997 12:11:13 -0500
Received: from legend.hq_rde.moen.com(158.62.4.10) by gate.moeninc.com 
          via smap (3.2) id xma028975; Mon, 3 Feb 97 12:11:12 -0500
Received: from i2xz17 by legend.hq_rde.moen.com 
          via ESMTP (950215.SGI.8.6.10/940406.SGI) id MAA02394;
          Mon, 3 Feb 1997 12:13:53 -0500
Received: by i2xz17 (940816.SGI.8.6.9/940406.SGI) id RAA20423;
          Mon, 3 Feb 1997 17:13:52 GMT
From: jamon@moen.com (Jennifer R. Amon)
Message-Id: <9702031213.ZM20421@i2xz17>
Date: Mon, 3 Feb 1997 12:13:52 -0500
In-Reply-To: "Bilotti, Frank D." <bilotfd@texaco.com> "DBI and Irix 5" (Feb 3, 8:38)
References: <c=US%a=MCI%p=TEXACO%l=MSX01005-970203143850Z-73278@exchange.texaco.com>
X-Mailer: Z-Mail (3.2.2 10apr95 MediaMail)
To: "Bilotti, Frank D." <bilotfd@texaco.com>, 
    "'dbi-users@fugue.com '" <dbi-users@fugue.com>
Subject: Re: DBI and Irix 5
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Feb 3,  8:38, Bilotti, Frank D. wrote:
> Pardon the newbie question, but what is the status of Perl-DBI under
> Irix 5 ?
>
> Frank Bilotti
> Texaco EPTD
> phone: (713) 954-6140                       fax: (713) 954-6113
> texnet: 659-6140                                 bilotfd@texaco.com

I'm using it under IRIX v5.3 with no problems.

-- 
_______________________________________________________________________
Jennifer R. Amon                Phone: 216-962-2000 ext. 2471
Sr. Programmer/Analyst            FAX: 216-962-2739
Moen Incorporated            Personal: jamon@apk.net           
25300 Al Moen Drive          Business: jamon@moeninc.com
North Olmsted, OH  44070          Web: http://junior.apk.net/~jamon/
_______________________________________________________________________


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10287-26@oink>;
          Tue, 4 Feb 1997 12:02:05 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855053074:10:20058:0; Tue, 04 Feb 97 10:44:34 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909654; 4 Feb 97 10:44 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA21939 for dbi-users-real; Mon, 3 Feb 1997 09:09:46 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from lightning.safb.af.mil (lightning.safb.af.mil [140.175.63.14]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA21935 
          for <dbi-users@fugue.com>; Mon, 3 Feb 1997 09:09:30 -0800 (PST)
Received: (from edwardsa@localhost) 
          by lightning.safb.af.mil (AIX4.2/UCB 8.7/8.7) id LAA34070;
          Mon, 3 Feb 1997 11:01:35 -0600 (CST)
Date: Mon, 3 Feb 1997 11:01:35 -0600 (CST)
From: SrA Aaron J Edwards <edwardsa@lightning.safb.af.mil>
To: dbi-users@fugue.com
cc: Tim.Bunce@ig.co.uk
Subject: Having a few problems compiling DBI-0.75
Message-ID: <Pine.A32.3.91.970203105823.48448A-100000@lightning.safb.af.mil>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Here's the info requested about my system.  Any help would be really 
appreciated!  

Thanx!
Aaron E.

------------------
>perl Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
	NAME => q[DBI]
	PREREQ_PM => {  }
	VERSION_FROM => q[DBI.pm]
	clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI

-------------------
>make

cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
/bin/perl -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
cc -c  -I/usr/local/include -O    -DVERSION=\"0.75\" -DXS_VERSION=\"0.75\" -Kpic -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE  DBI.c
"DBI.c", line 966: operands have incompatible types:
	 pointer to struct cv {pointer to struct xpvcv {..} sv_any, ulong sv_refcnt, ulong sv_flags} ":" pointer to struct sv {pointer to void sv_any, ulong sv_refcnt, ulong sv_flags}
"DBI.c", line 966: warning: argument #1 is incompatible with prototype:
	prototype: pointer to struct sv {pointer to void sv_any, ulong sv_refcnt, ulong sv_flags} : "/usr/local/lib/perl5/sun4-solaris/5.003/CORE/proto.h", line 307
	argument : pointer to struct cv {pointer to struct xpvcv {..} sv_any, ulong sv_refcnt, ulong sv_flags}
"DBI.c", line 1309: warning: end-of-loop code not reached
"DBI.c", line 1323: warning: end-of-loop code not reached
"DBI.c", line 1367: warning: end-of-loop code not reached
cc: acomp failed for DBI.c
make: *** [DBI.o] Error 2

---------------------
>perl -V

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5.1, archname=sun4-solaris
    uname='sunos mars 5.5.1 generic sun4u sparc sunw,ultra-enterprise '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-Kpic', lddlflags='-G -L/usr/local/lib'

@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11136-1@oink>;
          Tue, 4 Feb 1997 15:05:20 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855058939:9:17019:1; Tue, 04 Feb 97 12:22:19 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1027693; 4 Feb 97 12:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA24332 for dbi-users-real; Tue, 4 Feb 1997 03:24:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from tom.compulink.co.uk (tom.compulink.co.uk [194.153.0.51]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id DAA24328 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 03:24:49 -0800 (PST)
Received: (from root@localhost) by tom.compulink.co.uk (8.8.4/8.6.9) 
          id LAA13409 for dbi-users@fugue.com; Tue, 4 Feb 1997 11:24:19 GMT
Date: Tue, 4 Feb 97 11:23 GMT0
From: aburlison@cix.compulink.co.uk (Alan Burlison)
Subject: Re: Having a few problems compiling DBI-0.75
To: edwardsa@lightning.safb.af.mil
Cc: dbi-users@fugue.com
Reply-To: aburlison@cix.compulink.co.uk
Message-Id: <memo.36164@cix.compulink.co.uk>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In-Reply-To: <Pine.A32.3.91.970203105823.48448A-100000@lightning.safb.af.mil>
> "DBI.c", line 966: operands have incompatible types:
>        pointer to struct cv {pointer to struct xpvcv {..} sv_any, 
ulong 
> sv_refcnt, ulong sv_flags} ":" pointer to struct sv {pointer to void 
> sv_any, ulong sv_refcnt, ulong sv_flags}
> "DBI.c", line 966: warning: argument #1 is incompatible with 
> prototype:
>       prototype: pointer to struct sv {pointer to void sv_any, ulong 
> sv_refcnt, ulong sv_flags} : 
> "/usr/local/lib/perl5/sun4-solaris/5.003/CORE/proto.h", line 307
>       argument : pointer to struct cv {pointer to struct xpvcv {..} 
> sv_any, ulong sv_refcnt, ulong sv_flags}

Change line 966 in DBI.c, and put a cast to (SV*) in front of the call 
to GvCV thusly:-
                                        HERE
                                        vvvvv

outitems = perl_call_sv(isGV(imp_msv) ? (SV*)(GvCV(imp_msv)
                                      : imp_msv, gimme);

Alan Burlison   aburlison@cix.compulink.co.uk



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13116-3@oink>;
          Tue, 4 Feb 1997 18:01:17 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855070236:9:03289:6; Tue, 04 Feb 97 15:30:36 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa903402; 4 Feb 97 15:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA24681 for dbi-users-real; Tue, 4 Feb 1997 06:38:05 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mako.northsea.com (qmailr@mako.northsea.com [206.65.69.92]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA24677 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 06:38:02 -0800 (PST)
Received: (qmail 23254 invoked by uid 100); 4 Feb 1997 14:37:59 -0000
To: dbi-users@fugue.com
Subject: Oracle on BSDI 2.1 via SCO libs
Organization: North Sea, Ltd.
X-PGP-Fingerprint: 5B 75 89 9C 86 E9 99 4F AB 26 91 F8 55 C9 F7 1E
Comments: Hyperbole mail buttons accepted, v4.01
From: Stan Norton <norton@northsea.com>
Date: 04 Feb 1997 09:37:59 -0500
Message-ID: <x7u3nsr60o.fsf@mako.northsea.com>
Lines: 9
X-Mailer: Gnus v5.4.9/XEmacs 19.14

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi folks,

Has anyone built Oracle support on BSDI 2.1 via the libs in Oracle's
SCO package? 

Thanks.

Stan


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13207-0@oink>;
          Tue, 4 Feb 1997 18:05:25 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855079370:10:23515:2; Tue, 04 Feb 97 18:02:50 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023318; 4 Feb 97 18:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA24927 for dbi-users-real; Tue, 4 Feb 1997 08:47:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from firewall2.cummins.com (firewall-user@fw2.cummins.com [205.230.25.36]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA24923 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 08:47:27 -0800 (PST)
Received: by firewall2.cummins.com; id LAA15394; Tue, 4 Feb 1997 11:47:25 -0500
Received: from unknown(143.222.15.21) by firewall2.cummins.com via smap (3.2) 
          id xma015389; Tue, 4 Feb 97 11:47:02 -0500
Received: from blitzen.eeg.cummins.com by ceco1.cummins.com;
          (5.65v3.2/1.1.8.2/04Mar96-1128AM) id AA17543;
          Tue, 4 Feb 1997 11:47:02 -0500
Received: from prancer.eeg.cummins.com 
          by blitzen.eeg.cummins.com (5.x/SMI-SVR4) id AA15087;
          Tue, 4 Feb 1997 11:47:01 -0500
Received: from metallica by prancer.eeg.cummins.com (5.x/SMI-SVR4) id AA12886;
          Tue, 4 Feb 1997 11:47:00 -0500
Message-Id: <32F76804.7940@cummins.com>
Date: Tue, 04 Feb 1997 11:47:00 -0500
From: Vinay Sawardekar <v.sawardekar@cummins.com>
Organization: Cummins Engine Company, Inc.
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.4 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: Is it possible to fetch multiple rows into arrays?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am using DBD-Oracle-0.43 and DBI-0.73 on a SUN Solaris platform.
 
Can anyone tell me if I can fetch multiple rows into a Perl array in
one statement (instead of a ora_fetch - while loop).

There was a brief mention of a 'fetchall' method on the 
net (http://www.hermetica.com/technologia/DBI/doc/dbispec/3.html) but
I couldn't find any other information on it.

Your help would be greatly appreciated.


Thanks.

=========================================================================
Vinay Sawardekar                      email:
v.sawardekar@eec.cummins.com 
Cummins Engine Co., Inc.
1460 National Road                    Phone: (812)-377-1875
Columbus, IN  47201
=========================================================================


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15271-46@oink>;
          Wed, 5 Feb 1997 07:40:58 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855096449:9:06269:12; Tue, 04 Feb 97 22:47:29 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011202; 4 Feb 97 22:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA25577 for dbi-users-real; Tue, 4 Feb 1997 13:50:44 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA25573 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 13:50:41 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.5/8.8.5) 
          id NAA02203 for dbi-users@fugue.com;
          Tue, 4 Feb 1997 13:50:39 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199702042150.NAA02203@abyss.ecst.csuchico.edu>
Subject: Switching to DBD::oracle from oraperl
To: dbi-users@fugue.com
Date: Tue, 4 Feb 1997 13:50:38 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

 I'm comfortable using oraperl emulation now. I'm ready to start using
 native DBI, DBD. I'd like to expand in that direction.
 I'd like to get input on the following questions.
 - What can you do better with DBD than with oraperl?
 - What can you do with DBD that you can't with oraperl?
 - Any other future advantages/considerations.
 
 Thanks in advance.
 Kal
 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15271-63@oink>;
          Wed, 5 Feb 1997 07:42:42 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855103996:9:22758:0; Wed, 05 Feb 97 00:53:16 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa922734; 5 Feb 97 0:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA25804 for dbi-users-real; Tue, 4 Feb 1997 16:00:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA25800 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 16:00:33 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.5/8.8.4) with ESMTP id PAA12582;
          Tue, 4 Feb 1997 15:58:58 -0800 (PST)
Message-Id: <199702042358.PAA12582@bilbo.reference.com>
X-Mailer: exmh version 2.0gamma 1/27/96
To: ccollins@cas.org (Charles Collins)
cc: dbi-users@fugue.com
Subject: Re: using blob_read() to get a LONG from Oracle
In-reply-to: Your message of "Mon, 03 Feb 1997 10:28:45 EST." <9702031528.AA18719@cas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 04 Feb 1997 15:58:58 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Charles Collins wrote:
> I need to use the blob_read method to retrieve a LONG data type from Oracle. 
> I need to know the following:
> 
> 1) What is $field? I can't locate any documentation on this.

It is 0.  It might be something else if you could have more than one blob per
row, but in Oracle you can't, so it's 0.

> 2) Can I skip the $len value and get the entire LONG back or do I have to mak
> e a guess at the length?

If your blobs are all smaller than 64K you can just pass 65536 as length and
get your whole LONGs in one go (you'll get just as much data as is actually 
in the blob, it doesn't pad it out to 64K or anything sill like that)...
but Oracle gets unhappy if you try to get chunks bigger than that, so what
you do is read 64K at a time... look at the example code in README.longs.

Also, don't forget to set $ora_cache to 1!  If you don't do this, the prefetch
will cause you to end up with blobs from different rows than the ones you want.

-j





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15271-72@oink>;
          Wed, 5 Feb 1997 07:43:34 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855114921:9:02848:1; Wed, 05 Feb 97 03:55:21 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1029569; 5 Feb 97 3:55 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA26223 for dbi-users-real; Tue, 4 Feb 1997 18:53:30 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id SAA26219 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 18:53:27 -0800 (PST)
Received: from hpspk7c.spk.hp.com (hpspk7jp.spk.hp.com [15.2.5.46]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id SAA20525 
          for <dbi-users@fugue.com>; Tue, 4 Feb 1997 18:53:25 -0800 (PST)
Received: by hpspk7c.spk.hp.com (1.37.109.16/15.5+ECS 3.3) id AA155281204;
          Tue, 4 Feb 1997 18:53:24 -0800
Date: Tue, 4 Feb 1997 18:53:24 -0800
Message-Id: <199702050253.AA155281204@hpspk7c.spk.hp.com>
From: Bill Baker <baker@spk.hp.com>
To: dbi-users@fugue.com
Cc: Tim.Bunce@ig.co.uk
Subject: Help on compiling DBI-0.75 under HP-UX 9.05

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I am getting the following error when compiling:

cc: "DBI.c", line 966: error 1646: Illegal pointer combination for second and third operands of conditional expression (?:).

I have included all the requested information per the README.

1. A complete log of a complete build:
**** perl Makefile.PL ****

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
	NAME => q[DBI]
	PREREQ_PM => {  }
	VERSION_FROM => q[DBI.pm]
	clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/local/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI
**** make ****
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
	/usr/local/bin/perl -I/opt/perl5.003/lib/PA-RISC1.1/5.003 -I/opt/perl5.003/lib /opt/perl5.003/lib/ExtUtils/xsubpp  -typemap /opt/perl5.003/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
	cc -c  -D_HPUX_SOURCE -Aa -I/usr/local/include -O     -DVERSION=\"0.75\"  -DXS_VERSION=\"0.75\" +z -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE  DBI.c
*** Error code 1
	cc -c  -D_HPUX_SOURCE -Aa -I/usr/local/include -O     -DVERSION=\"0.75\"  -DXS_VERSION=\"0.75\" +z -I/opt/perl5.003/lib/PA-RISC1.1/5.003/CORE  DBI.c
cc: "DBI.c", line 966: error 1646: Illegal pointer combination for second and third operands of conditional expression (?:).
cc: "DBI.c", line 966: warning 563: Argument #1 is not the correct type.
cc: "DBI.c", line 966: warning 527: Integral value implicitly converted to pointer in assignment.
cc: "DBI.c", line 966: warning 563: Argument #2 is not the correct type.
*** Error code 1

Stop.
2.  The output of perl -V:
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=9, archname=PA-RISC1.1
    uname='hp-ux okamoto a.09.05 e 9000715 2013134500 8-user license '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib/pa1.1 /lib /usr/lib
    libs=-lnet -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib -L/opt/gnu/lib'

@INC: . /usr/local/lib/perl5 /usr/local/lib/perl5/hpux /usr/local/lib/perl5/hpux/sys /opt/perl5.003/lib/PA-RISC1.1/5.003 /opt/perl5.003/lib /opt/perl5.003/lib/site_perl/PA-RISC1.1 /opt/perl5.003/lib/site_perl .


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19653-2@oink>;
          Wed, 5 Feb 1997 18:22:28 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855166837:9:14298:5; Wed, 05 Feb 97 18:20:37 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1016349; 5 Feb 97 18:20 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA27317 for dbi-users-real; Wed, 5 Feb 1997 08:53:49 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ply1s005.valuerx.com (PLY1S005.VALUERX.COM [167.18.48.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA27313 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 08:53:22 -0800 (PST)
Received: by ply1s005.valuerx.com 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) 
          id <01BC1351.E6A457A0@ply1s005.valuerx.com>;
          Wed, 5 Feb 1997 10:46:54 -0600
Message-ID: <c=US%a=_%p=ValueRx%l=VRX/EXPLY1/0005AC82@ply1s005.valuerx.com>
From: "Still, Jared (FRESNO)" <STILLJ@valuerx.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: ORA-1019 when connecting
Date: Wed, 5 Feb 1997 10:45:45 -0600
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Encoding: 50 TEXT

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

We recently upgraded our DG aviion system to the latest version of
the OS ( R411 ).  Oracle was upgraded to 7.3.2.3 as well.

I have built DBD 44 and DBI 75.  This all worked fine with 7.3.2.3.

After moving a 7.0.16 database to the new machine,  I discovered that
one critical Perl program ( the one I use for hot backups ) was getting
the ORA-01019 when connecting to the 7.0.16 database.

The 7.3 database worked fine.  This same program had worked fine backing 
up
the 7.0 database on another machine.

After some experimenting, I discovered that all was well if DBD was 
compiled with
the libraries from Oracle 7.2.3.   No more Ora-1019.

Any Ideas?

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=dgux, osver=r4.11mu02, archname=AViiON-dgux
    uname='dgux av3 r4.11mu02 generic aviion mc88110 '
    hint=previous, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc', optimize='-O2', gccversion=2.6.3
    cppflags='-Dflock=dg_flock'
    ccflags ='-Dflock=dg_flock'
    stdchar='char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/sde/m88kdgux/usr/lib /lib /usr/lib
    libs=-ldgc -lsocket -lnsl -ldbm -ldl -lld -lm -lc -lposix -lcrypt
    libc=/usr/sde/m88kdgux/usr/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-shared', lddlflags='-shared -L/usr/local/lib'

@INC: /usr/local/lib/perl5/AViiON-dgux/5.003 /usr/local/lib/perl5 
/usr/local/lib/perl5/site_perl/AViiON-dgux /usr/local/lib/perl5/site_perl 
.

Jared Still
ValueRx/RxNet
Oracle DBA/System Administrator and Part Time Perl Evangelist
stillj@valuerx.com
jared@psnw.com


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20526-48@oink>;
          Wed, 5 Feb 1997 22:45:33 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855172875:10:24997:1; Wed, 05 Feb 97 20:01:15 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id ab1024961; 5 Feb 97 20:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA27507 for dbi-users-real; Wed, 5 Feb 1997 10:34:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from archive.org (was.archive.org [206.14.154.180]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id KAA27503 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 10:34:54 -0800 (PST)
Received: from Q.archive.org by archive.org (SMI-8.6/SMI-SVR4) id KAA04453;
          Wed, 5 Feb 1997 10:34:15 -0800
Message-ID: <32F8D320.EC2@archive.org>
Date: Wed, 05 Feb 1997 10:36:16 -0800
From: Q J a q u i t h <Q@archive.org>
Organization: Internet Archive
X-Sender: Q J a q u i t h <Q@archive.org>
X-Mailer: Mozilla 4.0b1 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
CC: John D Groenveld <groenvel@cse.psu.edu>, Tim Bunce <Tim.Bunce@ig.co.uk>
Subject: Re: Problems building static DBD::Oracle on Solaris 2.5, perl 5.003, 
         with gcc
X-Priority: Normal
References: <199701210342.WAA00781@cse.psu.edu>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I finally compiled, tested, compiled, and am using PERL's DBI (dynamic)
module with Oracle on my solaris machine!  Yay!  It is great and much
faster than what I was using before.  

So I thought, for those in similar situations and those interested,
I'd post my solutions.

Tim was right -- using gnu ld is a bad idea.
My DB_File module was mangled so I got a new one and rebuilt it.
I had problems with libraries not getting found.
I did the following:
  unsetenv LD_LIBRARY_PATH
  setenv PATH /usr/bin:/usr/ccs/bin:/opt/gnu/bin
Configuring also picked up "/usr/local/sparc-sun-solaris/bin"
which had gnu's "as" and "ld" programs in it (which were "bad ideas")
so I had to switch them to the /usr/ccs/bin/ varietals.
Lots and lots of fighting but I finally did it.  All you C god(esses)
probably know this, but I found adding "-v" to whatever gcc command
line bombed most helpful in reverse problem finding.

  to configure the making of PERL5:
    sh Configure -Dcc=gcc -des -Dloclibpth="/usr/lib"

Anyway, Thanks a lot Tim and John.  After all this effort, I almost
gave up.  Now I'm glad I didn't.  I love the DBI!

-Q


From Tim:
>> Here is the output for "make".  I'm using /usr/ccs/bin/ld.
>> [We have 3 "ld"s here because one is gcc's, one is this ccs, one
>>  is OS-specific other variant...]
>
>You're practically asking for trouble.
>
>You may have installed gcc to use gnu ld for example. Bad idea on 
>Solaris.
>
>> [deletia]
>> it's "syntax error"-ing out on that "__BEGIN_DECLS" which I've never
>> seen before and can't seem to find it defined in any other header
>> files (and apparently gcc can't either ;-)
>
>It's defined in sys/cdefs.h which should have been installed at the
>same time you installed Berkeley DB.
>
>For now you could just exclude DB_File from the build.


From John:
>Perl5.003 should build w/ dynamic loading with gcc 2.7.2.1 and 
>/usr/ccs/bin/ld. Make sure /usr/ucb/ is not in your path.. Infact, you 
>should 
>be able to build with PATH=/usr/bin:/usr/ccs/bin:/opt/gnu/bin.

-- 
Q Jaquith   Q@archive.org    ofc:415.561.6792  fax:415.561.6795
Internet Archive  San Francisco CA  http://www.archive.org/us/q


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20526-55@oink>;
          Wed, 5 Feb 1997 22:46:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855173498:9:04215:2; Wed, 05 Feb 97 20:11:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa903773; 5 Feb 97 20:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA27568 for dbi-users-real; Wed, 5 Feb 1997 11:02:23 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA27564 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 11:02:19 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.8.5/8.7.3) with ESMTP id OAA13197;
          Wed, 5 Feb 1997 14:02:02 -0500 (EST)
Message-Id: <199702051902.OAA13197@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
X-uri: <URL:http://www.cse.psu.edu/~groenvel/>
X-work-address: Manufacturing Technology - Systems Development Group PO Box 30 
                The Applied Research Lab State College, PA 16804
X-work-phone: +1 814 863 9896 (Voice) +1 814 863 1183 (Fax)
To: Q J a q u i t h <Q@archive.org>
cc: dbi-users@fugue.com
Subject: Re: Problems building static DBD::Oracle on Solaris 2.5, perl 5.003, 
         with gcc
In-reply-to: Your message of "Wed, 05 Feb 1997 10:36:16 PST." <32F8D320.EC2@archive.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 05 Feb 1997 14:01:37 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Run, dont walk, to your console and 'mv /opt/gnu/bin/as /opt/gnu/bin/gas; mv 
/opt/gnu/bin/ld /opt/gnu/bin/gld'

John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20526-78@oink>;
          Wed, 5 Feb 1997 22:54:04 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855175965:10:13220:1; Wed, 05 Feb 97 20:52:45 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1013113; 5 Feb 97 20:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA27645 for dbi-users-real; Wed, 5 Feb 1997 11:39:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA27641 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 11:39:48 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.5/8.8.5) 
          id LAA27641 for dbi-users@fugue.com;
          Wed, 5 Feb 1997 11:39:46 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199702051939.LAA27641@abyss.ecst.csuchico.edu>
Subject: $csr->bind_param() question
To: dbi-users@fugue.com
Date: Wed, 5 Feb 1997 11:39:45 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Please help

I'm using
DBI .73, DBD .43, perl 5.003, HPUX 9.05, Oracle 7.1.x.x
I'm using oraperl emulation.

I'm trying to insert into a table. I'm binding many variables that 
contain spaces. The insert works, but anything after the first space in
any variable is dropped: Only the first word is inserted. 
I tried to set ora_type to see if it'd help. I followed the suggestion of
oraperl doc, and archive of this list. I did the following:

$lda=&ora_login('xx','xx','xx') or die $ora_errstr;
$statement="insert into table values (:1,:2....etc);
$csr=&ora_open($lda,$statement) or die $ora_errstr;
$char_attrib={ora_type=>1};
$scr->bind_param(1, $var1, $char_attrib);   #etc for rest of vars
&ora_bind($csr);
&ora_do($lda,$statement);
&ora_commit($lda);

-----------------------------
Then I tried to do the same thing using native DBI,DBD. This is my first try
at native DBI DBI. I might be making mistakes here:

$drh=DBI->install_driver( 'Oracle' );
$dbh=$drh->connect('x','x','x');
die unless $dbh;
$statement="insert ......";
$csr=$dbh->prepare($statement);
$scr->bind_param(1, $var1, $char_attrib);   #etc for rest of vars
$csr->execute;
-------------------------------

Boht blocks above act the same: any var with spaces will insert successfully,
but generate an ORA-01008 error (oexec error)

What's the way out?
Regards
Kal.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20526-128@oink>;
          Wed, 5 Feb 1997 22:57:56 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855180920:10:12808:0; Wed, 05 Feb 97 22:15:20 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1012745; 5 Feb 97 22:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA27842 for dbi-users-real; Wed, 5 Feb 1997 12:51:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from huey.disney.com (0@huey.disney.com [204.128.192.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA27838 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 12:51:00 -0800 (PST)
Received: from ford.wdi.disney.com. (ford.wdi.disney.com [139.104.100.2]) 
          by huey.disney.com (8.7.5/8.7.3) with SMTP id MAA08876 
          for <dbi-users@fugue.com>; Wed, 5 Feb 1997 12:50:53 -0800 (PST)
Received: from wdigl000.is.wdi.disney.com 
          by ford.wdi.disney.com.<dbi-users@fugue.com> with SMTP 
          id AA03679 (5.65c/IDA-1.4.3 for dbi-users@fugue.com);
          Wed, 5 Feb 1997 12:44:07 -0800
Received: by wdigl000.is.wdi.disney.com 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) 
          id <01BC1364.5B17B930@wdigl000.is.wdi.disney.com>;
          Wed, 5 Feb 1997 12:59:00 -0800
Message-Id: <c=US%a=_%p=Disney%l=WDIGL005-970205205839Z-3290@wdigl000.is.wdi.disney.com>
From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>, 
    'Simplicist' <kal@ecst.csuchico.edu>
Subject: RE: $csr->bind_param() question
Date: Wed, 5 Feb 1997 12:58:39 -0800
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>
>>-----------------------------
>>Then I tried to do the same thing using native DBI,DBD. This is my first try
>>at native DBI DBI. I might be making mistakes here:
>>
>>$drh=DBI->install_driver( 'Oracle' );
>>$dbh=$drh->connect('x','x','x');
>>die unless $dbh;
>>$statement="insert ......";
>>$csr=$dbh->prepare($statement);
>>$scr->bind_param(1, $var1, $char_attrib);   #etc for rest of vars
>>$csr->execute;
>>-------------------------------
>>
>>Boht blocks above act the same: any var with spaces will insert
>>successfully,
>>but generate an ORA-01008 error (oexec error)

Move the bind variables into the execute method like:

$csr = $dbh->prepare($sql);
$csr->execute($bind_one, $bind_two);

I haven't been using the bind_param method and I have had
success w/ this technique w/ both Selects and Inserts...


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02072-0@oink>;
          Thu, 6 Feb 1997 19:40:47 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855257800:9:08718:1; Thu, 06 Feb 97 19:36:40 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa908623; 6 Feb 97 19:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA00152 for dbi-users-real; Thu, 6 Feb 1997 09:50:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from abyss.ecst.csuchico.edu (abyss.ecst.csuchico.edu [132.241.1.34]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA00148 
          for <dbi-users@fugue.com>; Thu, 6 Feb 1997 09:50:39 -0800 (PST)
Received: (from kal@localhost) by abyss.ecst.csuchico.edu (8.8.5/8.8.5) 
          id JAA25327 for dbi-users@fugue.com;
          Thu, 6 Feb 1997 09:50:35 -0800 (PST)
From: Simplicist <kal@ecst.csuchico.edu>
Message-Id: <199702061750.JAA25327@abyss.ecst.csuchico.edu>
Subject: RE: $csr->bind_param() question
To: dbi-users@fugue.com
Date: Thu, 6 Feb 1997 09:50:34 -0800 (PST)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> > From: "McAdams, Bill D." <bill_mcadams@wdi.disney.com>
> > 
> > >>Then I tried to do the same thing using native DBI,DBD. This is my first try
> > >>at native DBI DBI. I might be making mistakes here:
> > >>
> > >>$drh=DBI->install_driver( 'Oracle' );
> > >>$dbh=$drh->connect('x','x','x');
> > >>die unless $dbh;
> > >>$statement="insert ......";
> > >>$csr=$dbh->prepare($statement);
> > >>$scr->bind_param(1, $var1, $char_attrib);   #etc for rest of vars
> > >>$csr->execute;
> > >>
> > >>Boht blocks above act the same: any var with spaces will insert
> > >>successfully, but generate an ORA-01008 error (oexec error)
> > 
> > Move the bind variables into the execute method like:
> > 
> > $csr = $dbh->prepare($sql);
> > $csr->execute($bind_one, $bind_two);
> > 
> > I haven't been using the bind_param method and I have had
> > success w/ this technique w/ both Selects and Inserts...
> 
> Regardless of this working or not, we need to understand the problem.
> 
> Tim.
> 

I moved the bind variables into the execute, same problem. 
I forgot to mention I set $char_attrib={ora_type=>1} as oraperl documentation
suggests. 
Tim, the problem is this: Using oraperl emulation, I'm trying to insert rows in a table.
Many bound variables are comments that have spaces in them. The insert works, but
variable with spaces in them loose everything after the first space in them. Essentially
only the first word is inserted. 
I tried doing the same thing using native DBI, DBD (my first attempt ever) I get
the same problem. 
Now I don't know if the problem is my script or the database setup. I'm going
to try to do the same thing on a different database and see what I get.
I hope this helps. 
Thanks
Kal.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03613-158@oink>;
          Fri, 7 Feb 1997 07:58:02 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855293485:10:26143:1; Fri, 07 Feb 97 05:31:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1026134; 7 Feb 97 5:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA01448 for dbi-users-real; Thu, 6 Feb 1997 20:33:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id UAA01444 
          for <dbi-users@fugue.com>; Thu, 6 Feb 1997 20:33:37 -0800 (PST)
Received: from tholian.cse.psu.edu (tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.8.5/8.7.3) with ESMTP id XAA15165;
          Thu, 6 Feb 1997 23:33:40 -0500 (EST)
Message-Id: <199702070433.XAA15165@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: dbi-users@fugue.com
Subject: DBD-Oracle-0.44
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 06 Feb 1997 23:32:46 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Of course we already knew this was coming.
Found in ows_3.0_beta2.tar.gz: 
./ows/3.0/perl/lib/site_perl/Oraperl.pm

DBI/DBD on news stands in March. Tim is this your writing?
Upcoming *** The Perl Journal *** article:
DBI - The Database Interface for Perl 5

Still having trouble with inserting longs >~32k via bind_param. But otherwise 
its been a great day.

Thanks,
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03613-160@oink>;
          Fri, 7 Feb 1997 07:58:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855293524:10:26334:0; Fri, 07 Feb 97 05:32:04 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916604; 7 Feb 97 5:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA01475 for dbi-users-real; Thu, 6 Feb 1997 20:41:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id UAA01471 
          for <dbi-users@fugue.com>; Thu, 6 Feb 1997 20:41:46 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.8.5/8.7.3) with ESMTP id XAA15306;
          Thu, 6 Feb 1997 23:41:52 -0500 (EST)
Message-Id: <199702070441.XAA15306@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: ram@cism.bus.utexas.edu
cc: dbi-users@fugue.com
Subject: Re: Inserting longs in Oracle using DBI
In-reply-to: Your message of "Thu, 30 Jan 1997 18:02:22 CST." <199701310003.QAA12890@toccata.fugue.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 06 Feb 1997 23:41:33 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

How does the method described in README.longs work for you? 
ora_type => 8 # LONG, 24 for LONG RAW
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13618-0@oink>;
          Fri, 7 Feb 1997 18:01:06 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855337093:10:09399:2; Fri, 07 Feb 97 17:38:13 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901321; 7 Feb 97 17:38 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA02881 for dbi-users-real; Fri, 7 Feb 1997 08:19:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from srv01s4.cas.org (srv01s4.cas.org [134.243.50.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA02877 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 08:19:05 -0800 (PST)
Date: Fri, 7 Feb 1997 11:18:27 -0500
From: ccollins@cas.org (Charles Collins)
Message-Id: <9702071618.AA05037@cas.org>
To: dbi-users@fugue.com
Subject: Re: using blob_read() to get a LONG from Oracle
Cc: bfrench@cas.org
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've been getting a LOT of helpful advice and I appreciate all of the
assistance! :-)

However, it seems that everyone is using the Oraperl package and _not_ the DBI
package to do all of this stuff. The "examples" that I've been referred to in
README.longs are straight from Oraperl and the interaction with DBI is _much_
different (at least it seems so to me (-:). I've tried my best, but I'm
completely lost at this point. :-(

Is there anyone out there with some sample code that uses DBI.pm to retrieve
longs from Oracle?

Here's what I'm doing.  I've created a "fetchLong" method in my CASDBI CLASS
(that inherits all of the DBI methods) that will take care of all of the
complexity of the blob_read method.  This is a typical invocation:

$scopeNote = $thes->fetchLong("select ScopeNote from ThesHeadings where         
                               Heading = $heading");

This is my first cut at fetchLong (the preliminary "stuff" deleted):

$stHandle = $self->prepare($statement);
if ($self->err) {
   carp "CASDBI::fetchLong: Prepare failed for following statement:";
   print STDERR "\t\"$statement\"\n";
   print STDERR "\t", $self->errstr, "\n";
} else {
   $returnCode = $stHandle->execute();
   $blob = '';        
   $length = 65536;
   $offset = 0;    
   while (1) { 
      $frag = $stHandle->blob_read(0,$offset,$length);
      last unless $frag;
      $ll = length($frag); 
      last unless $ll;       
      $blob .= $frag;    
      $offset += $ll;   
   }                    
   $stHandle->finish;
}                       
    
if ($blob) {
   return $blob;
} else {
   return undef;
}

HOWEVER, I NEVER get anything back! $frag is _always_ empty. I'm obviously
clueless somewhere, I just don't know where yet. Any idea where I'm going
wrong?

Thanks a LOT for any assistance!

Chuck
--
Charles W. Collins     |Chemical Abstracts Service |E-mail address
3419 Cheshire Rd.      |2540 Olentangy River Road  |ccollins@cas.org
Delaware, Ohio   43015 |Columbus, Ohio  43202      |

|Charles Collins wrote:
|> I need to use the blob_read method to retrieve a LONG data type from Oracle. 
|> I need to know the following:
|> 
|> 1) What is $field? I can't locate any documentation on this.
|
|It is 0.  It might be something else if you could have more than one blob per
|row, but in Oracle you can't, so it's 0.
|
|> 2) Can I skip the $len value and get the entire LONG back or do I have to mak
|> e a guess at the length?
|
|If your blobs are all smaller than 64K you can just pass 65536 as length and
|get your whole LONGs in one go (you'll get just as much data as is actually 
|in the blob, it doesn't pad it out to 64K or anything sill like that)...
|but Oracle gets unhappy if you try to get chunks bigger than that, so what
|you do is read 64K at a time... look at the example code in README.longs.
|
|Also, don't forget to set $ora_cache to 1!  If you don't do this, the prefetch
|will cause you to end up with blobs from different rows than the ones you want.
|
|-j


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13618-2@oink>;
          Fri, 7 Feb 1997 18:01:15 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855337207:9:02249:0; Fri, 07 Feb 97 17:40:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1010101; 7 Feb 97 17:40 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA02917 for dbi-users-real; Fri, 7 Feb 1997 08:39:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ibmmail.COM (ibmmail.com [199.171.26.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA02913 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 08:39:10 -0800 (PST)
Message-Id: <199702071639.IAA02913@toccata.fugue.com>
Received: from ibmmail by ibmmail.COM (IBM VM SMTP V2R3) with BSMTP id 2597;
          Fri, 07 Feb 97 11:39:08 EST
Date: Fri, 07 Feb 1997 11:38:08 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: dbi-users@fugue.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Perl5 and calling Stored Procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

If anyone could help me figure out calling a stored procedure I would greatly   
appreciate it.  The following code calls a stored procedure with an "in" of     
type "number" and an "out" of type "number".                                    

$my_first_param = 10;                                                           
$my_second_param = 11;                                                          

$lda = &ora_login($dbname, $dbuser, '')  || die "$ora_errno: $ora_errstr\n";    

$csr = &ora_open($lda, q{                                                       
        declare my_first_param number:=10;                                      
        begin                                                                   
          my_first_param := :1;                                                 
           junk(:1, :2);                                                        
        end;                                                                    
}) || die "ora_open failed: $ora_errstr";                                       

#$char_attrib = {ora_type=>1}; --This line does not work error "Out of memory!" 

$csr->bind_param(1, $my_first_param);                                           
$csr->bind_param_inout(2, \$my_second_param, 100);                              

$tmpvar=&ora_fetch($csr);                                                       
#$tmpvar = $csr->execute(10,20); --This line can not use "bind_param..."        
&ora_close($csr);                                                               

&ora_logoff($lda);                                                              

Thanks,                                                                         
Greg Pellegrom                                                                  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19447-23@oink>;
          Sun, 9 Feb 1997 16:21:25 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855352233:9:15998:7; Fri, 07 Feb 97 21:50:33 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa916030; 7 Feb 97 21:50 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA03459 for dbi-users-real; Fri, 7 Feb 1997 12:22:01 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de (merkur.ecos.de [194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA03455 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 12:21:58 -0800 (PST)
Received: from erde.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id VAA25217 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 21:21:48 +0100
Message-Id: <199702072021.VAA25217@merkur.ecos.de>
From: "G.Richter" <richter@ecos.de>
To: dbi-users <dbi-users@fugue.com>
Subject: Trouble with DBD::mSQL
Date: Fri, 7 Feb 1997 21:21:27 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

at http://www.hermetica.com/technologia/DBI/DBD/index.html

I found the following:

Module Name: DBD::mSQL
Author: Alligator Descartes
Current Version: 0.60pl10

at CPAN I only found DBD-mSQL-0.60pl9

what of the both is right? pl9 or pl10?


First I had problems installing mSQL-0.60-pl9. I have to

1.) remove %att from Makefile.Pl (this isn't documented in the README like
Bob Wilkinson wrote to me!)
2.) DBI and DBD-mSQL has used different directories for DBIXS.h
3.) The Version of mSQL.pm differs from the Version in mSQL.xs

after fixing these things I get it work!
But now I can't access the attributes of a statement handle. While the data
from a select is ok, the NAME attribute only contain the data of the first
record retrieved, and the TYPE attribute in undefined. I don't know what
else is waiting for me..., but perhaps this is fixed in 0.60pl10. If it's
not fixed and it's really a bug (and not an error of mine), perhaps I can
help fixing it.

BTW. Is there an official way to get the names of fields of an table,
before doing an query? If not it would be nice to add it to the
specification (along with getting the names of all tables in a database)

Gerald

---
Gerald Richter
ECOS  Electronic Communication Services

E-Mail:     richter@ecos.de
WWW:    http://www.ecos.de
Tel:          06133/925151
Fax:         06133/925152
Faxabruf: 06133/93910100


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19447-38@oink>;
          Sun, 9 Feb 1997 16:28:47 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855363787:10:19166:0; Sat, 08 Feb 97 01:03:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019132; 8 Feb 97 1:03 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA04050 for dbi-users-real; Fri, 7 Feb 1997 15:48:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bilbo.reference.com (bilbo.reference.com [207.105.31.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id PAA04046 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 15:48:16 -0800 (PST)
Received: from bilbo.reference.com (localhost [127.0.0.1]) 
          by bilbo.reference.com (8.8.5/8.8.4) with ESMTP id PAA29982;
          Fri, 7 Feb 1997 15:48:05 -0800 (PST)
Message-Id: <199702072348.PAA29982@bilbo.reference.com>
X-Mailer: exmh version 2.0gamma 1/27/96
To: ccollins@cas.org (Charles Collins)
Cc: dbi-users@fugue.com
Subject: Re: using blob_read() to get a LONG from Oracle
In-reply-to: Your message of "Fri, 07 Feb 1997 11:18:27 EST." <9702071618.AA05037@cas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 07 Feb 1997 15:48:04 -0800
From: Jurgen Botz <jbotz@reference.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Charles Collins wrote:
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> I've been getting a LOT of helpful advice and I appreciate all of the
> assistance! :-)
> 
> However, it seems that everyone is using the Oraperl package and _not_ the DBI
> package to do all of this stuff. The "examples" that I've been referred to in
> README.longs are straight from Oraperl and the interaction with DBI is _much_
> different (at least it seems so to me (-:).

Doesn't seem that way to me... just different names.  Anyway, I've been using 
DBI, /not/ Oraperl, but unfortunately you can't use "pure" DBI because you need
to set $ora_cache... there doesn't seem to be a DBI euivalent of this (or if
there is, I haven't found it.)  From the posted code it seems you ignored this
bit of wisdom from my prior message.  Otherwise, the thing you're doing wrong
is that you *must* fetch the row before you can fetch the longs associated with
that row.  This is true for Oracle at the C interface, DBI/Oraperl inherits the
mechanism from there.

In other words, use the following alorithm...

   1) disable cache
   2) prepare( select ... )
   3) execute
   4) while rows to fetch do
   5)    fetch row
   6)    repeat
   7)        fetch chunk of long
   8)    until have all of it
   9) done

If your select selects more than one row the need for step 4 may
become a bit clearer... the blob_read always applies to the row
that was last fetched.

-j





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19447-44@oink>;
          Sun, 9 Feb 1997 16:29:09 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855365218:9:08504:0; Sat, 08 Feb 97 01:26:58 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id ab908465; 8 Feb 97 1:26 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA04127 for dbi-users-real; Fri, 7 Feb 1997 16:13:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pcc.edu (zeus.cc.pcc.edu [192.220.1.109]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA04123 
          for <dbi-users@fugue.com>; Fri, 7 Feb 1997 16:13:41 -0800 (PST)
Received: from orion.cc.pcc.edu (orion.cc.pcc.edu [192.220.1.101]) by pcc.edu 
          with SMTP (8.7.1/8.7.1) id QAA08108;
          Fri, 7 Feb 1997 16:14:35 -0800 (PST)
Received: from [192.220.2.70] by orion.cc.pcc.edu with SMTP (1.37.109.8/16.2) 
          id AA04636; Fri, 7 Feb 1997 16:06:59 -0800
Message-Id: <3.0.32.19970207161439.006c0e6c@orion.pcc.edu>
X-Sender: dpelinka@orion.pcc.edu
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Fri, 07 Feb 1997 16:14:39 -0700
To: dbi-users@fugue.com
From: David Pelinka <dpelinka@zeus.cc.pcc.edu>
Subject: Help compiling DBI under HP/UX 9.04
Cc: Tim.Bunce@ig.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I'm getting compliation errors building DBI under HP/UX 9.04. This is very
similar to the problem reported by Bill Baker <baker@spk.hp.com>. We are
planning to upgrade this system to HP/UX 10 in about a month, so advise me
if I'll need to wait until then. Thank you.
 
perl Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
	NAME => q[DBI]
	PREREQ_PM => {  }
	VERSION_FROM => q[DBI.pm]
	clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/opt/perl/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI

orion_dpelinka
/users/iss/dpelinka/perl/DBI-0.75 => make
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
	/opt/perl/bin/perl -I/opt/perl/lib/PA-RISC1.1/5.003 -I/opt/perl/lib
/opt/perl/lib/ExtUtils/xsubpp  -typemap /opt/perl/lib/ExtUtils/typemap
DBI.xs >DBI.tc && mv DBI.tc DBI.c
	cc -c  -D_HPUX_SOURCE -Aa -I/usr/local/include -O     -DVERSION=\"0.75\"
-DXS_VERSION=\"0.75\" +z -I/opt/perl/lib/PA-RISC1.1/5.003/CORE  DBI.c
cc: "DBI.c", line 966: error 1646: Illegal pointer combination for
conditional (?:).
cc: "DBI.c", line 966: warning 563: Argument #1 is not the correct type.
cc: "DBI.c", line 966: warning 608: Illegal integer-pointer combination in
assignment.
cc: "DBI.c", line 966: warning 563: Argument #2 is not the correct type.
*** Error code 1

Stop.

orion_dpelinka
/users/iss/dpelinka/perl/DBI-0.75 => perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=9, archname=PA-RISC1.1
    uname='hp-ux orion a.09.04 u 9000891 824206121 unlimited-user license '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib'

@INC: /opt/perl/lib/PA-RISC1.1/5.003 /opt/perl/lib
/opt/perl/lib/site_perl/PA-RISC1.1 /opt/perl/lib/site_perl .

orion_dpelinka
/users/iss/dpelinka/perl/DBI-0.75 => 

--------------------------------------------------------------------
David Pelinka				Direct/Voice: (503)-977-4379
Portland Community College, ITS		Fax: (503)-977-4987
PO Box 19000 Portland, OR. 97280-0990	Internet: dpelinka@pcc.edu
--------------------------------------------------------------------



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <19447-150@oink>;
          Sun, 9 Feb 1997 16:40:19 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855490337:9:04807:3; Sun, 09 Feb 97 12:12:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa904711; 9 Feb 97 12:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA06667 for dbi-users-real; Sun, 9 Feb 1997 03:08:28 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mothership.area51.org (sabat.inow.com [205.158.32.169]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id DAA06663 
          for <dbi-users@fugue.com>; Sun, 9 Feb 1997 03:08:20 -0800 (PST)
Received: from localhost (sabat@localhost) 
          by mothership.area51.org (8.8.5/8.8.5) with SMTP id DAA10454 
          for <dbi-users@fugue.com>; Sun, 9 Feb 1997 03:08:10 -0800
Date: Sun, 9 Feb 1997 03:08:10 -0800 (PST)
From: Sabat <sabat@area51.org>
To: dbi-users@fugue.com
Subject: Linux/DBI Battles: Alligator's Success?!
Message-ID: <Pine.LNX.3.95.970209030303.10414A-100000@mothership.area51.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Back in October, Alligator said this about getting DBI working on Linux:

>>Basically, get idld and idas from the SCO Unix distribution, then, run
>>all the stuff as per usual, however, at the stage where it should link 
the shared
>>library, kill the make, then replace the gcc/cc line with what it says
has
>>been ignored from proc.mk. Then type 'make' again. It'll then make the
shared
>>library with the SCO stuff, which works fine.


I obviously wouldn't be writing if this'd worked -- I don't even so
*how* it could, actually. When you're linking the shared library, you're
attempting to link ELF binaries with COFF, and I perpetually get:

LD_RUN_PATH="/usr/oracle7/lib" /bin/idld /usr/oracle7/lib/ostart.o -o
blib/arch/auto/DBD/Oracle/Oracle.so -shared -L/usr/local/lib Oracle.o
dbdimp.o /usr/oracle7/lib/osntab.o /usr/oracle7/lib/olm.o
/usr/oracle7/lib/old.o /usr/oracle7/lib/ols.o /usr/oracle7/lib/oln.o
/usr/oracle7/lib/olc.o    -L/usr/oracle7/lib -locic -lsqlnet -lora
-lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore
ld Oracle.o fatal: Can't open file ELF for input

Was it really that simple, just editing the Makefile? Or didn't you
need to pull some trick to get the whole thing compiled as COFF?

Steve



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <26082-9@oink>;
          Mon, 10 Feb 1997 06:40:43 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855550910:9:29597:0; Mon, 10 Feb 97 05:01:50 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019772; 10 Feb 97 5:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA07903 for dbi-users-real; Sun, 9 Feb 1997 20:06:15 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy.telebusiness.co.nz ([203.97.136.12]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id UAA07899 
          for <dbi-users@fugue.com>; Sun, 9 Feb 1997 20:06:09 -0800 (PST)
Received: by proxy.telebusiness.co.nz 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57) 
          id <01BC1774.FBE18F80@proxy.telebusiness.co.nz>;
          Mon, 10 Feb 1997 17:08:06 +1300
Message-ID: <c=NZ%a=_%p=Telebusiness%l=PROXY-970210040805Z-381@proxy.telebusiness.co.nz>
From: Nick Langstone <nickl@telebusiness.co.nz>
To: 'dbi-users' <dbi-users@fugue.com>
Subject: Problem binding to a smallint under db2
Date: Mon, 10 Feb 1997 17:08:05 +1300
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

the stats of the system

DB2 = 2.1
DBI = 0.73 ( ??? )
DBD = 0.61

The system is working fine, BUT

I have a table that has a key of a SMALLINT
I am dynamically binding using bind_param( ......, attrib_type );
byt there is not type for SMALLINT.
I think the solution is as follows
   
in the DB2.pm file ( ~/dbidbd/DB2/blib/lib/DBD )

$attrib_sint = { 'ParamT' => SQL_PARAM_INPUT,
 'Ctype' => SQL_C_SMALLINT,
 'Stype' => SQL_SMALLINT,
 'Prec'  => 10,
 'Scale' => 2,
 };

is this correct ?

If not what is correct please indicate a correct solution. I have not
implemented this change yet, so there is a good chance for it being
wrong :-)


Thanks 
Nick


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27014-0@oink>;
          Mon, 10 Feb 1997 07:49:02 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855560711:10:28450:1; Mon, 10 Feb 97 07:45:11 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1028427; 10 Feb 97 7:45 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id WAA08148 for dbi-users-real; Sun, 9 Feb 1997 22:57:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mothership.area51.org (sabat.inow.com [205.158.32.169]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id WAA08144 
          for <dbi-users@fugue.com>; Sun, 9 Feb 1997 22:57:52 -0800 (PST)
Received: from localhost (sabat@localhost) 
          by mothership.area51.org (8.8.5/8.8.5) with SMTP id WAA05778 
          for <dbi-users@fugue.com>; Sun, 9 Feb 1997 22:57:39 -0800
Date: Sun, 9 Feb 1997 22:57:39 -0800 (PST)
From: Sabat <sabat@area51.org>
To: dbi-users@fugue.com
Subject: More About Linux/DBI Battles: Alligator's Success?!
In-Reply-To: <Pine.LNX.3.95.970209030303.10414A-100000@mothership.area51.org>
Message-ID: <Pine.LNX.3.95.970209225145.4416A-100000@mothership.area51.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I've now rebuilt my binutils so they can handle COFF -- something
Alligator *must* have done, since idld, to my knowlege, can't handle
ELF. Now my ld can link both formats. In theory.

Now, I'm getting complaints about $ORACLE_HOME/lib/ostart.o having
an undefined 'main'. How does ostart.o fit into this? It's what
'perl Makefile.PL' said it was ignoring as 'ld' ('/bin/idld
/usr/oracle7/lib/ostart.o'). So it seems either Oracle.o or dbdimp.o
needs to have a main, and neither do.

Why is this so difficult, when A made it sound so easy? Maybe it's
because I'm American.


Steve "But My Ancestors Were European" Abatangle



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29323-0@oink>;
          Mon, 10 Feb 1997 13:49:52 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855582470:10:06714:1; Mon, 10 Feb 97 13:47:50 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id ab900447; 10 Feb 97 13:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA08684 for dbi-users-real; Mon, 10 Feb 1997 04:40:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from netmail.austin.ibm.com (netmail.austin.ibm.com [129.35.208.98]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA08680 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 04:40:56 -0800 (PST)
From: mhm@austin.ibm.com
Received: from dax.austin.ibm.com (dax.austin.ibm.com [9.53.146.10]) 
          by netmail.austin.ibm.com (8.6.12/8.6.11) with ESMTP id GAA32904;
          Mon, 10 Feb 1997 06:40:34 -0600
Received: (from mhm@localhost) 
          by dax.austin.ibm.com (AIX4.2/UCB 8.7/8.7-client1.01) id GAA21910;
          Mon, 10 Feb 1997 06:40:50 -0600 (CST)
Message-Id: <199702101240.GAA21910@dax.austin.ibm.com>
X-Mailer: exmh version 1.6.7 5/3/96
To: Nick Langstone <nickl@telebusiness.co.nz>
cc: 'dbi-users' <dbi-users@fugue.com>
Subject: Re: Problem binding to a smallint under db2
In-reply-to: Your message of Mon, 10 Feb 97 17:08:05 +1300. <c=NZ%a=_%p=Telebusiness%l=PROXY-970210040805Z-381@proxy.telebusiness.co.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 10 Feb 97 06:40:49 -0600

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Nick Langstone <nickl@telebusiness.co.nz>  writes:
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> the stats of the system
> 
> DB2 = 2.1
> DBI = 0.73 ( ??? )
> DBD = 0.61
> 
> The system is working fine, BUT
> 
> I have a table that has a key of a SMALLINT
> I am dynamically binding using bind_param( ......, attrib_type );
> byt there is not type for SMALLINT.
> I think the solution is as follows
>    
> in the DB2.pm file ( ~/dbidbd/DB2/blib/lib/DBD )
> 
> $attrib_sint = { 'ParamT' => SQL_PARAM_INPUT,
>  'Ctype' => SQL_C_SMALLINT,
>  'Stype' => SQL_SMALLINT,
>  'Prec'  => 10,
>  'Scale' => 2,
>  };
> 
> is this correct ?
> 

$attrib_sint = { 'ParamT' => SQL_PARAM_INPUT_OUTPUT,
     'Ctype' => SQL_C_CHAR
     'Stype' => SQL_SMALLINT,
     'Prec'  => 5,
     'Scale' => 0,
}

I know the precision and scale are correct, the tricky part is dealing
with the underlying C_Type.  If you can guarantee that you will never
cause perl to coerce the data from integer to char, the SQL_C_SMALLINT
will work, otherwise it needs to be SQL_C_CHAR.

Mike

-- 
----------------------------------------------------------------------
Michael H. Moran                  | Standard Disclaimer:  The content 
mhm@austin.ibm.com                | of this posting is independent of 
Modeling, Analysis, and Compilers | official IBM position.
IBM Corporation, Austin, Texas    |




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <29717-16@oink>;
          Mon, 10 Feb 1997 15:44:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855587234:10:09855:0; Mon, 10 Feb 97 15:07:14 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id ab1009796; 10 Feb 97 15:07 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA08793 for dbi-users-real; Mon, 10 Feb 1997 06:02:50 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mothership.area51.org (sabat.inow.com [205.158.32.169]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA08789 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 06:02:44 -0800 (PST)
Received: (from sabat@localhost) by mothership.area51.org (8.8.5/8.8.5) 
          id GAA12848; Mon, 10 Feb 1997 06:02:29 -0800
Date: Mon, 10 Feb 1997 06:02:29 -0800
From: Sabat <sabat@area51.org>
Message-Id: <199702101402.GAA12848@mothership.area51.org>
To: dbi-users@fugue.com, Tim.Bunce@ig.co.uk
Subject: Re: More About Linux/DBI Battles: Alligator's Success

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

=> perl Makefile.PL -g LINKTYPE=static

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /usr/oracle7
Reading /usr/oracle7/proc/lib/proc.mk.
System: perl5.003 linux porky.redhat.com 2.0.27 #1 tue dec 3 15:02:19 est 1996 i586 
Compiler: cc -O2 -Dbool=char -DHAS_BOOL -I/usr/local/include
Linker:   /coff/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       /bin/idld $(ORACLE_HOME)/lib/ostart.o
  LDFLAGS:  -L$(LIBHOME)
Linking with /usr/oracle7/lib/osntab.o /usr/oracle7/lib/olm.o /usr/oracle7/lib/old.o /usr/oracle7/lib/ols.o /usr/oracle7/lib/oln.o /usr/oracle7/lib/olc.o -locic  -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore     

Writing Makefile for DBD::Oracle


=> [Note: at this point, I edited Makefile so that LD = /coff/bin/nm $(ORACLE_HOME)/lib/ostart.o, in both places where LD is assigned]

=> make

cc -c -I/usr/oracle7/rdbms/demo -I/usr/lib/perl5/site_perl/i586-linux/DBI -I/usr/lib/perl5/i386-linux/5.003/DBI -Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"0.44\" -DXS_VERSION=\"0.44\" -fpic -I/usr/lib/perl5/i386-linux/5.003/CORE  Oracle.c
cc -c -I/usr/oracle7/rdbms/demo -I/usr/lib/perl5/site_perl/i586-linux/DBI -I/usr/lib/perl5/i386-linux/5.003/DBI -Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"0.44\" -DXS_VERSION=\"0.44\" -fpic -I/usr/lib/perl5/i386-linux/5.003/CORE  dbdimp.c
rm -rf blib/arch/auto/DBD/Oracle/Oracle.a
ar cr blib/arch/auto/DBD/Oracle/Oracle.a Oracle.o dbdimp.o && : blib/arch/auto/DBD/Oracle/Oracle.a
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.a
Manifying ./blib/man3/DBD::Oraperl.3


=> make test TEST_VERBOSE=1

Writing "Makefile.aperl" for this perl

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /usr/oracle7
Reading /usr/oracle7/proc/lib/proc.mk.
System: perl5.003 linux porky.redhat.com 2.0.27 #1 tue dec 3 15:02:19 est 1996 i586 
Compiler: cc -O2 -Dbool=char -DHAS_BOOL -I/usr/local/include
Linker:   /coff/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       /bin/idld $(ORACLE_HOME)/lib/ostart.o
  LDFLAGS:  -L$(LIBHOME)
Linking with /usr/oracle7/lib/osntab.o /usr/oracle7/lib/olm.o /usr/oracle7/lib/old.o /usr/oracle7/lib/ols.o /usr/oracle7/lib/oln.o /usr/oracle7/lib/olc.o -locic  -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore     

Writing Makefile.aperl for DBD::Oracle
make -f Makefile.aperl perl
make[1]: Entering directory `/root/DBD-Oracle-0.44'
Writing perlmain.c
cd . && cc -c  -I/usr/lib/perl5/i386-linux/5.003/CORE  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 \
   -DVERSION=\"0.44\" \
-DXS_VERSION=\"0.44\" -I/usr/lib/perl5/i386-linux/5.003/CORE perlmain.c
cat ./blib/arch/auto/DBD/Oracle/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/lib/perl5/i386-linux/5.003/auto/DynaLoader/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cc -L/usr/local/lib -rdynamic -o perl -O2 ./perlmain.o /usr/lib/perl5/i386-linux/5.003/CORE/libperl.a /usr/lib/perl5/i386-linux/5.003/auto/DynaLoader/DynaLoader.a ./blib/arch/auto/DBD/Oracle/Oracle.a `cat ./blib/arch/auto/DBD/Oracle/extralibs.all` -lndbm -lgdbm -ldb -ldl -lm -lc 
To install the new "perl" binary, call
    make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
    make -f Makefile.aperl map_clean
make[1]: Leaving directory `/root/DBD-Oracle-0.44'
PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/usr/lib/perl5/i386-linux/5.003 -I/usr/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
make: *** [test_static] Segmentation fault (core dumped)


=> gdb backtrace:

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
(no debugging symbols found)...
Core was generated by `./perl -I./blib/arch -I./blib/lib -I/usr/lib/perl5/i386-linux/5.003 -I/usr/lib/p'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libdb.so.2.0.0...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libgdbm.so.2.0.0...
(no debugging symbols found)...done.
Reading symbols from /lib/libdl.so.1.7.14...(no debugging symbols found)...
done.
Reading symbols from /lib/libm.so.5.0.6...(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.5.3.12...(no debugging symbols found)...done.
Reading symbols from /lib/ld-linux.so.1...(no debugging symbols found)...done.
#0  0x8126f83 in memmove ()
(gdb) #0  0x8126f83 in memmove ()
#1  0x807df70 in Perl_sv_setpv ()
#2  0x80551c6 in perl_construct ()
#3  0x80550d6 in main ()
#4  0x805503b in _start ()
(gdb) 


=> Versions:

Oracle 7.1.4.1.0 for SCO

This is perl, version 5.003 with EMBED
	built under linux at Dec  4 1996 20:40:11
	+ suidperl security patch

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=linux, osver=2.0.27, archname=i586-linux
    uname='linux porky.redhat.com 2.0.27 #1 tue dec 3 15:02:19 est 1996 i586 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.7.2.1
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=n, randbits=31
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lndbm -lgdbm -ldb -ldl -lm -lc
    libc=/lib/libc.so.5.3.12, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

@INC: /usr/lib/perl5/i386-linux/5.003 /usr/lib/perl5 /usr/lib/perl5/site_perl/i586-linux /usr/lib/perl5/site_perl .


=> Note: I'm using Red Hat's precompiled perl. If it would help, I could rebuild
   perl myself, switch off -O2, and switch on -g




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01914-1@oink>;
          Mon, 10 Feb 1997 18:58:12 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855600793:9:23300:0; Mon, 10 Feb 97 18:53:13 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017932; 10 Feb 97 18:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA09367 for dbi-users-real; Mon, 10 Feb 1997 09:42:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ibmmail.COM (ibmmail.com [199.171.26.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id JAA09363 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 09:42:38 -0800 (PST)
Message-Id: <199702101742.JAA09363@toccata.fugue.com>
Received: from ibmmail by ibmmail.COM (IBM VM SMTP V2R3) with BSMTP id 8277;
          Mon, 10 Feb 97 12:42:33 EST
Date: Mon, 10 Feb 1997 12:41:29 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: dbi-users@fugue.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Calling Stored Procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Thank you very much Tim for you help.  My code ends up as follows:              
 $csr->bind_param(1, $my_first_param);                                          
 $csr->bind_param_inout(2, \$my_second_param, 100);                             

 $csr->execute();                                                               

and this works perfectly, but I am in real need of $my_second_param to bean     
array.  I tried changing it to @my_second_param and I got an error saying that  
this was not supported yet.  Is there anything that I can do to get an array    
sent back from a stored procedure?  Again thank you very much for your help.    

Thanks,                                                                         
Greg Pellegrom                                                                  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02227-0@oink>;
          Mon, 10 Feb 1997 19:27:55 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855602767:10:00822:3; Mon, 10 Feb 97 19:26:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa908497; 10 Feb 97 19:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA09495 for dbi-users-real; Mon, 10 Feb 1997 10:19:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA09491;
          Mon, 10 Feb 1997 10:19:06 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA07734;
          Mon, 10 Feb 1997 10:18:02 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA21083;
          Mon, 10 Feb 1997 10:17:58 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA12474;
          Mon, 10 Feb 1997 10:17:57 -0800
Date: Mon, 10 Feb 1997 10:17:57 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702101817.KAA12474@anubis.informix.com>
To: dbi-dev@fugue.com, dbi-users@fugue.com
Cc: beowulf@cscsun4.larc.nasa.gov, johnl@informix.com
Subject: Re: DBD::Informix and closing db connections

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: Jeff Rowe <beowulf@cscsun4.larc.nasa.gov>
>Subject: DBD::Informix and closing db connections
>To: dbi-users@fugue.com
>Date: Mon, 10 Feb 1997 09:39:23 -0500 (EDT)
>
>I'm using DBI/DBD::Informix with mod_perl and after the first run of a program,
>the database connection stays around, even though I try to close it like so:
>
>$sth->finish;
>undef $sth;
>$db_query->disconnect;
>
>I ran a Perl script from the command line, putting an infinite while loop at
>the end after the disconnect statements are executed.  No matter how long I
>let the loop run, a 'ps' shows the database connection still open.  Only
>killing the Perl program will drop the database connection.
>
>I'm sure keeping a connection open is much more efficient, but with mod_perl
>each Apache child can have a database connection open for the life of the
>child, which can get into licensing issues and resource problems.
>
>What can I do to physically open and close the database connection each time
>through the program when running a long-lived program?

Hi Jeff,

If I recall correctly, you're using 5.00 or 5.01 ESQL/C...

That being the case, the 'disconnect' operation is coded as 'CLOSE DATABASE'.
Unless your database is on a remote machine, closing the database does not
detach the engine, whether it is OnLine or SE matters not (with the 5.0x
versions of ESQL/C; it does matter with 6.0x and later versions).

There are a couple of ways of looking at and/or dealing with this, and they
all revolve around the source file esqlc_v5.ec:

1.  The way I looked at it, and the way it is implemented, is that there is
    no disconnect as such in ESQL/C, and CLOSE DATABASE is the nearest
    equivalent, so that is what should be implemented, and the behaviour of
    CLOSE DATABASE is therefore deemed to be correct.

2.  The code should disconnect the database engine.  This can be done with
    the documented function, sqlexit().  The function call can be inserted
    into the function dbd_ix_closedatabase() after the CLOSE DATABASE
    statement.  It is reasonably innocuous to do this -- the disadvantage
    is that if you then open the database again, a new server process
    (sqlexec, sqlturbo) will have to be started, whereas without the
    sqlexit(), the existing one will be reused.  This is all handled
    transparently to the ESQL/C code, so it is not a bad idea, but it is
    often sub-optimal.

3.  The use of sqlexit() in dbd_ix_closedatabase() should be a compile-time
    option.

4.  The use of sqlexit() in dbd_ix_closedatabase() should be a run-time
    option selected by environment variable.

5.  The use of sqlexit() in dbd_ix_closedatabase() should be a run-time
    option specified by attributes, and since no attributes are allowed in
    disconnect, the attribute would have to be specified in the connect.
    And what should the attribute be?  '{CallSqlExitOnDisconnect=>1}' is a
    possibility.

6.  A new function should be provided to give access to the sqlexit()
    function.

Since the persistence of the engine is an issue for you, Jeff, the simplest
fix by far is option 2.

However, I have to deal with the longer-term issue of what's correct for
everyone.  At the coding level, option 1 is trivial (I do nothing except
update the documentation, and that will need to happen regardless of the
choice).  Option 2 is barely more complex.  But would people rather have
the choice of Option 1 or Option 2, and if so, how should the option be
given?  Environment variable?  Arguments?  Not trivial.  I'd appreciate
feedback on which way is perceived as best (which is why I've copied this
to dbi-dev as well as dbi-users).  Now the problem has been discovered, I
think I prefer one of options 1, 2 or 4, but I'm looking for other
opinions.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <03634-29@oink>;
          Mon, 10 Feb 1997 21:59:44 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855610930:9:10091:21; Mon, 10 Feb 97 21:42:10 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa910105; 10 Feb 97 21:41 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA10007 for dbi-users-real; Mon, 10 Feb 1997 12:18:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from srv01s4.cas.org (srv01s4.cas.org [134.243.50.9]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id MAA10003 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 12:18:27 -0800 (PST)
Date: Mon, 10 Feb 1997 15:17:48 -0500
From: ccollins@cas.org (Charles Collins)
Message-Id: <9702102017.AA21661@cas.org>
To: jbotz@reference.com, Tim.Bunce@ig.co.uk
Subject: Re: using blob_read() to get a LONG from Oracle
Cc: dbi-users@fugue.com
X-Sun-Charset: US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Tim:

As it turns out, blob_read isn't required at all if I set $ora_long. This works
perfectly!

Chuck
--------
use Oraperl;
$lda = ora_login('','/','') or die "Failed to connect to database!";

use Getopt::Long;
%Opts = ();
$rc = GetOptions(\%Opts,"heading=s");

$heading = $Opts{heading};
$ora_long = 32760;

my $sql = "select ScopeNote from ThesHeadings where Heading = (:1)";
my $csr = ora_open($lda, $sql) or die $ora_errstr;
ora_bind($csr, $heading) or die $ora_errstr;
my (@data) = ora_fetch($csr);
for $line (@data) {
   print "$line\n";
}
--
Charles W. Collins     |Chemical Abstracts Service |Official disclaimer:  
ccollins@cas.org       |2540 Olentangy River Road  |I am not representing CAS
                       |Columbus, Ohio  43202      |and opinions are mine 


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04344-2@oink>;
          Mon, 10 Feb 1997 22:26:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855613285:9:29462:4; Mon, 10 Feb 97 22:21:25 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1006608; 10 Feb 97 22:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA09503 for dbi-dev-real; Mon, 10 Feb 1997 10:21:43 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA09491;
          Mon, 10 Feb 1997 10:19:06 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA07734;
          Mon, 10 Feb 1997 10:18:02 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA21083;
          Mon, 10 Feb 1997 10:17:58 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA12474;
          Mon, 10 Feb 1997 10:17:57 -0800
Date: Mon, 10 Feb 1997 10:17:57 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702101817.KAA12474@anubis.informix.com>
To: dbi-dev@fugue.com, dbi-users@fugue.com
Cc: beowulf@cscsun4.larc.nasa.gov, johnl@informix.com
Subject: Re: DBD::Informix and closing db connections

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

>From: Jeff Rowe <beowulf@cscsun4.larc.nasa.gov>
>Subject: DBD::Informix and closing db connections
>To: dbi-users@fugue.com
>Date: Mon, 10 Feb 1997 09:39:23 -0500 (EDT)
>
>I'm using DBI/DBD::Informix with mod_perl and after the first run of a program,
>the database connection stays around, even though I try to close it like so:
>
>$sth->finish;
>undef $sth;
>$db_query->disconnect;
>
>I ran a Perl script from the command line, putting an infinite while loop at
>the end after the disconnect statements are executed.  No matter how long I
>let the loop run, a 'ps' shows the database connection still open.  Only
>killing the Perl program will drop the database connection.
>
>I'm sure keeping a connection open is much more efficient, but with mod_perl
>each Apache child can have a database connection open for the life of the
>child, which can get into licensing issues and resource problems.
>
>What can I do to physically open and close the database connection each time
>through the program when running a long-lived program?

Hi Jeff,

If I recall correctly, you're using 5.00 or 5.01 ESQL/C...

That being the case, the 'disconnect' operation is coded as 'CLOSE DATABASE'.
Unless your database is on a remote machine, closing the database does not
detach the engine, whether it is OnLine or SE matters not (with the 5.0x
versions of ESQL/C; it does matter with 6.0x and later versions).

There are a couple of ways of looking at and/or dealing with this, and they
all revolve around the source file esqlc_v5.ec:

1.  The way I looked at it, and the way it is implemented, is that there is
    no disconnect as such in ESQL/C, and CLOSE DATABASE is the nearest
    equivalent, so that is what should be implemented, and the behaviour of
    CLOSE DATABASE is therefore deemed to be correct.

2.  The code should disconnect the database engine.  This can be done with
    the documented function, sqlexit().  The function call can be inserted
    into the function dbd_ix_closedatabase() after the CLOSE DATABASE
    statement.  It is reasonably innocuous to do this -- the disadvantage
    is that if you then open the database again, a new server process
    (sqlexec, sqlturbo) will have to be started, whereas without the
    sqlexit(), the existing one will be reused.  This is all handled
    transparently to the ESQL/C code, so it is not a bad idea, but it is
    often sub-optimal.

3.  The use of sqlexit() in dbd_ix_closedatabase() should be a compile-time
    option.

4.  The use of sqlexit() in dbd_ix_closedatabase() should be a run-time
    option selected by environment variable.

5.  The use of sqlexit() in dbd_ix_closedatabase() should be a run-time
    option specified by attributes, and since no attributes are allowed in
    disconnect, the attribute would have to be specified in the connect.
    And what should the attribute be?  '{CallSqlExitOnDisconnect=>1}' is a
    possibility.

6.  A new function should be provided to give access to the sqlexit()
    function.

Since the persistence of the engine is an issue for you, Jeff, the simplest
fix by far is option 2.

However, I have to deal with the longer-term issue of what's correct for
everyone.  At the coding level, option 1 is trivial (I do nothing except
update the documentation, and that will need to happen regardless of the
choice).  Option 2 is barely more complex.  But would people rather have
the choice of Option 1 or Option 2, and if so, how should the option be
given?  Environment variable?  Arguments?  Not trivial.  I'd appreciate
feedback on which way is perceived as best (which is why I've copied this
to dbi-dev as well as dbi-users).  Now the problem has been discovered, I
think I prefer one of options 1, 2 or 4, but I'm looking for other
opinions.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04749-10@oink>;
          Mon, 10 Feb 1997 23:16:29 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855616217:10:24724:3; Mon, 10 Feb 97 23:10:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa922614; 10 Feb 97 23:09 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA10507 for dbi-users-real; Mon, 10 Feb 1997 14:16:12 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from engr.wisc.edu (snapple.engr.wisc.edu [144.92.12.24]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA10503 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 14:16:10 -0800 (PST)
Received: from irex.neep.wisc.edu (irex.neep.wisc.edu [144.92.92.47]) 
          by engr.wisc.edu (CAE sendmail 1.1/CAE1.1) with SMTP id QAA26429 
          for <@engr.wisc.edu:dbi-users@fugue.com>;
          Mon, 10 Feb 1997 16:16:08 -0600 (CST)
Received: by irex.neep.wisc.edu (950221.405.SGI.8.6.10/911001.SGI) 
          for dbi-users@fugue.com id QAA13565; Mon, 10 Feb 1997 16:16:44 -0600
Date: Mon, 10 Feb 1997 16:16:44 -0600
From: harris@irex.neep.wisc.edu (kim harris)
Message-Id: <199702102216.QAA13565@irex.neep.wisc.edu>
To: dbi-users@fugue.com
Subject: DBD::mSQL update to mSQL2.0?

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

I'm looking at implementing a database in mSQL 2.0 that may be ported to an
Oracle system in the future.  DBI seems the logical way to go, but I am 
wondering how up to date is the DBD:mSQL?  I know Hughes has been releasing
lots of betas lately.

Thanks in advance,

Kim

Kim Harris-Kuhlman 

Rm. 402A
Engineering Research Building
1500 Engineering Drive
University of Wisconsin - Madison
Madison, WI  53706

harris@irex.neep.wisc.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05305-0@oink>;
          Tue, 11 Feb 1997 00:51:42 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855617096:9:29334:2; Mon, 10 Feb 97 23:24:56 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1029750; 10 Feb 97 23:24 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA10461 for dbi-users-real; Mon, 10 Feb 1997 14:08:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA10457 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 14:08:04 -0800 (PST)
Received: from skegness.cup.hp.com (skegness.cup.hp.com [15.28.72.252]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id OAA12831 
          for <dbi-users@fugue.com>; Mon, 10 Feb 1997 14:07:57 -0800 (PST)
Message-Id: <199702102207.OAA12831@palrel1.hp.com>
Received: by skegness.cup.hp.com (1.39.111.2/16.2) id AA110822509;
          Mon, 10 Feb 1997 14:08:29 -0800
From: Wendy Poulin <wendyp@skegness.cup.hp.com>
Subject: sh: 10799 Bus error(coredump)^M
To: dbi-users@fugue.com
Date: Mon, 10 Feb 1997 14:08:29 PST
Cc: tim.bunce@ig.co.uk
X-Mailer: Elm [revision: 112.6]

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

  I'm receiving a core dump and exit code 138 when trying to run make test
  on my HP-UX machine. Following is most of the requested info. I will try
  to do the core dump and stack trace next.

  Any thoughts?

Wendy Poulin
wendyp@cup.hp.com

Script started on Mon Feb 10 14:00:41 1997
# make realclean
        rm -rf Oracle.c ./blib Makefile.aperl ./blib/arch/auto/DBD/Oracle/extralibs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe Oracle.bs Oracle.bso Oracle.def Oracle.exp
        mv Makefile Makefile.old 2>/dev/null
        rm -rf ./blib/lib/auto/DBD/Oracle ./blib/arch/auto/DBD/Oracle
        rm -f ./blib/arch/auto/DBD/Oracle/Oracle.sl ./blib/arch/auto/DBD/Oracle/Oracle.bs
        rm -f ./blib/arch/auto/DBD/Oracle/Oracle.a
        rm -f ./blib/lib/Oraperl.pm ./blib/lib/DBD/Oracle.pm ./blib/lib/oraperl.ph
        rm -rf Makefile Makefile.old
# perl Makefile.PL -m $ORACLE_HOIM  ME/rdbms/demo/oracle.mk

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /users3/app/oracle/product/7.3.2.2

WARNING: Oracle OCI (Pro*C) does not appear to be installed.
You should install Pro*C before you can build DBD::Oracle properly.

Reading /users3/app/oracle/product/7.3.2.2/rdbms/demo/oracle.mk.
Reading /users3/app/oracle/product/7.3.2.2/rdbms/lib/env_rdbms.mk.
System: perl5.003 hp-ux skegness b.10.10 u 9000829 1198871301 unlimited-user license 
Compiler: cc -O -D_HPUX_SOURCE -Aa
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
Linking with  -L/users3/app/oracle/product/7.3.2.2/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm -lcore3

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
# make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        /usr/bin/perl -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib /opt/perl5/lib/ExtUtils/xsubpp  -typemap /opt/perl5/lib/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
        cc -c -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/users3/app/oracle/product/7.3.2.2/rdbms/public -I. -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/opt/perl5/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" +z -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  Oracle.c
        cc -c -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/users3/app/oracle/product/7.3.2.2/rdbms/public -I. -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/opt/perl5/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" +z -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/users3/app/oracle/product/7.3.2.2/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/users3/app/oracle/product/7.3.2.2/lib -L/users3/app/oracle/product/7.3.2.2/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm -lcore3 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
# make test
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  2 secs ( 0.32 cusr  0.18 csys =  0.50 cpu)
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib test.pl
Oraperl test application $Revision: 1.29 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.76 Switch by Tim Bunce, version 0.76


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'test/test' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='DDTS_ORA', TWO_TASK='')
sh: 11005 Bus error(coredump)
*** Error exit code 138

Stop.
# 
# perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux skegness b.10.10 u 9000829 1198871301 unlimited-user license '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa'
    ccflags ='-D_HPUX_SOURCE -Aa'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib'

@INC: /opt/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .
# 
script done on Mon Feb 10 14:03:01 1997
Script started, file is wendy.lst
# perl Ma       make realclean
        rm -rf Oracle.c ./blib Makefile.aperl ./blib/arch/auto/DBD/Oracle/extralibs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe Oracle.bs Oracle.bso Oracle.def Oracle.exp
        mv Makefile Makefile.old 2>/dev/null
        rm -rf ./blib/lib/auto/DBD/Oracle ./blib/arch/auto/DBD/Oracle
        rm -f ./blib/arch/auto/DBD/Oracle/Oracle.sl ./blib/arch/auto/DBD/Oracle/Oracle.bs
        rm -f ./blib/arch/auto/DBD/Oracle/Oracle.a
        rm -f ./blib/lib/Oraperl.pm ./blib/lib/DBD/Oracle.pm ./blib/lib/oraperl.ph
        rm -rf Makefile Makefile.old
# perl Makefile.PL -m $ORACLE_HOIM  ME/rdbms/demo/oracle.mk

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /users3/app/oracle/product/7.3.2.2

WARNING: Oracle OCI (Pro*C) does not appear to be installed.
You should install Pro*C before you can build DBD::Oracle properly.

Reading /users3/app/oracle/product/7.3.2.2/rdbms/demo/oracle.mk.
Reading /users3/app/oracle/product/7.3.2.2/rdbms/lib/env_rdbms.mk.
System: perl5.003 hp-ux skegness b.10.10 u 9000829 1198871301 unlimited-user license 
Compiler: cc -O -D_HPUX_SOURCE -Aa
Linker:   /usr/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
Linking with  -L/users3/app/oracle/product/7.3.2.2/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm -lcore3

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle
# make
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp oraperl.ph ./blib/lib/oraperl.ph
        /usr/bin/perl -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib /opt/perl5/lib/ExtUtils/xsubpp  -typemap /opt/perl5/lib/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
        cc -c -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/users3/app/oracle/product/7.3.2.2/rdbms/public -I. -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/opt/perl5/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" +z -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  Oracle.c
        cc -c -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/users3/app/oracle/product/7.3.2.2/rdbms/public -I. -I/users3/app/oracle/product/7.3.2.2/rdbms/demo -I/opt/perl5/lib/site_perl/PA-RISC1.1/DBI -I/opt/perl5/lib/PA-RISC1.1/5.003/DBI -D_HPUX_SOURCE -Aa -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\" +z -I/opt/perl5/lib/PA-RISC1.1/5.003/CORE  dbdimp.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        LD_RUN_PATH="/users3/app/oracle/product/7.3.2.2/lib:/lib/pa1.1" ld -o ./blib/arch/auto/DBD/Oracle/Oracle.sl -b -L/usr/local/lib Oracle.o  dbdimp.o    -L/users3/app/oracle/product/7.3.2.2/lib -L/users3/app/oracle/product/7.3.2.2/lib -lclient -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lcl -lm -lm -lcore3 
        chmod 755 ./blib/arch/auto/DBD/Oracle/Oracle.sl
        cp Oracle.bs ./blib/arch/auto/DBD/Oracle/Oracle.bs
        chmod 644 ./blib/arch/auto/DBD/Oracle/Oracle.bs
Manifying ./blib/man3/DBD::Oraperl.3
# make test
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  2 secs ( 0.32 cusr  0.18 csys =  0.50 cpu)
        PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib -I/opt/perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib test.pl
Oraperl test application $Revision: 1.29 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.76 Switch by Tim Bunce, version 0.76


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'test/test' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='DDTS_ORA', TWO_TASK='')
sh: 11005 Bus error(coredump)
*** Error exit code 138

Stop.
# 
# perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=hpux, osver=10, archname=PA-RISC1.1
    uname='hp-ux skegness b.10.10 u 9000829 1198871301 unlimited-user license '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa'
    ccflags ='-D_HPUX_SOURCE -Aa'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib'

@INC: /opt/perl5/lib/PA-RISC1.1/5.003 /opt/perl5/lib /opt/perl5/lib/site_perl/PA-RISC1.1 /opt/perl5/lib/site_perl .
# Script done, file is wendy.lst

HP-Ux version 10.10
DBI version .76
DBD:Oracle version .44
Perl version 5.003




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <08926-8@oink>;
          Tue, 11 Feb 1997 11:04:24 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855651906:10:23915:0; Tue, 11 Feb 97 09:05:06 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa903264; 11 Feb 97 9:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id AAA12268 for dbi-users-real; Tue, 11 Feb 1997 00:03:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id AAA12264 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 00:03:11 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA15290 
          for dbi-users@fugue.com; Tue, 11 Feb 97 01:03:09 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA17296 
          for dbi-users@fugue.com; Tue, 11 Feb 97 01:03:07 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id JAA14368; Tue, 11 Feb 1997 09:03:01 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199702110803.JAA14368@ismuc.sps.mot.com>
Subject: Re: Calling Stored Procedures
To: usfmdbsl <usfmdbsl@ibmmail.com> (Greg Pellegrom)
Date: Tue, 11 Feb 1997 09:03:00 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <199702101742.JAA09363@toccata.fugue.com> from "Greg Pellegrom USAET" at Feb 10, 97 12:41:29 pm
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> and this works perfectly, but I am in real need of $my_second_param to bean
> array.  I tried changing it to @my_second_param and I got an error saying that
> this was not supported yet.  Is there anything that I can do to get an array
> sent back from a stored procedure?  Again thank you very much for your help.

You can store the result in a PL/SQL array and use a PL/SQL function to
get the elements out of the array one by one (and insert them into your
perl array).  It's not very elegant but it does work...

Regards,
-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <10134-0@oink>;
          Tue, 11 Feb 1997 15:31:03 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855675010:10:21136:2; Tue, 11 Feb 97 15:30:10 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912688; 11 Feb 97 15:29 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA12761 for dbi-users-real; Tue, 11 Feb 1997 06:36:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ibmmail.COM (ibmmail.com [199.171.26.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA12754 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 06:36:30 -0800 (PST)
Message-Id: <199702111436.GAA12754@toccata.fugue.com>
Received: from ibmmail by ibmmail.COM (IBM VM SMTP V2R3) with BSMTP id 5235;
          Tue, 11 Feb 97 09:36:27 EST
Date: Tue, 11 Feb 1997 09:35:26 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: dbi-users@fugue.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Calling Stored Procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Christian,                                                                      
   Thanks for your help with this problem.  My stored procedure requires a      
number and returns an array of strings, what PL/SQL function do I call and      
how do I call it?  Do I have to bind any parameters, and if so, do I put it     
some while loop?  Sorry to be asking so many questions but I guess I don't      
know what you are talking about.  Thanks for any of your help.                  

Thanks,                                                                         
Greg Pellegrom                                                                  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11349-0@oink>;
          Tue, 11 Feb 1997 17:37:49 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855675097:10:21719:0; Tue, 11 Feb 97 15:31:37 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021690; 11 Feb 97 15:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA12777 for dbi-users-real; Tue, 11 Feb 1997 06:44:39 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ibmmail.COM (ibmmail.com [199.171.26.3]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id GAA12773 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 06:44:36 -0800 (PST)
Message-Id: <199702111444.GAA12773@toccata.fugue.com>
Received: from ibmmail by ibmmail.COM (IBM VM SMTP V2R3) with BSMTP id 5624;
          Tue, 11 Feb 97 09:44:33 EST
Date: Tue, 11 Feb 1997 09:43:32 EST
From: "Greg Pellegrom USAET(UTC -05:00)" <usfmdbsl@ibmmail.com>
To: dbi-users@fugue.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Calling Stored Procedures

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I accidently erased the message to whom ever requested the code for calling     
stored procedures.  Anyway, here it is.                                         

$lda = ora_login($dbname, $dbuser, '')  || die "$ora_errno: $ora_errstr\n";     

$csr = ora_open($lda, q{                                                        
        begin                                                                   
           MY_STORED_PROCEDURE(:1, :2);                                         
        end;                                                                    
}) || die "ora_open failed: $ora_errstr";                                       

$csr->bind_param(1, $my_first_param);                                           
$csr->bind_param_inout(2, \$my_second_param, 100);                              

$csr->execute();                                                                
ora_close($csr);                                                                

print "$my_first_param          $my_second_param \n";                           

ora_logoff($lda);                                                               

If you have any question, I would be happy to help.                             

Thanks,                                                                         
Greg Pellegrom                                                                  


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11349-8@oink>;
          Tue, 11 Feb 1997 17:38:17 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855677106:10:05311:13; Tue, 11 Feb 97 16:05:06 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928230; 11 Feb 97 16:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA12815 for dbi-users-real; Tue, 11 Feb 1997 07:04:45 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from spsem02.sps.mot.com (spsem02.sps.mot.com [192.70.231.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA12811 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 07:04:43 -0800 (PST)
Received: from mogate.sps.mot.com 
          by spsem02.sps.mot.com (4.1/SMI-4.1/Email 2.1 10/25/93) id AA02974 
          for dbi-users@fugue.com; Tue, 11 Feb 97 08:04:42 MST
Received: from emailsps (emailsps.sps.mot.com) 
          by mogate.sps.mot.com (4.1/SMI-4.1/Email-2.0) id AA24470 
          for dbi-users@fugue.com; Tue, 11 Feb 97 08:04:41 MST
Received: (from r28874@localhost) by ismuc.sps.mot.com (8.8.0/8.6.6) 
          id QAA16556; Tue, 11 Feb 1997 16:04:32 +0100
From: Christian Murphy <r28874@ismuc.sps.mot.com>
Message-Id: <199702111504.QAA16556@ismuc.sps.mot.com>
Subject: Retrieving an array from PL/SQL (was Re: Calling Stored Procedures)
To: usfmdbsl@ibmmail.com (Greg Pellegrom USAET)
Date: Tue, 11 Feb 1997 16:04:31 +0100 (MET)
Cc: dbi-users@fugue.com
In-Reply-To: <9702111437.AA04335@spsem01.sps.mot.com> from "Greg Pellegrom USAET" at Feb 11, 97 09:36:20 am
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>     Thanks for your help with this problem.  My stored procedure requires a
>  number and returns an array of strings, what PL/SQL function do I call and
>  how do I call it?  Do I have to bind any parameters, and if so, do I put it
>  some while loop?  Sorry to be asking so many questions but I guess I don't
>  know what you are talking about.  Thanks for any of your help.

You have to write the code to do it yourself.
Your PL/SQL might look something like this

-- global variable to allow Perl access arrays
-- pl_array is your array type defined elsewhere
internal_dummy_pl_array  pl_array;

-- procedure to save into global array
PROCEDURE set_the_pl_array (
        the_result        pl_array
) IS
BEGIN
        internal_dummy_pl_array := the_result;
END;

-- function retrieves one element from the global array
FUNCTION the_element_with_index (
        the_index       BINARY_INTEGER
) RETURN NUMBER IS
BEGIN
        IF internal_dummy_pl_array.EXISTS(the_index)
                THEN RETURN internal_dummy_pl_array(the_index);
                ELSE RETURN 0;
        END IF;
END;

You would use the procedure to save the result of your function returning
an array, the retrieve the values one by one using the function above.
Your invocations from perl might look something like (untested):

set_the_pl_array(my_func_returning_array(:1, :2);
-- or however you invoke your function -- you decide what to bind
... back to perl to do some processing ...
... in a loop ...
	:1 := the_element_with_index(:2);

here :2 contains a (read-only) incrementing index and :1 is the result
which you add to your perl array, probably using push().

Hope this explains it a bit better.  Like I said, it's not very pretty.

I'm putting the list on copy.  If there _is_ a better way, I'd be
glad to hear of it.

Regards,
-christian



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11349-35@oink>;
          Tue, 11 Feb 1997 17:40:00 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855680397:10:28386:4; Tue, 11 Feb 97 16:59:57 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa922725; 11 Feb 97 16:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA12886 for dbi-users-real; Tue, 11 Feb 1997 07:47:22 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.tripnet.se (root@argus.tripnet.se [195.100.18.7]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA12882 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 07:47:19 -0800 (PST)
Received: from mail.cultcom.se (voodoo.cultcom.se [195.100.20.130]) 
          by mail.tripnet.se (8.8.5/2.0-jb) with SMTP id QAA00548 
          for <@mail.tripnet.se:dbi-users@fugue.com>;
          Tue, 11 Feb 1997 16:42:43 +0100 (MET)
Received: from voodoo by mail.cultcom.se via SMTP (940816.SGI.8.6.9/940406.SGI) 
          for <dbi-users@fugue.com> id QAA20253;
          Tue, 11 Feb 1997 16:56:05 -0800
Message-ID: <33011525.FF6@cultcom.se>
Date: Tue, 11 Feb 1997 16:56:05 -0800
From: Jonas Liljegren <jonas@cultcom.se>
Organization: CultCom
X-Mailer: Mozilla 3.01 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: DBI User List <dbi-users@fugue.com>
Subject: $DBI::rows in DBD::Oracle
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I only get a portion of the intended rows from a select.
If the rows are long I get less rows. 

I used DBI version 0.74 and read $DBI::rows to determinate
the number of rows. This number is less than it should be.

-- 
 / Jonas Liljegren
http://w3.adb.gu.se/~a95jonas/welcome.html
Geek Code 3.1 GIT/P/Od-s+:-a24C++US++P++LEW++N++
o?K?w!oM!VPSPE-Y--PGP-t+5X++R@tv+b+!DID++Geh!!r!y+


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14166-66@oink>;
          Tue, 11 Feb 1997 23:18:45 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855701577:9:02354:4; Tue, 11 Feb 97 22:52:57 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa902377; 11 Feb 97 22:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA14349 for dbi-users-real; Tue, 11 Feb 1997 13:34:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nadis.dis.unina.it ([192.55.101.131]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id NAA14345 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 13:33:42 -0800 (PST)
Received: by nadis.dis.unina.it (5.57/Ultrix3.0-C) id AA19555;
          Tue, 11 Feb 97 22:42:12 GMT
Message-Id: <1.5.4.32.19970211213443.00717438@nadis.dis.unina.it>
X-Sender: caparrot@nadis.dis.unina.it
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 11 Feb 1997 22:34:43 +0100
To: dbi-users@fugue.com
From: Giuseppe Caparrotti <caparrot@nadis.dis.unina.it>
Subject: a little help

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Sorry for the off-topic message...
but, I need a little help for my thesis in computer science engeneering.
I'm learning something about some programs for document management:
BasisPlus by Information Dimension
Aleph by Atlantis
Innopac.
And I would like to know your opinions about these three softwares.
1) According to you which is better and why
2) And which is'nt good and why.
3) What about their search engines?
4) What about full text management
5) Can they be interfaced with X OPEN DTP?

Please, I need these informations as soon as possible, or I would like to
know a mailing list where I could find this informations.
Sorry for the english.
Thanks......Giuseppe

E-mail:caparrot@nadis.dis.unina.it



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16214-5@oink>;
          Wed, 12 Feb 1997 01:58:10 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855710155:10:12260:4; Wed, 12 Feb 97 01:15:55 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1012169; 12 Feb 97 1:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA14695 for dbi-users-real; Tue, 11 Feb 1997 15:27:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id PAA14691 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 15:27:34 -0800 (PST)
Received: from skegness.cup.hp.com (skegness.cup.hp.com [15.28.72.252]) 
          by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id PAA28362 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 15:27:26 -0800 (PST)
Message-Id: <199702112327.PAA28362@palrel1.hp.com>
Received: by skegness.cup.hp.com (1.39.111.2/16.2) id AA056013681;
          Tue, 11 Feb 1997 15:28:01 -0800
From: Wendy Poulin <wendyp@skegness.cup.hp.com>
Subject: DBD::Oracle on HP-Ux 10.10
To: dbi-users@fugue.com
Date: Tue, 11 Feb 1997 15:28:01 PST
X-Mailer: Elm [revision: 112.6]

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I posted a message yesterday about core dump when running make test.

There doesn't seem to be a solution at the moment and I don't know
enough to get much farther than I am.  

My question is this:  What are my options?  I have Perl 5.003, DBI .76,
DBD::Oracle .44, HP-Ux 10.10 and Oracle 7.3.2.2

I would like to write perl scripts against the DB.  The only thing I can
think of now is to exec sqlplus and forget about the DBI altogether.

Any thoughts appreciated!
Wendy Poulin	wendyp@cup.hp.com
(408)447-2274



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16214-8@oink>;
          Wed, 12 Feb 1997 01:58:22 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855710218:9:28284:13; Wed, 12 Feb 97 01:16:58 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928392; 12 Feb 97 1:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id PAA14647 for dbi-users-real; Tue, 11 Feb 1997 15:13:56 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from proxy.telebusiness.co.nz ([203.97.136.12]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id PAA14643 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 15:13:53 -0800 (PST)
Received: by proxy.telebusiness.co.nz 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57) 
          id <01BC18DE.73A4AE70@proxy.telebusiness.co.nz>;
          Wed, 12 Feb 1997 12:15:36 +1300
Message-ID: <c=NZ%a=_%p=Telebusiness%l=PROXY-970211231528Z-802@proxy.telebusiness.co.nz>
From: Nick Langstone <nickl@telebusiness.co.nz>
To: 'dbi-users' <dbi-users@fugue.com>
Subject: sybase dbd availability
Date: Wed, 12 Feb 1997 12:15:28 +1300
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.57
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This message is for the developer of the sybase dbd developer. I have
tried emailing direct but it fails.
Sorry for the waist of band width.
PS we use DBD for DB2 and Oracle so I am a fan of DBD. Thanks.



Hi there,


My name is Nick Langstone and I work for a company in New Zealand called
Telebusiness NZ Ltd. We are involved in in a project to communicate to a
Sybase database from perl. I tried to download the DBD driver form 
http://www.hermetica.com/technologia/DBI/DBD/index.html#Sybase
but I was unable to ftp the file as the anonymous login was not allowed.

Several questions,
1. Are you intending to support this product ?
2. What is it's current state ?
3. Would you like some assistance from me with this ( as I want to use
it I am happy to help with the development )

Can you pleae e-mail me the code so that I can look it over.
nickl@telebusiness.co.nz

I have experience with DB2 DBD/DBI and Oracle DBD/DBI

Thanks

Nick




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <17533-15@oink>;
          Wed, 12 Feb 1997 07:37:33 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855722552:10:04826:7; Wed, 12 Feb 97 04:42:32 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925107; 12 Feb 97 4:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA15684 for dbi-users-real; Tue, 11 Feb 1997 19:46:55 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from miles.bienlogic.com. ([38.214.78.65]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id TAA15680 
          for <dbi-users@fugue.com>; Tue, 11 Feb 1997 19:46:52 -0800 (PST)
Received: from brubeck.bienlogic.com by miles.bienlogic.com. (SMI-8.6/SMI-SVR4) 
          id TAA06395; Tue, 11 Feb 1997 19:41:27 -0800
Message-Id: <3.0.32.19970211195920.00b2e444@38.214.78.65>
X-Sender: lane@38.214.78.65
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Tue, 11 Feb 1997 19:59:24 -0800
To: Wendy Poulin <wendyp@skegness.cup.hp.com>, dbi-users@fugue.com
From: Lane Sharman <lane@bienlogic.com>
Subject: Re: DBD::Oracle on HP-Ux 10.10
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Wendy,

Don't despair. Consider an earlier version of DBI or DBD. Once you have
them working, DBI/DBD is essential IN ADDITION TO sqlplus.

-Lane

At 03:28 PM 2/11/97 PST, Wendy Poulin wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I posted a message yesterday about core dump when running make test.
>
>There doesn't seem to be a solution at the moment and I don't know
>enough to get much farther than I am.  
>
>My question is this:  What are my options?  I have Perl 5.003, DBI .76,
>DBD::Oracle .44, HP-Ux 10.10 and Oracle 7.3.2.2
>
>I would like to write perl scripts against the DB.  The only thing I can
>think of now is to exec sqlplus and forget about the DBI altogether.
>
>Any thoughts appreciated!
>Wendy Poulin	wendyp@cup.hp.com
>(408)447-2274
>
>
>
>---------------------------------------------------------------------------
---
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by
hand.
>---------------------------------------------------------------------------
---
>
>



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25706-54@oink>;
          Thu, 13 Feb 1997 07:43:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855788375:9:04035:3; Wed, 12 Feb 97 22:59:35 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1008345; 12 Feb 97 22:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id NAA18604 for dbi-users-real; Wed, 12 Feb 1997 13:38:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pww.pencom.com (nygw.pww.pencom.com [204.217.198.176]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id NAA18600 
          for <dbi-users@fugue.com>; Wed, 12 Feb 1997 13:38:01 -0800 (PST)
Received: (from phj@localhost) by pww.pencom.com (8.7.4/YaThink?) id MAA08208;
          Wed, 12 Feb 1997 12:24:27 -0500
Date: Wed, 12 Feb 1997 12:24:27 -0500 (EST)
From: Patricia Ju <phj@pencom.com>
To: Wendy Poulin <wendyp@skegness.cup.hp.com>
cc: dbi-users@fugue.com
Subject: Re: DBD::Oracle on HP-Ux 10.10
In-Reply-To: <199702112327.PAA28362@palrel1.hp.com>
Message-ID: <Pine.LNX.3.91.970212122152.7847F-100000@nygw.pww.pencom.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I seem to have accidentally misplaced the mail in which you described the 
coredump.  However, I have one blind suggestion -- make sure that you 
uncomment "#define signed" in the header file (I believe it was called 
oratypes.h in the DBD::Oracle source ?)

It's mentioned in the bug fixes/workarounds as a fix for a different 
operating system, but I had to do this for HP-UX in order to get the 
included tests and my own tests to stop core dumping.

(I would especially recommend this if you are seeing warnings or errors 
when compiling DBD::Oracle in the first place... messages regarding 
"signed types" or some such.)



Patricia


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <00561-0@oink>;
          Thu, 13 Feb 1997 14:31:53 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855839675:10:05283:68; Thu, 13 Feb 97 13:14:35 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1005365; 13 Feb 97 13:14 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA21221 for dbi-users-real; Thu, 13 Feb 1997 04:00:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from Norway.EU.net (nic.eunet.no [193.71.1.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA21217 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 04:00:31 -0800 (PST)
Received: by Norway.EU.net with UUCP id AA02912 (5.65c/IDA-1.4.4/EUnet/NO 
          for dbi-users@fugue.com); Thu, 13 Feb 1997 13:00:08 +0100
Received: from tglobe1.tollpost.no (tglobe1.tollpost.no [192.108.100.15]) 
          by tgnews.tollpost.no (8.6.11/8.6.11) with SMTP id NAA31213;
          Thu, 13 Feb 1997 13:06:00 +0100
Message-Id: <199702131206.NAA31213@tgnews.tollpost.no>
Received: by tglobe1.tollpost.no (1.38.193.5/16.2) id AA15676;
          Thu, 13 Feb 1997 12:54:08 +0100
From: Oyvind Gjerstad <ogj@tglobe1.tollpost.no>
Subject: empty strings vs. NULL values in DBD::Informix
To: dbi-users@fugue.com
Date: Thu, 13 Feb 97 12:54:08 MET
Cc: johnl@informix.com
Reply-To: ogj@pro.tollpost.no
Organization: Tollpost-Globe AS, Systems dept.
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Mailer: Elm [revision: 70.85.2.1]
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by toccata.fugue.com id 
                      EAA21221

    *** From dbi-users -- To unsubscribe, see the end of this message. **=
*

I have a question regarding the handling of NULL values vs. the
handling of "" strings in DBD-Informix (Online 7.14 on HP-UX 10.20).

Let's say I have these two tables:
create table ogjtmp1(a char(10) not null, b int not null);
create table ogjtmp2(a char(10) not null, b int not null);

with this data:
insert into ogjtmp values("",1);

I then use this little perl script to transfer data from ogjtmp1 to ogjtm=
p2:

#!/usr/local/bin/perl
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
   if 0;
use integer;
use DBI;
use strict;

use vars qw($dbh $cursor1 $insert1 $row_ref);


($dbh =3D DBI->connect('tgbase1','','','Informix'))=20
    || die "connect tgbase1: $DBI::errstr";

($cursor1 =3D $dbh->prepare("select a,b from ogjtmp1"))=20
	|| die "prepare select: $DBI::errstr";
($cursor1->execute) || die "$DBI::errstr";

($insert1 =3D $dbh->prepare("insert into ogjtmp2 values(?,?)"))=20
	|| die "prepare insert: $DBI::errstr";

while ($row_ref =3D $cursor1->fetch) {
   $insert1->execute(@{$row_ref});
}

This script then bombs out with
SQL: -391: Cannot insert a null into column (ogjtmp2.a)

It seems to me like an empty string in a field is mixed with NULL.
Is this so, or is this a programming error in the perl script?

This is on HP-UX 10.20 with Informix Online 7.14,=20
DBI 0.73 and DBD-Informix 0.25 compiled on the same platform.
--
=D8yvind Gjerstad    Systems dept Tollpost-Globe AS    N-6301 =C5ndalsnes=
/Norway=20
E-mail: ogj@it.tollpost.no     Phone: +47 7122 6663       Fax: +47 7122 6=
694


-------------------------------------------------------------------------=
-----
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web =
page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by=
 hand.
-------------------------------------------------------------------------=
-----
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <01177-14@oink>;
          Thu, 13 Feb 1997 16:36:30 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855850637:9:14728:0; Thu, 13 Feb 97 16:17:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa914445; 13 Feb 97 16:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA21541 for dbi-users-real; Thu, 13 Feb 1997 07:19:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA21537 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 07:19:31 -0800 (PST)
Received: by gateway.fcmc.com; id KAA09187;
          Thu, 13 Feb 1997 10:19:29 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma009183; Thu, 13 Feb 97 10:19:24 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA05378;
          Thu, 13 Feb 97 10:19:24 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA17713; Thu, 13 Feb 97 10:19:17 EST
Date: Thu, 13 Feb 97 10:19:17 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9702131519.AA17713@anderson.fcmc.com>
To: dbi-users@fugue.com
Subject: DBI/DBD/Informix Issue
Cc: johnl@informix.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

The problem I encountered is related to Informix DBMS (7.2) usage
with DBI and DBD (0.25). For refference, platform  

The last version 0.25 of DBD-Informix version uses CONNECT statement
for opening database connection (versus START DATABASE statement
in previous version).
This opens explicit connection with any database with prevents 
from issuing statements:

DATABASE
CREATE DATABASE
START DATABASE 
DROP DATABASE

Informix's approach for this situation is to use
PREPARE statement with any of there statements as
first SQL statement in the program.
But DBI doesn't have PREPARE among its methods.

Thus, there is NO way to create or drop database w/ Informix-DBD 0.25.

Please recommend how to get around with this.

Thanx in advance.


Serge Davidov
Fuji Capital Markets Corporation (New York)
(212)898-2936


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04043-22@oink>;
          Thu, 13 Feb 1997 22:25:21 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855863593:9:21660:4; Thu, 13 Feb 97 19:53:13 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa921292; 13 Feb 97 19:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA22017 for dbi-users-real; Thu, 13 Feb 1997 10:21:49 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA22013 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 10:21:46 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA05353;
          Thu, 13 Feb 1997 10:21:11 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA10543;
          Thu, 13 Feb 1997 10:21:10 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA09645;
          Thu, 13 Feb 1997 10:21:09 -0800
Date: Thu, 13 Feb 1997 10:21:09 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702131821.KAA09645@anubis.informix.com>
To: dbi-users@fugue.com
Cc: johnl@informix.com, serge@fcmc.com
Subject: Re: DBI/DBD/Informix Issue

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Serge -- I think your mailer at FCMC.COM was too zealous mapping email addresses.
I replied and your system didn't recognize dbi-users@fugue.fcmc.com, etc.

>Date: Thu, 13 Feb 97 10:19:17 EST
>From: serge@fcmc.COM (Serge Davidov (DBA))
>
>The problem I encountered is related to Informix DBMS (7.2) usage
>with DBI and DBD (0.25).
>
>The last version 0.25 of DBD-Informix version uses CONNECT statement
>for opening database connection (versus START DATABASE statement
>in previous version).
>This opens explicit connection with any database with prevents
>from issuing statements:
>
>DATABASE
>CREATE DATABASE
>START DATABASE
>DROP DATABASE

I live; I learn.

I was not aware of this constraint.  The error message is:

SQL: -759: Cannot use database commands in an explicit database connection.

>Informix's approach for this situation is to use
>PREPARE statement with any of there statements as
>first SQL statement in the program.
>But DBI doesn't have PREPARE among its methods.
>
>Thus, there is NO way to create or drop database w/ Informix-DBD 0.25.


>From: serge@fcmc.COM (Serge Davidov (DBA))
>Date: Thu, 13 Feb 1997 10:33:10 -0500 (EST)
>
>I'm answering my own question as I found an answer right after
>sending mail to DBI news-group.
>
>That's how it's done:
>
>$dbh = DBI->connect("\@dbserver",'','',Informix);
>
>$dbh->do("create database dbname");

This certainly works; I'd use single quotes around the first argument
which would allow me to omit the backslash, but that's trivia.

I will step up the final clean-up work and release DBD::Informix v0.50
rather sooner than I was going to as it has a number of improvements
in it.  And as a result of these messages from Serge, I've modified the
code so that it allows a single default connection when you specify an
empty string as the first argument to DBI->connect(), and then you can
do database manipulation:

	use DBI;
	$dbh = DBI->connect('','','','Informix');
	$dbh->do('drop database widget_03');
	$dbh->do('create database widget_03 with buffered log');

The changes in esqlc_v6.ec are not outrageously complex, but they are not readily
patchable because dbd_ix_setconnection() has had its argument type changed, and
that throws everything into confusion.  So, I attach a manually created patch file
which should change the esqlc_v6.ec file from DBD::Informix v0.25 correctly; 
it worked for me when I tried it:

cd /where/you/have/DBD-Informix-0.25
patch < /tmp/this.saved.email.message

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

*** /tmp/da002Ie	Wed Dec 31 16:00:00 1969
--- esqlc_v6.ec	Thu Feb 13 09:46:32 1997
***************
*** 1,11 ****
  /*
!  * @(#)esqlc_v6.ec	25.4 96/12/02 10:19:05
   *
   * DBD::Informix for Perl Version 5 -- implementation details
   *
!  * Code acceptable to ESQL/C Version 5.0x
   *
!  * Copyright (c) 1996 Jonathan Leffler
   *
   * You may distribute under the terms of either the GNU General Public
   * License or the Artistic License, as specified in the Perl README file.
--- 1,12 ----
  /*
!  * @(#)esqlc_v6.ec	50.2 97/02/13 09:27:56 -- Hacked
!  * @(#)Revised by J Leffler (johnl@informix.com) for DBD::Informix v0.25
   *
   * DBD::Informix for Perl Version 5 -- implementation details
   *
!  * Code acceptable to ESQL/C Version 6.0x and later
   *
!  * Copyright (c) 1996,1997 Jonathan Leffler
   *
   * You may distribute under the terms of either the GNU General Public
   * License or the Artistic License, as specified in the Perl README file.
***************
*** 14,20 ****
  /*TABSTOP=4*/
  
  #ifndef lint
! static const char sccs[] = "@(#)esqlc_v6.ec	25.4 96/12/02";
  #endif
  
  #include "Informix.h"
--- 15,21 ----
  /*TABSTOP=4*/
  
  #ifndef lint
! static const char sccs[] = "@(#)esqlc_v6.ec	50.2 97/02/13 -- Hacked";
  #endif
  
  #include "Informix.h"
***************
*** 50,57 ****
  
  	if (dbase == (char *)0)
  	{
! 		dbd_ix_debug(0, "*** BREAKAGE *** Default connection (%s)\n",
! 						connection);
  		EXEC SQL CONNECT TO DEFAULT
  			WITH CONCURRENT TRANSACTION;
  	}
--- 51,61 ----
  
  	if (dbase == (char *)0)
  	{
! 		/* Not frequently used, but valid */
! 		/* Reset connection name to empty string, and connect to default */
! 		/* Typically used to create database on default server */
! 		*connection = '\0';
! 		dbd_ix_debug(1, "CONNECT TO DEFAULT%s\n", connection);
  		EXEC SQL CONNECT TO DEFAULT
  			WITH CONCURRENT TRANSACTION;
  	}
***************
*** 61,67 ****
  		dbname = dbase;
  		dbpass = pass;
  		dbuser = user;
! 		dbd_ix_debug(2, "CONNECT with user info (%s)\n", connection);
  		EXEC SQL CONNECT TO :dbname AS :dbconn
  			USER :dbuser USING :dbpass
  			WITH CONCURRENT TRANSACTION;
--- 65,71 ----
  		dbname = dbase;
  		dbpass = pass;
  		dbuser = user;
! 		dbd_ix_debug(1, "CONNECT with user info (%s)\n", connection);
  		EXEC SQL CONNECT TO :dbname AS :dbconn
  			USER :dbuser USING :dbpass
  			WITH CONCURRENT TRANSACTION;
***************
*** 70,76 ****
  	{
  		dbconn = connection;
  		dbname = dbase;
! 		dbd_ix_debug(2, "CONNECT - no user info (%s)\n", connection);
  		EXEC SQL CONNECT TO :dbname AS :dbconn
  			WITH CONCURRENT TRANSACTION;
  	}
--- 74,80 ----
  	{
  		dbconn = connection;
  		dbname = dbase;
! 		dbd_ix_debug(1, "CONNECT - no user info (%s)\n", connection);
  		EXEC SQL CONNECT TO :dbname AS :dbconn
  			WITH CONCURRENT TRANSACTION;
  	}
***************
*** 83,90 ****
  	char           *dbconn = connection;
  	EXEC SQL END DECLARE SECTION;
  
! 	dbd_ix_debug(2, "DISCONNECT (%s)\n", connection);
! 	EXEC SQL DISCONNECT :dbconn;
  }
  
  /* Ensure that the correct connection is current -- a no-op in version 5.0x */
--- 87,102 ----
  	char           *dbconn = connection;
  	EXEC SQL END DECLARE SECTION;
  
! 	if (*connection != '\0')
! 	{
! 		dbd_ix_debug(1, "DISCONNECT (%s)\n", connection);
! 		EXEC SQL DISCONNECT :dbconn;
! 	}
! 	else
! 	{
! 		dbd_ix_debug(1, "DISCONNECT DEFAULT%s\n", connection);
! 		EXEC SQL DISCONNECT DEFAULT;
! 	}
  }
  
  /* Ensure that the correct connection is current -- a no-op in version 5.0x */
***************
*** 99,104 ****
--- 111,117 ----
  
  	if (imp_drh->current_connection != nm_connection)
  	{
+ 		dbd_ix_debug(1, "SET CONNECTION %s\n", nm_connection);
  		EXEC SQL SET CONNECTION :nm_connection;
  		imp_drh->current_connection = nm_connection;
  		dbd_ix_sqlcode(imp_dbh);





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04043-38@oink>;
          Thu, 13 Feb 1997 22:26:37 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855865560:9:05781:2; Thu, 13 Feb 97 20:26:00 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1002423; 13 Feb 97 20:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA22167 for dbi-users-real; Thu, 13 Feb 1997 11:04:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA22163 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 11:04:55 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id LAA07534;
          Thu, 13 Feb 1997 11:04:23 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA12191;
          Thu, 13 Feb 1997 11:04:22 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id LAA10224;
          Thu, 13 Feb 1997 11:04:21 -0800
Date: Thu, 13 Feb 1997 11:04:21 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702131904.LAA10224@anubis.informix.com>
To: dbi-users@fugue.com, ogj@pro.tollpost.no
Cc: johnl@informix.com
Subject: Re: empty strings vs. NULL values in DBD::Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: Oyvind Gjerstad <ogj@tglobe1.tollpost.no>
>Date: Thu, 13 Feb 97 12:54:08 MET
>
>I have a question regarding the handling of NULL values vs. the
>handling of "" strings in DBD-Informix (Online 7.14 on HP-UX 10.20).
>
>Let's say I have these two tables:
>create table ogjtmp1(a char(10) not null, b int not null);
>create table ogjtmp2(a char(10) not null, b int not null);
>
>with this data:
>insert into ogjtmp values("",1);
>
>I then use this little perl script to transfer data from ogjtmp1 to ogjtmp2:
>
>#!/usr/local/bin/perl
>eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
>   if 0;
>use integer;
>use DBI;
>use strict;
>
>use vars qw($dbh $cursor1 $insert1 $row_ref);
>
>($dbh = DBI->connect('tgbase1','','','Informix'))
>    || die "connect tgbase1: $DBI::errstr";
>
>($cursor1 = $dbh->prepare("select a,b from ogjtmp1"))
>	|| die "prepare select: $DBI::errstr";
>($cursor1->execute) || die "$DBI::errstr";
>
>($insert1 = $dbh->prepare("insert into ogjtmp2 values(?,?)"))
>	|| die "prepare insert: $DBI::errstr";
>
>while ($row_ref = $cursor1->fetch) {
>   $insert1->execute(@{$row_ref});
>}
>
>This script then bombs out with
>SQL: -391: Cannot insert a null into column (ogjtmp2.a)
>
>It seems to me like an empty string in a field is mixed with NULL.
>Is this so, or is this a programming error in the perl script?

This is horribly tricky.  I think that the problem is a mismatch between
the semi-strictly typed SQL language, and the almost completely untyped
Perl language, but you may be able to argue otherwise.

The problem is how to represent CHAR(10) strings in Perl?  Inside the
database, if you insert "" into a CHAR(10) field, the database stores 10
blanks, and when you fetch that data, ESQL/C returns 10 blanks.  I felt
that the trailing blanks are not significant and arrange to strip them --
this is most frequently the desired behaviour.  And I don't make the
all-blank field into a special case, so those 10 blanks are returned as the
Perl string "".  However, there is a problem with what to return to Perl
when a NULL string is returned from the database.

Perl and DBI does not make provision for SQL-style nulls.  So, I chose to
return NULL as the Perl string "" too.  It is not possible, therefore, to
distinguish between an all-blank string and a null string.  But all the
alternatives also cause problems.  Leaving the trailing blanks on will
cause confusion if a file name is stored in the database, extracted and not
clipped of trailing blanks, for example.

I think the existing solution is reasonable, but I'm open to suggestions on
how it could be improved.  One distinct possibility is to ensure that all
blank but non-null strings are returned to Perl as " " rather than "".
That'll be OK for ordinary CHAR variables.  For VARCHARs, the zero-length
string is not the same as the NULL string, and there isn't, therefore, a
good fix at all.  The data supplied by Perl will probably have to treat the
Perl string "" as equivalent to NULL -- I don't see any alternatives for
that.

Any feedback will be appreciated.

I won't hold up the release of DBD::Informix v0.50 for this.

>This is on HP-UX 10.20 with Informix Online 7.14,
>DBI 0.73 and DBD-Informix 0.25 compiled on the same platform.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <04043-57@oink>;
          Thu, 13 Feb 1997 22:28:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855871238:9:18221:3; Thu, 13 Feb 97 22:00:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011830; 13 Feb 97 22:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA22556 for dbi-users-real; Thu, 13 Feb 1997 12:46:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from world (sdt.com [199.100.49.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id MAA22552 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 12:46:28 -0800 (PST)
Received: by world (5.0) id AA24545; Thu, 13 Feb 1997 14:45:45 +0600
Received: from aadt.sdt.com(144.9.149.25) by world via smap (V1.3) id sma024394;
          Thu Feb 13 14:45:14 1997
Received: from topgun (topgun.sdt.com) by aadt.sdt.com (4.1/SUN-2.0hub) 
          id AA05553; Thu, 13 Feb 97 14:45:32 CST
Received: by topgun (5.61) id AA26210; Thu, 13 Feb 97 14:38:56 -0600
Message-Id: <9702132038.AA26210@topgun>
Subject: Help On DBI for NT
To: dbi-users@fugue.com
Date: Thu, 13 Feb 97 14:38:55 CST
From: samal <samal@sdt.com>
X-Mailer: Elm [version 2.1 PL0]

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

   Is there a DBI version available for Windows NT?  If there is one, 
   where can I get it.  I have done enough search.  
   Any help will be appreciated.

   Thanks,

   Mukti Samal


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05094-0@oink>;
          Fri, 14 Feb 1997 00:15:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855879213:10:04327:6; Fri, 14 Feb 97 00:13:33 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1003352; 14 Feb 97 0:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA23053 for dbi-users-real; Thu, 13 Feb 1997 14:54:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from SunShine.mcs-hh.de (SunShine.mcs-hh.de [194.77.146.6]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id OAA23049 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 14:54:31 -0800 (PST)
Received: from [194.64.37.8] (ne-20008.elmshorn.netsurf.de [194.64.37.8]) 
          by SunShine.mcs-hh.de (8.6.12/8.6.12) with SMTP id XAA04523;
          Thu, 13 Feb 1997 23:58:13 +0100
X-Sender: geoff@sunshine.mcs-hh.de
Message-Id: <v02120d05af294afb9475@[194.64.37.8]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Thu, 13 Feb 1997 23:53:19 +0100
To: dbi-users@fugue.com
From: gs@cityline.net (Geoff Simmons)
Subject: Re: empty strings vs. NULL values in DBD::Informix
Cc: johnl@informix.com, ogj@pro.tollpost.no

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

johnl@informix.com (Jonathan Leffler) writes:

>Perl and DBI does not make provision for SQL-style nulls.  So, I chose to
>return NULL as the Perl string "" too.  It is not possible, therefore, to
>distinguish between an all-blank string and a null string.  But all the
>alternatives also cause problems.  Leaving the trailing blanks on will
>cause confusion if a file name is stored in the database, extracted and not
>clipped of trailing blanks, for example.
>
>I think the existing solution is reasonable, but I'm open to suggestions on
>how it could be improved.

I'm very new to DBI and have nothing to do with Informix, so pardon me if
my suggestion is completely foolish. But just reading what you're describing
here, it occurs to me that you could return undef as a null value. It's a
Perlish kinda thing to do.


Best,
Geoff

---
Geoffrey Simmons                {gs,geoff,gsimmons}@cityline.net
MCS/Cityline                    Vox: (++49 | 40) 537 73 - 180
Essener Str. 99                 Fax: (++49 | 40) 537 73 - 200
D-22419 Hamburg, Germany        <http://www.cityline.net>




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07362-27@oink>;
          Fri, 14 Feb 1997 07:40:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855885169:10:08324:1; Fri, 14 Feb 97 01:52:49 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa919070; 14 Feb 97 1:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id QAA23520 for dbi-users-real; Thu, 13 Feb 1997 16:41:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from astra.co.id ([203.127.122.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id QAA23514 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 16:40:46 -0800 (PST)
Received: from gateway.ai.astra.co.id ([10.1.10.27]) by inter.astra.co.id 
          with SMTP id <40329>; Fri, 14 Feb 1997 14:43:13 +0700
Received: from [10.1.17.72] by gateway.ai.astra.co.id;
          (5.65v3.2/1.1.8.2/10Oct96-0817AM) id AA10336;
          Fri, 14 Feb 1997 07:38:34 +0700
Message-Id: <9702140038.AA10336@gateway.ai.astra.co.id>
From: Achmad Dimyati <dimyati@ai.astra.co.id>
To: dbi-users <dbi-users@fugue.com>
Subject: Re: empty strings vs. NULL values in DBD::Informix
Date: Fri, 14 Feb 1997 07:41:37 +0700
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have a question regarding the handling of NULL values vs. the
handling of "" strings in DBD-Informix (Online 7.14 on HP-UX 10.20).

Let's say I have these two tables:
create table ogjtmp1(a char(10) not null, b int not null);
create table ogjtmp2(a char(10) not null, b int not null);

with this data:
insert into ogjtmp values("",1);

I don't sure about this command because "" is like NULL

I then use this little perl script to transfer data from ogjtmp1 to
ogjtmp2:

#!/usr/local/bin/perl
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
   if 0;
use integer;
use DBI;
use strict;

use vars qw($dbh $cursor1 $insert1 $row_ref);


($dbh = DBI->connect('tgbase1','','','Informix')) 
    || die "connect tgbase1: $DBI::errstr";

($cursor1 = $dbh->prepare("select a,b from ogjtmp1")) 
	|| die "prepare select: $DBI::errstr";
($cursor1->execute) || die "$DBI::errstr";

($insert1 = $dbh->prepare("insert into ogjtmp2 values(?,?)")) 
	|| die "prepare insert: $DBI::errstr";

while ($row_ref = $cursor1->fetch) {
   $insert1->execute(@{$row_ref});
}

This script then bombs out with
SQL: -391: Cannot insert a null into column (ogjtmp2.a)

It seems to me like an empty string in a field is mixed with NULL.
Is this so, or is this a programming error in the perl script?

I think because '"" is implement as NULL, you right.



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <07362-55@oink>;
          Fri, 14 Feb 1997 07:45:26 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855894654:9:05592:1; Fri, 14 Feb 97 04:30:54 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa905581; 14 Feb 97 4:30 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id TAA24091 for dbi-users-real; Thu, 13 Feb 1997 19:31:07 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from hq.caci.com (user@cissco.hq.caci.com [204.177.212.111]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id TAA24087 
          for <dbi-users@fugue.com>; Thu, 13 Feb 1997 19:31:05 -0800 (PST)
Received: by hq.caci.com; id WAA09209; Thu, 13 Feb 1997 22:32:18 -0500 (EST)
Received: from unknown(198.135.9.108) by cissco.hq.caci.com via smap (V3.1.1) 
          id xma009206; Thu, 13 Feb 97 22:32:08 -0500
Received: by cacimta.hq.caci.com(Lotus SMTP MTA v1.05 (274.9 11-27-1996)) 
          id 8525643E.001399AF ; Thu, 13 Feb 1997 22:34:05 -0400
X-Lotus-FromDomain: CACI
From: "Jeffrey L. Urlwin" <jurlwin@hq.caci.com>
To: samal@sdt.com
cc: dbi-users@fugue.com
Message-ID: <8525643E.0012D01B.00@cacimta.hq.caci.com>
Date: Thu, 13 Feb 1997 22:28:06 -0400
Subject: Re: Help On DBI for NT
Mime-Version: 1.0
Content-type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Jeffrey L. Urlwin
02/13/97 10:28 PM


There is none, per se.  There is an ODBC interface for NT perl (http:
//www.roth.net/ODBC/ODBCFAQ.HTM).

This work has been steadily advancing and supports more with each release.
Since you didn't indicate which database you need, this is probably the
best.  DBI is not the complete solution, (just as the ODBC driver manager
and specification are not a complete solution).  You need the DBD for your
database in order to make DBI work...



Hi,

   Is there a DBI version available for Windows NT?  If there is one,
   where can I get it.  I have done enough search.
   Any help will be appreciated.

   Thanks,

   Mukti Samal


---------------------------------------------------------------------------
---
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web
page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by
hand.
---------------------------------------------------------------------------
---






------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13548-9@oink>;
          Fri, 14 Feb 1997 16:36:56 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855933206:10:13869:14; Fri, 14 Feb 97 15:13:26 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa901951; 14 Feb 97 15:13 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA01216 for dbi-users-real; Fri, 14 Feb 1997 06:02:42 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA01212 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 06:02:39 -0800 (PST)
Received: by gateway.fcmc.com; id JAA07420;
          Fri, 14 Feb 1997 09:02:36 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma007418; Fri, 14 Feb 97 09:02:17 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA15963;
          Fri, 14 Feb 97 09:02:17 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AB05417; Fri, 14 Feb 97 09:02:08 EST
Date: Fri, 14 Feb 97 09:02:08 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9702141402.AB05417@anderson.fcmc.com>
To: samal@sdt.com
Subject: Re: Help On DBI for NT
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

You are missing some generic point: this soft is portable and is distributed 
in source code. Particulary DBI is implemented in Perl.
So, ones you have Perl installed, you can download DBI  and install it.
Then you will need DBD (database driver) for connection between DBI and database. 
DBDs are available for different RDBMS, also distributed in source code. 
One thing, to compile them you need the Development Installation 
of API of the corresponding database. C compiler is obviously needed too.

Serge.
 


> From owner-dbi-users@fugue.com Thu Feb 13 20:54:40 1997
> Sender: owner-dbi-users@fugue.com
> Subject: Help On DBI for NT
> To: dbi-users@fugue.com
> Date: Thu, 13 Feb 97 14:38:55 CST
> From: samal <samal@sdt.com>
> X-Mailer: Elm [version 2.1 PL0]
> Content-Length: 726
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hi,
> 
>    Is there a DBI version available for Windows NT?  If there is one, 
>    where can I get it.  I have done enough search.  
>    Any help will be appreciated.
> 
>    Thanks,
> 
>    Mukti Samal
> 
> 
> ------------------------------------------------------------------------------
> To unsubscribe from this list, please visit http://www.fugue.com/dbi.
> If you are without web access, or if you are having trouble with the web page,
> please send mail to dbi-request@fugue.com.   Please try to use the web
> page first - it will take a long time for your request to be processed by hand.
> ------------------------------------------------------------------------------
> 



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13691-1@oink>;
          Fri, 14 Feb 1997 16:41:09 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855937932:10:19192:6; Fri, 14 Feb 97 16:32:12 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019085; 14 Feb 97 16:31 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA02183 for dbi-users-real; Fri, 14 Feb 1997 07:28:04 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.aromat.com (gateway.aromat.com [158.118.51.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA02179 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 07:28:02 -0800 (PST)
Received: from cliff.aromat.com ([158.118.16.12]) by gateway.aromat.com 
          via smtpd (for toccata.fugue.com [192.5.5.210]) with SMTP;
          14 Feb 1997 15:27:39 UT
Received: from wangj.aromat.com ([158.118.16.215]) 
          by cliff.aromat.com (Netscape Mail Server v2.0) with SMTP 
          id AAA16658; Fri, 14 Feb 1997 10:26:54 -0400
X-Sender: wangj@158.118.16.12
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Achmad Dimyati <dimyati@ai.astra.co.id>
From: John Wang <wangj@aromat.com>
Subject: Re: empty strings vs. NULL values in DBD::Informix
Cc: dbi-users@fugue.com
Date: Fri, 14 Feb 1997 10:26:54 -0400
Message-ID: <19970214152654.AAA16658@wangj.aromat.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

At 07:41 AM 2/14/97 +0700, you wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>I have a question regarding the handling of NULL values vs. the
>handling of "" strings in DBD-Informix (Online 7.14 on HP-UX 10.20).
>
>Let's say I have these two tables:
>create table ogjtmp1(a char(10) not null, b int not null);
>create table ogjtmp2(a char(10) not null, b int not null);
>
>with this data:
>insert into ogjtmp values("",1);
>
>I don't sure about this command because "" is like NULL

In Informix world, "" is not NULL, "insert into ogjtmp values("",1)" will
successfully insert the row into tmp table. 

>
>I then use this little perl script to transfer data from ogjtmp1 to
>ogjtmp2:
>
>#!/usr/local/bin/perl
>eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
>   if 0;
>use integer;
>use DBI;
>use strict;
>
>use vars qw($dbh $cursor1 $insert1 $row_ref);
>
>
>($dbh = DBI->connect('tgbase1','','','Informix')) 
>    || die "connect tgbase1: $DBI::errstr";
>
>($cursor1 = $dbh->prepare("select a,b from ogjtmp1")) 
>	|| die "prepare select: $DBI::errstr";
>($cursor1->execute) || die "$DBI::errstr";
>
>($insert1 = $dbh->prepare("insert into ogjtmp2 values(?,?)")) 
>	|| die "prepare insert: $DBI::errstr";
>
>while ($row_ref = $cursor1->fetch) {
>   $insert1->execute(@{$row_ref});
>}
>
>This script then bombs out with
>SQL: -391: Cannot insert a null into column (ogjtmp2.a)
>
>It seems to me like an empty string in a field is mixed with NULL.
>Is this so, or is this a programming error in the perl script?
>
>I think because '"" is implement as NULL, you right.

I think that's because of the way perl handles "", I'm sure it would work if
you replace ? with "", like 
($insert1 = $dbh->prepare("insert into ogjtmp2 values(\"\",\"\")").


John Wang
System Admin. / Informix DBA
Aromat Corp.
New Providence, NJ



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <13691-3@oink>;
          Fri, 14 Feb 1997 16:41:18 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855937935:9:09416:26; Fri, 14 Feb 97 16:32:15 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa909595; 14 Feb 97 16:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA02057 for dbi-users-real; Fri, 14 Feb 1997 07:18:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.fcmc.com (firewall-user@gateway.fcmc.com [207.17.186.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id HAA02053 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 07:18:11 -0800 (PST)
Received: by gateway.fcmc.com; id KAA10294;
          Fri, 14 Feb 1997 10:18:07 -0500 (EST)
Received: from unknown(192.129.90.50) by gateway.fcmc.com via smap (V3.1.1) 
          id xma010290; Fri, 14 Feb 97 10:17:55 -0500
Received: from anderson.fcmc.com by moonraker.fcmc.COM (4.1/SMI-4.1) id AA16583;
          Fri, 14 Feb 97 10:17:55 EST
Received: from moodyblues.fcmc.com by anderson.fcmc.com (4.1/SMI-4.1) 
          id AA07337; Fri, 14 Feb 97 10:17:44 EST
Date: Fri, 14 Feb 97 10:17:44 EST
From: serge@fcmc.com (Serge Davidov \(DBA\))
Message-Id: <9702141517.AA07337@anderson.fcmc.com>
To: Tim.Bunce@ig.co.uk
Subject: Re: DBI/DBD/Informix Issue
Cc: dbi-users@fugue.com

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> 
> I'm confused about Serge's comment:
> > > But DBI doesn't have PREPARE among its methods.
> 
> but that might be due to my lack of Informix knowledge.
> 
> Tim.
>

First, the PREPARE mechanism exists in other DBMS too.

Second, that's OK that the very DBI doesn't have this method,
because PREPARE is a property of the [database] connection
(or, to be exect, the database_server connection). In other
words: $dbh->prepare, but not DBI->prepare.

So, the point is that DBI (and subsequently DBDs) should provide
ability to connect to database server w/o speciftying database name.

Serge.




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <14985-2@oink>;
          Fri, 14 Feb 1997 17:40:58 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855941807:10:18558:22; Fri, 14 Feb 97 17:36:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa910557; 14 Feb 97 17:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id IAA02811 for dbi-users-real; Fri, 14 Feb 1997 08:21:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cgi.com (cggate.cgi.com [128.129.3.207]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id IAA02806 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 08:21:33 -0800 (PST)
Received: from localhost.ARPA by cgisx (4.1/3.1.090690-CGI) id AA22900;
          Fri, 14 Feb 97 09:24:07 MST
Message-Id: <330491A6.2C67412E@cgi.com>
Date: Fri, 14 Feb 1997 09:24:06 -0700
From: Leslie de Villiers <ldevilli@cgi.com>
X-Mailer: Mozilla 2.02 (X11; I; SunOS 4.1.3 sun4m)
Mime-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD-Oracle-0.44 with Oracle 7.3.2 on HPUX 10.01
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Has anyone out there successfully installed DBD-Oracle with Oracle
7.3.2?  I can install with Oracle 7.1.3 using static linking, but core
dump during "make test" while logging on to the 7.3.2 instance.  Any
help would be appreciated.

Leslie


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15783-0@oink>;
          Fri, 14 Feb 1997 19:05:14 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855946956:10:25326:40; Fri, 14 Feb 97 19:02:36 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa919186; 14 Feb 97 19:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03851 for dbi-users-real; Fri, 14 Feb 1997 09:52:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03846;
          Fri, 14 Feb 1997 09:52:21 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA29625;
          Fri, 14 Feb 1997 09:51:50 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA05371;
          Fri, 14 Feb 1997 09:51:49 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA09100;
          Fri, 14 Feb 1997 09:51:49 -0800
Date: Fri, 14 Feb 1997 09:51:49 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702141751.JAA09100@anubis.informix.com>
To: dbi-announce@fugue.com, dbi-dev@fugue.com, dbi-users@fugue.com
Subject: DBD::Informix Version 0.50 Released

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Warts and all, the code for DBD::Informix Version 0.50 was released to CPAN
last night (California time), and it is available from at least one (presumably
all) CPAN site whenever you care to collect it.

The primary new feature is the support of multiple connections if you are
using ESQL/C 6.00 or later.  There is also reasonable support for AutoCommit.
The default value for AutoCommit corresponds to the default behaviour of the
Informix database - off for MODE ANSI, on for logged, on and cannot be set off
for unlogged databases.  This code comes with the support for ESQL/C 5.00 and
5.01 which was available as a patch in version 0.25.

The build mechanisms are substantially unchanged.  If anybody has problems,
then I want to know about the problem and, if you have it, the solution.

I've not yet been through the code making it consistent with the still (to my
mind) nebulous standards for DBD driver writers.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <15891-0@oink>;
          Fri, 14 Feb 1997 19:55:12 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855949976:10:16403:1; Fri, 14 Feb 97 19:52:56 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa913578; 14 Feb 97 19:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA04238 for dbi-users-real; Fri, 14 Feb 1997 10:24:57 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA04234 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 10:24:55 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA01112;
          Fri, 14 Feb 1997 10:24:13 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA06453;
          Fri, 14 Feb 1997 10:24:10 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA09191;
          Fri, 14 Feb 1997 10:24:09 -0800
Date: Fri, 14 Feb 1997 10:24:09 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702141824.KAA09191@anubis.informix.com>
To: Tim.Bunce@ig.co.uk, serge@fcmc.com
Cc: dbi-users@fugue.com, johnl@informix.com
Subject: Re: DBI/DBD/Informix Issue

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>Date: Fri, 14 Feb 97 10:17:44 EST
>From: serge@fcmc.com (Serge Davidov (DBA))
>Subject: Re: DBI/DBD/Informix Issue
>
>> I'm confused about Serge's comment:
>> > > But DBI doesn't have PREPARE among its methods.
>>
>> but that might be due to my lack of Informix knowledge.
>>
>> Tim.
>
>First, the PREPARE mechanism exists in other DBMS too.
>
>Second, that's OK that the very DBI doesn't have this method,
>because PREPARE is a property of the [database] connection
>(or, to be exect, the database_server connection). In other
>words: $dbh->prepare, but not DBI->prepare.
>
>So, the point is that DBI (and subsequently DBDs) should provide
>ability to connect to database server w/o specifying database name.

Clarifying what Serge is saying (or maybe just muddying the waters),
consider:

	$dbh = DBI->connect('database','user','password','Informix');

Under Informix ESQL/C 6.00 or later, the DBD::Informix code generates a
unique connection name 'connname' and executes:

	EXEC SQL CONNECT TO 'database' AS 'connname'
		USER 'username' USING 'password'
		WITH CONCURRENT TRANSACTION;

The trouble with this is that Informix does not allow you to execute CREATE
DATABASE statements, etc, when a connection is set up like this.  If you
specify the database field as '@server', then you have connected to a
database server, and not to a database, and you can then create a database.
You can also create a database if the connection is the default connection,
determined by the INFORMIXSERVER environment variable.

So far, this has nothing much to do with prepare.  Serge is correct in
saying that there is no way with DBI of doing:

	$dbh = DBI->prepare('create database newdbname');

even though the Informix ESQL/C does allow you to write the following even
without an explicit CONNECT statement:

	EXEC SQL PREPARE p_crdb FROM 'create database newdbname';
	EXEC SQL EXECUTE p_crdb;

This works because the prepare implicitly creates a default connection and
the statement is interpreted by the default server.

This is not really a mechanism that can or should be supported by DBI,
because it is a peculiarity of the Informix software.  I've no idea how you
go about creating new databases in other products (enlightenment on this
would be appreciated), but it is unlikely to be the same as Informix's
methods.

Tim has suggested that using the following won't work because if the
DBI_DBNAME variable is set, the DBI software will put that in place of the
empty database name string:

	$dbh = DBI->connect('','','','Informix');

He is, of course, correct.  However, I'd argue that if DBI_DBNAME is not
set, then it is reasonable for DBD::Informix to interpret the absence of
the name as a request for the default connection.  Whether it should also
detect some other name as a request for the default connection is open to
negotiation -- at the moment, it doesn't.  With the newly released version
0.50 code, if the database name seen by the DBD::Informix driver is empty,
then a default connection is made, and databases can be created, etc.  If
you are running the DBD::Informix version 0.50 tests and t/dbase.t fails,
it may be because you have DBI_DBNAME set in the environment.  To get the
test to pass, unset the environment variable.  Nothing else in the test
suite can be upset by the presence or absence of the DBI_DBNAME environment
variable.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16199-0@oink>;
          Fri, 14 Feb 1997 20:17:34 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855950713:10:21757:5; Fri, 14 Feb 97 20:05:13 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1021777; 14 Feb 97 20:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA04501 for dbi-users-real; Fri, 14 Feb 1997 10:45:06 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA04495;
          Fri, 14 Feb 1997 10:45:04 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA01978;
          Fri, 14 Feb 1997 10:44:29 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA07062;
          Fri, 14 Feb 1997 10:44:26 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA09251;
          Fri, 14 Feb 1997 10:44:24 -0800
Date: Fri, 14 Feb 1997 10:44:24 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702141844.KAA09251@anubis.informix.com>
To: Tim.Bunce@ig.co.uk, dbi-dev@fugue.com, dbi-users@fugue.com, 
    johnl@informix.com, ogj@pro.tollpost.no
Subject: Re: empty strings vs. NULL values in DBD::Informix

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

A good many people have pointed out that the value returned should be undef
for a NULL -- thank you.

OK -- bug fixing time.  Here is an extract of the buggy code from
dbdimp.ec, function dbd_st_fetch():

    ...
    av = DBIS->get_fbav(imp_sth);
    for (index = 1; index <= imp_sth->n_columns; index++)
    {
        SV *sv = AvARRAY(av)[index-1];
        EXEC SQL GET DESCRIPTOR :nm_obind VALUE :index
                :coltype = TYPE, :collength = LENGTH,
                :colind = INDICATOR, :colname = NAME;
        dbd_ix_sqlcode(imp_sth->dbh);
        if (colind != 0)
        {
            /* Data is null */
            result = coldata;
            length = 0;
            result[length] = '\0';
            /*warn("NULL Data: %d <<%s>>\n", length, result);*/
        }
        else
        {
            ...
        }
        ...
        sv_setpvn(sv, result, length);
    }

What needs to be done to fix this?  I suspect that it is something like:

    ...
    av = DBIS->get_fbav(imp_sth);
    for (index = 1; index <= imp_sth->n_columns; index++)
    {
        SV *sv = AvARRAY(av)[index-1];
        EXEC SQL GET DESCRIPTOR :nm_obind VALUE :index
                :coltype = TYPE, :collength = LENGTH,
                :colind = INDICATOR, :colname = NAME;
        dbd_ix_sqlcode(imp_sth->dbh);
        if (colind != 0)
        {
            /* Data is null */
            result = coldata;
            length = 0;
            result[length] = '\0';
            *sv = *sv_undef;
        }
        else
        {
            ...
            sv_setpvn(sv, result, length);
        }
        ...
    }

I would appreciate advice from anyone who knows how to get undef back to
Perl reliably.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <16230-0@oink>;
          Fri, 14 Feb 1997 20:22:00 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855951527:10:27293:9; Fri, 14 Feb 97 20:18:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa925198; 14 Feb 97 20:18 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA04719 for dbi-users-real; Fri, 14 Feb 1997 11:00:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA04715 
          for <dbi-users@fugue.com>; Fri, 14 Feb 1997 11:00:22 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id KAA24059;
          Fri, 14 Feb 1997 10:47:26 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id KAA06218;
          Fri, 14 Feb 1997 10:47:25 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id KAA09189; Fri, 14 Feb 1997 10:46:46 -0800
Message-Id: <199702141846.KAA09189@mole.dimensionx.com>
Subject: Re: DBI/DBD/Informix Issue
To: johnl@informix.com (Jonathan Leffler)
Date: Fri, 14 Feb 1997 10:46:45 -0800 (PST)
Cc: Tim.Bunce@ig.co.uk, serge@fcmc.com, dbi-users@fugue.com, johnl@informix.com
In-Reply-To: <199702141824.KAA09191@anubis.informix.com> from "Jonathan Leffler" at Feb 14, 97 10:24:09 am
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> This is not really a mechanism that can or should be supported by DBI,
> because it is a peculiarity of the Informix software.  I've no idea how you
> go about creating new databases in other products (enlightenment on this
> would be appreciated), but it is unlikely to be the same as Informix's
> methods.

DBD::mSQL implements this sort of functionality as a private method
through $d{r,b}h->func( ... ), which allows you to connect to database
servers but not databases, and create/drop databases.

> Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22473-13@oink>;
          Mon, 17 Feb 1997 07:37:27 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855957078:10:05026:1; Fri, 14 Feb 97 21:51:18 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa907293; 14 Feb 97 21:51 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03888 for dbi-dev-real; Fri, 14 Feb 1997 09:55:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03846;
          Fri, 14 Feb 1997 09:52:21 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id JAA29625;
          Fri, 14 Feb 1997 09:51:50 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA05371;
          Fri, 14 Feb 1997 09:51:49 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id JAA09100;
          Fri, 14 Feb 1997 09:51:49 -0800
Date: Fri, 14 Feb 1997 09:51:49 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702141751.JAA09100@anubis.informix.com>
To: dbi-announce@fugue.com, dbi-dev@fugue.com, dbi-users@fugue.com
Subject: DBD::Informix Version 0.50 Released

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Warts and all, the code for DBD::Informix Version 0.50 was released to CPAN
last night (California time), and it is available from at least one (presumably
all) CPAN site whenever you care to collect it.

The primary new feature is the support of multiple connections if you are
using ESQL/C 6.00 or later.  There is also reasonable support for AutoCommit.
The default value for AutoCommit corresponds to the default behaviour of the
Informix database - off for MODE ANSI, on for logged, on and cannot be set off
for unlogged databases.  This code comes with the support for ESQL/C 5.00 and
5.01 which was available as a patch in version 0.25.

The build mechanisms are substantially unchanged.  If anybody has problems,
then I want to know about the problem and, if you have it, the solution.

I've not yet been through the code making it consistent with the still (to my
mind) nebulous standards for DBD driver writers.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22473-20@oink>;
          Mon, 17 Feb 1997 07:38:26 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 855961137:9:07496:0; Fri, 14 Feb 97 22:58:57 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa907445; 14 Feb 97 22:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA04561 for dbi-dev-real; Fri, 14 Feb 1997 10:48:29 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA04495;
          Fri, 14 Feb 1997 10:45:04 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id KAA01978;
          Fri, 14 Feb 1997 10:44:29 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA07062;
          Fri, 14 Feb 1997 10:44:26 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id KAA09251;
          Fri, 14 Feb 1997 10:44:24 -0800
Date: Fri, 14 Feb 1997 10:44:24 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702141844.KAA09251@anubis.informix.com>
To: Tim.Bunce@ig.co.uk, dbi-dev@fugue.com, dbi-users@fugue.com, 
    johnl@informix.com, ogj@pro.tollpost.no
Subject: Re: empty strings vs. NULL values in DBD::Informix

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

A good many people have pointed out that the value returned should be undef
for a NULL -- thank you.

OK -- bug fixing time.  Here is an extract of the buggy code from
dbdimp.ec, function dbd_st_fetch():

    ...
    av = DBIS->get_fbav(imp_sth);
    for (index = 1; index <= imp_sth->n_columns; index++)
    {
        SV *sv = AvARRAY(av)[index-1];
        EXEC SQL GET DESCRIPTOR :nm_obind VALUE :index
                :coltype = TYPE, :collength = LENGTH,
                :colind = INDICATOR, :colname = NAME;
        dbd_ix_sqlcode(imp_sth->dbh);
        if (colind != 0)
        {
            /* Data is null */
            result = coldata;
            length = 0;
            result[length] = '\0';
            /*warn("NULL Data: %d <<%s>>\n", length, result);*/
        }
        else
        {
            ...
        }
        ...
        sv_setpvn(sv, result, length);
    }

What needs to be done to fix this?  I suspect that it is something like:

    ...
    av = DBIS->get_fbav(imp_sth);
    for (index = 1; index <= imp_sth->n_columns; index++)
    {
        SV *sv = AvARRAY(av)[index-1];
        EXEC SQL GET DESCRIPTOR :nm_obind VALUE :index
                :coltype = TYPE, :collength = LENGTH,
                :colind = INDICATOR, :colname = NAME;
        dbd_ix_sqlcode(imp_sth->dbh);
        if (colind != 0)
        {
            /* Data is null */
            result = coldata;
            length = 0;
            result[length] = '\0';
            *sv = *sv_undef;
        }
        else
        {
            ...
            sv_setpvn(sv, result, length);
        }
        ...
    }

I would appreciate advice from anyone who knows how to get undef back to
Perl reliably.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22473-66@oink>;
          Mon, 17 Feb 1997 07:46:15 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856019800:10:15200:3; Sat, 15 Feb 97 15:16:40 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1015195; 15 Feb 97 15:16 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA16997 for dbi-dev-real; Sat, 15 Feb 1997 04:28:33 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from sls.s.bawue.de (root@sls.s.bawue.de [193.197.11.90]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id EAA16992 
          for <dbi-dev@fugue.com>; Sat, 15 Feb 1997 04:28:29 -0800 (PST)
Received: from sls (mergl@localhost [127.0.0.1]) 
          by sls.s.bawue.de (8.7.5/8.7.3) with SMTP id NAA00553;
          Sat, 15 Feb 1997 13:27:45 +0100
Message-ID: <3305ABC1.2E136C82@bawue.de>
Date: Sat, 15 Feb 1997 13:27:45 +0100
From: Edmund Mergl <E.Mergl@bawue.de>
Organization: sweet home
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.29 i586)
MIME-Version: 1.0
To: dbi-dev@fugue.com
Subject: DBD-Postgres
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,

I am working on a Postgres port of the DBI interface.
Well, I am trying to do so, but it's not as easy as
I thought.

I grepped all DBD-modules I could get and extracted
what they have in common. This gave me some kind of
basic framework which works at least partially. Right 
now I got stuck in dbd_st_fetch().

I picked up everything I found on www.hermetica.com.
I think I understand the basic principles, but the
details are still a mystery.

I am looking for some more detailed documentation of
the internals of DBI. A more documented dbdimp.c
would help a lot. But also any other kind of additional 
information is welcome. Is there an archive of the 
mailing list available ?

Thanks
Edmund

-- 
+-------------------+---------------------+
| Edmund Mergl      | E.Mergl@bawue.de    |
| Im Haldenhau 9    | fon: +49=711-747503 |
| D 70565 Stuttgart |                     |
|-------------------+---------------------|
|        http://www.bawue.de/~mergl/      |
+-----------------------------------------+


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22473-83@oink>;
          Mon, 17 Feb 1997 07:48:40 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856048337:10:19262:0; Sat, 15 Feb 97 23:12:17 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa919161; 15 Feb 97 23:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA21994 for dbi-dev-real; Sat, 15 Feb 1997 12:15:27 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from merkur.ecos.de (merkur.ecos.de [194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA21989 
          for <dbi-dev@fugue.com>; Sat, 15 Feb 1997 12:15:25 -0800 (PST)
Received: from erde.gr.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id VAA22336;
          Sat, 15 Feb 1997 21:15:04 +0100
Message-Id: <199702152015.VAA22336@merkur.ecos.de>
Reply-To: richter <richter@merkur.ecos.de>
From: "G.Richter" <richter@merkur.ecos.de>
To: Edmund Mergl <E.Mergl@bawue.de>, dbi-dev <dbi-dev@fugue.com>
Subject: Re: DBD-Postgres
Date: Sat, 15 Feb 1997 21:07:50 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hi,
> 
> I am looking for some more detailed documentation of
> the internals of DBI. A more documented dbdimp.c
> would help a lot. But also any other kind of additional 
> information is welcome. Is there an archive of the 
> mailing list available ?
> 
Take a look at 

http://www.coe.missouri.edu/~faq/lists/dbi.html

Gerald


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <22473-91@oink>;
          Mon, 17 Feb 1997 07:49:50 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856071591:10:07258:0; Sun, 16 Feb 97 05:39:51 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1007248; 16 Feb 97 5:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id UAA27502 for dbi-users-real; Sat, 15 Feb 1997 20:43:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from nero.respublica.de (harry@nero.respublica.de [195.214.70.71]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id UAA27497 
          for <dbi-users@fugue.com>; Sat, 15 Feb 1997 20:43:42 -0800 (PST)
Received: (from harry@localhost) by nero.respublica.de (8.8.5/8.7.3) 
          id FAA09869; Sun, 16 Feb 1997 05:44:18 +0100
Message-Id: <199702160444.FAA09869@nero.respublica.de>
Date: Sun, 16 Feb 1997 05:44:16 +0100 (MET)
To: dbi-users@fugue.com
From: Harald Brueckner <brueckner@caesar.respublica.de>
Cc: brueckner <brueckner@caesar.respublica.de>
Subject: DBI and mSQL
X-Mailer: Ishmail 1.3-961005-linux <http://www.ishmail.com>
MIME-Version: 1.0
Content-Type: text/plain

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hello,

I'm new to DBI and maybe my questions sounds a bit funny but I can't find
any information about it.
I use DBI 0.75 and DBD::mSQL 0.60pl10.

I'm looking for a way to determin if columns contain the NULL value. If I
run a query via the msql monitor I get NULL's, from within my Perl program
it looks like all variables are used.

How can I decide wether it's a "" string or NULL?

Thank you for your answer in advance.

--

Yours,
   Harry Brueckner



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27565-5@oink>;
          Mon, 17 Feb 1997 12:29:03 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856181740:9:17667:0; Mon, 17 Feb 97 12:15:40 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917607; 17 Feb 97 12:15 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA02955 for dbi-users-real; Mon, 17 Feb 1997 02:58:31 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from uwe.ac.uk (uucp@gate.uwe.ac.uk [164.11.100.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id CAA02951 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 02:58:27 -0800 (PST)
Received: by uwe.ac.uk (4.1/firewall(Thu Apr 14 18:22:22 BST 1994)) id AA09057;
          Mon, 17 Feb 97 10:57:30 GMT
Received: from csd.uwe.ac.uk(164.11.32.19) by sam via smap (V1.3mjr) 
          id sma009010; Mon Feb 17 10:57:06 1997
Received: from csd (csd.uwe.ac.uk) by csd.uwe.ac.uk (4.1/SMI-4.1) id AA09189;
          Mon, 17 Feb 97 10:57:04 GMT
Date: Mon, 17 Feb 1997 10:57:03 +0000 (GMT)
From: Chris Brown <c4-brown@uwe.ac.uk>
X-Sender: c4-brown@csd
To: dbi-users@fugue.com
Subject: List archives?
Message-Id: <Pine.SUN.3.95.970217105555.7613C-100000@csd>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi

Are there archives for this list? If so where can I find them?

Cheers

Chris




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27565-7@oink>;
          Mon, 17 Feb 1997 12:29:31 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856182370:9:21958:0; Mon, 17 Feb 97 12:26:10 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1026481; 17 Feb 97 12:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA03003 for dbi-users-real; Mon, 17 Feb 1997 03:23:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de (merkur.ecos.de [194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id DAA02999 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 03:23:49 -0800 (PST)
Received: from pcdv14.elster.elster-group.com (usrttyS0.ecos.de [194.162.213.100]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id MAA28286;
          Mon, 17 Feb 1997 12:23:13 +0100
Message-Id: <199702171123.MAA28286@merkur.ecos.de>
Reply-To: richter <richter@ecos.de>
From: "G.Richter" <richter@ecos.de>
To: Harald Brueckner <brueckner@caesar.respublica.de>
Cc: dbi-users <dbi-users@fugue.com>
Subject: Re: Re[2]: DBI and mSQL
Date: Mon, 17 Feb 1997 12:25:04 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
> 
> I found pl10 at the mSQL support site at
> http://www.hermetica.com/technologia/perl/DBI/index.html
> 
This I have tried before, but I get only the following

Not found

The requested module, DBD::mSQL, was not found in the modules list. Please
consult http://www.perl.com/CPAN/modules/ for what you need. 

Does it work for you now?

> I thought that undef was, what it was set to. I think I'm not familiar to
> this "value" in perl. I tried a few things after I sent the mail to the
list
> and got it to work. What I tried was the following:
> 
> if ($row[0] == undef) ...
> if ($row[0] != undef) ...
> 
> if (!defined $row[0]) ...
> if (defined $row[0]) ...
> and
> if ($row[0]) ...
> if (!$row[0]) ...
> 
> The only thing that really worked were the last 2 combinations... :-)
> 
> Maybe the 2 other tries are wrong... :-/
> 

I have used

if ($row[0] eq undef) ...
if ($row[0] ne undef) ...

This works for me, but I don't have used it much. I don't know if there is
any differenz between eq and == when comparing to undef, but the differenz
is important, when comparing strings or numbers.


Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <27845-0@oink>;
          Mon, 17 Feb 1997 12:43:13 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856183211:9:27022:1; Mon, 17 Feb 97 12:40:11 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa926916; 17 Feb 97 12:39 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA03030 for dbi-users-real; Mon, 17 Feb 1997 03:41:24 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from styx.cursci.co.uk (charon.cursci.co.uk [194.129.118.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id DAA03026 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 03:41:21 -0800 (PST)
Received: from wombat (mjs@s50p8.cursci.co.uk [10.1.50.8]) 
          by styx.cursci.co.uk (8.7.3/8.7.3/ep (2.1)) with SMTP id LAA00379 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 11:40:49 GMT
Message-ID: <33084351.174F0E5B@cursci.co.uk>
Date: Mon, 17 Feb 1997 11:38:57 +0000
From: Michael Smith <mjs@cursci.co.uk>
Organization: Electronic Press Ltd
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.1.7 i586)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: minimal installation for oracle client?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Dear All,

I have successfully installed the most recent versions of DBI and
DBD-oracle to enable me to talk to my remote oracle database from perl. 
Great stuff.

I would like to set up a few other machines to talk to oracle servers,
by installing the minimum amount of oracle required (we are running
7.3.2).  Can anyone advise me what is the mimimum necessary?  In fact,
is it possible to get away without any oracle products for the client? 
We managed this with sqlnet 1 but this doesn't appear to be so easy with
sqlnet v2.

Any tips/comments much appreciated.

Michael Smith


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28075-0@oink>;
          Mon, 17 Feb 1997 13:37:12 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856186330:10:18774:14; Mon, 17 Feb 97 13:32:10 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa915638; 17 Feb 97 13:32 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA03136 for dbi-users-real; Mon, 17 Feb 1997 04:25:14 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from uwe.ac.uk (uucp@gate.uwe.ac.uk [164.11.100.10]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA03132 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 04:25:08 -0800 (PST)
Received: by uwe.ac.uk (4.1/firewall(Thu Apr 14 18:22:22 BST 1994)) id AA15313;
          Mon, 17 Feb 97 12:24:01 GMT
Received: from csd.uwe.ac.uk(164.11.32.19) by sam via smap (V1.3mjr) 
          id sma015275; Mon Feb 17 12:23:40 1997
Received: from csd (csd.uwe.ac.uk) by csd.uwe.ac.uk (4.1/SMI-4.1) id AA14847;
          Mon, 17 Feb 97 12:23:31 GMT
Date: Mon, 17 Feb 1997 12:23:30 +0000 (GMT)
From: Chris Brown <c4-brown@uwe.ac.uk>
X-Sender: c4-brown@csd
To: dbi-users@fugue.com
Subject: Re: List archives?
In-Reply-To: <Pine.SUN.3.95.970217105555.7613C-100000@csd>
Message-Id: <Pine.SUN.3.95.970217121349.7613E-100000@csd>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Mon, 17 Feb 1997, Chris Brown wrote:

>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> Hi
> 
> Are there archives for this list? If so where can I find them?

Hmmm ... Found the archives but can't find anything referrinf to my
problem so here goes ....

I am running v 2.0-B4 of mSQL and Perl v5.003 under Solaris 2.5. I also
have MsqPerl v 1.15 installed.

I have so far managed to built, test and install DBI v 0.76.
DBD-mSQL-0.60pl9 is failing the tests with the following:

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
install_driver(mSQL) failed: Can't load
'./blib/arch/auto/DBD/mSQL/mSQL.so' for module DBD::mSQL: ld.so.1:
/usr/bin/perl: fatal: relocation error: symbol not found: IS_PRI_KEY:
referenced in ./blib/arch/auto/DBD/mSQL/mSQL.so at
/usr/local/lib/perl5/DynaLoader.pm line 140.
 
 at blib/lib/DBD/mSQL.pm line 18
        DBI::install_driver called at test.pl line 22
Testing: DBI->install_driver( 'mSQL' ): make: *** [test_dynamic] Error 2

Can anyone adise me on how to proceed from here? mSQL works with MsqPerl.
I've edited test.pl to use the test database but ot no avail.

Chris





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-5@oink>;
          Tue, 18 Feb 1997 09:56:31 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856195329:10:16084:22; Mon, 17 Feb 97 16:02:09 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917802; 17 Feb 97 16:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id GAA03403 for dbi-users-real; Mon, 17 Feb 1997 06:46:34 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de (merkur.ecos.de [194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id GAA03399 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 06:46:32 -0800 (PST)
Received: from erde.gr.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id PAA29095;
          Mon, 17 Feb 1997 15:46:18 +0100
Message-Id: <199702171446.PAA29095@merkur.ecos.de>
Reply-To: richter <richter@merkur.ecos.de>
From: "G.Richter" <richter@merkur.ecos.de>
To: Harald Brueckner <brueckner@caesar.respublica.de>
Cc: dbi-users <dbi-users@fugue.com>
Subject: Re: Re[4]: DBI and mSQL
Date: Mon, 17 Feb 1997 15:46:10 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
> 
> > This works for me, but I don't have used it much. I don't know if there
is
> > any differenz between eq and == when comparing to undef, but the
differenz
> > is important, when comparing strings or numbers.
> 
> Hmm, strange. I did not use "ne/eq" because "undef" is not as string. :-)
> Thank you very much for the hint - this way it works fine... :-D
> 
After reading the mail from Tim I hav made a littel test program.

if ($a eq undef) ..

and 

if ($a eq '') ..

is really the same. We have to use 

if (defined ($a)) ...

but this seems to doesn't work with DBD::mSQL like it should.
So there is no difference between an empty string and a NULL .

There was recently a discussion about the same problem with DBD::Informix.
Perhaps this is a problem of all (or many) DBD drivers, since they seem to
be all cloned one from each other.

Gerald



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-7@oink>;
          Tue, 18 Feb 1997 09:56:39 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856195467:10:17357:1; Mon, 17 Feb 97 16:04:27 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1017239; 17 Feb 97 16:04 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA03456 for dbi-users-real; Mon, 17 Feb 1997 07:00:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from pt.Cyanamid.COM (igate.cyanamid.com [141.173.63.2]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA03452 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 07:00:46 -0800 (PST)
Received: from wl486.pt.Cyanamid.COM by apbr1.pt.Cyanamid.COM (4.1/SMI-4.1) 
          id AA05715; Mon, 17 Feb 97 10:00:08 EST
Date: Mon, 17 Feb 1997 09:55:53 -0500 (EST)
From: Jon Meek <meekj@Cyanamid.COM>
To: Michael Smith <mjs@cursci.co.uk>
Cc: dbi-users@fugue.com
Subject: Re: minimal installation for oracle client?
In-Reply-To: <33084351.174F0E5B@cursci.co.uk>
Message-Id: <Pine.LNX.3.95.970217095156.16177B-100000@wl486.pt.Cyanamid.COM>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

This is all that I have on some of my clients (although you might want to
add error message files):

: wlx /usr/local/lib ; ls -lR oracle
oracle:
total 2
drwxr-xr-x   3 meekj    apbr         512 Nov  3 11:46 network/

oracle/network:
total 2
drwxr-xr-x   2 meekj    apbr         512 Nov  3 11:46 admin/

oracle/network/admin:
total 6
-rw-r--r--   1 meekj    apbr         309 Nov  3 11:46 sqlnet.ora
-rw-r--r--   1 meekj    apbr        1989 Nov  3 11:46 tnsnames.ora

Jon





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-37@oink>;
          Tue, 18 Feb 1997 09:58:30 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856205578:10:22524:7; Mon, 17 Feb 97 18:52:58 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1022526; 17 Feb 97 18:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03882 for dbi-users-real; Mon, 17 Feb 1997 09:50:48 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03878 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:50:46 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05702 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:46:17 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA12752 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:46:14 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id JAA31337 for dbi-users@fugue.com; Mon, 17 Feb 1997 09:45:44 -0800
Message-Id: <199702171745.JAA31337@mole.dimensionx.com>
Subject: Again......DBD::mSQL and mSQL-2.0
To: dbi-users@fugue.com
Date: Mon, 17 Feb 1997 09:45:44 -0800 (PST)
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

For the people who couldn't comprehend the obvious Subject: line the
last time around.......

DBD::mSQL-0.60pl10 does *not* support mSQL-2.0. The up and coming 
DBD::mSQL-0.61 *does* support mSQL-2.0.

0.61 is *not* out yet, so don't ask where you can get it from.

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-39@oink>;
          Tue, 18 Feb 1997 09:58:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856205587:10:22505:33; Mon, 17 Feb 97 18:53:07 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa904061; 17 Feb 97 18:52 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03891 for dbi-users-real; Mon, 17 Feb 1997 09:51:59 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03887 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:51:58 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05720 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:47:29 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA12780 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:47:28 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id JAA31347 for dbi-users@fugue.com; Mon, 17 Feb 1997 09:46:58 -0800
Message-Id: <199702171746.JAA31347@mole.dimensionx.com>
Subject: Perl Journal article
To: dbi-users@fugue.com
Date: Mon, 17 Feb 1997 09:46:58 -0800 (PST)
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

The article on DBI in ``The Perl Journal'' issue #5 ( out in March, I believe.
Go get it! ) is written by myself and Tim Bunce.

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-41@oink>;
          Tue, 18 Feb 1997 09:58:45 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856205596:9:04152:13; Mon, 17 Feb 97 18:53:16 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1022605; 17 Feb 97 18:53 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03899 for dbi-users-real; Mon, 17 Feb 1997 09:53:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03895 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:53:30 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05736 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:49:01 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA12806 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:49:00 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id JAA31358 for dbi-users@fugue.com; Mon, 17 Feb 1997 09:48:30 -0800
Message-Id: <199702171748.JAA31358@mole.dimensionx.com>
Subject: DBD::mSQL and CPAN
To: dbi-users@fugue.com
Date: Mon, 17 Feb 1997 09:48:30 -0800 (PST)
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

CPAN may be distributing DBD::mSQL-0.60pl9 instead of DBD::mSQL-0.60pl10,
which is the later release. pl10 is the current version, use that.

It can be got from:

        ftp://ftp.mcqueen.com/pub/databases/DBI/DBD/mSQL

unless that site has deleted it.

Failing that, browse CPAN in the author directory of 'Alligator Descartes',
and you should be able to find it there.

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-43@oink>;
          Tue, 18 Feb 1997 09:58:51 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856206361:10:27708:9; Mon, 17 Feb 97 19:06:01 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa910065; 17 Feb 97 19:05 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAB03851 for dbi-users-real; Mon, 17 Feb 1997 09:44:37 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03847 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:44:33 -0800 (PST)
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05637 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:40:04 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA12619 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:40:03 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id JAA30668 for dbi-users@fugue.com; Mon, 17 Feb 1997 09:39:32 -0800
Received: from darkside ([198.68.166.9]) by server.dimensionx.com (8.8.4/8.8.4) 
          with SMTP id FAA09353 for <descarte@dimensionx.com>;
          Mon, 17 Feb 1997 05:48:11 -0800 (PST)
Received: (from smap@localhost) by darkside (SMI-8.6/8.6.9) id FAA04933 
          for <descarte@dimensionx.com>; Mon, 17 Feb 1997 05:48:11 -0800
Received: from nostrum-gw.cy-net.net(206.28.0.58) by darkside via smap (V1.3) 
          id sma004929; Mon Feb 17 05:47:48 1997
Received: from cls.net (freeside.cls.de [192.129.50.1]) 
          by mail.nostrum.com (8.7.3/8.7.3) with SMTP id HAA02221 
          for <descarte@hermetica.com>; Mon, 17 Feb 1997 07:51:31 -0600
Received: by mail.cls.net (Smail3.1.29.1) from bluna.cls.de with smtp 
          id <m0vwTOs-001Xu4C@cls.net>; Mon, 17 Feb 97 13:46 GMT
From: Stein@cls.de
Message-Id: <m0vwTOs-001Xu4C@cls.net>
Comments: Authenticated sender is <torsten@[192.129.50.1]>
Organization: commercial link systems
To: descarte@hermetica.com
Date: Mon, 17 Feb 1997 14:49:42 +0000
MIME-Version: 1.0
Content-transfer-encoding: 7BIT
Subject: DBD::Informix and sqlerrd
Priority: normal
X-mailer: Pegasus Mail for Win32 (v2.42a)
Content-Type: text/plain; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi!

I've got a question for which I did not find an
answer in the FAQs or any where else in the WWW:

Is there a way to access the contents of the SQLERRD
fields from within DBD::Informix? (Especially the 3rd!)

Thanks in advance,
Torsten Stein
---------------------------------------------------------------------------
  Torsten Stein, commercial link systems           Tel.: +49(4307) 819726 
  Lise-Meitner-Str. 1-7, D-24223 Raisdorf          FAX : +49(4307) 819727 
  http://www.cls.net/                            E-Mail: Stein@cls.net



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-45@oink>;
          Tue, 18 Feb 1997 09:58:59 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856206676:10:29715:7; Mon, 17 Feb 97 19:11:16 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1029742; 17 Feb 97 19:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id KAA03962 for dbi-users-real; Mon, 17 Feb 1997 10:08:18 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id KAA03953;
          Mon, 17 Feb 1997 10:08:13 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.8.5/8.7.3) with ESMTP id NAA25134;
          Mon, 17 Feb 1997 13:07:48 -0500 (EST)
Message-Id: <199702171807.NAA25134@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: Chris Brown <c4-brown@uwe.ac.uk>, dbi-request@fugue.com
cc: dbi-users@fugue.com
Subject: Re: List archives?
In-reply-to: Your message of "Mon, 17 Feb 1997 10:57:03 GMT." <Pine.SUN.3.95.970217105555.7613C-100000@csd>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 17 Feb 1997 13:07:16 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

http://www.coe.missouri.edu/~faq/lists/dbi.html
Among other places. Ted, could you add a list to your page or a link to 
Hermetica?

John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-47@oink>;
          Tue, 18 Feb 1997 09:59:06 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856206739:9:13178:1; Mon, 17 Feb 97 19:12:19 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912818; 17 Feb 97 19:11 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA03918 for dbi-users-real; Mon, 17 Feb 1997 09:58:39 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA03914 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 09:58:38 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05783;
          Mon, 17 Feb 1997 09:52:14 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA12894;
          Mon, 17 Feb 1997 09:52:13 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id JAA31670; Mon, 17 Feb 1997 09:51:44 -0800
Message-Id: <199702171751.JAA31670@mole.dimensionx.com>
Subject: Re: Re[4]: DBI and mSQL
To: richter@merkur.ecos.de
Date: Mon, 17 Feb 1997 09:51:44 -0800 (PST)
Cc: brueckner@caesar.respublica.de, dbi-users@fugue.com
In-Reply-To: <199702171446.PAA29095@merkur.ecos.de> from "G.Richter" at Feb 17, 97 03:46:10 pm
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> but this seems to doesn't work with DBD::mSQL like it should.
> So there is no difference between an empty string and a NULL .
> 
> There was recently a discussion about the same problem with DBD::Informix.
> Perhaps this is a problem of all (or many) DBD drivers, since they seem to
> be all cloned one from each other.

DBD::mSQL is bugged in that it returns "" instead of 'undef' for NULL
values. It's been fixed for 0.61.

> Gerald

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-57@oink>;
          Tue, 18 Feb 1997 09:59:45 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856210901:10:26388:3; Mon, 17 Feb 97 20:21:41 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa913636; 17 Feb 97 20:21 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA04297 for dbi-users-real; Mon, 17 Feb 1997 11:24:41 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from cse.psu.edu (claven.cse.psu.edu [130.203.3.50]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA04293 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 11:24:37 -0800 (PST)
Received: from tholian.cse.psu.edu (groenvel@tholian.cse.psu.edu [130.203.30.20]) 
          by cse.psu.edu (8.8.5/8.7.3) with ESMTP id OAA26656;
          Mon, 17 Feb 1997 14:24:40 -0500 (EST)
Message-Id: <199702171924.OAA26656@cse.psu.edu>
X-Mailer: exmh version 1.6.9 8/22/96
To: Michael Smith <mjs@cursci.co.uk>
cc: dbi-users@fugue.com
Subject: Re: minimal installation for oracle client?
In-reply-to: Your message of "Mon, 17 Feb 1997 11:38:57 GMT." <33084351.174F0E5B@cursci.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 17 Feb 1997 14:24:04 EST
From: John D Groenveld <groenvel@cse.psu.edu>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Did you take a look at README.clients? I dont see anyway to avoid installing 
SQLNet and OCI.
Good luck,
John
groenvel@cse.psu.edu



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-59@oink>;
          Tue, 18 Feb 1997 09:59:52 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856211124:9:15211:17; Mon, 17 Feb 97 20:25:24 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1027709; 17 Feb 97 20:25 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA04339 for dbi-users-real; Mon, 17 Feb 1997 11:33:19 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA04335 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 11:33:18 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA07072 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 11:28:48 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA15757 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 11:28:47 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id LAA32565 for dbi-users@fugue.com; Mon, 17 Feb 1997 11:28:18 -0800
Message-Id: <199702171928.LAA32565@mole.dimensionx.com>
Subject: DBI Survey
To: dbi-users@fugue.com
Date: Mon, 17 Feb 1997 11:28:18 -0800 (PST)
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have placed a survey form on the Hermetica WWW site for all DBI users
to fill in, if they would be so kind.

The URL for the survey form is:

        http://www.hermetica.com/technologia/perl/DBI/survey.html

If you are a user, or wish to be a user of DBI, please take a few minutes
to fill this form in.

All information submitted to the form will be emailed to myself. None of
this data will be redistributed to any 3rd parties, apart from the
other DBI/DBD developers *only*. Anonymity will be preserved in the
redistribution process. This data will not be used for mailshot purposes.

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-92@oink>;
          Tue, 18 Feb 1997 10:02:02 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856220354:10:24466:3; Mon, 17 Feb 97 22:59:14 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1024299; 17 Feb 97 22:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id OAA05353 for dbi-users-real; Mon, 17 Feb 1997 14:02:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from informix.com (kingcrab.informix.com [158.58.16.26]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id OAA05349 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 14:02:52 -0800 (PST)
Received: from osprey (osprey.informix.com [158.58.28.18]) 
          by informix.com (8.7.4/8.7.3) with SMTP id OAA20790;
          Mon, 17 Feb 1997 14:02:05 -0800 (PST)
Received: from anubis.informix.com by osprey (5.x/SMI-SVR4) id AA29448;
          Mon, 17 Feb 1997 14:02:00 -0800
Received: by anubis.informix.com (SMI-8.6/SMI-SVR4) id OAA26899;
          Mon, 17 Feb 1997 14:01:59 -0800
Date: Mon, 17 Feb 1997 14:01:59 -0800
From: johnl@informix.com (Jonathan Leffler)
Message-Id: <199702172201.OAA26899@anubis.informix.com>
To: Stein@cls.de, descarte@hermetica.com
Cc: dbi-users@fugue.com
Subject: Re: DBD::Informix and sqlerrd

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>From: Stein@cls.de
>To: descarte@hermetica.com
>Date: Mon, 17 Feb 1997 14:49:42 +0000
>Subject: DBD::Informix and sqlerrd
>
>I've got a question for which I did not find an
>answer in the FAQs or any where else in the WWW:
>
>Is there a way to access the contents of the SQLERRD
>fields from within DBD::Informix? (Especially the 3rd!)

Which version of DBD::Informix are you using?

Version 0.25 provides a way of getting at this information -- but I agree
it is not clearly documented.  However, if you look in InformixTest.pm,
you will find a subroutine test_sqlca() (or print_sqlca() in version 0.50)
which shows how you can get access to the elements of the sqlca record.

Please provide me with your full name so I can credit you with pointing
out the omission in the ChangeLog.

Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-94@oink>;
          Tue, 18 Feb 1997 10:02:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856221729:9:00027:68; Mon, 17 Feb 97 23:22:09 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa900154; 17 Feb 97 23:22 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA04359 for dbi-dev-real; Mon, 17 Feb 1997 11:42:35 -0800 (PST)
Precedence: junk
Sender: owner-dbi-dev@fugue.com
Received: from cs.bgsu.edu (maestro.cs.bgsu.edu [129.1.64.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA04355 
          for <dbi-dev@fugue.com>; Mon, 17 Feb 1997 11:42:33 -0800 (PST)
Received: from solar (solar.cs.bgsu.edu [129.1.64.5]) 
          by cs.bgsu.edu (8.7.5/950727cs.bgsu.edu) with SMTP id OAA06321 
          for <dbi-dev@fugue.com> sender daliniu@cs.bgsu.edu ;
          Mon, 17 Feb 1997 14:42:26 -0500 (EST)
Date: Mon, 17 Feb 1997 14:42:19 -0500 (EST)
From: Dali Niu <daliniu@cs.bgsu.edu>
X-Sender: daliniu@solar
Reply-To: Dali Niu <daliniu@cs.bgsu.edu>
To: dbi-dev@fugue.com
Subject: DBI/DBD build problem
Message-ID: <Pine.GSO.3.93.970217141541.2830C-100000@solar>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-dev -- To unsubscribe, see the end of this message. ***

Hello,

We are having problems in installing DBD.  Here is the sequence 
we tried: Complete log is at the bottom.

Executive  Summary:
0.	Perl version version 5.003 with EMBED under solaris 
1.	Oracle(7.x) database is on an alpha machine. We are trying
	to build DBI/DBD on a sun Sparc (sun4) Solaris.
2.	The Sun DBI directory is user1/DBD-Oracle-0.43/    DBI-0.73.
3.	cd user1/DBD-Oracle-0.43/DBI-0.73
	perl Makefile.PL           {went OK}
    	make			   {went OK}
    	make test		   {went OK}  
  --> At this point the DBI files are OK.------------------

4.	Sun DBD directory is user1/DBD-Oracle-0.43/DBD-Oracle-0.43.
	cd user1/DBD-Oracle-0.43/DBD-Oracle-0.43
5.  	perl Makefile.PL		{went OK}
        make				{went OK}
6.	make test TEST_VERBOSE=1	{FAILS!}
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
t/base..............install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC at (eval 1) line 2.
        DBI::install_driver called at t/base.t line 16
1..5
ok 1
ok 2
ok 3
FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
        Test returned status 2 (wstat 512)
Failed 1 test script, 0.00% okay. 2/5 subtests failed, 60.00% okay.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'


--------------------------------------------------------
Please help us how we can resolve the error above (Step 6).



Detaild log of Steps 4 and 5 are shownb below.
Our DBD directory is user1/DBD-Oracle-0.43.
The content of Sun DBD directory, user1/DBD-Oracle-0.43 is:
Changes*         Makefile.PL*     ToDoI*           pm_to_blib*
DBD/             Oracle.h*        Todo*            t/
DBI.bs           Oracle.pm*       blib/            tI/
DBI.c*           Oracle.xs*       dbdimp.c*        test.pl*
DBI.o*           Oraperl.pm*      dbdimp.h*        testI.pl*
DBI.pm*          README*          hints/           x
DBI.xs*          README.clients*  install-log-dbd  y@
DBIXS.h*         README.login*    lib/
MANIFEST*        README.longs*    oraperl.ex/
Makefile         READMEI*         oraperl.ph*

4.	perl Makefile.PL

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
        DEFINE => q[-Wall -Wno-comment]
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
	dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist], PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/local/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI

5.	make
gcc -c   -O     -DVERSION=\"0.73\"  -DXS_VERSION=\"0.73\" -fpic -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -Wno-comment DBI.c
DBI.c: In function `dbih_setup_handle':
DBI.c:352: warning: value computed is not used
DBI.c:365: warning: value computed is not used
DBI.c:371: warning: value computed is not used
DBI.c:372: warning: value computed is not used
DBI.c:373: warning: value computed is not used
DBI.c:374: warning: value computed is not used
DBI.c: In function `dbih_sth_bind_col':
DBI.c:566: warning: value computed is not used
DBI.c: In function `dbih_set_attr':
DBI.c:619: warning: value computed is not used
DBI.c: In function `dbih_get_attr':
DBI.c:656: warning: value computed is not used
DBI.c: In function `XS_DBI_dispatch':
DBI.c:878: warning: value computed is not used
DBI.c:878: warning: value computed is not used
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -G -L/usr/local/lib DBI.o     
chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs ./blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
Manifying ./blib/man3/Oraperl.3

6.	make test TEST_VERBOSE=1
	Test fails as shown above (step 6), in Executive  Sumamry



Thanx


Dali



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-117@oink>;
          Tue, 18 Feb 1997 10:03:38 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856232918:9:25964:0; Tue, 18 Feb 97 02:28:38 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1023036; 18 Feb 97 2:28 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id RAA06603 for dbi-users-real; Mon, 17 Feb 1997 17:33:13 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from drawbridge.ctc.com (drawbridge.ctc.com [147.160.199.35]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id RAA06599 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 17:33:10 -0800 (PST)
From: ajmal@ctc.com
Received: by drawbridge.ctc.com (951211.SGI.8.6.12.PATCH1042/951211.SGI) 
          id UAA25679; Mon, 17 Feb 1997 20:33:09 -0500
Received: from sgi27.ctc.com(147.160.31.46) by drawbridge.ctc.com 
          via smap (V1.3) id sma025675; Mon Feb 17 20:31:55 1997
Received: from sun28 by sgi27.ctc.com 
          via ESMTP (940816.SGI.8.6.9/940406.SGI.AUTO) id UAA29446;
          Mon, 17 Feb 1997 20:31:54 -0500
Received: by sun28 id UAA16688; Mon, 17 Feb 1997 20:32:21 -0500
Date: Mon, 17 Feb 1997 20:32:21 -0500
Message-Id: <199702180132.UAA16688@sun28>
To: dbi-users@fugue.com
Subject: Inserting a long string into Oracle using DBI/DBD
Cc: ajmal@ctc.com, tommiih@cism.bus.utexas.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-MD5: lQMVJYZMlHrPVNdSYF7H1Q==

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have seen questions/problems relating to insertion and retreival of LONG string 
data into the Oracle Database via Oraperl on this mailing list before. I have a 
similar problem. When I insert a long string into a table, it seems like it does 
not insert all of the data beyond a certain size. I did not see any solutions as 
to how to get around the problem. If someone knows how to get around this, I 
would appreciate it if they would let me know how they did it.

I am using Perl 5.003, DBI 0.73, DBD::Oracle 0.43, Oracle7 Server Release   
7.3.2.1.0, PL/SQL Release 2.3.2.0.0
The Oracle database is on a remote server.

Thanks for your time and any helpful suggesions you offer in advance.

~Ajmal Khan
ajmal@ctc.com
==============================================================================
Here is the peice of code 
(The 'contents' column is the one of the LONG type)

$csr = $dbase'lda->prepare("insert into hypertext_document (organization, 
standard_number, part_number, version_number, contents) values (:1, :2, :3, :4,
:5)")
        || die "DATABASE ERROR WHILE PREPARING INSERT INTO TABLE hypertext_docu
ment: $ora_errno $ora_errstr\n";

    local($attrib) = { ora_type => 8}; # For long string

    $csr->bind_param(1, $org);
    $csr->bind_param(2, $std);
    $csr->bind_param(3, $part);
    $csr->bind_param(4, $ver);
    $csr->bind_param(5, $dbase'parsed_out, $attrib)
       || die "DATABASE ERROR WHILE BINDING VARIABLE FOR LONG STRING: $ora_errn
o $ora_errstr\n";

    $csr->execute
        || die "DATABASE ERROR WHILE EXECUTING INSERT INTO TABLE hypertext_docu
ment\n";

    &ora_close($csr)
        || die "DATABASE CLOSE ERROR: $ora_errno $ora_errstr\n";

    &ora_commit($dbase'lda)
        || die "Database COMMIT ERROR: $ora_errno $ora_errstr\n";

    &ora_logoff($dbase'lda)
        || die "Database LOGOFF ERROR: $ora_errno $ora_errstr\n";





------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <02860-130@oink>;
          Tue, 18 Feb 1997 10:04:27 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856237674:10:08737:1; Tue, 18 Feb 97 03:47:54 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa912741; 18 Feb 97 3:47 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id SAA06816 for dbi-users-real; Mon, 17 Feb 1997 18:53:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from rnima.swb.de (uucp@rnima.swb.de [193.175.30.129]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id SAA06812 
          for <dbi-users@fugue.com>; Mon, 17 Feb 1997 18:53:45 -0800 (PST)
Received: (from uucp@localhost) by rnima.swb.de (8.6.12/8.6.9) id DAA01877 
          for fugue.com!dbi-users; Tue, 18 Feb 1997 03:53:37 +0100
Received: from DS9.makeitso.swb.de by makeitso.swb.de 
          with smtp (Smail3.1.29.1 #3) id m0vwZk0-00002mC;
          Mon, 17 Feb 97 21:32 MET
Message-ID: <3308C0D2.7A071797@makeitso.swb.de>
Date: Mon, 17 Feb 1997 21:34:26 +0100
From: Steffen Goetz <steffen@makeitso.swb.de>
Organization: Unseen University
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.0 i486)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: DBD-mSQL-0.60pl10 and mSQL 2.0-B4 (was Re: List archives?)
References: <Pine.SUN.3.95.970217121349.7613E-100000@csd>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Chris Brown wrote:
> 
>     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> 
> On Mon, 17 Feb 1997, Chris Brown wrote:
> 
> >     *** From dbi-users -- To unsubscribe, see the end of this message. ***
> >
> > Hi
> >
> > Are there archives for this list? If so where can I find them?
> 
> Hmmm ... Found the archives but can't find anything referrinf to my
> problem so here goes ....
> 
> I am running v 2.0-B4 of mSQL and Perl v5.003 under Solaris 2.5. I also
> have MsqPerl v 1.15 installed.
> 
> I have so far managed to built, test and install DBI v 0.76.
> DBD-mSQL-0.60pl9 is failing the tests with the following:
> 
> $ make test
> PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
> -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
> install_driver(mSQL) failed: Can't load
> './blib/arch/auto/DBD/mSQL/mSQL.so' for module DBD::mSQL: ld.so.1:
> /usr/bin/perl: fatal: relocation error: symbol not found: IS_PRI_KEY:
> referenced in ./blib/arch/auto/DBD/mSQL/mSQL.so at
> /usr/local/lib/perl5/DynaLoader.pm line 140.
> 
>  at blib/lib/DBD/mSQL.pm line 18
>         DBI::install_driver called at test.pl line 22
> Testing: DBI->install_driver( 'mSQL' ): make: *** [test_dynamic] Error 2
> 
> Can anyone adise me on how to proceed from here? mSQL works with MsqPerl.
> I've edited test.pl to use the test database but ot no avail.
> 
> Chris
> 

I get the same error with DBD-mSQL-0.60pl10 under Linux. 
I suspect that DBD-mSQL-0.60pl10 is to old for mSQL 2.0-B4. 

Has anyone managed to get DBD-mSQL-0.60pl10 to work with mSQL 2.0-B4 ?

Steffen

--------------------------------------------------------- \\ \\ ------'
 _, ___ __, __, __, __, _, _    _,  _, __, ___ ___,       ) \\ \  _p_
(_   |  |_  |_  |_  |_  |\ |   / _ / \ |_   |  ` /        )^\)\  /  *\
, )  |  |   |   |   |   | \|   \ / \ / |    |   /    _     -\\\-/ /^`-'
 ~   ~  ~~~ ~   ~   ~~~ ~  ~    ~   ~  ~~~  ~  ~~~ <' \\_/    _. )'
Doctor of Condensed Metaphysics, Unseen University     `=\ )-' \\
                                                         //     `"
steffen@makeitso.swb.de                                  `"


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <09489-1@oink>;
          Tue, 18 Feb 1997 19:03:35 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856292553:10:27104:1; Tue, 18 Feb 97 19:02:33 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa928125; 18 Feb 97 19:02 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA08568 for dbi-users-real; Tue, 18 Feb 1997 09:24:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mothership.area51.org (sabat.inow.com [205.158.32.169]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA08564 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 09:24:26 -0800 (PST)
Received: from localhost (sabat@localhost) 
          by mothership.area51.org (8.8.5/8.8.5) with SMTP id JAA00598;
          Tue, 18 Feb 1997 09:23:06 -0800
Date: Tue, 18 Feb 1997 09:23:06 -0800 (PST)
From: Sabat <sabat@area51.org>
Reply-To: Sabat <sabat@area51.org>
To: Tim Bunce <Tim.Bunce@ig.co.uk>
cc: mtdedlow@lbl.gov, dbi-users@fugue.com
Subject: Re: perl and Oracle WebServer 3 cartridge
In-Reply-To: <9702181132.AA25824@toad.ig.co.uk>
Message-ID: <Pine.LNX.3.95.970218091936.553A-100000@mothership.area51.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

On Tue, 18 Feb 1997, Tim Bunce wrote:

> Steve (and anyone else with access to Oracle Web Server 3 or info about it),
> 
> I've spoken (via email) with Magnus Lonnroth at Oracle (Principal Product
> Manager, Internet Server Products, i.e., Oracle Web Server) and he said:
> 
> I'm puzzled since I recall someone saying that they had a copy of OWS 3
> which contained the DBI and DBD::Oracle modules.


Magnus may not be aware that DBI comes with the Perl cartridge because
it was done by someone at Oracle who's outside the actual Oracle WebServer
team. But (as Mark's reply demonstrates) it does contain DBI/DBD-Oracle.

Steve




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11374-1@oink>;
          Tue, 18 Feb 1997 20:45:18 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856298567:10:03153:2; Tue, 18 Feb 97 20:42:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa911105; 18 Feb 97 20:42 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA08807 for dbi-users-real; Tue, 18 Feb 1997 11:24:40 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from gateway.darwin.com (firewall-user@gateway.darwin.com [199.238.223.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA08803 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 11:24:35 -0800 (PST)
Received: by gateway.darwin.com; id LAA12346;
          Tue, 18 Feb 1997 11:24:32 -0800 (PST)
Received: from rainier.darwin.com(199.238.220.5) by gateway.darwin.com 
          via smap (3.2) id xma012343; Tue, 18 Feb 97 11:24:27 -0800
Received: from olympus.darwin.com by rainier (5.x/SMI-SVR4) id AA24191;
          Tue, 18 Feb 1997 11:24:22 -0800
Received: by olympus.darwin.com (5.x/SMI-SVR4) id AA16835;
          Tue, 18 Feb 1997 11:24:23 -0800
From: yasayko@darwin.com (Michael Yasayko)
Message-Id: <9702181924.AA16835@olympus.darwin.com>
Subject: Re: Inserting a long string into Oracle using DBI/DBD
To: ajmal@ctc.com
Date: Tue, 18 Feb 1997 11:24:22 -0800 (PST)
Cc: dbi-users@fugue.com, tommiih@cism.bus.utexas.edu
In-Reply-To: <199702180132.UAA16688@sun28> from "ajmal@ctc.com" at Feb 17, 97 08:32:21 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

ajmal@ctc.com wrote:
> I have seen questions/problems relating to insertion and retreival of LONG string 
> data into the Oracle Database via Oraperl on this mailing list before. I have a 
> similar problem. When I insert a long string into a table, it seems like it does 
> not insert all of the data beyond a certain size. I did not see any solutions as 

Try something like:

  $Oraperl::ora_long  = 10000;

(it works for me).

From the documentation on Oraperl:

o $ora_long
       Normally, Oraperl interrogates the database to determine
       the length of each field and allocates buffer space
       accordingly.  This is not possible for fields of type LONG
       or LONGRAW. To allocate space according to the maximum
       possible length (65535 bytes) would obviously be extremely
       wasteful of memory.

       Therefore, when &ora_open() determines that a field is a
       LONG type, it allocates the amount of space indicated by
       the $ora_long variable. This is initially set to 80 (for
       compatibility with Oracle products) but may be set within
       a program to whatever size is required.

--Mike

______________________________________________________________________________
Mike Yasayko, Scientific Programmer, Darwin Molecular Corporation



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <11801-4@oink>;
          Tue, 18 Feb 1997 21:35:08 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856299527:9:17504:110; Tue, 18 Feb 97 20:58:47 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917765; 18 Feb 97 20:58 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA08948 for dbi-users-real; Tue, 18 Feb 1997 12:02:02 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA08944 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 12:02:01 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA22980 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 11:57:31 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA17930 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 11:57:29 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id LAA11085 for dbi-users@fugue.com; Tue, 18 Feb 1997 11:57:04 -0800
Message-Id: <199702181957.LAA11085@mole.dimensionx.com>
Subject: Survey Comments
To: dbi-users@fugue.com
Date: Tue, 18 Feb 1997 11:57:03 -0800 (PST)
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

In light of some of the comments that the survey has provoked, the
rationale behind it, and the questions in it is as follows:

The core group of developers are currently ( as per usual ) far too overworked,
and usually find it extremely difficult to find the time to maintain the
modules, documentation ( such as it is ) and WWW site to the standard we would
like to. Especially in the light that some developers are, eg, writing books
or other paying software in their already non-existent spare-time which are
*paying*. Therefore, the scant resource we have is getting squeezed further.

To alleviate the problem, and hopefully get a higher standard of DBI support
and documentation, we're looking at several avenues of generating some sort
of revenue which will be allocated to developers & writers to help justify
spending time on support.

Now, this does not imply that we will be failing to support DBI! The survey
is just a finger-in-the-air exercise to gather some sort of information.
Hence, it's in your best interests to fill the form out with your viewpoints,
no matter what they are.

Thanks to everyone who has taken part so far. As for the rest of you? Get
a move on! 8-)

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <12257-4@oink>;
          Tue, 18 Feb 1997 22:51:46 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856303053:10:29392:0; Tue, 18 Feb 97 21:57:33 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa913607; 18 Feb 97 21:57 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA09128 for dbi-users-real; Tue, 18 Feb 1997 12:49:47 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from merkur.ecos.de (merkur.ecos.de [194.162.213.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA09124 
          for <dbi-users@fugue.com>; Tue, 18 Feb 1997 12:49:45 -0800 (PST)
Received: from erde.gr.ecos.de (usrippp4.ecos.de [194.162.213.114]) 
          by merkur.ecos.de (8.7.5/8.7.3) with ESMTP id VAA01497;
          Tue, 18 Feb 1997 21:49:29 +0100
Message-Id: <199702182049.VAA01497@merkur.ecos.de>
Reply-To: richter <richter@ecos.de>
From: "G.Richter" <richter@ecos.de>
To: descarte <descarte@dimensionx.com>, dbi-users <dbi-users@fugue.com>
Subject: Re: Again......DBD::mSQL and mSQL-2.0
Date: Tue, 18 Feb 1997 20:11:01 +0100
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,

> DBD::mSQL-0.60pl10 does *not* support mSQL-2.0. The up and coming 
> DBD::mSQL-0.61 *does* support mSQL-2.0.
> 
> 0.61 is *not* out yet, so don't ask where you can get it from.
> 
I have found that the 'connect' for mSQL has other parameters then in DBI
and DBD::Orcale. The first parameter for mSQL is the hostname, which
doesn't exits for the others. Perhaps it is possible in the new version of
DBD::mSQL to make things the same, so perl programs (or modules) which use
DBI can run on different databases without modification. 

Thanks Gerald

 

From mSQL.pm (0.60pl10)

    sub connect {
	my($drh, $host, $dbname)= @_;


From DBI.pm (0.76)

	'connect'  =>	{ U =>[1,5,'[$db [,$user [,$passwd [,\%attr]]]]'] },

and


sub connect {
    my $class = shift;
    my($database, $user, $passwd, $driver, $attr) = @_;

From Oracle.pm (0.43)

    sub connect {
	my($drh, $dbname, $user, $auth)= @_;



---
Gerald Richter
ECOS  Electronic Communication Services

E-Mail:     richter@ecos.de
WWW:    http://www.ecos.de
Tel:          06133/925151
Fax:         06133/925152
Faxabruf: 06133/93910100



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <20573-1@oink>;
          Wed, 19 Feb 1997 16:56:37 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856370639:9:19332:6; Wed, 19 Feb 97 16:43:59 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1007858; 19 Feb 97 16:43 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id HAA11702 for dbi-users-real; Wed, 19 Feb 1997 07:17:26 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from dante.sapient.com (dante.sapient.com [207.121.0.5]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id HAA11698 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 07:17:23 -0800 (PST)
Received: (from mail@localhost) by dante.sapient.com (8.6.11/8.6.11) 
          id KAA19535 for <dbi-users@fugue.com>;
          Wed, 19 Feb 1997 10:16:52 -0500
Received: from smtpgate.sapient.com(172.16.1.7) by dante.sapient.com 
          via smap (V1.3) id sma019529; Wed Feb 19 10:16:50 1997
Received: by galaxy.sapient.com 
          with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) 
          id <01BC1E4D.E07684F0@galaxy.sapient.com>;
          Wed, 19 Feb 1997 10:15:48 -0500
Message-ID: <c=US%a=_%p=sapient%l=SAPIENT/SMTPGATE/000A1576@galaxy.sapient.com>
From: Scott Weinstein <swein@sapient.com>
To: "'dbi-users@fugue.com'" <dbi-users@fugue.com>
Subject: Bad free warnings
Date: Wed, 19 Feb 1997 10:15:13 -0500
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

>m getting the following error on exit from Oraperl programs.
>
>Bad free() ignored during global destruction.
>
>Here are the stats of my setup. Let me know if I missed any info you may
>need
>
>C compiler is 
>
>/opt/SUNWspro/bin/cc -V
>cc: SC4.0 18 Oct 1995 C 4.0
>
>Oracle 7.3.2
>
>Oraperl Emulation Interface version 1.31 
>Oracle Driver 0.43
>DBI-0.73 Switch by Tim Bunce, version 0.73
>
>perl -V 
>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>  Platform:
>    osname=solaris, osver=2.4, archname=sun4-solaris
>    uname='sunos pinnacle 5.4 generic_101945-32 sun4d sparc '
>    hint=recommended, useposix=true, d_sigaction=define
>  Compiler:
>    cc='cc', optimize='-O', gccversion=
>    cppflags=''
>    ccflags =''
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>  Linker and Libraries:
>    ld='cc', ldflags =''
>    libpth=/lib /usr/lib /usr/ccs/lib
>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>    libc=/lib/libc.so, so=so
>  Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>    cccdlflags='-Kpic', lddlflags='-G'
>
>@INC: /opt2/local/lib/perl5/sun4-solaris/5.003 /opt2/local/lib/perl5
>/opt2/local/lib/perl5/site_perl/sun4-solaris
>/opt2/local/lib/perl5/site_perl .
>
>Here is a stack trace 
>o...done.
>Reading symbols from
>/opt2/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Oracle/Oracle.so..
>.done.
>Reading symbols from
>/sc01/app/oracle/product/7.3.2/lib//libclntsh.so.1.0...
>done.
>Reading symbols from /usr/lib/libm.so.1...done.
>Reading symbols from /usr/lib/nss_files.so.1...done.
>#0  0xdf6a18e0 in kill ()
>(gdb) bt
>#0  0xdf6a18e0 in kill ()
>#1  0x716dc in Perl_pp_goto ()
>#2  0x4dbf0 in Perl_runops ()
>#3  0x1f130 in perl_call_sv ()
>#4  0x47634 in Perl_warn ()
>#5  0xdf4dd1bc in epcpro_delete ()
>#6  0xdf4d78a0 in epc_exit_handler ()
>#7  0xdf653a2c in _exithandle ()
>(gdb) 
>
>from the following program
>
>#!/usr/local/bin/perl  -w
>use Oraperl;
>my $lda = ora_login('scc9','pinnacle','pinnacle');
>ora_version();
>$SIG{__WARN__} = sub { 
>  $_[0] =~ /^Bad free/ ? dump : warn $_[0]; 
>}
>
Thanks for any help
--Scott Weinstein
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <23309-0@oink>;
          Wed, 19 Feb 1997 18:53:29 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856378164:9:13984:0; Wed, 19 Feb 97 18:49:24 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa913894; 19 Feb 97 18:49 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA11923 for dbi-users-real; Wed, 19 Feb 1997 09:13:54 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from b5.perihelion.co.uk (b5.perihelion.co.uk [194.6.119.32]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA11919 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 09:13:46 -0800 (PST)
Received: (from mail@localhost) by b5.perihelion.co.uk (8.8.3/8.6.10) 
          id RAA17798 for <dbi-users@fugue.com>; Wed, 19 Feb 1997 17:00:21 GMT
X-Authentication-Warning: b5.perihelion.co.uk: mail set sender to 
                          <don@perihelion.co.uk> using -f
Received: from betty.perihelion.co.uk(10.1.1.102) by b5.perihelion.co.uk 
          via smap (V1.3) id sma017780; Wed Feb 19 17:00:04 1997
Received: (from don@localhost) by betty.perihelion.co.uk (8.7.6/8.6.10) 
          id QAA11662; Wed, 19 Feb 1997 16:52:00 GMT
Date: Wed, 19 Feb 1997 16:52:00 GMT
Message-Id: <199702191652.QAA11662@betty.perihelion.co.uk>
From: Don More <don@perihelion.co.uk>
To: dbi-users@fugue.com
Subject: Problem with DBD-Oracle-0.44 on Solaris 2.5

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

I have been trying to get the following configuration to work.

Solaris 2.5
gcc 2.7.2
perl 5.003
Oracle 7.3.2
DBI-0.76
DBD-Oracle-0.44

DBI-0.76 tests and installs OK (statically, cos I can't seem to get
perl5 to use dynamic loading - but thats another story)

DBD-Oracle builds OK and I can build and run a statically lined perl
(once the libclntsh.so is in the right path)

However when I run the tests, perl core dumps (SIGILL) on the first
call to orlon() in the driver.

I looked at how the Pracle examples linked (using Sun's cc of course)
and they seemed to use pic (position independent code). I tried the
gcc version of this and the tests started working
sporadically. Sometimes a core dump happened on the logon. sometimes
later on in the tests and sometimes never at all.

I am confused here. I'm guessing that I am missing some compiler
options, but have no idea which - I tried the -fpcc-struct-return
option as suggested for another package with no effect.

Thanks in advance for any help.

Don More
Perihelion Distributed Software Ltd

Heres the build and link sequence for the record.

------------------------------------------------------------
Script started on Wed Feb 19 16:51:56 1997
berlioz % set
addsuffix	
argv	()
cwd	/helios/users/don/DBD-Oracle-0.44
dirstack	/helios/users/don/DBD-Oracle-0.44
echo_style	bsd
edit	
gid	101
group	software
history	100
home	/helios/users/don
mail	/no-file
owd	
path	(/usr/sbin /bin /usr/bin /usr/ccs/bin /usr/local/bin /vol2/users/oracle/app/oracle/product/7.3.2/bin /usr/openwin/bin)
prompt	berlioz % 
prompt2	%R? 
prompt3	CORRECT>%R (y|n|e|a)? 
shell	/usr/local/bin/tcsh
shlvl	2
status	0
tcsh	6.06.00
term	xterm
tty	pts/13
uid	120
user	don
version	tcsh 6.06.00 (Cornell) 1995-05-13 (sparc-sun-solaris) options 8b,nls,dl,al,rh
berlioz % perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=solaris, osver=2.5, archname=sun4-solaris
    uname='sunos berlioz 5.5 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags='-I/usr/local/include -fpcc-struct-return'
    ccflags ='-I/usr/local/include -fpcc-struct-return'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''

@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .


berlioz % perl Makefile.PL 

 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /vol2/users/oracle/app/oracle/product/7.3.2
Reading /vol2/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk.
Reading /vol2/users/oracle/app/oracle/product/7.3.2/precomp/env_precomp.mk.
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.
System: perl5.003 sunos berlioz 5.5 generic sun4u sparc sunw,ultra-1 
Compiler: gcc -O -I/usr/local/include -fpcc-struct-return
Linker:   /usr/ccs/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl -lm 

Checking if your kit is complete...
Looks good

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBD::Oracle



berlioz % make 
cp Oraperl.pm ./blib/lib/Oraperl.pm
cp Oracle.pm ./blib/lib/DBD/Oracle.pm
cp don.pl ./blib/lib/DBD/don.pl
cp oraperl.ph ./blib/lib/oraperl.ph
perl -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracle.tc Oracle.c
gcc -c -fpic -I. -I/vol2/users/oracle/app/oracle/product/7.3.2/precomp/public -I/vol2/users/oracle/app/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI -I/usr/local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -fpcc-struct-return -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic -Wno-comment -Wtraditional Oracle.c
Oracle.c: In function `XS_DBD__Oracle__dr_discon_all_':
Oracle.c:45: warning: unused variable `ix'
Oracle.c: In function `XS_DBD__Oracle__db_disconnect':
Oracle.c:149: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_execute':
Oracle.c:286: warning: ANSI C forbids braced-groups within expressions
Oracle.c:295: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow':
Oracle.c:336: warning: ANSI C forbids braced-groups within expressions
Oracle.c:337: warning: ANSI C forbids braced-groups within expressions
Oracle.c:343: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `XS_DBD__Oracle__st_FETCH_attrib_':
Oracle.c:406: warning: unused variable `ix'
Oracle.c: In function `XS_DBD__Oracle__st_finish':
Oracle.c:433: warning: ANSI C forbids braced-groups within expressions
Oracle.c:437: warning: ANSI C forbids braced-groups within expressions
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:477: warning: ANSI C forbids braced-groups within expressions
gcc -c -fpic -I. -I/vol2/users/oracle/app/oracle/product/7.3.2/precomp/public -I/vol2/users/oracle/app/oracle/product/7.3.2/rdbms/demo -I/usr/local/lib/perl5/site_perl/sun4-solaris/DBI -I/usr/local/lib/perl5/sun4-solaris/5.003/DBI -I/usr/local/include -fpcc-struct-return -O     -DVERSION=\"0.44\"  -DXS_VERSION=\"0.44\"  -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE -Wall -pedantic -Wno-comment -Wtraditional dbdimp.c
dbdimp.c: In function `dbd_db_FETCH':
dbdimp.c:299: warning: value computed is not used
dbdimp.c: In function `dbd_bind_ph':
dbdimp.c:745: warning: value computed is not used
dbdimp.c:755: warning: value computed is not used
dbdimp.c: In function `dbd_st_blob_read':
dbdimp.c:1074: warning: ANSI C forbids braced-groups within expressions
dbdimp.c: In function `dbd_st_FETCH':
dbdimp.c:1247: warning: value computed is not used
dbdimp.c: At top level:
dbdimp.c:161: warning: `dump_error_status' defined but not used
rm -rf blib/arch/auto/DBD/Oracle/Oracle.a
ar cr blib/arch/auto/DBD/Oracle/Oracle.a Oracle.o  dbdimp.o && : blib/arch/auto/DBD/Oracle/Oracle.a
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.a
Manifying ./blib/man3/DBD::Oraperl.3


berlioz % make perl
Writing "Makefile.aperl" for this perl

 Configuring DBD::Oracle ...

>>>	Remember to actually *READ* the README file!
   	Especially if you have any problems.

Using Oracle in /vol2/users/oracle/app/oracle/product/7.3.2
Reading /vol2/users/oracle/app/oracle/product/7.3.2/precomp/demo/proc/proc.mk.
Reading /vol2/users/oracle/app/oracle/product/7.3.2/precomp/env_precomp.mk.
Warning: Solaris 2.5 bug #1224467 may cause '_rmutex_unlock' error.
Deleting -lthread from link list as a possible workround.
System: perl5.003 sunos berlioz 5.5 generic sun4u sparc sunw,ultra-1 
Compiler: gcc -O -I/usr/local/include -fpcc-struct-return
Linker:   /usr/ccs/bin/ld
Oracle proc.mk would have used these values but we override them:
  CC:       cc
  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
  LDFLAGS:  -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME) -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib
Linking with  -lclntsh -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lsocket -lnsl -lm -ldl -lm 


Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile.aperl for DBD::Oracle
make -f Makefile.aperl perl
Writing perlmain.c
cd . && gcc -c  -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE  -I/usr/local/include -fpcc-struct-return -O \
   -DVERSION=\"0.44\" \
-DXS_VERSION=\"0.44\" -I/usr/local/lib/perl5/sun4-solaris/5.003/CORE perlmain.c
cat ./blib/arch/auto/DBD/Oracle/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBI/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/DynaLoader/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/Fcntl/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/FileHandle/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/NDBM_File/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/ODBM_File/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/POSIX/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/SDBM_File/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/Safe/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
cat /usr/local/lib/perl5/sun4-solaris/5.003/auto/Socket/extralibs.ld >> blib/arch/auto/DBD/Oracle/extralibs.all
gcc -L/usr/local/lib -o perl -O ./perlmain.o /usr/local/lib/perl5/sun4-solaris/5.003/CORE/libperl.a /usr/local/lib/perl5/sun4-solaris/5.003/auto/Socket/Socket.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/Safe/Safe.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/SDBM_File/SDBM_File.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/POSIX/POSIX.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/ODBM_File/ODBM_File.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/NDBM_File/NDBM_File.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/FileHandle/FileHandle.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/Fcntl/Fcntl.a  /usr/local/lib/perl5/sun4-solaris/5.003/auto/DynaLoader/DynaLoader.a  /usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBI/DBI.a  ./blib/arch/auto/DBD/Oracle/Oracle.a `cat ./blib/arch/auto/DBD/Oracle/extralibs.all` -lsocket -lnsl -ldl -lm -lc -lcrypt
To install the new "perl" binary, call
    make -f Makefile.aperl inst_perl MAP_TARGET=perl
To remove the intermediate files say
    make -f Makefile.aperl map_clean




berlioz % make test
make -f Makefile.aperl perl
`perl' is up to date.
PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
All tests successful.
Files=1,  Tests=5,  0 secs ( 0.25 cusr  0.05 csys =  0.30 cpu)
PERL_DL_NONLAZY=1 ./perl -I./blib/arch -I./blib/lib -I/usr/local/lib/perl5/sun4-solaris/5.003 -I/usr/local/lib/perl5 test.pl
Identifier "main::opt_d" used only once: possible typo at test.pl line 21.
Oraperl test application $Revision: 1.29 $

Oraperl Emulation Interface version 1.31 
Oracle Driver 0.44
DBI-0.76 Switch by Tim Bunce, version 0.76


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger' (via ORACLE_USERID env var or default - recommend name/passwd@dbname)
(ORACLE_SID='nc', TWO_TASK='')
*** Error code 139
make: Fatal error: Command failed for target `test_static'
berlioz % 
script done on Wed Feb 19 16:53:33 1997


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <24061-0@oink>;
          Wed, 19 Feb 1997 19:25:20 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856379971:10:10638:1; Wed, 19 Feb 97 19:19:31 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1010512; 19 Feb 97 19:19 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id JAA12097 for dbi-users-real; Wed, 19 Feb 1997 09:52:08 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id JAA12093 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 09:52:02 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA03483;
          Wed, 19 Feb 1997 09:47:21 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id JAA05272;
          Wed, 19 Feb 1997 09:47:21 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id AAA04573; Wed, 19 Feb 1997 00:45:31 -0800
Message-Id: <199702190845.AAA04573@mole.dimensionx.com>
Subject: Re: DBD::mSQL Build problems
To: Joachim.Lous@nr.no (Joachim Lous)
Date: Wed, 19 Feb 1997 00:45:31 -0800 (PST)
Cc: dbi-users@fugue.com, descarte@hermetica.com
In-Reply-To: <Pine.SOL.3.95.970219150301.14029A-100000@betelgeuze> from "Joachim Lous" at Feb 19, 97 03:39:58 pm
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> 	> make test
> 	PERL_DL_NONLAZY=1 /nr/user/joachim/bin/perl -I./blib/arch -I./blib/lib
> 	-I/nr/user/joachim/apps/perl/lib/sun4-solaris/5.003
> 	-I/nr/user/joachim/apps/perl/lib test.pl
> 	install_driver(mSQL) failed: Can't load
> 	'./blib/arch/auto/DBD/mSQL/mSQL.so' for module DBD::mSQL: ld.so.1:
> 	/nr/user/joachim/bin/perl: fatal: relocation error: symbol not found:
> 	IS_PRI_KEY: referenced in ./blib/arch/auto/DBD/mSQL/mSQL.so at
> 	/nr/user/joachim/apps/perl/lib/DynaLoader.pm line 140.
> 	
> 	 at blib/lib/DBD/mSQL.pm line 18
> 	        DBI::install_driver called at test.pl line 22
> 	Testing: DBI->install_driver( 'mSQL' ): make: *** [test_dynamic] Error 2
> 
> I don't understand anything of this error message.  Does it have anything
> to do with the tildes or me editing the Makefile?  If so, how else can I 
> get around the initial problem? 
> If not, how can I get aound this one?

You can't. You're running mSQL version 2, which isn't supported in
0.60pl10.

> Joachim Lous                                                 

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25583-9@oink>;
          Thu, 20 Feb 1997 07:36:41 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856384639:10:11393:7; Wed, 19 Feb 97 20:37:19 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011257; 19 Feb 97 20:36 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id LAA12805 for dbi-users-real; Wed, 19 Feb 1997 11:33:16 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from bertha.ixlabs.com (root@bertha.ixlabs.com [208.201.250.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id LAA12799 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 11:33:14 -0800 (PST)
Received: from chris.ixlabs.com (chris.ixlabs.com [208.201.250.4]) 
          by bertha.ixlabs.com (8.8.5/8.8.4) with SMTP id LAA07193 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 11:33:16 -0800
Message-ID: <330B5422.2C1B@ixlabs.com>
Date: Wed, 19 Feb 1997 11:27:30 -0800
From: Chris Schoenfeld <chris@ixlabs.com>
Reply-To: chris@ixlabs.com
Organization: IX Development Labs
X-Mailer: Mozilla 3.0 (Win95; I)
MIME-Version: 1.0
To: dbi-users@fugue.com
Subject: Somewhat off-topic
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

We are thinking of moving from DB_File to relational database .pm's and
RDBMS's. Are RDBMS's faster than Berkeley DB, and do they take care of
their own locking internally? Take Msql (using the internal UNIX socket)
for example.


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <25583-13@oink>;
          Thu, 20 Feb 1997 07:37:05 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856386810:9:17691:13; Wed, 19 Feb 97 21:13:30 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa917397; 19 Feb 97 21:12 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id MAA13154 for dbi-users-real; Wed, 19 Feb 1997 12:01:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from ns.dimensionx.com (ns.dimensionx.com [198.68.165.11]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id MAA13149 
          for <dbi-users@fugue.com>; Wed, 19 Feb 1997 12:01:30 -0800 (PST)
From: descarte@dimensionx.com
Received: from server.dimensionx.com (server.dimensionx.com [198.68.166.10]) 
          by ns.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA04950;
          Wed, 19 Feb 1997 11:56:24 -0800 (PST)
Received: from mole.dimensionx.com (mole.dimensionx.com [198.68.166.140]) 
          by server.dimensionx.com (8.8.4/8.8.4) with ESMTP id LAA09913;
          Wed, 19 Feb 1997 11:56:23 -0800 (PST)
Received: (from descarte@localhost) by mole.dimensionx.com (8.7.3/8.7.3) 
          id CAA00772; Wed, 19 Feb 1997 02:54:31 -0800
Message-Id: <199702191054.CAA00772@mole.dimensionx.com>
Subject: Re: Somewhat off-topic
To: chris@ixlabs.com
Date: Wed, 19 Feb 1997 02:54:31 -0800 (PST)
Cc: dbi-users@fugue.com
In-Reply-To: <330B5422.2C1B@ixlabs.com> from "Chris Schoenfeld" at Feb 19, 97 11:27:30 am
X-Pants: $$$ Satan's Infinite Gold Lame HotPants! Only $99 dollars! $$$
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

> We are thinking of moving from DB_File to relational database .pm's and
> RDBMS's. Are RDBMS's faster than Berkeley DB, and do they take care of
> their own locking internally? Take Msql (using the internal UNIX socket)
> for example.

Probably not, since RDBMS generally do more per transaction.

However, they do allow more complex data structures, which is always a
bonus.

``Heavy-duty'' RDBMS such as Oracle or Informix implement complex locking
procedures on transactions, whereas mSQL does not. mSQL operates on a
transactional queue basis, rather than simultaneous transactions. However,
there is a multi-threaded mSQL called mySQL which you could try out.

A.

-- 
Alligator Descartes       |
descarte@dimensionx.com   |   "Vinegar's wee, but he's gemme!" -- Bud Neill
http://www.hermetica.com  |


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28498-4@oink>;
          Thu, 20 Feb 1997 14:45:01 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856443583:10:10925:3; Thu, 20 Feb 97 12:59:43 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa924901; 20 Feb 97 12:59 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA24308 for dbi-users-real; Thu, 20 Feb 1997 03:59:38 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate (mailgate.badg.com [208.197.111.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id DAA24304 
          for <dbi-users@fugue.com>; Thu, 20 Feb 1997 03:59:34 -0800 (PST)
Received: from relay.badg.com by mailgate (5.x/SMI-SVR4) id AA04240;
          Thu, 20 Feb 1997 06:59:33 -0500
Received: from omega.badg.com by relay.badg.com 
          via smtpd (for po.badg.com [208.197.111.4]) with SMTP;
          20 Feb 1997 11:44:27 UT
Received: from syoung.badg.com by omega (SMI-8.6/SMI-SVR4) id HAA08771;
          Thu, 20 Feb 1997 07:06:41 -0500
Message-Id: <3.0.32.19970220065801.006c4c04@omega.badg.com>
X-Sender: syoung@omega.badg.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Thu, 20 Feb 1997 06:58:07 -0500
To: dbi-users@fugue.com
From: "Shawn K. Young" <syoung@badg.com>
Subject: Re: Bad free warnings
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

scott,
i used to receive this message when i ran dbd::oracle programs. my system
config is:
	hpux 10.2
	perl 5.003
	Oracle 7.3.2
	Oracle Driver 0.44
	DBI-0.74
	hp c compiler
after numerous attempts to find the source of the problem, out of pure
luck, i realized that when i said no to the "use malloc that comes with
perl option" you get when you compile perl, my bad free messages went away.
i don't know why this works but, i have been using dbi/dbd oracle with no
problems since.

hope this helps

sky

>At 10:15 AM 2/19/97 -0500, Scott Weinstein wrote:
>>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>>
>>>m getting the following error on exit from Oraperl programs.
>>>
>>>Bad free() ignored during global destruction.
>>>
>>>Here are the stats of my setup. Let me know if I missed any info you may
>>>need
>>>
>>>C compiler is 
>>>
>>>/opt/SUNWspro/bin/cc -V
>>>cc: SC4.0 18 Oct 1995 C 4.0
>>>
>>>Oracle 7.3.2
>>>
>>>Oraperl Emulation Interface version 1.31 
>>>Oracle Driver 0.43
>>>DBI-0.73 Switch by Tim Bunce, version 0.73
>>>
>>>perl -V 
>>>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>>>  Platform:
>>>    osname=solaris, osver=2.4, archname=sun4-solaris
>>>    uname='sunos pinnacle 5.4 generic_101945-32 sun4d sparc '
>>>    hint=recommended, useposix=true, d_sigaction=define
>>>  Compiler:
>>>    cc='cc', optimize='-O', gccversion=
>>>    cppflags=''
>>>    ccflags =''
>>>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>>>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>>>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>>>  Linker and Libraries:
>>>    ld='cc', ldflags =''
>>>    libpth=/lib /usr/lib /usr/ccs/lib
>>>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>>>    libc=/lib/libc.so, so=so
>>>  Dynamic Linking:
>>>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>>>    cccdlflags='-Kpic', lddlflags='-G'
>>>
>>>@INC: /opt2/local/lib/perl5/sun4-solaris/5.003 /opt2/local/lib/perl5
>>>/opt2/local/lib/perl5/site_perl/sun4-solaris
>>>/opt2/local/lib/perl5/site_perl .
>>>
>>>Here is a stack trace 
>>>o...done.
>>>Reading symbols from
>>>/opt2/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Oracle/Oracle.so..
>>>.done.
>>>Reading symbols from
>>>/sc01/app/oracle/product/7.3.2/lib//libclntsh.so.1.0...
>>>done.
>>>Reading symbols from /usr/lib/libm.so.1...done.
>>>Reading symbols from /usr/lib/nss_files.so.1...done.
>>>#0  0xdf6a18e0 in kill ()
>>>(gdb) bt
>>>#0  0xdf6a18e0 in kill ()
>>>#1  0x716dc in Perl_pp_goto ()
>>>#2  0x4dbf0 in Perl_runops ()
>>>#3  0x1f130 in perl_call_sv ()
>>>#4  0x47634 in Perl_warn ()
>>>#5  0xdf4dd1bc in epcpro_delete ()
>>>#6  0xdf4d78a0 in epc_exit_handler ()
>>>#7  0xdf653a2c in _exithandle ()
>>>(gdb) 
>>>
>>>from the following program
>>>
>>>#!/usr/local/bin/perl  -w
>>>use Oraperl;
>>>my $lda = ora_login('scc9','pinnacle','pinnacle');
>>>ora_version();
>>>$SIG{__WARN__} = sub { 
>>>  $_[0] =~ /^Bad free/ ? dump : warn $_[0]; 
>>>}
>>>
>>Thanks for any help
>>--Scott Weinstein
>>>
>>
>>
>>--------------------------------------------------------------------------
----
>>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>>If you are without web access, or if you are having trouble with the web
page,
>>please send mail to dbi-request@fugue.com.   Please try to use the web
>>page first - it will take a long time for your request to be processed by
hand.
>>--------------------------------------------------------------------------
----
>>
>>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28498-6@oink>;
          Thu, 20 Feb 1997 14:45:13 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856443664:10:11478:5; Thu, 20 Feb 97 13:01:04 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1011223; 20 Feb 97 13:00 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id DAA24282 for dbi-users-real; Thu, 20 Feb 1997 03:57:32 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mailgate (mailgate.badg.com [208.197.111.4]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id DAA24277 
          for <dbi-users@fugue.com>; Thu, 20 Feb 1997 03:57:29 -0800 (PST)
Received: from relay.badg.com by mailgate (5.x/SMI-SVR4) id AA04237;
          Thu, 20 Feb 1997 06:57:27 -0500
Received: from omega.badg.com by relay.badg.com 
          via smtpd (for po.badg.com [208.197.111.4]) with SMTP;
          20 Feb 1997 11:42:21 UT
Received: from syoung.badg.com by omega (SMI-8.6/SMI-SVR4) id HAA08763;
          Thu, 20 Feb 1997 07:04:35 -0500
Message-Id: <3.0.32.19970220065554.006c4c18@omega.badg.com>
X-Sender: syoung@omega.badg.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Thu, 20 Feb 1997 06:56:02 -0500
To: Scott Weinstein <swein@sapient.com>, 
    "'dbi-users@fugue.com'" <dbi-users@fugue.com>
From: "Shawn K. Young" <syoung@badg.com>
Subject: Re: Bad free warnings
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

scott,
i used to receive this message when i ran dbd::oracle programs. my system
config is:
	hpux 10.2
	perl 5.003
	Oracle 7.3.2
	Oracle Driver 0.44
	DBI-0.74
	hp c compiler
after numerous attempts to find the source of the problem, out of pure
luck, i realized that when i said no to the "use malloc that comes with
perl option" you get when you compile perl, my bad free messages went away.
i don't know why this works but, i have been using dbi/dbd oracle with no
problems since.

hope this helps

sky

At 10:15 AM 2/19/97 -0500, Scott Weinstein wrote:
>    *** From dbi-users -- To unsubscribe, see the end of this message. ***
>
>>m getting the following error on exit from Oraperl programs.
>>
>>Bad free() ignored during global destruction.
>>
>>Here are the stats of my setup. Let me know if I missed any info you may
>>need
>>
>>C compiler is 
>>
>>/opt/SUNWspro/bin/cc -V
>>cc: SC4.0 18 Oct 1995 C 4.0
>>
>>Oracle 7.3.2
>>
>>Oraperl Emulation Interface version 1.31 
>>Oracle Driver 0.43
>>DBI-0.73 Switch by Tim Bunce, version 0.73
>>
>>perl -V 
>>Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
>>  Platform:
>>    osname=solaris, osver=2.4, archname=sun4-solaris
>>    uname='sunos pinnacle 5.4 generic_101945-32 sun4d sparc '
>>    hint=recommended, useposix=true, d_sigaction=define
>>  Compiler:
>>    cc='cc', optimize='-O', gccversion=
>>    cppflags=''
>>    ccflags =''
>>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>>    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
>>    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
>>  Linker and Libraries:
>>    ld='cc', ldflags =''
>>    libpth=/lib /usr/lib /usr/ccs/lib
>>    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
>>    libc=/lib/libc.so, so=so
>>  Dynamic Linking:
>>    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
>>    cccdlflags='-Kpic', lddlflags='-G'
>>
>>@INC: /opt2/local/lib/perl5/sun4-solaris/5.003 /opt2/local/lib/perl5
>>/opt2/local/lib/perl5/site_perl/sun4-solaris
>>/opt2/local/lib/perl5/site_perl .
>>
>>Here is a stack trace 
>>o...done.
>>Reading symbols from
>>/opt2/local/lib/perl5/site_perl/sun4-solaris/auto/DBD/Oracle/Oracle.so..
>>.done.
>>Reading symbols from
>>/sc01/app/oracle/product/7.3.2/lib//libclntsh.so.1.0...
>>done.
>>Reading symbols from /usr/lib/libm.so.1...done.
>>Reading symbols from /usr/lib/nss_files.so.1...done.
>>#0  0xdf6a18e0 in kill ()
>>(gdb) bt
>>#0  0xdf6a18e0 in kill ()
>>#1  0x716dc in Perl_pp_goto ()
>>#2  0x4dbf0 in Perl_runops ()
>>#3  0x1f130 in perl_call_sv ()
>>#4  0x47634 in Perl_warn ()
>>#5  0xdf4dd1bc in epcpro_delete ()
>>#6  0xdf4d78a0 in epc_exit_handler ()
>>#7  0xdf653a2c in _exithandle ()
>>(gdb) 
>>
>>from the following program
>>
>>#!/usr/local/bin/perl  -w
>>use Oraperl;
>>my $lda = ora_login('scc9','pinnacle','pinnacle');
>>ora_version();
>>$SIG{__WARN__} = sub { 
>>  $_[0] =~ /^Bad free/ ? dump : warn $_[0]; 
>>}
>>
>Thanks for any help
>--Scott Weinstein
>>
>
>
>---------------------------------------------------------------------------
---
>To unsubscribe from this list, please visit http://www.fugue.com/dbi.
>If you are without web access, or if you are having trouble with the web
page,
>please send mail to dbi-request@fugue.com.   Please try to use the web
>page first - it will take a long time for your request to be processed by
hand.
>---------------------------------------------------------------------------
---
>
>


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28498-8@oink>;
          Thu, 20 Feb 1997 14:45:23 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856444278:10:15779:1; Thu, 20 Feb 97 13:11:18 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-9.mail.demon.net 
          id aa929669; 20 Feb 97 13:10 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA24533 for dbi-users-real; Thu, 20 Feb 1997 04:19:20 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from Norway.EU.net (nic.eunet.no [193.71.1.1]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id EAA24528 
          for <dbi-users@fugue.com>; Thu, 20 Feb 1997 04:19:14 -0800 (PST)
Received: by Norway.EU.net with UUCP id AA12604 (5.65c/IDA-1.4.4/EUnet/NO 
          for dbi-users@fugue.com); Thu, 20 Feb 1997 13:19:06 +0100
Received: from tglobe1.tollpost.no (tglobe1.tollpost.no [192.108.100.15]) 
          by tgnews.tollpost.no (8.6.11/8.6.11) with SMTP id MAA16888 
          for <dbi-users@fugue.com>; Thu, 20 Feb 1997 12:52:05 +0100
Message-Id: <199702201152.MAA16888@tgnews.tollpost.no>
Received: by tglobe1.tollpost.no (1.38.193.5/16.2) id AA23894;
          Thu, 20 Feb 1997 12:57:29 +0100
From: Oyvind Gjerstad <ogj@tglobe1.tollpost.no>
Subject: cursors WITH HOLD in DBD-Informix 0.50
To: dbi-users@fugue.com
Date: Thu, 20 Feb 97 12:57:28 MET
Reply-To: ogj@pro.tollpost.no
Organization: Tollpost-Globe AS, Systems dept.
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Mailer: Elm [revision: 70.85.2.1]
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by toccata.fugue.com id 
                      EAA24533

    *** From dbi-users -- To unsubscribe, see the end of this message. **=
*

As I understand it, cursors WITH HOLD are not available in DBD-Informix
for databases that are not in MODE ANSI.

Is this correct?

And (of course) the obvious question: is this going to be resolved?
--
=D8yvind Gjerstad    Systems dept Tollpost-Globe AS    N-6301 =C5ndalsnes=
/Norway=20
E-mail: ogj@it.tollpost.no     Phone: +47 7122 6663       Fax: +47 7122 6=
694


-------------------------------------------------------------------------=
-----
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web =
page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by=
 hand.
-------------------------------------------------------------------------=
-----
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <28498-14@oink>;
          Thu, 20 Feb 1997 14:46:58 +0000
Received: from relay-9.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856447306:9:20048:75; Thu, 20 Feb 97 14:01:46 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1004884; 20 Feb 97 14:01 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id EAA24825 for dbi-users-real; Thu, 20 Feb 1997 04:43:51 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from mail.tripnet.se (root@argus.tripnet.se [195.100.18.7]) 
          by toccata.fugue.com (8.8.4/8.6.11) with ESMTP id EAA24820 
          for <dbi-users@fugue.com>; Thu, 20 Feb 1997 04:43:47 -0800 (PST)
Received: from mail.cultcom.se (voodoo.cultcom.se [195.100.20.130]) 
          by mail.tripnet.se (8.8.5/2.0-jb) with SMTP id NAA23501;
          Thu, 20 Feb 1997 13:38:36 +0100 (MET)
Received: from voodoo by mail.cultcom.se via SMTP (940816.SGI.8.6.9/940406.SGI) 
          id NAA01814; Thu, 20 Feb 1997 13:52:47 -0800
Message-ID: <330CC7AE.41C6@cultcom.se>
Date: Thu, 20 Feb 1997 13:52:46 -0800
From: Jonas Liljegren <jonas@cultcom.se>
Organization: CultCom
X-Mailer: Mozilla 3.01 (X11; I; IRIX 5.3 IP22)
MIME-Version: 1.0
To: DBI User List <dbi-users@fugue.com>
CC: Tim.Bunce@ig.co.uk
Subject: Compiling DBI: undefined reference to `pow'
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Why can't I compile DBI?

Both perl, DBI, DBD:Oracle, etc compiled and run without problem on a
SGI Irix machine. But then I tied to do the same on a new Solaris I kept
getting problems (missing libraries i think..). Now I have given up and
installed a precompiled version. But now I can't compile DBI. Transcript
follows.

MakeMaker (v5.34)
Checking if your kit is complete...
Looks good
        DEFINE => q[-Wall -Wno-comment]
        NAME => q[DBI]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile for DBI
totem:root:[/usr/local/src/ext_perl/DBI-0.76]>make
cp DBIXS.h ./blib/arch/DBI/DBIXS.h
cp DBI.pm ./blib/lib/DBI.pm
cp lib/DBD/NullP.pm ./blib/lib/DBD/NullP.pm
cp lib/DBD/Sponge.pm ./blib/lib/DBD/Sponge.pm
cp lib/DBD/ExampleP.pm ./blib/lib/DBD/ExampleP.pm
/usr/bin/perl -I/opt/GNUperl5/lib/sun4-solaris/5.003 -I/opt/GNUperl5/lib
/opt/GNUperl5/lib/ExtUtils/xsubpp  -typemap
/opt/GNUperl5/lib/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c
gcc -c   -O     -DVERSION=\"0.76\"  -DXS_VERSION=\"0.76\" 
-I/opt/GNUperl5/lib/sun4-solaris/5.003/CORE -Wall -Wno-comment DBI.c
DBI.c: In function `dbih_setup_handle':
DBI.c:360: warning: value computed is not used
DBI.c:373: warning: value computed is not used
DBI.c:379: warning: value computed is not used
DBI.c:380: warning: value computed is not used
DBI.c:381: warning: value computed is not used
DBI.c:382: warning: value computed is not used
DBI.c: In function `dbih_sth_bind_col':
DBI.c:574: warning: value computed is not used
DBI.c: In function `dbih_set_attr':
DBI.c:627: warning: value computed is not used
DBI.c: In function `dbih_get_attr':
DBI.c:664: warning: value computed is not used
DBI.c: In function `XS_DBI_dispatch':
DBI.c:886: warning: value computed is not used
DBI.c:886: warning: value computed is not used
DBI.c: In function `XS_DBI__debug_dispatch':
DBI.c:1195: warning: implicit declaration of function `setlinebuf'
rm -rf blib/arch/auto/DBI/DBI.a
ar cr blib/arch/auto/DBI/DBI.a DBI.o && : blib/arch/auto/DBI/DBI.a
chmod 755 blib/arch/auto/DBI/DBI.a
totem:root:[/usr/local/src/ext_perl/DBI-0.76]>make test TEST_VERBOSE=1
Writing "Makefile.aperl" for this perl

    Remember to actually *read* the README file!

    Build, TEST and INSTALL Perl 5 first. Use version 5.002beta2 or
later.

    DO NOT build the DBI under the Perl source tree.

    Use 'make test' to execute self tests.

    Install DBI (using 'make install' before building DBD::* drivers.

MakeMaker (v5.34)
        CCCDLFLAGS => q[]
        DEFINE => q[-Wall -Wno-comment]
        DIR => []
        LINKTYPE => q[static]
        MAKEAPERL => q[1]
        MAKEFILE => q[Makefile.aperl]
        NAME => q[DBI]
        NORECURS => q[1]
        PREREQ_PM => {  }
        VERSION_FROM => q[DBI.pm]
        clean => { FILES=>q[$(DISTVNAME)/] }
        dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f Makefile.old distdir] }
Using PERL=/usr/bin/perl

WARNING! By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you MUST delete old DBI files and directories from your
'privlib' and 'archlib' directories and their auto subdirectories.

Writing Makefile.aperl for DBI
make -f Makefile.aperl perl
Writing perlmain.c
cd . && gcc -c  -I/opt/GNUperl5/lib/sun4-solaris/5.003/CORE   -O \
   -DVERSION=\"0.76\" \
-DXS_VERSION=\"0.76\" -I/opt/GNUperl5/lib/sun4-solaris/5.003/CORE
perlmain.c
cat ./blib/arch/auto/DBI/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/DynaLoader/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/Fcntl/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/FileHandle/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/NDBM_File/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/SDBM_File/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
cat /opt/GNUperl5/lib/sun4-solaris/5.003/auto/Safe/extralibs.ld >>
blib/arch/auto/DBI/extralibs.all
gcc -o perl -O ./perlmain.o
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Safe/Safe.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/SDBM_File/SDBM_File.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/NDBM_File/NDBM_File.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/FileHandle/FileHandle.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/Fcntl/Fcntl.a 
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/DynaLoader/DynaLoader.a 
./blib/arch/auto/DBI/DBI.a `cat ./blib/arch/auto/DBI/extralibs.all` 
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_pow':
pp.o(.text+0x1ad8): undefined reference to `pow'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_atan2':
pp.o(.text+0x55d8): undefined reference to `atan2'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_sin':
pp.o(.text+0x5714): undefined reference to `sin'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_cos':
pp.o(.text+0x5888): undefined reference to `cos'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_exp':
pp.o(.text+0x5c38): undefined reference to `exp'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_log':
pp.o(.text+0x5de4): undefined reference to `log'
/opt/GNUperl5/lib/sun4-solaris/5.003/CORE/libperl.a(pp.o): In function
`Perl_pp_sqrt':
pp.o(.text+0x5fa0): undefined reference to `sqrt'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_acos':
POSIX.o(.text+0x6728): undefined reference to `acos'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_asin':
POSIX.o(.text+0x6808): undefined reference to `asin'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_atan':
POSIX.o(.text+0x68e8): undefined reference to `atan'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_ceil':
POSIX.o(.text+0x69c8): undefined reference to `ceil'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_cosh':
POSIX.o(.text+0x6aa8): undefined reference to `cosh'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_floor':
POSIX.o(.text+0x6b88): undefined reference to `floor'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_fmod':
POSIX.o(.text+0x6cbc): undefined reference to `fmod'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_log10':
POSIX.o(.text+0x6fbc): undefined reference to `log10'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_sinh':
POSIX.o(.text+0x7184): undefined reference to `sinh'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_tan':
POSIX.o(.text+0x7264): undefined reference to `tan'
/opt/GNUperl5/lib/sun4-solaris/5.003/auto/POSIX/POSIX.a(POSIX.o): In
function `XS_POSIX_tanh':
POSIX.o(.text+0x7344): undefined reference to `tanh'
*** Error code 1
make: Fatal error: Command failed for target `perl'
Current working directory /usr/local/src/ext_perl/DBI-0.76
*** Error code 1
make: Fatal error: Command failed for target `perl'




-- 
 / Jonas Liljegren
http://w3.adb.gu.se/~a95jonas/welcome.html
Geek Code 3.1 GIT/P/Od-s+:-a24C++US++P++LEW++N++
o?K?w!oM!VPSPE-Y--PGP-t+5X++R@tv+b+!DID++Geh!!r!y+


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
Received: from punt.demon.co.uk by oink with SMTP (PP) id <05467-11@oink>;
          Fri, 21 Feb 1997 12:33:37 +0000
Received: from relay-10.mail.demon.net by mailstore for dbperl@ig.co.uk 
          id 856525715:10:19261:18; Fri, 21 Feb 97 11:48:35 GMT
Received: from toccata.fugue.com ([192.5.5.210]) by relay-10.mail.demon.net 
          id aa1019354; 21 Feb 97 11:48 GMT
Received: (from daemon@localhost) by toccata.fugue.com (8.8.4/8.6.11) 
          id CAA11009 for dbi-users-real; Fri, 21 Feb 1997 02:26:53 -0800 (PST)
Precedence: junk
Sender: owner-dbi-users@fugue.com
Received: from singtel.stems.com (singtel.stems.com [165.21.30.40]) 
          by toccata.fugue.com (8.8.4/8.6.11) with SMTP id CAA11005 
          for <dbi-users@fugue.com>; Fri, 21 Feb 1997 02:26:48 -0800 (PST)
From: SANKARA.GANESAN@dbsprho.stems.com
Received: (from m400@localhost) by singtel.stems.com (8.6.12/8.6.12) 
          id SAA12155 for dbi-users@fugue.com; Fri, 21 Feb 1997 18:28:40 +0800
Date: 21 Feb 97 18:27 GMT+0800
X400-Trace: SG*STEMS*DEUTSCHE-BANK; Arrival 21 Feb 97 18:27 GMT+0800 Action: 
            Relayed
X400-Trace: sg*stems*; Arrival 21 Feb 97 18:27 GMT+0800 Action: Relayed
Priority: normal
UA-Content-ID: P1-Message-ID: SG*STEMS*DEUTSCHE-BANK;0038400001017219000002
Original-Encoded-Information-Types: UndefinedIA5-Text
To: dbi-users@fugue.com
Message-ID: <0038400001017219000002*@stems.com>

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Hi,
I am trying to make DBD::Oracle for AIX 4.1

Oracle versiion : 7.3
perl 5.003
*Oracle 7.3.2
*DBD Oracle 0.44
*DBI-0.76
AIX c compiler

Whenever make test runs, it dumps core on login to oracle.
gdb stack trace is:

#0  0xd04b46ec in reset_pthread_kill ()
#1  0xd04b57a0 in sigaction ()
#2  0xd04d680c in signal ()
#3  0xd0bca560 in osnsui ()
#4  0xd0bc8050 in osntns1 ()
#5  0xd0b59e20 in osncon ()
#6  0xd0a9687c in upiini ()
#7  0xd0aadb48 in upiah0 ()
#8  0xd0bd0930 in upilgn ()
#9  0xd0bd0454 in upilon ()
#10 0xd0a75344 in ocirlo ()
#11 0x10097710 in dbd_db_login (dbh=0x200e3170, dbname=0x2002cb58 "",
    Perl_uid=0x2002cc18 "sag/sag", pwd=0x2003a438 "") at dbdimp.c:185
#12 0x10093704 in XS_DBD__Oracle__db__login (cv=0x200e6f40) at Oracle.c:78
#13 0x1004df74 in Perl_pp_entersub ()
#14 0x1002cfac in Perl_runops ()
#15 0x1001a920 in perl_call_sv ()
#16 0x100038ec in XS_DBI_dispatch ()
#17 0x1004df74 in Perl_pp_entersub ()
#18 0x1002cfac in Perl_runops ()
#19 0x10018e98 in perl_run ()
#20 0x100003f8 in main ()
#21 0x100001f4 in __start ()

perl -V trace:

perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=aix, osver=4.1.4.0, archname=aix
    uname='aix h780057 1 4 00ffffff4c00 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/us
r/local/include -D_NO_PROTO'
    ccflags ='-qmaxmem=8192 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -I/us
r/local/include -D_NO_PROTO'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=1, d_casti32=define, d_castneg=
    intsize=4, alignbytes=8, usemymalloc=n, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lld -lm -lc -lbsd -lPW
    libc=/usr/lib/libc.a, so=so
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=, ccdlflags=''
    cccdlflags='', lddlflags=''


I have tried both static and dynamic loading... both have the same problem....

Can anynone help me...
Thanks,
ganesan(sankara.ganesan@dbsprho.stems.com)


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi.
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------
---+++---
