Received: from punt.demon.co.uk by oink with SMTP (PP) id <16181-2@oink>; Tue, 2 Jan 1996 22:08:12 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820603767:25703:0; Tue, 02 Jan 96 17:29:27 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa25054; 2 Jan 96 17:28 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA00250 for dbi-users-real; Tue, 2 Jan 1996 08:42:34 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from netnet1.netnet.net (netnet1.netnet.net [198.70.64.2]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA00218 for ; Tue, 2 Jan 1996 08:42:31 -0800 Received: (from mouring@localhost) by netnet1.netnet.net (8.6.9/8.6.9) id JAA13361; Tue, 2 Jan 1996 09:25:21 -0600 Date: Tue, 2 Jan 1996 09:25:21 -0600 (CST) From: Ben Lindstrom To: Dan DeMaggio cc: dbi-users@fugue.com Subject: Re: (no subject) In-Reply-To: <30E6EFF2.7237@umich.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 31 Dec 1995, Dan DeMaggio wrote: > I have been doing some thinking about the DBI spec and ODBC. I think it > needs to 'refocus' for lack of a better term. Here's why: > [Delete reasons to dump ODBC] > --------------------------------- Architecture: > I propose an object-oriented approach. Imagine the following objects: > - Database objects (allows login, etc) > - Table objects (created by queries or pre-existing) > - Field objects (contain data, but also have 'metadata' properties) > > To quote Larry: "Easy things should be easy. Hard things should be > possible." Therefore, the first program will be simple: > > $d = new DBI::Oracle::Database "DSN=database;UID=dmag;PWD=none;"; > $t = $d->query("select count(*) from table"); > print $t->field(0)->value; > Umm...Sorry, I'm a novice (AT BEST) perl hacker..And the above statement looks like JUNK. =) It breaks the first rule of programming (Well, so does C but it works.=)..."Read Ability" [Delete other examples] > ---------------------------------- Dan's DBI Commandments: > The DBI base package should: > > - Be a package 100% entirely written in Perl only. Did I mention that this > would not involve using C code in any way whatsoever? > Umm..Not posiable in some cases. When you do this preformance goes through the floor. In a program that my company is working on we have to sort massive amount of data via perl loops (since we are dumping a set of user define scripts from a 'pretty' NeXT interface). If we wrote everything in Perl via TCP/IP sockets...Well..It would be SLOW. =) > - Probably be the base class for all Drivers. (like TIEHASH) > > - Define constants and provide stubs for missing functionality. > > - Contain default implementations of some methods that can be decomposed > into more basic functions. Of course, this behavior can be over-ridden in > the individual driver modules. > > - Should let the autoloader load the drivers (via 'use'). > > - May assist the user in dynamically discovering the drivers at run-time. > Question: Can I find out what implementations of TIEHASH are installed on my > computer?? > > - Provide simple and understandable functionality. Preformance is secondary. > > > The DBI base package should _not_: > > - Include any C whatsoever. One could write a driver that connects to a database > using TCP/IP and sends textual SQL queries. Thus, everything on the client > would be 100% written in perl. > As above if your on a machine and your doing Queries to that machine and preformance is a bit of an issue..Then it's crazy to use TCP/IP vs direct database calls. > - Specify the format of ANY 'C' functions or structures. > > - Be the central switch to dispatch calls to the drivers. > > - Hold data or know ANYTHING about which handles are assigned to which > drivers, or what statements are assigned to which handles. See below. > > > Each DBI::Driver should: > > - Be completely object oriented. In fact, it should probably inherit from DBI. > (i.e. "@ISA = ('DBI')" > > - Override (provide implementations for) some or all DBI methods. > > - Keep track of all open connections and handles. > > - Be the only code that knows or cares what functions are in the native > (i.e. machiene specific) C library. > > - Be the only one to know about C structures. [i.e. C structs should not be > part of the DBI API] > > - Pay me millions of dollars in royalties. Ok, maybe not. > Heheh..cute. > - store connection handle information anywhere it wants (i.e. > $self->{'handle'} might be a good place. But then again, maybe it's in > $self->{'connection'}. Only the driver writer knows or cares. > > - Only return object refrences and user data (i.e. no actual statement handles > floating around the main program). > > ---------------------------------- Conclusion: > > Maybe the above is just a polite way of saying "let's throw away the current > DBI spec." Or maybe I'm talking about a front-end to DBI. Or maybe what I'm > talking about isn't what you are talking about. Discussion? > I see what you are proposing, but I don't think it's very wise. I know there are some smaller Public Domain/GNU databases that lack any real TCP/IP abilities, but are small enough and fast enough to do what people want. =) > P.S.: I'm sending this to dbi-users because, well, I think it makes DBI easier to > use. I hope all the developers are on this list. (if not, they can e-mail me ;) > Luck for you there is at least one DBI programmer, but I refuse to admit what driver I am/was/will-be working on. =) ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <17565-5@oink>; Tue, 2 Jan 1996 23:02:43 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 820623196:15128:0; Tue, 02 Jan 96 22:53:16 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa14499; 2 Jan 96 22:52 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA01221 for dbi-users-real; Tue, 2 Jan 1996 14:15:31 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA01217 for ; Tue, 2 Jan 1996 14:15:15 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ad06334; 2 Jan 96 22:09 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ab01764; 2 Jan 96 22:07 GMT Received: from toad by oink with SMTP (PP) id <15895-0@oink>; Tue, 2 Jan 1996 19:38:27 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA05424; Tue, 2 Jan 1996 19:38:00 +0000 Date: Tue, 2 Jan 1996 19:38:00 +0000 From: Tim Bunce Message-Id: <9601021938.AA05424@toad.ig.co.uk> To: dbi-users@fugue.com, dmag@umich.edu Subject: Re: (no subject) [Subject lines seem to be getting optional these days, sigh - Tim] X-Sun-Charset: US-ASCII content-length: 3184 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Dan DeMaggio > > I have been doing some thinking about the DBI spec and ODBC. I think it > needs to 'refocus' for lack of a better term. Here's why: > > 1) ODBC will/has become the cross-platform database interface standard > (there are MANY companies shipping Mac and Unix ODBC drivers). Therefore, > DBI should _not_ try to compete with it. I think I wrote a big message recently ("New directions for DBI") that said just that. Did you see that message? > 2) Programatically, ODBC stinks. It's not an elegant standard. It has 56 > Functions, some of wich have 20 or 30 sub-functions. It makes you think in > terms of statement handles. What do statement handles (as a concept) have > to do with databases? Nothing! s/statement handles/cursors/; s/Nothing/Lots/; > Therefore, what we need is an Elegant and Logical way to get to databases, > *NOT* another 'standard'. Once we design this nice interface, THEN we write > the 'back-end' code to implement this interface for all kinds of datbases > (including ODBC, Oracle, mSQL, etc.) *NOT* another 'standard'? Okay. > --------------------------------- Architecture: > I propose an object-oriented approach. Imagine the following objects: > - Database objects (allows login, etc) > - Table objects (created by queries or pre-existing) > - Field objects (contain data, but also have 'metadata' properties) Umm, looks like another standard to me! You seem to be addressing high-level concepts here. I'd be *very* happy for you to, for example, reimplement the Rogue Wave db++ class library in perl. Seriously, *that* would be a *very* useful project. Note that one of the reasons the DBI has taken so long is that it has been trying to define a new standard. Sure, parse/execute/fetch is easy but once you've done that it gets much harder to create a _good_ standard (neatly demonstrated by ODBC itself :-). It'll be *much* easier to piggy-back the low-level code onto ODBC and then concentrate on defining an easy to use library on top - and that's the plan. > ---------------------------------- Dan's DBI Commandments: > The DBI base package should: > [...] Umm. ------------------------------------ Tim's DBI Commandments: The new DBI will: - Implement a very thin and very fast interface to ODBC functions. - Support all ODBC functionality (if you can do it in C you can do it in Perl). - Simplify API calls by deleting redundant parameters such as string length. A small set of calling convention simplifications will be consistently applied across the API. - Implement handles as objects. - Be supplied with a library of high-level methods to simplify common database coding idioms. For example: $sth = $dbh->prepare("..."); $sth->execute; while(@row = $sth->fetch) { ... } (I have already said that I think the ODBC API ugly and verbose.) The library will be as compatible as possible with existing DBI code. If you didn't see my "New directions for DBI" message let me know and I'll send you a copy. Work commitments will keep me away from this work for a couple more weeks. Then sparks will fly (famous last words :-). Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <22053-17@oink>; Wed, 3 Jan 1996 11:41:43 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820660702:22792:2; Wed, 03 Jan 96 09:18:22 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa22714; 3 Jan 96 9:18 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id AAA02132 for dbi-users-real; Wed, 3 Jan 1996 00:47:13 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from netcomsv.netcom.com (uucp1-b.netcom.com [163.179.3.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id AAA02128 for ; Wed, 3 Jan 1996 00:47:13 -0800 Received: from palms.ccomp.com by netcomsv.netcom.com with SMTP (8.6.12/SMI-4.1) id AAA22391; Wed, 3 Jan 1996 00:44:27 -0800 Received: by palms.ccomp.com (5.0/SMI-SVR4) id AA17173; Wed, 3 Jan 1996 00:49:58 +0800 Date: Wed, 3 Jan 1996 00:49:58 +0800 From: rick@ccomp.com (Rick Clark) Message-Id: <9601030849.AA17173@palms.ccomp.com> To: dbi-users@fugue.com Subject: oraperl and ingperl questions X-Sun-Charset: US-ASCII content-length: 227 Can someone please tell me: Are oraperl and ingperl for Perl 4 are solid enough for production use? What are the latest versions of Oracle and Ingres compatible with the above? Thanks, Richard Clark rick@ccomp.com ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <25388-0@oink>; Wed, 3 Jan 1996 18:02:35 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691308:13463:0; Wed, 03 Jan 96 17:48:28 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa13271; 3 Jan 96 17:48 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00202 for dbi-users-real; Wed, 3 Jan 1996 09:03:04 -0800 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.6.12/8.6.11) with ESMTP id JAA00198 for ; Wed, 3 Jan 1996 09:03:04 -0800 Received: by gw.home.vix.com id AA18001; Wed, 3 Jan 96 08:38:14 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15123; Wed, 3 Jan 1996 08:32:45 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25432-2@oink>; Wed, 3 Jan 1996 18:04:00 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691126:20628:2; Wed, 03 Jan 96 17:45:26 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa20273; 3 Jan 96 17:44 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00196 for dbi-users-real; Wed, 3 Jan 1996 09:03:03 -0800 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.6.12/8.6.11) with ESMTP id JAA00192 for ; Wed, 3 Jan 1996 09:03:02 -0800 Received: by gw.home.vix.com id AA17995; Wed, 3 Jan 96 08:38:13 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15121; Wed, 3 Jan 1996 08:32:35 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25432-4@oink>; Wed, 3 Jan 1996 18:04:07 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691128:20623:3; Wed, 03 Jan 96 17:45:28 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa20355; 3 Jan 96 17:44 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00214 for dbi-users-real; Wed, 3 Jan 1996 09:03:09 -0800 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.6.12/8.6.11) with ESMTP id JAA00210 for ; Wed, 3 Jan 1996 09:03:06 -0800 Received: by gw.home.vix.com id AA18004; Wed, 3 Jan 96 08:38:15 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15125; Wed, 3 Jan 1996 08:32:55 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25432-6@oink>; Wed, 3 Jan 1996 18:04:17 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691265:21805:1; Wed, 03 Jan 96 17:47:45 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa21519; 3 Jan 96 17:47 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00208 for dbi-users-real; Wed, 3 Jan 1996 09:03:06 -0800 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.6.12/8.6.11) with ESMTP id JAA00204 for ; Wed, 3 Jan 1996 09:03:05 -0800 Received: by gw.home.vix.com id AA18007; Wed, 3 Jan 96 08:38:15 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15127; Wed, 3 Jan 1996 08:33:05 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25432-8@oink>; Wed, 3 Jan 1996 18:04:26 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691334:22303:0; Wed, 03 Jan 96 17:48:54 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa21151; 3 Jan 96 17:46 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00226 for dbi-users-real; Wed, 3 Jan 1996 09:03:12 -0800 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.6.12/8.6.11) with ESMTP id JAA00222 for ; Wed, 3 Jan 1996 09:03:11 -0800 Received: by gw.home.vix.com id AA18015; Wed, 3 Jan 96 08:38:17 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15131; Wed, 3 Jan 1996 08:33:25 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25432-10@oink>; Wed, 3 Jan 1996 18:04:36 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 820691479:23381:0; Wed, 03 Jan 96 17:51:19 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa23062; 3 Jan 96 17:50 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA00220 for dbi-users-real; Wed, 3 Jan 1996 09:03:10 -0800 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.6.12/8.6.11) with ESMTP id JAA00216 for ; Wed, 3 Jan 1996 09:03:09 -0800 Received: by gw.home.vix.com id AA18010; Wed, 3 Jan 96 08:38:16 -0800 X-Btw: vix.com is also gw.home.vix.com and vixie.sf.ca.us Received: (from tnprox@localhost) by marion.match.com (8.6.11/8.6.11) id IAA15129; Wed, 3 Jan 1996 08:33:15 -0800 Received: from unknown(204.177.149.200) by marion.match.com via smap (V1.3) id sma015119; Wed Jan 3 08:32:35 1996 Received: from clyde.match.com by bonnie (5.x/SMI-SVR4) id AA26641; Wed, 3 Jan 1996 08:31:34 -0800 Received: by clyde.match.com (5.x/SMI-SVR4) id AA00632; Wed, 3 Jan 1996 08:31:33 -0800 Date: Wed, 3 Jan 1996 08:31:33 -0800 From: kkunzelm@bonnie.home.vix.com (Kevin Kunzelman) Message-Id: <9601031631.AA00632@clyde.match.com> To: rick@ccomp.com Subject: Re: oraperl and ingperl questions Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII >From owner-dbi-users@fugue.com Wed Jan 3 01:23 PST 1996 >Date: Wed, 3 Jan 1996 00:49:58 +0800 >From: rick@ccomp.com (Rick Clark) >To: dbi-users@fugue.com >Subject: oraperl and ingperl questions > >Can someone please tell me: > > Are oraperl and ingperl for Perl 4 are solid enough for production use? I can at least say that oraperl (v2.4) is *very* stable, and that we currently use it for production. I would say that it is much more likely that you are to find problems with Perl 4 than you are with oraperl (memory leaks, and such). However, most of these Perl 4 problems have workarounds. Don't know much about ingperl. > > What are the latest versions of Oracle and Ingres compatible with the > above? We are running ORACLE7.0.16 with oraperl, though I have heard of people running 7.1.x with it. Kevin Kunzelman (kkunzelm@match.com) ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <08165-5@oink>; Thu, 4 Jan 1996 22:34:39 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 820794820:06385:1; Thu, 04 Jan 96 22:33:40 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa05856; 4 Jan 96 22:33 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA01257 for dbi-users-real; Thu, 4 Jan 1996 13:39:44 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from hulk.newmkt.com (hulk.newmkt.com [199.103.128.220]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA01253 for ; Thu, 4 Jan 1996 13:39:42 -0800 Received: from pc2.newmkt.com ([199.103.224.76]) by hulk.newmkt.com (8.6.12/8.6.9) with SMTP id QAA16774 for ; Thu, 4 Jan 1996 16:27:00 -0500 Date: Thu, 4 Jan 1996 16:27:00 -0500 Message-Id: <199601042127.QAA16774@hulk.newmkt.com> X-Sender: brunnock@hulk.newmkt.com X-Mailer: Windows Eudora Pro Version 2.1.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dbi-users@fugue.com From: Sean Brunnock Subject: trouble with test for DBD-mSQL for BSDI 2.0.1 I'm trying to install the DBD-mSQL package (v0.60p18) on my BSDI v2.0.1 system. I have successfully installed perl v5.001m (with dynamic loading via GNU DLD v3.2.7), DBI v0.65, and mSQL v1.0.10 . The mSQL daemon is currently running in the background. As per the README, I'm enclosing the log of the build and other details. -------------------------------------------- -> perl Makefile.PL Configuring DBD::mSQL version 0.60pl8... $MSQL_HOME not defined. Searching for mSQL... Using mSQL in /usr/local/Minerva mSQL sysliblist: -L/usr/local/Minerva/lib -lmsql -lm System: perl5.001 bsdos hulk.newmkt.com 2.0.1 bsdi bsdos 2.0.1 kernel #0: tue aug 1 09:29:38 mdt 1995 polk@dem iurge.bsdi.com:homepolksys_2.0.1sys.srccompilegeneric i386 i386-bsdos dl_dld.xs Compiler: shlicc2 -g -O2 -m486 -DDEBUGGING Writing Makefile for DBD::mSQL -------------------------------------------- 'make' returns no output. --------------------------------- -> make test mkdir ./blib mkdir ./blib/DBD mkdir ./blib/auto mkdir ./blib/auto/DBD mkdir ./blib/auto/DBD/mSQL shlicc2 -c -DDEBUGGING -g -O2 -m486 -I/usr/local/lib/perl/i386-bsdos/CORE -I/usr/local/Minerva/include -I/us r/local/lib/perl/i386-bsdos/DBI dbdimp.c /usr/bin/perl -I/usr/local/lib/perl/i386-bsdos -I/usr/local/lib/perl /usr/local/lib/perl/ExtUtils/xsubpp -type map /usr/local/lib/perl/ExtUtils/typemap mSQL.xs >mSQL.tc && mv mSQL.tc mSQL.c shlicc2 -c -DDEBUGGING -g -O2 -m486 -I/usr/local/lib/perl/i386-bsdos/CORE -I/usr/local/Minerva/include -I/us r/local/lib/perl/i386-bsdos/DBI mSQL.c Running Mkbootstrap for DBD::mSQL (/usr/local/Minerva/lib/libmsql.a /usr/lib/libm.a) Writing mSQL.bs chmod 644 mSQL.bs LD_RUN_PATH="/usr/local/Minerva/lib" ld -o ./blib/auto/DBD/mSQL/mSQL.none -r dbdimp.o mSQL.o -L/lib -L/usr/lo cal/Minerva/lib -L/usr/local/Minerva/lib chmod 755 ./blib/auto/DBD/mSQL/mSQL.none cp mSQL.bs ./blib/auto/DBD/mSQL/mSQL.bs chmod 644 ./blib/auto/DBD/mSQL/mSQL.bs cp mSQL.pm ./blib/DBD/mSQL.pm chmod 644 ./blib/DBD/mSQL.pm /usr/bin/perl -I./blib -I./blib -I/usr/local/lib/perl/i386-bsdos -I/usr/local/lib/perl test.pl install_driver(mSQL) failed: Can't load './blib/auto/DBD/mSQL/mSQL.none' for module DBD::mSQL: dld_link(/usr/l ocal/Minerva/lib/libmsql.a): malformed library archive at /usr/local/lib/perl/DynaLoader.pm line 450. at blib/DBD/mSQL.pm line 18 at /usr/local/lib/perl/DBI.pm line 180 DBI::install_driver called at test.pl line 23 Testing: DBI->install_driver( 'mSQL' ): *** Error code 255 Stop. -------------------------------------------------------------- Thank you for any reply. end Sean Brunnock NewMarket Ventures, Inc. http://www.newmarket-ventures.com/ ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <28008-44@oink>; Mon, 8 Jan 1996 07:21:45 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821079970:21162:1; Mon, 08 Jan 96 05:46:10 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa20978; 8 Jan 96 5:45 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id VAA02186 for dbi-users-real; Sun, 7 Jan 1996 21:15:52 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from aurora.df.cmact.com (vauxhall@[205.241.12.254]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id VAA02156; Sun, 7 Jan 1996 21:05:50 -0800 Received: (from vauxhall@localhost) by aurora.df.cmact.com (8.6.12/8.6.9) id XAA07664; Sun, 7 Jan 1996 23:08:33 -0600 Date: Sun, 7 Jan 1996 23:08:32 -0600 (CST) From: The VauXhalL To: dbi-users@fugue.com cc: dbi-announce@fugue.com Subject: unsubscribe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Interesting mailing list, but like hmmm unsubscribe. Heh ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <28051-21@oink>; Mon, 8 Jan 1996 07:21:59 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821080445:23296:0; Mon, 08 Jan 96 05:54:05 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id aa23090; 8 Jan 96 5:53 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Mon, 8 Jan 1996 05:48:59 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id VAA02163 for dbi-announce-real; Sun, 7 Jan 1996 21:05:59 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from aurora.df.cmact.com (vauxhall@[205.241.12.254]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id VAA02156; Sun, 7 Jan 1996 21:05:50 -0800 Received: (from vauxhall@localhost) by aurora.df.cmact.com (8.6.12/8.6.9) id XAA07664; Sun, 7 Jan 1996 23:08:33 -0600 Date: Sun, 7 Jan 1996 23:08:32 -0600 (CST) From: The VauXhalL To: dbi-users@fugue.com cc: dbi-announce@fugue.com Subject: unsubscribe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Interesting mailing list, but like hmmm unsubscribe. Heh ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <02146-0@oink>; Mon, 8 Jan 1996 11:43:27 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821100886:27691:1; Mon, 08 Jan 96 11:34:46 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa27347; 8 Jan 96 11:33 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id CAA00380 for dbi-users-real; Mon, 8 Jan 1996 02:51:38 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id CAA00376 for ; Mon, 8 Jan 1996 02:50:48 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ah19333; 8 Jan 96 10:47 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa07391; 8 Jan 96 10:46 GMT Received: from toad by oink with SMTP (PP) id <01523-0@oink>; Mon, 8 Jan 1996 10:32:33 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA03081; Mon, 8 Jan 1996 10:32:02 +0000 Date: Mon, 8 Jan 1996 10:32:02 +0000 From: Tim Bunce Message-Id: <9601081032.AA03081@toad.ig.co.uk> To: ajayshah@indus.cmie.ernet.in Subject: Re: Help Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII content-length: 421 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: ajayshah@indus.cmie.ernet.in (Ajay Shah) > > I'm currently doing a lot of work using Sybperl (perl5) and > am stuck because there's a block of work I'd like to do without > requiring Sybase. > > Do you know of any combination of (a) free RDBMS engine from the > net + (b) access via perl, just like Sybperl5? > > Thanks a lot, > > -ans. Try mSQL. Others on the dbi-users list can give you more info. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <04254-2@oink>; Mon, 8 Jan 1996 15:09:41 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821113699:06087:0; Mon, 08 Jan 96 15:08:19 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa05523; 8 Jan 96 15:07 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA00611 for dbi-users-real; Mon, 8 Jan 1996 06:39:14 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from realinfo.net (root@ns1.realinfo.net [205.242.74.10]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA00607 for ; Mon, 8 Jan 1996 06:39:13 -0800 Received: from www-nt by realinfo.net with smtp (Smail3.1.28.1 #9) id m0tZIc2-0002gqC; Mon, 8 Jan 96 08:31 CST Message-Id: Date: Mon, 8 Jan 96 08:31 CST X-Sender: dtussing@205.242.74.10 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: Dirk Tussing Subject: unsubscribe ------------------------------------------------------- Dirk Tussing (312)345-4566 REALINFO FAX:(312)345-4551 120 N. LaSalle St., #1000 E-mail:dtussing@realinfo.net Chicago, IL 60602 URL:http://www.realinfo.net ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <04749-7@oink>; Mon, 8 Jan 1996 17:09:15 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821117627:08139:2; Mon, 08 Jan 96 16:13:47 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa08019; 8 Jan 96 16:13 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA00689 for dbi-users-real; Mon, 8 Jan 1996 07:35:32 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id HAA00685 for ; Mon, 8 Jan 1996 07:35:26 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id af13932; 8 Jan 96 15:14 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa19728; 8 Jan 96 15:14 GMT Received: from toad by oink with SMTP (PP) id <04416-0@oink>; Mon, 8 Jan 1996 15:13:49 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA04030; Mon, 8 Jan 1996 15:13:22 +0000 Date: Mon, 8 Jan 1996 15:13:22 +0000 From: Tim Bunce Message-Id: <9601081513.AA04030@toad.ig.co.uk> To: dbi-users@fugue.com, dtussing@realinfo.net Subject: Re: unsubscribe X-Sun-Charset: US-ASCII content-length: 507 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Dirk Tussing > Subject: unsubscribe ----- Begin Included Message ----- Subject: Administrivia requests... Date: Thu, 21 Dec 1995 10:51:29 -0800 From: Ted Lemon To unsubscribe to the mailing list, please visit the DBI mailing list subscription URL at http://www.fugue.com/dbi. _MelloN_ ----- End Included Message ----- Only is unable to do that should you send your request to dbi-users-REQUEST@fugue.com ^^^^^^^ Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <21219-85@oink>; Wed, 10 Jan 1996 07:23:11 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821257389:24100:2; Wed, 10 Jan 96 07:03:09 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa23704; 10 Jan 96 7:02 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id WAA04912 for dbi-users-real; Tue, 9 Jan 1996 22:34:03 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from test.nla.gov.au (test.nla.gov.au [192.102.239.34]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id WAA04908 for ; Tue, 9 Jan 1996 22:33:57 -0800 Received: by test.nla.gov.au (AIX 3.2/UCB 5.64/4.03) id AA21941; Wed, 10 Jan 1996 17:18:14 +1100 Date: Wed, 10 Jan 1996 17:06:21 +22300454 (EETDT) From: Michael Ledwidge Subject: fetchrow fiasco To: dbi-users@fugue.com Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII The following is using DBD-Oracle-0.27 and DBI-0.65 to talk to Oracle7 under AIX 3.2.5 I am having trouble looping around the rows returned by a SELECT statement as such while (@fields=$record->fetchrow) { } Initially I selected the rows using $record = $dbh->prepare("SELECT * FROM images"); $record->execute; which caused ERROR EVENT: DBI::st=HASH(0x201ff2f0)->DBI::default_handler: 1002 ORA-01002: fetch out of sequence (DBD: ofetch error) at mtbl line 48 Then, following Tim Bunce's advice in the archives, I replaced the select call lines with $record = $dbh->do("SELECT * FROM images"); and got Can't call method "fetchrow" in empty package "OK" at ./mtbl line 45. At least the first method retrieved the first row correctly, it would seem the problem lies with accessing the following one. Is there any doco on using fetchrow? Or preferably doco on the record structure itself? All I've been using is the material at http://www.hermetica.com/technologia/DBI/ Thanx in advance, .M. *********************************************************************** Michael Ledwidge http://www.nla.gov.au/hype/ National Library of Australia ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25325-14@oink>; Wed, 10 Jan 1996 10:02:56 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821264907:13933:1; Wed, 10 Jan 96 09:08:27 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa13761; 10 Jan 96 9:08 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id AAA05101 for dbi-users-real; Wed, 10 Jan 1996 00:38:49 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from zeus.csr.unibo.it (zeus.csr.unibo.it [137.204.72.8]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id AAA05097 for ; Wed, 10 Jan 1996 00:38:38 -0800 Received: by zeus.csr.unibo.it; id AA17870; Wed, 10 Jan 1996 09:37:57 +0100 From: "Marina Mattarelli mat.722" Message-Id: <9601100837.AA17870@zeus.csr.unibo.it> Subject: problem with &ora_do To: dbi-users@fugue.com Date: Wed, 10 Jan 1996 09:37:57 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 403 I have this problem: I call &ora_do($lda,'DROP TABLE XXXX') and I have the follow error: ERROR EVENT: DBI::st=HASH(0xf856c)->DBI::default_handler: 1003 ORA-01003:no statement parsed (DBD: odescr failed) at /ws/lib/perl5/DBI.pm line 437 After this call the table has been delete!!!! Why??????????? Marina Mattarelli. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <27413-0@oink>; Wed, 10 Jan 1996 14:06:14 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821280446:12906:0; Wed, 10 Jan 96 13:27:26 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa12482; 10 Jan 96 13:26 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id EAA05378 for dbi-users-real; Wed, 10 Jan 1996 04:41:20 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.64]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id EAA05374 for ; Wed, 10 Jan 1996 04:41:18 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ab17026; 10 Jan 96 12:38 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa07215; 10 Jan 96 12:37 GMT Received: from toad by oink with SMTP (PP) id <27072-0@oink>; Wed, 10 Jan 1996 12:36:52 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA15485; Wed, 10 Jan 1996 12:36:24 +0000 Date: Wed, 10 Jan 1996 12:36:24 +0000 From: Tim Bunce Message-Id: <9601101236.AA15485@toad.ig.co.uk> To: dbi-users@fugue.com, leddo@nla.gov.au Subject: Re: fetchrow fiasco X-Sun-Charset: US-ASCII content-length: 2204 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Michael Ledwidge > Subject: fetchrow fiasco Umm. > The following is using DBD-Oracle-0.27 and DBI-0.65 to talk to Oracle7 under AIX 3.2.5 > > I am having trouble looping around the rows returned by a SELECT statement as > such > while (@fields=$record->fetchrow) { > } > > Initially I selected the rows using > > $record = $dbh->prepare("SELECT * FROM images"); > $record->execute; > > which caused > > ERROR EVENT: DBI::st=HASH(0x201ff2f0)->DBI::default_handler: > 1002 ORA-01002: fetch out of sequence (DBD: ofetch error) > at mtbl line 48 fetch out of sequence error are often related to Oracle OCI problems when communicating with a database of a different version to the one used to build the DBD::Oracle module. If that's not the case then it would be helpful if you included the code of the complete loop. I trust you're testing the result of each call. Using the name $record for the statement handle seems confused. Are you *sure* you're using DBI-0.65? I doubt it, since that version removed the default error handler which output messages in that form. > Then, following Tim Bunce's advice in the archives, I replaced the select > call lines with > > $record = $dbh->do("SELECT * FROM images"); > and got > Can't call method "fetchrow" in empty package "OK" at ./mtbl line 45. I cannot imagine ever having suggested changing a prepare() of a _select_ into a do(). That would be senseless. The error message you give could not possible have come from that line. It would have come from attempting to use the 'OK' returned from the do() as a handle for a fetchrow. > At least the first method retrieved the first row correctly, it would seem > the problem lies with accessing the following one. > > Is there any doco on using fetchrow? Or preferably doco on the record > structure itself? > > All I've been using is the material at http://www.hermetica.com/technologia/DBI/ You might find it helpful to stop using the largely undocumented DBI interface (which will change) and switch to the stable and documented Oraperl emulation. The Oraperl documentation in DBD-Oracle-0.27 is much improved. Use 'perldoc Oraperl' to read it. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <01429-0@oink>; Thu, 11 Jan 1996 07:17:20 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821344390:28786:3; Thu, 11 Jan 96 07:13:10 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id aa28753; 11 Jan 96 7:12 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 07:04:45 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id WAA07174 for dbi-users-real; Wed, 10 Jan 1996 22:33:41 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from test.nla.gov.au (test.nla.gov.au [192.102.239.34]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id WAA07170 for ; Wed, 10 Jan 1996 22:33:35 -0800 Received: by test.nla.gov.au (AIX 3.2/UCB 5.64/4.03) id AA29536; Thu, 11 Jan 1996 17:22:29 +1100 Date: Thu, 11 Jan 1996 17:08:20 +22300454 (EETDT) From: Michael Ledwidge Subject: Cursor usage To: dbi-users@fugue.com Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII This is probably a dumb question regarding oraperl emulation using DBD::Oracle27 0.27 and DBI 0.65 so sue me. {:-) I've got a small script which loops through every row in a table and performs multiple inserts into another table for each. The question is, do I need to login to the database twice, once to read from table A and once to insert into table B or is once enough? I tried both as follows: version 1 using one login, the script read in the rows properly, reported no errors, and finished but the table supposedly filling with inserts was still empty. version 2 used two logins, using one for selecting and the other for inserting and... perl core dumped. Rather than clobber your eyes, the two versions are available for perusal as version1 & version2 Any suggestions or comments would be appreciated. Cheers, .M. *********************************************************************** Michael Ledwidge http://www.nla.gov.au/hype/ National Library of Australia ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <07605-0@oink>; Thu, 11 Jan 1996 14:16:52 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821369651:05028:0; Thu, 11 Jan 96 14:14:11 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa04832; 11 Jan 96 14:13 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id FAA07459 for dbi-users-real; Thu, 11 Jan 1996 05:11:33 -0800 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.6.12/8.6.11) with SMTP id FAA07455 for ; Thu, 11 Jan 1996 05:11:29 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id aj02233; 11 Jan 96 11:21 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ac23361; 11 Jan 96 11:21 GMT Received: from toad by oink with SMTP (PP) id <06047-0@oink>; Thu, 11 Jan 1996 11:17:32 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA20539; Thu, 11 Jan 1996 11:17:04 +0000 Date: Thu, 11 Jan 1996 11:17:04 +0000 From: Tim Bunce Message-Id: <9601111117.AA20539@toad.ig.co.uk> To: dbi-users@fugue.com Subject: Re: fetchrow fiasco X-Sun-Charset: US-ASCII content-length: 1497 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 ----- Begin Included Message ----- From mledwidg@test.nla.gov.au Thu Jan 11 08:20:53 1996 Date: Thu, 11 Jan 1996 15:09:25 +22300454 (EETDT) From: Michael Ledwidge Subject: Re: fetchrow fiasco To: Tim Bunce In-Reply-To: <9601101236.AA15485@toad.ig.co.uk> Tim, Thanx for the quick reply, I've got my code working using oraperl emulation instead of DBI as you suggested. > > Then, following Tim Bunce's advice in the archives, I replaced the select > > call lines with > > > > $record = $dbh->do("SELECT * FROM images"); > > and got > > Can't call method "fetchrow" in empty package "OK" at ./mtbl line 45. > > I cannot imagine ever having suggested changing a prepare() of a _select_ > into a do(). That would be senseless. Fair enough - I interpreted your reply http://www.hermetica.com/technologia/DBI/mailinglists/dbi-users/0025.html out of context. > You might find it helpful to stop using the largely undocumented DBI > interface (which will change) and switch to the stable and documented > Oraperl emulation. The Oraperl documentation in DBD-Oracle-0.27 is > much improved. Use 'perldoc Oraperl' to read it. Great! Thanx, .M. *********************************************************************** Michael Ledwidge http://www.nla.gov.au/hype/ National Library of Australia ----- End Included Message ----- ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <08443-3@oink>; Thu, 11 Jan 1996 17:04:30 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821374688:13201:1; Thu, 11 Jan 96 15:38:08 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa12999; 11 Jan 96 15:37 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA07540 for dbi-announce-real; Thu, 11 Jan 1996 06:13:15 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA07535 for ; Thu, 11 Jan 1996 06:13:11 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id OAA06020 for dbi-announce@fugue.com; Thu, 11 Jan 1996 14:09:01 GMT Date: Thu, 11 Jan 1996 14:09:01 GMT From: Alligator Descartes Message-Id: <199601111409.OAA06020@fruitbat.mcqueen.com> To: dbi-announce@fugue.com Subject: ANNOUNCE: DBD::mSQL-0.60pl9 available Content-Length: 579 Hi. I'm pleased to announce the release of DBD::mSQL-0.60pl9 available from: ftp://ftp.mcqueen.com/pub/databases/DBI/DBD/mSQL and CPAN when it catches up......... Changes from pl8 are: o Add length to hash key returned with ListFields data. o Added handling for specifying an optional port number in the hostname for database connection. Please read the README file before installing. Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <08443-5@oink>; Thu, 11 Jan 1996 17:04:57 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821375031:15859:3; Thu, 11 Jan 96 15:43:51 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa14757; 11 Jan 96 15:42 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA07624 for dbi-users-real; Thu, 11 Jan 1996 06:30:13 -0800 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.6.12/8.6.11) with SMTP id GAA07620 for ; Thu, 11 Jan 1996 06:30:11 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id as21708; 11 Jan 96 14:20 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa04819; 11 Jan 96 14:18 GMT Received: from toad by oink with SMTP (PP) id <07074-0@oink>; Thu, 11 Jan 1996 12:59:29 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA21628; Thu, 11 Jan 1996 12:58:59 +0000 Date: Thu, 11 Jan 1996 12:58:59 +0000 From: Tim Bunce Message-Id: <9601111258.AA21628@toad.ig.co.uk> To: dbi-users@fugue.com, leddo@nla.gov.au Subject: Re: Cursor usage X-Sun-Charset: US-ASCII content-length: 1367 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Michael Ledwidge > > This is probably a dumb question regarding oraperl emulation > using DBD::Oracle27 0.27 and DBI 0.65 so sue me. {:-) > > I've got a small script which loops through every row in a table and performs > multiple inserts into another table for each. The question is, do I need > to login to the database twice, once to read from table A and once to > insert into table B or is once enough? No. > I tried both as follows: > > version 1 using one login, the script read in the rows properly, reported no > errors, and finished but the table supposedly filling with inserts was > still empty. Did you test the return values or $ora_errno for every call? Did you commit the transaction? > version 2 used two logins, using one for selecting and the other for > inserting and... perl core dumped. If ever perl core dumps I will need a stack trace. Perferably from a perl and extensions built with -g. At the very least the last few lines of trace info from setting the PERL_DBI_DEBUG=2 environment variable. > Rather than clobber your eyes, the two versions are available for perusal as > version1 Sorry but I've no time to wander off into the web right now and, if it can't be summirised into a few lines, then I've no time to study it. Sorry. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <08443-14@oink>; Thu, 11 Jan 1996 17:07:46 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821377081:02058:0; Thu, 11 Jan 96 16:18:01 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa01669; 11 Jan 96 16:17 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA07695 for dbi-users-real; Thu, 11 Jan 1996 07:20:50 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mailbox.osf.org (mailbox.osf.org [130.105.1.8]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA07691 for ; Thu, 11 Jan 1996 07:20:49 -0800 Received: from gandalf (gandalf [130.105.3.186]) by mailbox.osf.org (8.6.12/8.6.x) with SMTP id KAA22005; Thu, 11 Jan 1996 10:20:42 -0500 Date: Thu, 11 Jan 1996 10:20:42 -0500 Message-Id: <199601111520.KAA22005@mailbox.osf.org> X-Sender: dougm@postman.osf.org X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Michael Ledwidge From: dougm@osf.org (Doug MacEachern) Subject: Re: Cursor usage Cc: dbi-users@fugue.com > >This is probably a dumb question regarding oraperl emulation >using DBD::Oracle27 0.27 and DBI 0.65 so sue me. {:-) > >I've got a small script which loops through every row in a table and performs >multiple inserts into another table for each. The question is, do I need >to login to the database twice, once to read from table A and once to >insert into table B or is once enough? > >I tried both as follows: > >version 1 using one login, the script read in the rows properly, reported no >errors, and finished but the table supposedly filling with inserts was >still empty. > >version 2 used two logins, using one for selecting and the other for >inserting and... perl core dumped. > >Rather than clobber your eyes, the two versions are available for perusal as > >version1 >& >version2 Eeek! You are cursed with typos today ;-) > >Any suggestions or comments would be appreciated. Hmm... I'm not familiar with Oraperl, but what to you expect to happen here? if (!FAKE) { #this will *never* happen $insert = ora_do($lda2, "INSERT into words VALUES ('$one',$i,$fields[0])") || die $ora_errstr; } I think you meant to say if (!$FAKE) { ^ perl -w would have hinted at this. Hope this helps, -Doug > >Cheers, > .M. > >*********************************************************************** > Michael Ledwidge > http://www.nla.gov.au/hype/ > National Library of Australia > > > ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <08442-14@oink>; Thu, 11 Jan 1996 17:08:01 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821372891:29843:0; Thu, 11 Jan 96 15:08:11 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa29590; 11 Jan 96 15:07 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA07515 for dbi-users-real; Thu, 11 Jan 1996 06:09:38 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA07510 for ; Thu, 11 Jan 1996 06:09:34 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id OAA05780 for dbi-users@fugue.com; Thu, 11 Jan 1996 14:05:05 GMT Date: Thu, 11 Jan 1996 14:05:05 GMT From: Alligator Descartes Message-Id: <199601111405.OAA05780@fruitbat.mcqueen.com> To: dbi-users@fugue.com Subject: ANNOUNCE: tkmSQL-0.20pl0 developer release available Content-Length: 878 tkmSQL is a perl5/Tk/DBI/DBD::mSQL-based mSQL administration tool that allows the administrator to easily maintain mSQL databases located whereever they choose! Features avaiable: ACL editing // NYI Server functions: Reload ACL Shutdown Restart Create database Drop database Show schema: database table Create table // NYI Export database // NYI Import datafile // NYI I've put a preliminary release ( basically to get comments ) out for testing. Don't try anything dangerous with it! 8-) ftp://ftp.mcqueen.com/pub/database/dbatools/tkmSQL Prerequisites are: perl5.001m or more Tk-b8 DBI-0.65 DBD::mSQL-0.60pl9 Any questions or comments to the DBI users mailing list. Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <08442-19@oink>; Thu, 11 Jan 1996 17:09:33 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821375820:22311:0; Thu, 11 Jan 96 15:57:00 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id ae21970; 11 Jan 96 15:56 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 15:25:27 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA07519 for dbi-announce-real; Thu, 11 Jan 1996 06:09:47 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA07511 for ; Thu, 11 Jan 1996 06:09:37 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id OAA05782 for dbi-announce@fugue.com; Thu, 11 Jan 1996 14:05:05 GMT Date: Thu, 11 Jan 1996 14:05:05 GMT From: Alligator Descartes Message-Id: <199601111405.OAA05782@fruitbat.mcqueen.com> To: dbi-announce@fugue.com Subject: ANNOUNCE: tkmSQL-0.20pl0 developer release available Content-Length: 878 tkmSQL is a perl5/Tk/DBI/DBD::mSQL-based mSQL administration tool that allows the administrator to easily maintain mSQL databases located whereever they choose! Features avaiable: ACL editing // NYI Server functions: Reload ACL Shutdown Restart Create database Drop database Show schema: database table Create table // NYI Export database // NYI Import datafile // NYI I've put a preliminary release ( basically to get comments ) out for testing. Don't try anything dangerous with it! 8-) ftp://ftp.mcqueen.com/pub/database/dbatools/tkmSQL Prerequisites are: perl5.001m or more Tk-b8 DBI-0.65 DBD::mSQL-0.60pl9 Any questions or comments to the DBI users mailing list. Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <10480-2@oink>; Thu, 11 Jan 1996 19:21:12 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821385535:13585:0; Thu, 11 Jan 96 18:38:55 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa12898; 11 Jan 96 18:37 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA07554 for dbi-users-real; Thu, 11 Jan 1996 06:15:43 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id GAA07550 for ; Thu, 11 Jan 1996 06:15:41 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id OAA06018 for dbi-users@fugue.com; Thu, 11 Jan 1996 14:09:01 GMT Date: Thu, 11 Jan 1996 14:09:01 GMT From: Alligator Descartes Message-Id: <199601111409.OAA06018@fruitbat.mcqueen.com> To: dbi-users@fugue.com Subject: ANNOUNCE: DBD::mSQL-0.60pl9 available Content-Length: 579 Hi. I'm pleased to announce the release of DBD::mSQL-0.60pl9 available from: ftp://ftp.mcqueen.com/pub/databases/DBI/DBD/mSQL and CPAN when it catches up......... Changes from pl8 are: o Add length to hash key returned with ListFields data. o Added handling for specifying an optional port number in the hostname for database connection. Please read the README file before installing. Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11297-0@oink>; Thu, 11 Jan 1996 22:49:14 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821394348:04674:0; Thu, 11 Jan 96 21:05:48 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa04537; 11 Jan 96 21:05 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA08325 for dbi-users-real; Thu, 11 Jan 1996 12:12:47 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mailbox.osf.org (mailbox.osf.org [130.105.1.8]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA08321 for ; Thu, 11 Jan 1996 12:12:45 -0800 Received: from gandalf (gandalf [130.105.3.186]) by mailbox.osf.org (8.6.12/8.6.x) with SMTP id PAA24191; Thu, 11 Jan 1996 15:13:26 -0500 Date: Thu, 11 Jan 1996 15:13:26 -0500 Message-Id: <199601112013.PAA24191@mailbox.osf.org> X-Sender: dougm@postman.osf.org X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dbi-users@fugue.com From: dougm@osf.org (Doug MacEachern) Subject: Re: ANNOUNCE: tkmSQL-0.20pl0 developer release available Cc: Alligator Descartes [...] >Any questions or comments to the DBI users mailing list. I had to make two minor changes (below) before running it since I did not install in $Config{installprivlib}. This is a great tool to have, Thank you! -Doug --- *** bin/tkmSQL.orig Thu Jan 11 14:59:21 1996 --- bin/tkmSQL Thu Jan 11 14:33:51 1996 *************** *** 35,41 **** # Environment stuff - Where all the common database junk is...... ! @auto_path = ( "$Config{installprivlib}/tkmSQL/modules" ); sub AUTOLOAD { --- 35,41 ---- # Environment stuff - Where all the common database junk is...... ! @auto_path = map { "$_/tkmSQL/modules" } @INC; sub AUTOLOAD { *** tkmSQL/modules/createaboutLevel.pl.orig Thu Jan 11 14:59:50 1996 --- tkmSQL/modules/createaboutLevel.pl Thu Jan 11 14:38:39 1996 *************** *** 1,12 **** ### createaboutLevel: ### sub createaboutLevel { ! print "Entered createaboutLevel()\n"; $abouttopLevel = $topLevel->Toplevel( "-class" => "Dialogue" ); $abouttopLevel->wm( "group" => $topLevel ); $abouttopLevel->wm( "transient" => $topLevel ); ! $abpiktoor = $abouttopLevel->Photo( "-file" => "$Config{installprivlib}/tkmSQL/img/holbeinH.gif" ); $abpiktoorlabel = $abouttopLevel->Label( "-image" => $abpiktoor ); $abpiktoorlabel->pack(); $abblahlabel = $abouttopLevel->Label( "-text" => "tkmSQL" ); --- 1,15 ---- ### createaboutLevel: ### sub createaboutLevel { ! my $image; ! foreach (@INC) { ! last if -e ($image = "$_/tkmSQL/img/holbeinH.gif"); ! } print "Entered createaboutLevel()\n"; $abouttopLevel = $topLevel->Toplevel( "-class" => "Dialogue" ); $abouttopLevel->wm( "group" => $topLevel ); $abouttopLevel->wm( "transient" => $topLevel ); ! $abpiktoor = $abouttopLevel->Photo( "-file" => $image ); $abpiktoorlabel = $abouttopLevel->Label( "-image" => $abpiktoor ); $abpiktoorlabel->pack(); $abblahlabel = $abouttopLevel->Label( "-text" => "tkmSQL" ); > >Regards. > >-- >Alligator Descartes | "...Nil posse creari De nilo" >descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 >http://www.hermetica.com/descarte | > > ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <11298-17@oink>; Thu, 11 Jan 1996 22:50:40 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821392637:15587:1; Thu, 11 Jan 96 20:37:17 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id ai14957; 11 Jan 96 20:37 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 18:18:03 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA07778 for dbi-users-real; Thu, 11 Jan 1996 08:29:54 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from psa.pencom.com (psisa.com [198.3.200.13]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA07774 for ; Thu, 11 Jan 1996 08:29:52 -0800 Received: (from karafoti@localhost) by psa.pencom.com (Hah!/nope) id KAA24045; Thu, 11 Jan 1996 10:31:05 -0600 (CST) Date: Thu, 11 Jan 1996 10:31:05 -0600 (CST) Message-Id: <199601111631.KAA24045@psa.pencom.com> From: karafoti@pencom.com (Michael Karafotis) To: dbi-users@fugue.com Subject: DBD::Oracle-0.27 location? I recently installed DBD::Oracle-0.26 yesterday, but there seems to be no documentation for Oraperl in it. Tim mentioned that Oracle-0.27 is out and has good Oraperl documentation in it. Could some on point out its location for me? (Delphi mirror of CPAN doesn't have it) Thanks, -- Michael ______________________________________________________________________________ Michael Karafotis karafoti@pencom.com Member, Pencom Systems Administration On-Site: Fidelity FMR Corp http://www.ari.net/webworks/karafotis/ (617) 563-3692 "The more I look at it, the more I like it ............. I do think its good!" ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11990-1@oink>; Thu, 11 Jan 1996 23:56:35 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821404526:07920:0; Thu, 11 Jan 96 23:55:26 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id ac07411; 11 Jan 96 23:54 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 21:09:31 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA08349 for dbi-users-real; Thu, 11 Jan 1996 12:20:16 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA08345 for ; Thu, 11 Jan 1996 12:20:14 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id UAA16080; Thu, 11 Jan 1996 20:16:03 GMT From: Alligator Descartes Message-Id: <199601112016.UAA16080@fruitbat.mcqueen.com> Subject: Re: ANNOUNCE: tkmSQL-0.20pl0 developer release available To: dougm@osf.org (Doug MacEachern) Date: Thu, 11 Jan 1996 20:16:02 +0000 (GMT) Cc: dbi-users@fugue.com, descarte@hermetica.com In-Reply-To: <199601112013.PAA24191@mailbox.osf.org> from "Doug MacEachern" at Jan 11, 96 03:13:26 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 Content-Length: 554 > [...] > >Any questions or comments to the DBI users mailing list. > > I had to make two minor changes (below) before running it since I did not > install in $Config{installprivlib}. > This is a great tool to have, Thank you! Ta much. I made changes to the install script this morning and totally forgot to patch those two files as well. I'll incorporate those into the pl1. > -Doug -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11990-12@oink>; Thu, 11 Jan 1996 23:58:04 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821404532:07915:2; Thu, 11 Jan 96 23:55:32 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id am07411; 11 Jan 96 23:55 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 22:29:38 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA08528 for dbi-users-real; Thu, 11 Jan 1996 13:35:10 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mailbox.osf.org (mailbox.osf.org [130.105.1.8]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA08524 for ; Thu, 11 Jan 1996 13:35:09 -0800 Received: from gandalf (gandalf [130.105.3.186]) by mailbox.osf.org (8.6.12/8.6.x) with SMTP id QAA24633; Thu, 11 Jan 1996 16:35:17 -0500 Date: Thu, 11 Jan 1996 16:35:17 -0500 Message-Id: <199601112135.QAA24633@mailbox.osf.org> X-Sender: dougm@postman.osf.org X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Alligator Descartes From: dougm@osf.org (Doug MacEachern) Subject: Re: ANNOUNCE: tkmSQL-0.20pl0 developer release available Cc: dbi-users@fugue.com Another quick fix: *** addRCEntry.pl~ Thu Jan 11 13:38:08 1996 --- addRCEntry.pl Thu Jan 11 16:05:26 1996 *************** *** 1,7 **** ### ### ! sub addRCentry { my $ident = shift; my $dbname = shift; --- 1,7 ---- ### ### ! sub addRCEntry { my $ident = shift; my $dbname = shift; ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11990-20@oink>; Thu, 11 Jan 1996 23:59:04 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821404533:07921:2; Thu, 11 Jan 96 23:55:33 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id ap07411; 11 Jan 96 23:55 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 22:32:22 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA08514 for dbi-users-real; Thu, 11 Jan 1996 13:34:42 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from grover.delphic.co.nz (grover.delphic.co.nz [202.36.32.6]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id NAA08509 for ; Thu, 11 Jan 1996 13:34:27 -0800 Message-Id: <199601112134.NAA08509@toccata.fugue.com> To: dbi-users@fugue.com Received: from kerry by grover.delphic.co.nz; Fri, 12 Jan 96 10:38 NZD Subject: DBI test.pl failed Date: Fri, 12 Jan 96 10:38 NZD From: kerry@delphic.co.nz (Kerry Thompson) Content-Length: 937 Content-Type: text I'm installing DBI ( and DBD::Oracle ) on a Unisys U6000/35 system, and I get this error when running 'make test' in test.pl :- ------------------------------ Cursor prepare'd as DBI::st=HASH(0x80f2a74) Prepared as DBI::st=HASH(0x80f2b4c) Number of fields: 3 Data type of first field: 1 Driver name: ExampleP Fetching data from both cursors. Expect several rows of data: fetchrow scalar context problem at test.pl line 124. *** Error code 2 (bu21) make: fatal error. ------------------------------ Should I be worried ? I've tried pushing ahead with make install, then installing DBD::Oracle, but that dies with a core dump, so I'd like to get DBI tested before taking on the Oracle driver. Any ideas would be appreciated. Kerry. -- Kerry Thompson, Delphic Medical Systems kerry@delphic.co.nz Auckland, New Zealand http://www.delphic.co.nz/~kerry/ Back from holidays and rearin' to go ..... somewhere. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <12094-2@oink>; Fri, 12 Jan 1996 00:02:03 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821404601:08445:1; Thu, 11 Jan 96 23:56:41 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id ay07411; 11 Jan 96 23:55 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 11 Jan 1996 23:38:11 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA08876 for dbi-users-real; Thu, 11 Jan 1996 14:53:25 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from anna.mind.de (anna.mind.de [193.101.72.227]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA08872 for ; Thu, 11 Jan 1996 14:53:22 -0800 Received: by anna.mind.de (940816.SGI.8.6.9/940406.SGI) id XAA11393; Thu, 11 Jan 1996 23:52:27 +0100 Date: Thu, 11 Jan 1996 23:52:27 +0100 Message-Id: <199601112252.XAA11393@anna.mind.de> From: Andreas Koenig To: karafoti@pencom.com CC: dbi-users@fugue.com In-reply-to: <199601111631.KAA24045@psa.pencom.com> (karafoti@pencom.com) Subject: Re: DBD::Oracle-0.27 location? Reply-to: andreas.koenig@mind.de >>>>> " " == Michael Karafotis writes: > I recently installed DBD::Oracle-0.26 yesterday, but there seems to be > no documentation for Oraperl in it. Tim mentioned that Oracle-0.27 is > out and has good Oraperl documentation in it. Could some on point out > its location for me? (Delphi mirror of CPAN doesn't have it) One of the best places on CPAN to find what you're looking for is modules/01modules.index.html On delphi you'll find a pointer in there to ftp://ftp.delphi.com/pub/mirrors/packages/perl/CPAN/authors/id/TIMB/DBD/DBD-Oracle-0.27.tar.Z which is a valid link. Go and get it! > Thanks, > -- Michael Regards, andreas ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <12695-5@oink>; Fri, 12 Jan 1996 01:57:26 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821411333:21768:0; Fri, 12 Jan 96 01:48:53 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id ab21596; 12 Jan 96 1:48 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Fri, 12 Jan 1996 00:25:57 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA09108 for dbi-users-real; Thu, 11 Jan 1996 15:39:50 -0800 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.6.12/8.6.11) with SMTP id PAA09104 for ; Thu, 11 Jan 1996 15:39:43 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ad08584; 11 Jan 96 23:32 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa09900; 11 Jan 96 23:01 GMT Received: from toad by oink with SMTP (PP) id <11514-0@oink>; Thu, 11 Jan 1996 22:57:28 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA25478; Thu, 11 Jan 1996 22:56:54 +0000 Date: Thu, 11 Jan 1996 22:56:54 +0000 From: Tim Bunce Message-Id: <9601112256.AA25478@toad.ig.co.uk> To: dbi-users@fugue.com, karafoti@pencom.com Subject: Re: DBD::Oracle-0.27 location? X-Sun-Charset: US-ASCII content-length: 371 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: karafoti@pencom.com (Michael Karafotis) > > I recently installed DBD::Oracle-0.26 yesterday, but there seems to be > no documentation for Oraperl in it. Tim mentioned that Oracle-0.27 is > out and has good Oraperl documentation in it. Could some on point out > its location for me? (Delphi mirror of CPAN doesn't have it) ftp.demon.co.uk:/pub/perl/db/ Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <13917-0@oink>; Fri, 12 Jan 1996 07:06:06 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821421666:12450:0; Fri, 12 Jan 96 04:41:06 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa12262; 12 Jan 96 4:40 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id RAA09522 for dbi-users-real; Thu, 11 Jan 1996 17:47:06 -0800 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.6.12/8.6.11) with SMTP id RAA09484 for ; Thu, 11 Jan 1996 17:41:45 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id cd13122; 12 Jan 96 0:37 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa24912; 12 Jan 96 0:09 GMT Received: from toad by oink with SMTP (PP) id <12218-0@oink>; Fri, 12 Jan 1996 00:06:42 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA25934; Fri, 12 Jan 1996 00:06:05 +0000 Date: Fri, 12 Jan 1996 00:06:05 +0000 From: Tim Bunce Message-Id: <9601120006.AA25934@toad.ig.co.uk> To: dbi-users@fugue.com, kerry@delphic.co.nz Subject: Re: DBI test.pl failed X-Sun-Charset: US-ASCII content-length: 736 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: kerry@delphic.co.nz (Kerry Thompson) > > I'm installing DBI ( and DBD::Oracle ) on a Unisys U6000/35 system, > and I get this error when running 'make test' in test.pl :- > > fetchrow scalar context problem at test.pl line 124. > > Should I be worried ? > > I've tried pushing ahead with make install, then installing > DBD::Oracle, but that dies with a core dump, so I'd like to get DBI > tested before taking on the Oracle driver. > > Any ideas would be appreciated. > Kerry. I never fully solved the 'fetchrow scalar context problem' but you may find that upgrading to a more recent perl fixes it for you. Make sure that you compile perl + DBI + DBD::Oracle with the same -DDEBUGGING setting. Either on or off. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <13917-7@oink>; Fri, 12 Jan 1996 07:07:23 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821430085:21547:0; Fri, 12 Jan 96 07:01:25 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id aa21235; 12 Jan 96 7:00 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Fri, 12 Jan 1996 06:02:00 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id VAA09936 for dbi-users-real; Thu, 11 Jan 1996 21:24:45 -0800 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.6.12/8.6.11) with SMTP id VAA09932 for ; Thu, 11 Jan 1996 21:24:43 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id cd13122; 12 Jan 96 0:37 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa24912; 12 Jan 96 0:09 GMT Received: from toad by oink with SMTP (PP) id <12218-0@oink>; Fri, 12 Jan 1996 00:06:42 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA25934; Fri, 12 Jan 1996 00:06:05 +0000 Date: Fri, 12 Jan 1996 00:06:05 +0000 From: Tim Bunce Message-Id: <9601120006.AA25934@toad.ig.co.uk> To: dbi-users@fugue.com, kerry@delphic.co.nz Subject: Re: DBI test.pl failed X-Sun-Charset: US-ASCII content-length: 736 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: kerry@delphic.co.nz (Kerry Thompson) > > I'm installing DBI ( and DBD::Oracle ) on a Unisys U6000/35 system, > and I get this error when running 'make test' in test.pl :- > > fetchrow scalar context problem at test.pl line 124. > > Should I be worried ? > > I've tried pushing ahead with make install, then installing > DBD::Oracle, but that dies with a core dump, so I'd like to get DBI > tested before taking on the Oracle driver. > > Any ideas would be appreciated. > Kerry. I never fully solved the 'fetchrow scalar context problem' but you may find that upgrading to a more recent perl fixes it for you. Make sure that you compile perl + DBI + DBD::Oracle with the same -DDEBUGGING setting. Either on or off. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <15838-17@oink>; Fri, 12 Jan 1996 14:16:46 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821450141:18942:1; Fri, 12 Jan 96 12:35:41 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa18783; 12 Jan 96 12:35 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id DAA10521 for dbi-users-real; Fri, 12 Jan 1996 03:26:05 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cursci.cursci.co.uk (cursci.cursci.co.uk [193.112.128.3]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id DAA10517 for ; Fri, 12 Jan 1996 03:25:55 -0800 Received: from gateway.cursci.co.uk by cursci.cursci.co.uk with SMTP (5.65/1.2(ep 1.9)-eef) id AA16759; Fri, 12 Jan 96 11:27:12 GMT Message-Id: <9601121127.AA16759@cursci.cursci.co.uk> Date: Fri, 12 Jan 1996 12:04:00 +0000 From: Matthew Taylor Subject: make problem: values-Xa.o To: dbi-users X-Mailer: Worldtalk (NetConnex V3.50c)/MIME Greetings all. I'm new this list, Apologies if this problem is familiar. I have just installed p5.001m on a sparc box running solaris 2.5. The executables were built by someone else so I do not know the exact configuration used but it seems to be working fine. However, I am now having some problems making DBI. Makefile.PL, produced: Error: Unable to locate installed Perl libraries or Perl source code. I then re ran it with explicit pointers to the src and libs: ./Makefile.PL PERL_SRC=/home/mcl/perl5.001m PERL_LIB=/home/mcl/perl5.001m/lib In either case however the makefile generated complained that: ld: fatal: file values-Xa.o: cannot open file; errno=2 I have not had any joy in identifying what or where this file should be. Is look like a non standard perl instalation problem? - Dynamic Libraries? Should I reconfigure and rebuild perl or is this a DBI thing? Any help as to how to continue would be greatly appreciated. Thanks, mat ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <19754-0@oink>; Fri, 12 Jan 1996 23:08:01 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821480068:25854:1; Fri, 12 Jan 96 20:54:28 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa25763; 12 Jan 96 20:54 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA11342 for dbi-users-real; Fri, 12 Jan 1996 12:04:03 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from VM.AKH-WIEN.AC.AT (VM.akh-wien.ac.at [149.148.50.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA11338 for ; Fri, 12 Jan 1996 12:03:29 -0800 Received: from [149.148.89.131] by VM.AKH-WIEN.AC.AT (IBM VM SMTP V2R3) with TCP; Fri, 12 Jan 96 21:04:00 CET X-Sender: chrisi@vm.akh-wien.ac.at Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 12 Jan 1996 21:10:44 +0100 To: dbi-users@fugue.com, leddo@nla.gov.au From: Chrisi@akh-wien.ac.at (Chrisi) Subject: Re: Cursor usage >> From: Michael Ledwidge >> >> This is probably a dumb question regarding oraperl emulation >> using DBD::Oracle27 0.27 and DBI 0.65 so sue me. {:-) >> >> I've got a small script which loops through every row in a table and perf= orms >> multiple inserts into another table for each. The question is, do I need >> to login to the database twice, once to read from table A and once to >> insert into table B or is once enough? I realy love to work with the DBD/DBI Interface (Thanx Tim), but for such problems (i don=B4t know your exakt needs) i would work with triggers and stored procedures -> take a look at it ! > >No. > >> I tried both as follows: >> >> version 1 using one login, the script read in the rows properly, reported= no >> errors, and finished but the table supposedly filling with inserts was >> still empty. > >Did you test the return values or $ora_errno for every call? >Did you commit the transaction? > >> version 2 used two logins, using one for selecting and the other for >> inserting and... perl core dumped. > >If ever perl core dumps I will need a stack trace. Perferably from a perl >and extensions built with -g. At the very least the last few lines of >trace info from setting the PERL_DBI_DEBUG=3D2 environment variable. > >> Rather than clobber your eyes, the two versions are available for perusal= as >> version1 > >Sorry but I've no time to wander off into the web right now and, if it >can't be summirised into a few lines, then I've no time to study it. > >Sorry. > >Tim. Regards, Christian ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <27617-10@oink>; Sun, 14 Jan 1996 13:20:22 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821523737:05645:0; Sat, 13 Jan 96 09:02:17 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa03786; 13 Jan 96 9:02 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id AAA12401 for dbi-users-real; Sat, 13 Jan 1996 00:28:43 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from blob.best.net (blob.best.net [204.156.128.88]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id AAA12397 for ; Sat, 13 Jan 1996 00:28:43 -0800 Received: from lancelle.best.com (lancelle.vip.best.com [206.86.1.73]) by blob.best.net (8.6.12/8.6.5) with SMTP id AAA26211 for ; Sat, 13 Jan 1996 00:30:10 -0800 Date: Sat, 13 Jan 1996 00:30:10 -0800 Message-Id: <199601130830.AAA26211@blob.best.net> X-Sender: lancelle@pop.best.com X-Mailer: Windows Eudora Pro Version 2.1.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dbi-users@fugue.com From: Jonathan Lancelle Subject: Just starting....hmmm Well, I hope this works for me. I have been looking over tons of docs in an effort to get a simple test script going which will show me the power of DBI.pm. I understand about selecting a driver (mSQL for now, it's installed on my server). I understand the bit about connecting to a database (which exists). Herein lies the rub. I don't have a database to connect to. Can I create a database with any of the subroutine calls in DBI.pm? How do I get to just this first step? ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <27617-26@oink>; Sun, 14 Jan 1996 13:21:30 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821551170:20933:1; Sat, 13 Jan 96 16:39:30 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa20397; 13 Jan 96 16:38 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA12730 for dbi-users-real; Sat, 13 Jan 1996 08:01:50 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA12726 for ; Sat, 13 Jan 1996 08:01:46 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id PAA01622; Sat, 13 Jan 1996 15:56:12 GMT From: Alligator Descartes Message-Id: <199601131556.PAA01622@fruitbat.mcqueen.com> Subject: Re: Just starting....hmmm To: jkl@knosys.com (Jonathan Lancelle) Date: Sat, 13 Jan 1996 15:56:10 +0000 (GMT) Cc: dbi-users@fugue.com In-Reply-To: <199601130830.AAA26211@blob.best.net> from "Jonathan Lancelle" at Jan 13, 96 00:30:10 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 Content-Length: 1122 > I have been looking over tons of docs in an effort to get a simple test > script going which will show me the power of DBI.pm. I understand about > selecting a driver (mSQL for now, it's installed on my server). I understand > the bit about connecting to a database (which exists). > > Herein lies the rub. I don't have a database to connect to. Can I create a > database with any of the subroutine calls in DBI.pm? How do I get to just > this first step? Eh? You just said you *did* have a database to connect to, in the first paragraph, and now you're saying you don't? Anyway, you can create an mSQL database with the DBD::mSQL driver, although, you have to be the mSQL 'root' user to do so, and the database must be local to the machine you're running the script on. Please see: http://www.hermetica.com/technologia/DBI for more information. Also, read the test.pl and extratests/*pl scripts to see how the various functions work. Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <02906-1@oink>; Mon, 15 Jan 1996 02:39:39 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821671256:26721:1; Mon, 15 Jan 96 02:00:56 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa26689; 15 Jan 96 2:00 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id RAA14952 for dbi-users-real; Sun, 14 Jan 1996 17:32:58 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from test.nla.gov.au (test.nla.gov.au [192.102.239.34]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id RAA14948 for ; Sun, 14 Jan 1996 17:32:54 -0800 Received: by test.nla.gov.au (AIX 3.2/UCB 5.64/4.03) id AA36212; Mon, 15 Jan 1996 12:07:24 +1100 Date: Mon, 15 Jan 1996 12:01:19 +22300454 (EETDT) From: Michael Ledwidge Subject: Determining no. of rows using Oraperl To: dbi-users@fugue.com Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Having recently switched from using mSQL to Oraperl, I'm wondering if there is an easy way of determining how many records are returned by a query without having to fetch each one in turn. This was a value maintained in the handle returned by mSQL (ie. $sth->numrows) but I can't find any equivalent construct in the Oraperl doco. Is there a way of determining the number of rows _before_ every record is fetched? I would like to make some preliminary judgements about the whole result before handling each row. Thanx, .M. *********************************************************************** Michael Ledwidge http://www.nla.gov.au/hype/ National Library of Australia ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <03508-3@oink>; Mon, 15 Jan 1996 04:46:23 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821678836:07031:0; Mon, 15 Jan 96 04:07:16 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa06797; 15 Jan 96 4:06 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id TAA15314 for dbi-users-real; Sun, 14 Jan 1996 19:42:20 -0800 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.6.12/8.6.11) with SMTP id TAA15310 for ; Sun, 14 Jan 1996 19:42:16 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id be12885; 15 Jan 96 3:24 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa19847; 15 Jan 96 2:49 GMT Received: from toad by oink with SMTP (PP) id <03079-0@oink>; Mon, 15 Jan 1996 02:48:50 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA06991; Mon, 15 Jan 1996 02:48:21 +0000 Date: Mon, 15 Jan 1996 02:48:21 +0000 From: Tim Bunce Message-Id: <9601150248.AA06991@toad.ig.co.uk> To: dbi-users@fugue.com, leddo@nla.gov.au Subject: Re: Determining no. of rows using Oraperl X-Sun-Charset: US-ASCII content-length: 613 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Michael Ledwidge > > Having recently switched from using mSQL to Oraperl, I'm wondering if > there is an easy way of determining how many records are returned by a > query without having to fetch each one in turn. This was a value > maintained in the handle returned by mSQL (ie. $sth->numrows) but I can't > find any equivalent construct in the Oraperl doco. > > Is there a way of determining the number of rows _before_ every record is > fetched? I would like to make some preliminary judgements about the whole > result before handling each row. No. Not that I'm aware of. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <03950-0@oink>; Mon, 15 Jan 1996 07:06:17 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821683436:29459:0; Mon, 15 Jan 96 05:23:56 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa29197; 15 Jan 96 5:22 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id UAA15526 for dbi-users-real; Sun, 14 Jan 1996 20:52:58 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from sgigate.sgi.com (sgigate.SGI.COM [204.94.209.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id UAA15522 for ; Sun, 14 Jan 1996 20:52:58 -0800 Received: from sgihub.corp.sgi.com by sgigate.sgi.com via ESMTP (950911.SGI.8.6.12.PATCH825/940406.SGI) for <@sgigate.sgi.com:dbi-users@fugue.com> id UAA00581; Sun, 14 Jan 1996 20:54:48 -0800 Received: from rock.csd.sgi.com by sgihub.corp.sgi.com via ESMTP (950511.SGI.8.6.12.PATCH526/911001.SGI) for <@sgihub.corp.sgi.com:dbi-users@fugue.com> id UAA18940; Sun, 14 Jan 1996 20:54:44 -0800 Received: from shamu.csd.sgi.com by rock.csd.sgi.com via ESMTP (940816.SGI.8.6.9/910805.SGI) for <@rock.csd.sgi.com:dbi-users@fugue.com> id UAA03601; Sun, 14 Jan 1996 20:54:44 -0800 Received: by shamu.csd.sgi.com (950413.SGI.8.6.12/911001.SGI) id UAA05592; Sun, 14 Jan 1996 20:54:43 -0800 Date: Sun, 14 Jan 1996 20:54:43 -0800 From: krishpl@shamu.csd.sgi.com (Perl mail address) Message-Id: <199601150454.UAA05592@shamu.csd.sgi.com> To: dbi-users@fugue.com In-reply-to: billw@airone.claircom.com's message of Mon, 11 Dec 95 20:20:19 PST Subject: Re: New directions for DBI - Important References: <9512120420.AA03096@soc5.airone.claircom.com> Is there a web page or some official location from which we can retrieve information on this? An FAQ, perhaps? While I'm sure it's in one of the comp.databases newsgroups, I suspect someone could provide a specific pointer here quickly. Krishna ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <05415-0@oink>; Mon, 15 Jan 1996 09:25:46 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821695285:05203:0; Mon, 15 Jan 96 08:41:25 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa05042; 15 Jan 96 8:40 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id AAA15949 for dbi-users-real; Mon, 15 Jan 1996 00:11:07 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cvrelay.cv.com (cvrelay.CV.COM [130.21.162.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id AAA15945 for ; Mon, 15 Jan 1996 00:11:04 -0800 Received: from dm-server.cv.com (dm-server.CV.COM [130.21.231.252]) by cvrelay.cv.com (8.6.9/8.6.9) with SMTP id DAA01996 for ; Mon, 15 Jan 1996 03:17:50 -0500 Received: by dm-server.cv.com (5.0/SMI-SVR4) id AA22073; Mon, 15 Jan 1996 09:13:08 +0100 Date: Mon, 15 Jan 1996 09:13:08 +0100 From: mkr@dm-server.cv.com (Kraegeloh Martin) Message-Id: <9601150813.AA22073@dm-server.cv.com> To: dbi-users@fugue.com, leddo@nla.gov.au Subject: Re: Determining no. of rows using Oraperl X-Sun-Charset: US-ASCII content-length: 756 > > From: Michael Ledwidge > > > > Having recently switched from using mSQL to Oraperl, I'm wondering if > > there is an easy way of determining how many records are returned by a > > query without having to fetch each one in turn. This was a value > > maintained in the handle returned by mSQL (ie. $sth->numrows) but I can't > > find any equivalent construct in the Oraperl doco. > > > > Is there a way of determining the number of rows _before_ every record is > > fetched? I would like to make some preliminary judgements about the whole > > result before handling each row. > > No. Not that I'm aware of. > > Tim. > you can do a select count(*) from .... to fetch the count first (I know it sounds obvious, sorry!) Martin ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <06488-5@oink>; Mon, 15 Jan 1996 12:57:12 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821710214:24786:0; Mon, 15 Jan 96 12:50:14 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa24364; 15 Jan 96 12:49 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id DAA16172 for dbi-users-real; Mon, 15 Jan 1996 03:56:52 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cvrelay.cv.com (cvrelay.CV.COM [130.21.162.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA16168 for ; Mon, 15 Jan 1996 03:56:50 -0800 Received: from dm-server.cv.com (dm-server.CV.COM [130.21.231.252]) by cvrelay.cv.com (8.6.9/8.6.9) with SMTP id HAA02805; Mon, 15 Jan 1996 07:03:37 -0500 Received: by dm-server.cv.com (5.0/SMI-SVR4) id AA22373; Mon, 15 Jan 1996 12:58:53 +0100 Date: Mon, 15 Jan 1996 12:58:53 +0100 From: mkr@dm-server.cv.com (Kraegeloh Martin) Message-Id: <9601151158.AA22373@dm-server.cv.com> To: jms@sequent.com Subject: Re: Determining no. of rows using Oraperl Cc: dbi-users@fugue.com, leddo@nla.gov.au X-Sun-Charset: US-ASCII content-length: 1987 > >>>>> "Kraegeloh" == Kraegeloh Martin writes: > > >> > From: Michael Ledwidge > > Having recently > >> switched from using mSQL to Oraperl, I'm wondering if > there > >> is an easy way of determining how many records are returned by > >> a > query without having to fetch each one in turn. This was a > >> value > maintained in the handle returned by mSQL > >> (ie. $sth->numrows) but I can't > find any equivalent construct > >> in the Oraperl doco. > > Is there a way of determining the > >> number of rows _before_ every record is > fetched? I would like > >> to make some preliminary judgements about the whole > result > >> before handling each row. > >> > >> No. Not that I'm aware of. > >> > >> Tim. > >> > > Kraegeloh> you can do a select count(*) from .... to fetch the > Kraegeloh> count first (I know it sounds obvious, sorry!) > > Kraegeloh> Martin > > Yeap! Suppose now that your table holds 400,000,000 tuples :=)) > I know if sounds obvious, sorry!!! > > With Oracle, you NEVER know the number of rows of a table before actually > having fetch the last+1 rows which will return a 1403 error (no data found). > Hmmm ... what about this: SQL> select count(*) from dict; COUNT(*) ---------- 213 This is what I meant :-) Martin > This is not true with Informix, which does not need to count effectivly > the rows but rather holds this number in a table header, and renders the > "count(*)" stuff possible. > > -- > ______________________________________________________________________________ > JM Sulmont jms@sequent.com > Regional Technical Support Consultant > Sequent Computer Systems > Tour Chantecoq > 5, rue Chantecoq > 92808 Puteaux Cedex France > (33) (1) 41 45 01 72 Fax (33) (1) 47 74 70 29 > ------------------------------------------------------------------------------ > ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <06491-11@oink>; Mon, 15 Jan 1996 12:57:46 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821705109:20041:1; Mon, 15 Jan 96 11:25:09 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa19819; 15 Jan 96 11:24 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id CAA16091 for dbi-users-real; Mon, 15 Jan 1996 02:42:41 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id CAA16087 for ; Mon, 15 Jan 1996 02:42:40 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id KAA10158; Mon, 15 Jan 1996 10:38:23 GMT From: Alligator Descartes Message-Id: <199601151038.KAA10158@fruitbat.mcqueen.com> Subject: Re: New directions for DBI - Important To: krishpl@shamu.csd.sgi.com (Perl mail address) Date: Mon, 15 Jan 1996 10:38:22 +0000 (GMT) Cc: dbi-users@fugue.com In-Reply-To: <199601150454.UAA05592@shamu.csd.sgi.com> from "Perl mail address" at Jan 14, 96 08:54:43 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 Content-Length: 468 > Is there a web page or some official location from which we can > retrieve information on this? An FAQ, perhaps? While I'm sure it's > in one of the comp.databases newsgroups, I suspect someone could > provide a specific pointer here quickly. http://www.hermetica.com/technologia/DBI > Krishna -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <06491-15@oink>; Mon, 15 Jan 1996 12:58:01 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821709302:22508:0; Mon, 15 Jan 96 12:35:02 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa21878; 15 Jan 96 12:33 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id DAA16152 for dbi-users-real; Mon, 15 Jan 1996 03:35:43 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from gateway.sequent.com (gateway.sequent.com [138.95.18.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id DAA16148 for ; Mon, 15 Jan 1996 03:35:42 -0800 Received: from uksqnt.uk.sequent.com (uksqnt.uk.sequent.com [158.84.84.5]) by gateway.sequent.com (8.6.12/8.6.9) with ESMTP id DAA14500; Mon, 15 Jan 1996 03:32:56 -0800 Received: from circee.svc.fra.sequent.com (circee.svc.fra.sequent.com [158.84.66.1]) by uksqnt.uk.sequent.com (8.6.12/8.6.9) with SMTP id LAA13202; Mon, 15 Jan 1996 11:33:41 GMT Received: by circee.svc.fra.sequent.com id AA16282 (5.65c8/IDA-1.4.4); Mon, 15 Jan 1996 12:28:12 +0100 Date: Mon, 15 Jan 1996 12:28:12 +0100 From: Jean-Marie Sulmont Message-Id: <199601151128.AA16282@circee.svc.fra.sequent.com> To: mkr@dm-server.cv.com Cc: dbi-users@fugue.com, leddo@nla.gov.au In-Reply-To: <9601150813.AA22073@dm-server.cv.com> (mkr@dm-server.cv.com) Subject: Re: Determining no. of rows using Oraperl >>>>> "Kraegeloh" == Kraegeloh Martin writes: >> > From: Michael Ledwidge > > Having recently >> switched from using mSQL to Oraperl, I'm wondering if > there >> is an easy way of determining how many records are returned by >> a > query without having to fetch each one in turn. This was a >> value > maintained in the handle returned by mSQL >> (ie. $sth->numrows) but I can't > find any equivalent construct >> in the Oraperl doco. > > Is there a way of determining the >> number of rows _before_ every record is > fetched? I would like >> to make some preliminary judgements about the whole > result >> before handling each row. >> >> No. Not that I'm aware of. >> >> Tim. >> Kraegeloh> you can do a select count(*) from .... to fetch the Kraegeloh> count first (I know it sounds obvious, sorry!) Kraegeloh> Martin Yeap! Suppose now that your table holds 400,000,000 tuples :=)) I know if sounds obvious, sorry!!! With Oracle, you NEVER know the number of rows of a table before actually having fetch the last+1 rows which will return a 1403 error (no data found). This is not true with Informix, which does not need to count effectivly the rows but rather holds this number in a table header, and renders the "count(*)" stuff possible. -- ______________________________________________________________________________ JM Sulmont jms@sequent.com Regional Technical Support Consultant Sequent Computer Systems Tour Chantecoq 5, rue Chantecoq 92808 Puteaux Cedex France (33) (1) 41 45 01 72 Fax (33) (1) 47 74 70 29 ------------------------------------------------------------------------------ ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <07736-2@oink>; Mon, 15 Jan 1996 16:53:46 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821715832:13427:0; Mon, 15 Jan 96 14:23:52 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa13031; 15 Jan 96 14:23 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id FAA16308 for dbi-users-real; Mon, 15 Jan 1996 05:41:27 -0800 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.6.12/8.6.11) with SMTP id FAA16304 for ; Mon, 15 Jan 1996 05:41:11 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id af01377; 15 Jan 96 13:01 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ab06867; 15 Jan 96 12:57 GMT Received: from toad by oink with SMTP (PP) id <05700-0@oink>; Mon, 15 Jan 1996 09:41:19 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA11229; Mon, 15 Jan 1996 09:40:50 +0000 Date: Mon, 15 Jan 1996 09:40:50 +0000 From: Tim Bunce Message-Id: <9601150940.AA11229@toad.ig.co.uk> To: dbi-users@fugue.com, leddo@nla.gov.au, mkr@dm-server.cv.com Subject: Re: Determining no. of rows using Oraperl X-Sun-Charset: US-ASCII content-length: 656 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: mkr@dm-server.cv.com (Kraegeloh Martin) > > > > From: Michael Ledwidge > > > > > > Is there a way of determining the number of rows _before_ every record is > > > fetched? I would like to make some preliminary judgements about the whole > > > result before handling each row. > > > > No. Not that I'm aware of. > > you can do a > select count(*) from .... > to fetch the count first (I know it sounds obvious, sorry!) Of course, you can do that, but it would give a whole new meaning to 'inefficient' for non-trivial queries. Oracle can't offer the row count for a given cursor before fetching all the data from it. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <07747-3@oink>; Mon, 15 Jan 1996 16:54:25 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821715893:09183:0; Mon, 15 Jan 96 14:24:53 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa09053; 15 Jan 96 14:24 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id FAA16259 for dbi-users-real; Mon, 15 Jan 1996 05:16:03 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from auspex-gw.auspex.com (auspex-gw.auspex.com [144.48.1.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id FAA16255 for ; Mon, 15 Jan 1996 05:16:03 -0800 Received: from auspex.Auspex.com (auspex-e6.auspex.com [144.48.8.10]) by auspex-gw.auspex.com (8.6.12/8.6.12) with SMTP id FAA03198 for ; Mon, 15 Jan 1996 05:17:50 -0800 Received: from alpha1 by auspex.Auspex.com (4.1/SMI-4.1) id AA19218; Mon, 15 Jan 96 05:17:49 PST Date: Mon, 15 Jan 96 05:17:49 PST From: kstock@auspex.com (Kevin Stock) Message-Id: <9601151317.AA19218@auspex.Auspex.com> Reply-To: kstock@auspex.com To: dbi-users@fugue.com Subject: Re: Determining no. of rows using Oraperl > Having recently switched from using mSQL to Oraperl, I'm wondering if > there is an easy way of determining how many records are returned by a > query without having to fetch each one in turn. This was a value > maintained in the handle returned by mSQL (ie. $sth->numrows) but I can't > find any equivalent construct in the Oraperl doco. > > Is there a way of determining the number of rows _before_ every record is > fetched? I would like to make some preliminary judgements about the whole > result before handling each row. If you execute the query "select count(*) from ... where ..." it will return the number of rows matching the query without fetching them. Kevin ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <07736-11@oink>; Mon, 15 Jan 1996 16:54:32 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821718693:05744:1; Mon, 15 Jan 96 15:11:33 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa05602; 15 Jan 96 15:11 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA16400 for dbi-users-real; Mon, 15 Jan 1996 06:32:28 -0800 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.6.12/8.6.11) with SMTP id GAA16396 for ; Mon, 15 Jan 1996 06:32:22 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id bg17476; 15 Jan 96 10:19 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa07263; 15 Jan 96 7:54 GMT Received: from toad by oink with SMTP (PP) id <04650-0@oink>; Mon, 15 Jan 1996 07:53:43 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA10487; Mon, 15 Jan 1996 07:52:59 +0000 Date: Mon, 15 Jan 1996 07:52:59 +0000 From: Tim Bunce Message-Id: <9601150752.AA10487@toad.ig.co.uk> To: dbi-users@fugue.com, krishpl@shamu.csd.sgi.com Subject: Re: New directions for DBI - Important X-Sun-Charset: US-ASCII content-length: 680 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: krishpl@shamu.csd.sgi.com (Perl mail address) > > Is there a web page or some official location from which we can > retrieve information on this? An FAQ, perhaps? While I'm sure it's > in one of the comp.databases newsgroups, I suspect someone could > provide a specific pointer here quickly. No FAQ, sorry. I've not even put a copy of that message in my archive. You'll find lots of info about the _current_ DBI and DBD drivers at http://www.hermetica.com and assorted stuff at ftp://ftp.demon.co.uk/pub/perl/db With regard to 'New directions for DBI' it'll be a fast moving target just as soon as I can stop working all hours on my 'real work'. Stay tuned. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09644-0@oink>; Mon, 15 Jan 1996 18:00:41 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821728581:20177:0; Mon, 15 Jan 96 17:56:21 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa19512; 15 Jan 96 17:54 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA16572 for dbi-users-real; Mon, 15 Jan 1996 08:44:54 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from aqua.whoi.edu (aqua.whoi.edu [128.128.16.1]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA16568 for ; Mon, 15 Jan 1996 08:44:52 -0800 Received: from whsun1 .wh.whoi.edu ([128.128.104.38]) by aqua.whoi.edu (8.6.11/8.6.11) with SMTP id LAA23018; Mon, 15 Jan 1996 11:46:42 -0500 Received: by whsun1 .wh.whoi.edu (4.1/1.34/indent-1.0) id AA27952; Mon, 15 Jan 96 11:48:36 EST From: dhiltz@whsun1.wh.whoi.edu (David Hiltz) Message-Id: <9601151648.AA27952@whsun1 .wh.whoi.edu> Subject: Re: Determining no. of rows using Oraperl To: kstock@auspex.com Date: Mon, 15 Jan 1996 11:48:36 -0500 (EST) Cc: dbi-users@fugue.com In-Reply-To: <9601151317.AA19218@auspex.Auspex.com> from "Kevin Stock" at Jan 15, 96 05:17:49 am X-Mailer: ELM [version 2.4 PL22] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1815 > > Having recently switched from using mSQL to Oraperl, I'm wondering if > > there is an easy way of determining how many records are returned by a > > query without having to fetch each one in turn. This was a value > > maintained in the handle returned by mSQL (ie. $sth->numrows) but I can't > > find any equivalent construct in the Oraperl doco. > > > > Is there a way of determining the number of rows _before_ every record is > > fetched? I would like to make some preliminary judgements about the whole > > result before handling each row. > > If you execute the query "select count(*) from ... where ..." it will > return the number of rows matching the query without fetching them. Below is a subroutine I use with Oraperl to return the number of rows in a given query. You can pass it a complete query or a "from table..." type statement. You can use it like this: $sel = "select * from dept where deptno = 10"; if (&get_nrec($sel) > 0) { ...do something } or $nrec = &get_nrec("from emp where empno > 5000"); ----------- David Hiltz dhiltz@whsun1.wh.whoi.edu ccMail: David Hiltz Unix System, Network and Oracle DB Administrator Northeast Fisheries Science Center ######&@&###### #--------------------------------------------------------------------------------- sub get_nrec { local($selstr) = @_; local($csr); local($nrec); # Remove everything up to first "from" keyword. @parts = split(/from/i,$selstr); # break out parts around "from" keyword shift(parts); $selstr = "from" . join("from",@parts); # Get a record count using "select count(*)" and "from ..where" clause. $csr = &ora_open($lda,"select count(*) $selstr") || die $ora_errstr; ($nrec) = &ora_fetch($csr, 1); &ora_close($csr); return($nrec); } ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <11458-16@oink>; Tue, 16 Jan 1996 07:08:17 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821741760:28909:1; Mon, 15 Jan 96 21:36:00 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id af28659; 15 Jan 96 21:35 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Mon, 15 Jan 1996 18:36:20 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA16775 for dbi-users-real; Mon, 15 Jan 1996 09:43:29 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay.inferentia.it (dns.inferentia.it [151.99.220.4]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id JAA16771 for ; Mon, 15 Jan 1996 09:43:27 -0800 Received: from yquem.inferentia.it (yquem.inferentia.it [194.184.62.17]) by relay.inferentia.it (8.6.12/8.6.12) with SMTP id SAA07019 for ; Mon, 15 Jan 1996 18:44:39 +0100 Posted-Date: Mon, 15 Jan 1996 18:44:39 +0100 Received: by yquem.inferentia.it with Microsoft Mail id <01BAE37A.3CFAE1E0@yquem.inferentia.it>; Mon, 15 Jan 1996 18:49:45 +-100 Message-ID: <01BAE37A.3CFAE1E0@yquem.inferentia.it> From: Davide Migliavacca To: "dbi-users@fugue.com" Subject: RE: Determining no. of rows using Oraperl Date: Mon, 15 Jan 1996 18:49:44 +-100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Actually, basing on my experience, select count(*) may prove = inefficient, while select count() il always very fast. As for the previous comments, it is true that you must execute the = select to determine the number of rows, but also that statement cache = management usually allows the subsequent "real" execution of the EXACTLY = SAME (case and whitespace-sensitive) statement ro avoid a lot of work on = behalf of the server engine. So, while not recommended, if you're really desperate and your SQL area = is large enough, you may resort to the orrible trick. In this case, try to generalise your count statements using host = variables, since that allows for caching of parameterized statements, = while dynamically creating the SQL string will forfeit the cache. On luned=EC 15 gennaio 1996 14.17, Kevin Stock[SMTP:kstock@auspex.com] = wrote: > > Having recently switched from using mSQL to Oraperl, I'm wondering = if > > there is an easy way of determining how many records are returned by = a > > query without having to fetch each one in turn. This was a value > > maintained in the handle returned by mSQL (ie. $sth->numrows) but I = can't > > find any equivalent construct in the Oraperl doco. > > > > Is there a way of determining the number of rows _before_ every = record is > > fetched? I would like to make some preliminary judgements about the = whole > > result before handling each row. >=20 > If you execute the query "select count(*) from ... where ..." it will > return the number of rows matching the query without fetching them. >=20 > Kevin >=20 >=20 ---------------------------------------- Davide Migliavacca - Inferentia (Milano, IT) Phone +39 (2) 59928.1 FAX .221 *** opinions above are (you guess!) mine *** ---------------------------------------- ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11534-4@oink>; Tue, 16 Jan 1996 07:11:03 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821750225:20646:1; Mon, 15 Jan 96 23:57:05 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa20184; 15 Jan 96 23:56 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA17676 for dbi-users-real; Mon, 15 Jan 1996 15:20:06 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from coffee.stanford.edu (coffee.Stanford.EDU [36.60.0.11]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA17672 for ; Mon, 15 Jan 1996 15:20:05 -0800 Received: from isl.Stanford.EDU (isl [36.60.0.10]) by coffee.stanford.edu (8.7.1/8.7.1) with ESMTP id PAA17185 for ; Mon, 15 Jan 1996 15:22:05 -0800 (PST) From: "Sanford M. Dickert" Received: (from ncc1701a@localhost) by isl.Stanford.EDU (8.7.1/8.7.1) id PAA12908 for dbi-users@fugue.com; Mon, 15 Jan 1996 15:22:02 -0800 (PST) Message-Id: <199601152322.PAA12908@isl.Stanford.EDU> Subject: How do you set the environmental variables? To: dbi-users@fugue.com Date: Mon, 15 Jan 96 15:22:02 PST X-Mailer: ELM [version 2.3 PL11] Ladies and gents - I have been trying to execute a CGI script using Oraperl and I have found that my environmental variables are not being set. I tried the following fix (from David at Metropolis), but it still has a problem with the ORACLE_HOME variable. The start of the code looks like: use DBI; require "Oraperl.pm" import Oraperl; $ENV{ORACLE_HOME} = '/opt/oracle/v7.1.6'; Any ideas how to fix this problem? I am using Netscape Commerce Server and I can not find any info on this issue. Thanks in advance. Sanford -- \=====================================|) |____________________________________/ __^__ |n| ___________./---/______\--\.___________ |n| {||____________________________________/ |n| / n \----.__________.----/ |n| / n / "--" ____| |____/---------------/_ _-|=====|_|======================|/ {__|===========ncc1701a===()======|(- '===\_______________________-----~ \ Sanford M. Dickert E-mail : ncc1701a@isl.stanford.edu Stanford University WWW : http://www-isl.stanford.edu/~ncc1701a ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11459-27@oink>; Tue, 16 Jan 1996 07:11:14 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821750299:21182:2; Mon, 15 Jan 96 23:58:19 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa21086; 15 Jan 96 23:57 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA17684 for dbi-users-real; Mon, 15 Jan 1996 15:21:46 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from coffee.stanford.edu (coffee.Stanford.EDU [36.60.0.11]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA17680 for ; Mon, 15 Jan 1996 15:21:45 -0800 Received: from isl.Stanford.EDU (isl [36.60.0.10]) by coffee.stanford.edu (8.7.1/8.7.1) with ESMTP id PAA17200 for ; Mon, 15 Jan 1996 15:23:45 -0800 (PST) From: "Sanford M. Dickert" Received: (from ncc1701a@localhost) by isl.Stanford.EDU (8.7.1/8.7.1) id PAA12961 for dbi-users@fugue.com; Mon, 15 Jan 1996 15:23:43 -0800 (PST) Message-Id: <199601152323.PAA12961@isl.Stanford.EDU> Subject: Opps....... To: dbi-users@fugue.com Date: Mon, 15 Jan 96 15:23:43 PST X-Mailer: ELM [version 2.3 PL11] By the way - there is a semi-colon after the require "Oraperl.pm" line - I forgot to port it over on the mail message. So that is not the problem. Thanks. Sanford -- \=====================================|) |____________________________________/ __^__ |n| ___________./---/______\--\.___________ |n| {||____________________________________/ |n| / n \----.__________.----/ |n| / n / "--" ____| |____/---------------/_ _-|=====|_|======================|/ {__|===========ncc1701a===()======|(- '===\_______________________-----~ \ Sanford M. Dickert E-mail : ncc1701a@isl.stanford.edu Stanford University WWW : http://www-isl.stanford.edu/~ncc1701a ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11534-9@oink>; Tue, 16 Jan 1996 07:12:06 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821752502:09084:1; Tue, 16 Jan 96 00:35:02 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa08694; 16 Jan 96 0:34 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA17843 for dbi-users-real; Mon, 15 Jan 1996 16:00:10 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id QAA17839 for ; Mon, 15 Jan 1996 16:00:07 -0800 Received: from localhost by colossus.cse.psu.edu with SMTP id <78596>; Mon, 15 Jan 1996 19:02:02 -0500 X-Mailer: exmh version 1.6.1 5/23/95 To: dbi-users@fugue.com Cc: John Wieler Subject: Re: DBI/CGI probs In-reply-to: Your message of "Mon, 15 Jan 1996 17:21:18 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Jan 1996 18:54:03 -0500 From: John D Groenveld Message-Id: <96Jan15.190202est.78596@colossus.cse.psu.edu> I'm not that familiar with DBI, but I think you should be using the Oraperl emulation instead. On that note you probably want to upgrade DBI/DBD (under ftp://nearest.CPAN.site/authors/id/TIMB/DBD). Now, on to your question whether "Am I doing something dumb?"--I bet you're making the common mistake of not realizing that your server scripts are run with a minimal environment. Try unsetting all of your environment variables and see if your script runs. I bet you'll find that your CGI script needs some Oracle variables (ORACLE_HOME, TWO_TASK, ORACLE_SID, or TNS_NAMES). Happy CGI programming... John groenvel@cse.psu.edu ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <11534-15@oink>; Tue, 16 Jan 1996 07:13:39 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821761197:00644:0; Tue, 16 Jan 96 02:59:57 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id ac00377; 16 Jan 96 2:59 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Tue, 16 Jan 1996 01:53:01 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA17808 for dbi-users-real; Mon, 15 Jan 1996 15:55:42 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from tahiti.metropolis.com (tahiti.metropolis.com [205.186.205.2]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA17804 for ; Mon, 15 Jan 1996 15:55:41 -0800 Received: from msi-gateway1.metropolis.com (msi-gateway1.metropolis.com [205.186.205.12]) by tahiti.metropolis.com (8.6.12/8.6.9) with SMTP id QAA03201 for <@tahiti.metropolis.com:dbi-users@fugue.com>; Mon, 15 Jan 1996 16:53:52 -0800 Received: by msi-gateway1.metropolis.com (IBM OS/2 SENDMAIL VERSION 1.3.14/1.1) id AA4720; Mon, 15 Jan 96 16:06:41 -0800 Message-Id: <9601160006.AA4720@msi-gateway1.metropolis.com> Received: from MSI Notes Network with "Lotus Notes Mail Gateway for SMTP" id A790B50F192B5344882562B200833F70; Mon, 15 Jan 96 16:06:39 To: "Sanford M. Dickert" Cc: dbi-users From: David Moellenhoff/MSI Date: 15 Jan 96 15:55:19 EDT Subject: Re: How do you set the environmental variables? Mime-Version: 1.0 Content-Type: Text/Plain Remove the "use DBI" and put the $ENV before the require/import. You need to set the ORACLE_HOME before you load the DBD-Oracle (through the Oraperl) module. -Dave --------------------------------------------- I have been trying to execute a CGI script using Oraperl and I have found that my environmental variables are not being set. I tried the following fix (from David at Metropolis), but it still has a problem with the ORACLE_HOME variable. The start of the code looks like: use DBI; require "Oraperl.pm" import Oraperl; $ENV{ORACLE_HOME} = '/opt/oracle/v7.1.6'; Any ideas how to fix this problem? I am using Netscape Commerce Server and I can not find any info on this issue. Thanks in advance. Sanford -- \=====================================|) |____________________________________/ __^__ |n| ___________./---/______\--\.___________ |n| {||____________________________________/ |n| / n \----.__________.----/ |n| / n / "--" ____| |____/---------------/_ _-|=====|_|======================|/ {__|===========ncc1701a===()======|(- '===\_______________________-----~ \ Sanford M. Dickert E-mail : ncc1701a@isl.stanford.edu Stanford University WWW : http://www-isl.stanford.edu/~ncc1701a ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <11544-18@oink>; Tue, 16 Jan 1996 07:14:56 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821752208:05309:0; Tue, 16 Jan 96 00:30:08 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa05066; 16 Jan 96 0:29 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA17547 for dbi-users-real; Mon, 15 Jan 1996 14:25:10 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from salk (salk.sbrc.umanitoba.ca [142.200.128.1]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA17543 for ; Mon, 15 Jan 1996 14:25:09 -0800 Received: from cemanager.sbrc.umanitoba.ca by salk with smtp (Smail3.1.28.1 #5) id m0tbxMJ-0000GAC; Mon, 15 Jan 96 16:26 CST Date: Mon, 15 Jan 96 16:21:18 CST From: John Wieler Subject: DBI/CGI probs To: dbi-users@fugue.com X-Mailer: Chameleon ENGP1, TCP/IP for Windows, NetManage Inc. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Greetings Gurus: (Initial newbie warning) I just started using DBI, CGI, Perl, and find it all lots of fun. My main goal in this excercize was to get my web server spewing forth query results. The following script works off the command line i.e. the output is correct. When I run it from an html document, it starts off fine, but I never get any output from oracle on my browser I tracked the problem down to the prepare statement. I get output before the prepare statement, but never after. Am I doing something dumb? I'm running Perl v 5.001m, DBI v0.64, DBD-Oracle 0.26, and UIUC httpd 1.4.2 on a Unixware 2.01 box. The script i'm running is #!/opt/bin/perl push(@INC,'..'); require CGI::Form; require DBI; $ENV{DBPERL_PATH}='/opt/lib/perl5.001m/DBD'; $dbname = "****"; $query = new CGI::Form; print $query->header; &print_head; $drh = DBI->install_driver('Oracle'); $dbh =$drh->connect($dbname,'*****','*****'); print '

connected to database'; # works up until this point. All of the above html will output correctly # on my browser $sth = $dbh->prepare("select * from words where descr = 'TEDS'"); print '

query prepared'; $sth->execute; while(@fields = $sth->fetchrow){ print "

"; print "@fields\n"; } $sth->finish; &print_tail; sub print_head { print < Example Oracle Interface

Example Oracle Interface

END } sub print_tail { print < END } Thank you for you attention. ------------------------------------- John Wieler Manager,Clinical Engineering, SBGH **All the usual disclaimers** E-mail: John Wieler Date: 01/15/96 Time: 16:21:18 ------------------------------------- ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <11458-62@oink>; Tue, 16 Jan 1996 07:18:43 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821765899:21648:1; Tue, 16 Jan 96 04:18:19 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa21473; 16 Jan 96 4:17 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id TAA18277 for dbi-users-real; Mon, 15 Jan 1996 19:32:57 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from pluto.icn.su.oz.au (pluto.icn.su.OZ.AU [129.78.47.3]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id TAA18273 for ; Mon, 15 Jan 1996 19:32:42 -0800 From: mark@pluto.icn.su.oz.au Received: from Radiology-Message_Server by pluto.icn.su.oz.au with WordPerfect_Office; Tue, 16 Jan 1996 14:36:28 +1000 Message-Id: X-Mailer: WordPerfect Office 4.0 Date: Tue, 16 Jan 1996 14:34:57 +1000 To: dbi-users@fugue.com Subject: make test failure on DBD-Oracle-0.27 I have just installed DBI on a Sunos 4.1.3 machine. Installation seemed to go okay with Perl 5.001m. When I do 'make test' I get t/base......................ld.so: Undefined Symbol: __log10 This also happens with test.pl. If I run 'make test-static' it all works fine. Can someone point me in the right direction. All the Perl5 tests pass okay. Thanks MArk Prince markp@icn.su.oz.au ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <20703-4@oink>; Wed, 17 Jan 1996 07:06:31 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821815701:05361:2; Tue, 16 Jan 96 18:08:21 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa04053; 16 Jan 96 18:07 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA19203 for dbi-users-real; Tue, 16 Jan 1996 06:35:10 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from salk (salk.sbrc.umanitoba.ca [142.200.128.1]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id GAA19199 for ; Tue, 16 Jan 1996 06:35:08 -0800 Received: from cemanager.sbrc.umanitoba.ca by salk with smtp (Smail3.1.28.1 #5) id m0tcCVN-0000FoC; Tue, 16 Jan 96 08:36 CST Date: Tue, 16 Jan 96 08:40:34 CST From: John Wieler Subject: Re: DBI/CGI probs To: John D Groenveld , dbi-users@fugue.com X-Mailer: Chameleon ENGP1, TCP/IP for Windows, NetManage Inc. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii On Mon, 15 Jan 1996 18:54:03 -0500 John D Groenveld wrote: >Now, on to your question whether "Am I doing something dumb?"--I bet you're >making the common mistake of not realizing that your server scripts are run >with a minimal environment. Try unsetting all of your environment variables >and see if your script runs. I bet you'll find that your CGI script needs some >Oracle variables (ORACLE_HOME, TWO_TASK, ORACLE_SID, or TNS_NAMES). >Happy CGI programming... Thats it! Thanks very much. It really was a dummy mistake. ------------------------------------- John Wieler Manager,Clinical Engineering, SBGH **All the usual disclaimers** E-mail: John Wieler Date: 01/16/96 Time: 08:40:34 ------------------------------------- ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <20703-13@oink>; Wed, 17 Jan 1996 07:08:12 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821826070:13419:1; Tue, 16 Jan 96 21:01:10 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa12281; 16 Jan 96 20:59 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA19716 for dbi-users-real; Tue, 16 Jan 1996 09:49:42 -0800 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.6.12/8.6.11) with SMTP id JAA19712 for ; Tue, 16 Jan 1996 09:49:32 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id cw21345; 16 Jan 96 15:18 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ae08597; 16 Jan 96 15:11 GMT Received: from toad by oink with SMTP (PP) id <17961-0@oink>; Tue, 16 Jan 1996 14:41:10 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18429; Tue, 16 Jan 1996 14:41:03 +0000 Date: Tue, 16 Jan 1996 14:41:03 +0000 From: Tim Bunce Message-Id: <9601161441.AA18429@toad.ig.co.uk> To: dbi-users@fugue.com, ncc1701a@isl.stanford.edu Subject: Re: How do you set the environmental variables? X-Sun-Charset: US-ASCII content-length: 1732 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: "Sanford M. Dickert" > > I have been trying to execute a CGI script using Oraperl and I have found > that my environmental variables are not being set. I tried the following fix > (from David at Metropolis), but it still has a problem with the ORACLE_HOME > variable. The start of the code looks like: > > use DBI; > require "Oraperl.pm" > import Oraperl; > > $ENV{ORACLE_HOME} = '/opt/oracle/v7.1.6'; > > Any ideas how to fix this problem? I am using Netscape Commerce Server > and I can not find any info on this issue. Upgrade to a more recent DBD::Oracle (and DBI at the same time). Later one's don't do anything with ORACLE_HOME at load time. > Thanks in advance. > > Sanford > -- > \=====================================|) > |____________________________________/ __^__ > |n| ___________./---/______\--\.___________ > |n| {||____________________________________/ > |n| / n \----.__________.----/ > |n| / n / "--" > ____| |____/---------------/_ > _-|=====|_|======================|/ > {__|===========ncc1701a===()======|(- > '===\_______________________-----~ \ > > Sanford M. Dickert E-mail : ncc1701a@isl.stanford.edu > Stanford University WWW : http://www-isl.stanford.edu/~ncc1701a Personally, and in general, I tend to skip over messages in usenet groups from people who have obviously not read and understood the guidelines on signatures. I recommend you join news.newusers.announce and read carefully. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <20703-15@oink>; Wed, 17 Jan 1996 07:08:32 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821826138:14029:1; Tue, 16 Jan 96 21:02:18 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa13521; 16 Jan 96 21:01 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA19382 for dbi-users-real; Tue, 16 Jan 1996 08:26:26 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from gatewy.worldbank.org (gatewy.worldbank.org [138.220.3.9]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id IAA19378 for ; Tue, 16 Jan 1996 08:26:25 -0800 Received: from remus.worldbank.org by worldbank.org (PMDF V5.0-5 #7413) id <01I02RAV3QAO0010VS@worldbank.org> for dbi-users@fugue.com; Tue, 16 Jan 1996 11:21:43 -0500 (EST) Received: by remus.worldbank.org; (5.65/1.1.8.2/28Dec95-0332PM) id AA25186; Tue, 16 Jan 1996 11:21:27 -0500 Date: Tue, 16 Jan 1996 11:21:26 -0500 (EST) From: "Alok K. Dhir" Subject: DBD::Oracle (0.27) To: dbi-users@fugue.com Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT I just installed DBD::Oracle and it seems to work. The only problem is that before any query is performed, I get about 4 screenfulls of Bad free() ignored at /usr/local/lib/perl5/DBD/Oracle.pm line 99. Any help would be appreciated... -------------------------------------------------------------------- \||/_ Alok K. Dhir Phone: +1.202.473.2446 oo \ R6-031, OBPIO Email: adhir@worldbank.org L_ The World Bank Group Washington, DC \/ ---------------------------------------------------------------------- | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <20703-17@oink>; Wed, 17 Jan 1996 07:08:53 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821826204:14622:1; Tue, 16 Jan 96 21:03:24 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa13554; 16 Jan 96 21:02 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA19283 for dbi-users-real; Tue, 16 Jan 1996 07:37:08 -0800 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.6.12/8.6.11) with SMTP id HAA19279 for ; Tue, 16 Jan 1996 07:37:04 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ag21431; 16 Jan 96 15:12 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ag08597; 16 Jan 96 15:11 GMT Received: from toad by oink with SMTP (PP) id <17999-0@oink>; Tue, 16 Jan 1996 14:50:10 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18449; Tue, 16 Jan 1996 14:50:03 +0000 Date: Tue, 16 Jan 1996 14:50:03 +0000 From: Tim Bunce Message-Id: <9601161450.AA18449@toad.ig.co.uk> To: dbi-users@fugue.com, jwieler@sbrc.umanitoba.ca Subject: Re: DBI/CGI probs X-Sun-Charset: US-ASCII content-length: 455 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: John Wieler > > I tracked the problem down to the prepare statement. I get output before the > prepare statement, but never after. a) use CGI::ErrorWrap. b) flush print $query->header out of the stdout buffer straight away. (require flush.pl and use printflush $query->header for eaxmple) This is really a generic CGI question and is best followed up in the comp.infosystems.www.authoring.cgi newsgroup. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <20704-18@oink>; Wed, 17 Jan 1996 07:08:54 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821828272:03817:1; Tue, 16 Jan 96 21:37:52 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa03214; 16 Jan 96 21:37 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA19728 for dbi-users-real; Tue, 16 Jan 1996 09:55:08 -0800 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.6.12/8.6.11) with SMTP id JAA19724 for ; Tue, 16 Jan 1996 09:54:21 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ay22013; 16 Jan 96 15:18 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ai08597; 16 Jan 96 15:11 GMT Received: from toad by oink with SMTP (PP) id <18029-0@oink>; Tue, 16 Jan 1996 14:56:19 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18466; Tue, 16 Jan 1996 14:56:12 +0000 Date: Tue, 16 Jan 1996 14:56:12 +0000 From: Tim Bunce Message-Id: <9601161456.AA18466@toad.ig.co.uk> To: dbi-users@fugue.com, mark@pluto.icn.su.oz.au Subject: Re: make test failure on DBD-Oracle-0.27 X-Sun-Charset: US-ASCII content-length: 413 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: mark@pluto.icn.su.oz.au > > I have just installed DBI on a Sunos 4.1.3 machine. Installation seemed to > go okay with Perl 5.001m. When I do 'make test' I get > > t/base......................ld.so: Undefined Symbol: __log10 Never seen that one before. Probably some kind of MakeMaker over -lm. Off-hand I'd suggest you upgrade to perl5.002beta2 and delete and carefully build and test again. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <21801-16@oink>; Wed, 17 Jan 1996 07:28:28 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821863506:02239:0; Wed, 17 Jan 96 07:25:06 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id av27032; 17 Jan 96 7:23 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Tue, 16 Jan 1996 23:03:36 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA20332 for dbi-users-real; Tue, 16 Jan 1996 12:32:52 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from voro.lbl.gov (voro.lbl.gov [131.243.64.29]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA20328 for ; Tue, 16 Jan 1996 12:32:47 -0800 Received: from voro (localhost [127.0.0.1]) by voro.lbl.gov (8.6.12/G) with ESMTP id MAA22616; Tue, 16 Jan 1996 12:33:32 -0800 Message-Id: <199601162033.MAA22616@voro.lbl.gov> X-Mailer: exmh version 1.5.3 12/28/94 To: Davide Migliavacca cc: "dbi-users@fugue.com" Subject: Re: Determining no. of rows using Oraperl In-reply-to: Your message of "Mon, 15 Jan 1996 18:49:44." <01BAE37A.3CFAE1E0@yquem.inferentia.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 16 Jan 1996 12:33:31 -0800 From: Mark Dedlow > From: Davide Migliavacca > > Actually, basing on my experience, select count(*) may prove = > inefficient, while select count() il always very fast. I would concur, from previous tests that I have done, that counting a primary key column (or in fact any indexed column) is faster than count(*), but only by ~10%. I know of others who have had similar results as well, although I have never seen an explanation of why this is so. In any case, the "why" is only of academic interest. One thing is clear however: Oracle does not store a row count anywhere for immediate access. It counts up the rows each time you ask, regardless how you ask (e.g. count(pk), count(*), count(1), count(rowid), etc.) This means a full table scan, or perhaps a scan of the index. Accordingly, elapsed time is going to be roughly linear to the number of rows in the table. So, "very fast" to one person may be very slow to another. It just depends upon how fast your machine is, how many rows in the table, and of course, how significant this elapsed time is to your application. One quick test I just did took 4.06 seconds to count ~200,000 rows using a "count(pk)" on an otherwise near idle Sun Sparc1000 running Oracle 7.1. > As for the previous comments, it is true that you must execute the = > select to determine the number of rows, but also that statement cache = > management usually allows the subsequent "real" execution of the EXACTLY = > SAME (case and whitespace-sensitive) statement ro avoid a lot of work on = > behalf of the server engine. It's true that the statement will be cached, but the parse time on a simple one-liner SQL statement like "select count(pk) from table" is neglible compared to the execution time for anything but a table with a trivial number of rows. In fact, one might argue that the parse time for such a statement is neglible in absolute terms. In the sample test I did, the parse elapsed time was 0.03 secs, which isn't much in absolute terms, and is more than 2 orders of magnitude smaller than the elapsed execution time (which is really pure I/O). Mark ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <22024-15@oink>; Wed, 17 Jan 1996 07:33:18 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821863585:02882:1; Wed, 17 Jan 96 07:26:25 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id bb27032; 17 Jan 96 7:26 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Tue, 16 Jan 1996 23:26:31 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA20305 for dbi-users-real; Tue, 16 Jan 1996 12:22:54 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from ux4.cso.uiuc.edu (dswallow@ux4.cso.uiuc.edu [128.174.5.62]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id MAA20301 for ; Tue, 16 Jan 1996 12:22:52 -0800 Received: (from dswallow@localhost) by ux4.cso.uiuc.edu (8.6.12/8.6.12ui) id OAA02306 for dbi-users@fugue.com; Tue, 16 Jan 1996 14:24:57 -0600 Date: Tue, 16 Jan 1996 14:24:57 -0600 From: DAS Message-Id: <199601162024.OAA02306@ux4.cso.uiuc.edu> To: dbi-users@fugue.com Content-Length: 5566 Hello, I have just installed perl5.002b2. It seemed to install without any problems. When attempted to install DBI-065, I received many problems. Here is the output from the DBI build.... I would appreciate any help as to how to fix the test error. perl Makefile.PL: Build, TEST and INSTALL Perl 5 first. Use version 5.001m or later. DO NOT build the DBI under the Perl source tree. Use 'make test' to execute self tests. MakeMaker (v5.16) Checking if your kit is complete... Looks good Blessing Object into class [PACK001] DEFINE => '-g -Wall -pedantic -Wno-comment -Wpointer-arith -Wcast-align -Wconversion' NAME => 'DBI' VERSION => '0.65' Defaulting INSTALLARCHLIB to $(PREFIX)/lib/perl5/sun4-solaris/5.002 Using PERL=/home/student9/dswallow/local/bin/perl Warning (non-fatal): Importing of %att is deprecated [PM] use $self instead Running: /home/student9/dswallow/local/bin/perl /home/student9/dswallow/local/lib/perl5/ExtUtils/xsubpp -v 2>&1 Writing Makefile for DBI make: umask 0 && cp DBIXS.h blib/sun4-solaris/DBI/DBIXS.h umask 0 && cp lib/DBD/ExampleP.pm blib/DBD/ExampleP.pm umask 0 && cp lib/DBD/NullP.pm blib/DBD/NullP.pm umask 0 && cp lib/DBD/Sponge.pm blib/DBD/Sponge.pm umask 0 && cp DBI.pm blib/DBI.pm /home/student9/dswallow/local/bin/perl -I/home/student9/dswallow/local/lib/perl5/sun4-solaris/5.002 -I/home/student9/dswallow/local/lib/perl5 /home/student9/dswallow/local/lib/perl5/ExtUtils/xsubpp -typemap /home/student9/dswallow/local/lib/perl5/ExtUtils/typemap DBI.xs >DBI.tc && mv DBI.tc DBI.c Please specify prototyping behavior for DBI.xs (see perlxs manual) gcc -c -I/usr/local/include -O -DVERSION=\"0.65\" -DXS_VERSION=\"0.65\" -fpic -I/home/student9/dswallow/local/lib/perl5/sun4-solaris/5.002/CORE -g -Wall -pedantic -Wno-comment -Wpointer-arith -Wcast-align -Wconversion DBI.c DBI.c: In function `dbih_getcom': DBI.c:240: warning: cast increases required alignment of target type DBI.c:248: warning: cast increases required alignment of target type DBI.c: In function `dbih_setup_handle': DBI.c:326: warning: cast increases required alignment of target type DBI.c:338: warning: value computed is not used DBI.c:351: warning: value computed is not used DBI.c:357: warning: value computed is not used DBI.c:358: warning: value computed is not used DBI.c:359: warning: value computed is not used DBI.c:360: warning: value computed is not used DBI.c: In function `dbih_sth_bind_col': DBI.c:546: warning: value computed is not used DBI.c: In function `dbih_set_attr': DBI.c:597: warning: value computed is not used DBI.c: In function `dbih_get_attr': DBI.c:632: warning: value computed is not used DBI.c: In function `XS_DBI_dispatch': DBI.c:852: warning: value computed is not used DBI.c:852: warning: value computed is not used DBI.c: In function `XS_DBD_____st_fetchrow': DBI.c:1418: warning: cast increases required alignment of target type DBI.c:1418: warning: cast increases required alignment of target type DBI.c:1422: warning: cast increases required alignment of target type DBI.c: In function `XS_DBD_____st_fetch': DBI.c:1454: warning: cast increases required alignment of target type DBI.c: In function `XS_DBD___mem__common_DESTROY': DBI.c:1541: warning: cast increases required alignment of target type Running Mkbootstrap for DBI () chmod 644 DBI.bs LD_RUN_PATH="" gcc -o blib/sun4-solaris/auto/DBI/DBI.so -G -L/usr/local/lib DBI.o chmod 755 blib/sun4-solaris/auto/DBI/DBI.so cp DBI.bs ./blib/sun4-solaris/auto/DBI/DBI.bs chmod 644 blib/sun4-solaris/auto/DBI/DBI.bs make test: PERL_DL_NONLAZY=1 /home/student9/dswallow/local/bin/perl -I./blib/sun4-solaris -I./blib -I/home/student9/dswallow/local/lib/perl5/sun4-solaris/5.002 -I/home/student9/dswallow/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/min...............DBI object version 0.65 does not match DBI.pm $VERSION 1.48 at /home/student9/dswallow/local/lib/perl5/DynaLoader.pm line 150. FAILED on test 1 Failed 1 test, 0.00% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic' make test TEST_VERBOSE=1: PERL_DL_NONLAZY=1 /home/student9/dswallow/local/bin/perl -I./blib/sun4-solaris -I./blib -I/home/student9/dswallow/local/lib/perl5/sun4-solaris/5.002 -I/home/student9/dswallow/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t t/min...............1..11 DBI object version 0.65 does not match DBI.pm $VERSION 1.48 at /home/student9/dswallow/local/lib/perl5/DynaLoader.pm line 150. FAILED on test 1 Failed 1 test, 0.00% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic' configuration: Summary of my perl5 (5.0 patchlevel 2) configuration: Platform: osname=solaris, osver=2.4, archname=sun4-solaris uname='sunos sparc9.cs.uiuc.edu 5.4 generic_101945-13 sun4c sparc ' hint=recommended, useposix=true 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 -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' ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <22358-8@oink>; Wed, 17 Jan 1996 07:36:40 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821863872:04690:1; Wed, 17 Jan 96 07:31:12 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id bk27032; 17 Jan 96 7:30 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Wed, 17 Jan 1996 00:17:34 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA20493 for dbi-announce-real; Tue, 16 Jan 1996 13:39:10 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA20489 for ; Tue, 16 Jan 1996 13:39:06 -0800 From: mhm@austin.ibm.com Received: from dax.austin.ibm.com (dax.austin.ibm.com [129.35.86.169]) by netmail1.austin.ibm.com (8.6.12/8.6.11) with SMTP id PAA193549 for ; Tue, 16 Jan 1996 15:41:15 -0600 Received: by dax.austin.ibm.com (AIX 4.1/UCB 5.64/4.03-client-2.6) for dbi-announce@fugue.com at austin.ibm.com; id AA22180; Tue, 16 Jan 1996 15:41:13 -0600 Message-Id: <9601162141.AA22180@dax.austin.ibm.com> To: dbi-announce@fugue.com Subject: DBD::DB2 -- aka db2perl Date: Tue, 16 Jan 96 15:41:13 -0600 I have gotten permission to "beta" externally my DB2 driver. The only stipulation is that the initial round needs to be with users who have an "IBM Nondisclosure Agreement" in place. If anyone is interested and qualifies, either drop me a note directly or respond through the dbi-users list. ------------------------------------------------------------------------------ Michael H. Moran | Standard Disclaimer: The content of mhm@austin.ibm.com | this posting is independent of Commercial Performance | official IBM position. IBM Corporation, Austin, Texas | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <25918-0@oink>; Wed, 17 Jan 1996 12:13:08 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821879771:27287:2; Wed, 17 Jan 96 11:56:11 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa27159; 17 Jan 96 11:55 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id AAA21798 for dbi-users-real; Wed, 17 Jan 1996 00:50:06 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from relay.inferentia.it (dns.inferentia.it [151.99.220.4]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id AAA21794 for ; Wed, 17 Jan 1996 00:50:04 -0800 Received: from yquem.inferentia.it (yquem.inferentia.it [194.184.62.17]) by relay.inferentia.it (8.6.12/8.6.12) with SMTP id JAA10873; Wed, 17 Jan 1996 09:51:24 +0100 Posted-Date: Wed, 17 Jan 1996 09:51:24 +0100 Received: by yquem.inferentia.it with Microsoft Mail id <01BAE4C3.367C9580@yquem.inferentia.it>; Wed, 17 Jan 1996 10:04:39 +-100 Message-ID: <01BAE4C3.367C9580@yquem.inferentia.it> From: Davide Migliavacca To: 'Mark Dedlow' Cc: "'dbi-users@fugue.com'" Subject: RE: Determining no. of rows using Oraperl Date: Wed, 17 Jan 1996 10:04:36 +-100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Mark, thanks for your comment! I admit I have never benchmarked this = behaviour, but I'm sure that in at least two different occasions on = different machines and application environments, using consistently the = pk for counting and fake "order by" clauses using pks for large joins, = the overall response time for user applications improved enough to = satisfy the users. Of course, until I go to the length of understanding the internals = (which I'm not sure I'll ever do anyway) this will stay in the realm of = OBM (Oracle Black Magic). I think everybody on this list will benefit from sharing their = experiences (hoping someone is not seeing this as an off-topic; I = believe it is not). > So, "very fast" to one person may be very slow to another.=20 > It just depends upon how fast your machine is, how many rows in the > table, and of course, how significant this elapsed time is to your > application.=20 I agree. =09 > It's true that the statement will be cached, but the parse time on > a simple one-liner SQL statement like "select count(pk) from table" > is neglible compared to the execution time for anything but a table = with > a trivial number of rows. =20 I think it is also tied to the size of the row. For instance, if your = table contains a BLOB, my rule of thumb is never use anything another = than the keys. But I admit this will generally be evident with complex = statements and particularly for joins; for example, sometimes I add a = (otherwise useless) "order by" clause on a pk in order to force Oracle = in using the index when scanning the table, which it wouldn't do without = the clause. Bye Davide ---------------------------------------- Davide Migliavacca - Inferentia (Milano, IT) Phone +39 (2) 59928.1 FAX .221 *** opinions above are (you guess!) mine *** ---------------------------------------- ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <27327-0@oink>; Wed, 17 Jan 1996 15:26:41 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821892343:02900:1; Wed, 17 Jan 96 15:25:43 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa01670; 17 Jan 96 15:23 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA22127 for dbi-announce-real; Wed, 17 Jan 1996 06:05:13 -0800 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.6.12/8.6.11) with SMTP id GAA22123; Wed, 17 Jan 1996 06:03:31 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id bd28513; 17 Jan 96 13:58 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ah21901; 17 Jan 96 13:23 GMT Received: from toad by oink with SMTP (PP) id <26191-0@oink>; Wed, 17 Jan 1996 12:49:17 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA21403; Wed, 17 Jan 1996 12:49:10 +0000 Date: Wed, 17 Jan 1996 12:49:10 +0000 From: Tim Bunce Message-Id: <9601171249.AA21403@toad.ig.co.uk> To: dbi-users@fugue.com, dswallow@students.uiuc.edu Subject: Warning - version check problem with perl5.002 Cc: dbi-announce@fugue.com X-Sun-Charset: US-ASCII content-length: 955 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: DAS > > Hello, > > I have just installed perl5.002b2. It seemed to install without any problems. > When attempted to install DBI-065, I received many problems. Here is the > output from the DBI build.... > > perl Makefile.PL: > Warning (non-fatal): Importing of %att is deprecated [PM] That's harmless. > t/min...............DBI object version 0.65 does not match DBI.pm $VERSION 1.48 at /home/student9/dswallow/local/lib/perl5/DynaLoader.pm line 150. That's a problem, but easy to fix. Perl5.002 has a new module version checking mechanism that requires a consistent version number to be used. Anyone using the DBI and DBD::Oracle modules on Perl5.002 will need to edit the .pm files to make $VERSION = ... have the same value as VERSION in the Makefile.PL. I will release an updated DBI and DBD::Oracle for 5.002 as soon as I have time. Meanwhile the VERSION fix above should be all that's needed. Tim. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <00556-0@oink>; Thu, 18 Jan 1996 07:06:08 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 821905692:23160:0; Wed, 17 Jan 96 19:08:12 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa22165; 17 Jan 96 19:07 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA22221 for dbi-users-real; Wed, 17 Jan 1996 07:10:40 -0800 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.6.12/8.6.11) with SMTP id HAA22217 for ; Wed, 17 Jan 1996 07:10:36 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ak27294; 17 Jan 96 13:49 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa07189; 17 Jan 96 12:18 GMT Received: from toad by oink with SMTP (PP) id <26001-0@oink>; Wed, 17 Jan 1996 12:17:57 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA21335; Wed, 17 Jan 1996 12:17:50 +0000 Date: Wed, 17 Jan 1996 12:17:50 +0000 From: Tim Bunce Message-Id: <9601171217.AA21335@toad.ig.co.uk> To: dbi-users@fugue.com Subject: RE: Determining no. of rows using Oraperl X-Sun-Charset: US-ASCII content-length: 83 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 This thread probably ought to move to comp.databases. This isn't the place. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <02223-4@oink>; Thu, 18 Jan 1996 11:56:13 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821966100:19329:0; Thu, 18 Jan 96 11:55:00 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id ag16791; 18 Jan 96 11:53 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Wed, 17 Jan 1996 18:02:29 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id GAA22132 for dbi-users-real; Wed, 17 Jan 1996 06:06:19 -0800 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.6.12/8.6.11) with SMTP id GAA22123; Wed, 17 Jan 1996 06:03:31 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id bd28513; 17 Jan 96 13:58 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ah21901; 17 Jan 96 13:23 GMT Received: from toad by oink with SMTP (PP) id <26191-0@oink>; Wed, 17 Jan 1996 12:49:17 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA21403; Wed, 17 Jan 1996 12:49:10 +0000 Date: Wed, 17 Jan 1996 12:49:10 +0000 From: Tim Bunce Message-Id: <9601171249.AA21403@toad.ig.co.uk> To: dbi-users@fugue.com, dswallow@students.uiuc.edu Subject: Warning - version check problem with perl5.002 Cc: dbi-announce@fugue.com X-Sun-Charset: US-ASCII content-length: 955 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: DAS > > Hello, > > I have just installed perl5.002b2. It seemed to install without any problems. > When attempted to install DBI-065, I received many problems. Here is the > output from the DBI build.... > > perl Makefile.PL: > Warning (non-fatal): Importing of %att is deprecated [PM] That's harmless. > t/min...............DBI object version 0.65 does not match DBI.pm $VERSION 1.48 at /home/student9/dswallow/local/lib/perl5/DynaLoader.pm line 150. That's a problem, but easy to fix. Perl5.002 has a new module version checking mechanism that requires a consistent version number to be used. Anyone using the DBI and DBD::Oracle modules on Perl5.002 will need to edit the .pm files to make $VERSION = ... have the same value as VERSION in the Makefile.PL. I will release an updated DBI and DBD::Oracle for 5.002 as soon as I have time. Meanwhile the VERSION fix above should be all that's needed. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <04210-19@oink>; Thu, 18 Jan 1996 17:06:03 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821966380:21404:1; Thu, 18 Jan 96 11:59:40 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id ar16791; 18 Jan 96 11:59 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Wed, 17 Jan 1996 21:41:53 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id MAA23012 for dbi-users-real; Wed, 17 Jan 1996 12:34:30 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from server1.deltanet.com (server1.deltanet.com [199.171.190.1]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id MAA23008 for ; Wed, 17 Jan 1996 12:34:29 -0800 Received: from kcg.delta.net by server1.deltanet.com (5.65/SCA-6.6) with SMTP id AA09055 for dbi-users@fugue.com; Wed, 17 Jan 96 12:33:24 -0800 Message-Id: <2.2.32.19960117203619.0076f0bc@mail.deltanet.com> X-Sender: garrison@mail.deltanet.com X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 17 Jan 1996 12:36:19 -0800 To: descarte@hermetica.com From: Kerry Garrison Subject: Build problem Cc: dbi-users@fugue.com I am trying to build DBD-mSQL-0.60pl9 on BSDi OS 2.1. Everything goes ok until I try the 'make test'. I have the following configuration: perl: version 5.001 Unofficial patchlevel 1m mSQL: mSQL Server 1.0.10 DBI: 0.65 Output from 'make test' /usr/contrib/bin/perl5 -I./blib -I./blib -I/usr/contrib/lib/perl5/i386-bsdos -I/ usr/contrib/lib/perl5 test.pl Testing: DBI->install_driver( 'mSQL' ): ok Testing: $drh->func( 'localhost', '_ListDBs' ): ok Testing: $drh->connect( 'localhost', 'test' ): Setting MSQL_TCP_PORT to default Connect: Connection refused not ok: Can't connect to MSQL server on localhost perl5: Database handle DBI::db=HASH(0x5fc48) DESTROY ignored - never set up: Con nection refused *** Error code 61 Now, of course I have mSQLd running on the server already, I double checked that, I currently use w3-msql to do some things already so I know everything with the mSQL should be right. Any ideas? -Kerry ----------------------------------------------------------------- Delta Design Services http://www.delta-design.com Web Site Design, On-line Business Planning, and Training Delta Business Directory http://www.delta-design.com/softad/ Kerry Garrison garrison@delta.net ----------------------------------------------------------------- ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <04210-37@oink>; Thu, 18 Jan 1996 17:12:28 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821967302:28795:1; Thu, 18 Jan 96 12:15:02 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id bq16791; 18 Jan 96 12:14 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 18 Jan 1996 03:04:55 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id SAA23568 for dbi-users-real; Wed, 17 Jan 1996 18:07:46 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from sierra.zyzzyva.com (root@ppp0.zyzzyva.com [198.183.2.50]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id SAA23564 for ; Wed, 17 Jan 1996 18:07:44 -0800 Received: from zyzzyva.com (randy@localhost [127.0.0.1]) by sierra.zyzzyva.com (8.6.12/8.6.11) with ESMTP id UAA04393; Wed, 17 Jan 1996 20:09:27 -0600 Message-Id: <199601180209.UAA04393@sierra.zyzzyva.com> To: Kerry Garrison Subject: Re: Build problem In-reply-to: garrison's message of Wed, 17 Jan 1996 12:36:19 -0800. <2.2.32.19960117203619.0076f0bc@mail.deltanet.com> Cc: dbi-users@fugue.com X-uri: http://www.zyzzyva.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Jan 1996 20:09:25 -0600 From: Randy Terbush > I am trying to build DBD-mSQL-0.60pl9 on BSDi OS 2.1. Everything goes ok > until I try the 'make test'. I have the following configuration: > > perl: version 5.001 Unofficial patchlevel 1m > mSQL: mSQL Server 1.0.10 > DBI: 0.65 > > Output from 'make test' > > /usr/contrib/bin/perl5 -I./blib -I./blib -I/usr/contrib/lib/perl5/i386-bsdos -I/ > usr/contrib/lib/perl5 test.pl > Testing: DBI->install_driver( 'mSQL' ): ok > Testing: $drh->func( 'localhost', '_ListDBs' ): ok > Testing: $drh->connect( 'localhost', 'test' ): Setting MSQL_TCP_PORT to default > Connect: Connection refused > not ok: Can't connect to MSQL server on localhost > perl5: Database handle DBI::db=HASH(0x5fc48) DESTROY ignored - never set up: Con > nection refused > *** Error code 61 > > > Now, of course I have mSQLd running on the server already, I double checked > that, I currently use w3-msql to do some things already so I know everything > with the mSQL should be right. Any ideas? > -Kerry If you answered "non-root" install during the install procedure, it will default to port 4333 which may not be the port that msqld is on. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <04356-21@oink>; Thu, 18 Jan 1996 17:13:14 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 821967380:29408:8; Thu, 18 Jan 96 12:16:20 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-1.mail.demon.net id bv16791; 18 Jan 96 12:16 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Thu, 18 Jan 1996 04:03:20 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA23421 for dbi-users-real; Wed, 17 Jan 1996 16:38:56 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mail.crl.com (mail.crl.com [165.113.1.22]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id QAA23417 for ; Wed, 17 Jan 1996 16:38:55 -0800 Received: from [205.149.164.200] (rmdudley.vip.best.com) by mail.crl.com with SMTP id AA04622 (5.65c/IDA-1.5 for ); Wed, 17 Jan 1996 16:36:40 -0800 Date: Wed, 17 Jan 1996 16:36:40 -0800 X-Sender: mrlizard@mail.crl.com Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Kerry Garrison From: mrlizard@crl.com (Brian Valente) Subject: Re: Build problem Cc: dbi-users@fugue.com Try using the actual hostname instead of localhost. That generally clears it up for me. Regards, Brian >I am trying to build DBD-mSQL-0.60pl9 on BSDi OS 2.1. Everything goes ok >until I try the 'make test'. I have the following configuration: > >perl: version 5.001 Unofficial patchlevel 1m >mSQL: mSQL Server 1.0.10 >DBI: 0.65 > >Output from 'make test' > >/usr/contrib/bin/perl5 -I./blib -I./blib >-I/usr/contrib/lib/perl5/i386-bsdos -I/ >usr/contrib/lib/perl5 test.pl >Testing: DBI->install_driver( 'mSQL' ): ok >Testing: $drh->func( 'localhost', '_ListDBs' ): ok >Testing: $drh->connect( 'localhost', 'test' ): Setting MSQL_TCP_PORT to default >Connect: Connection refused >not ok: Can't connect to MSQL server on localhost >perl5: Database handle DBI::db=HASH(0x5fc48) DESTROY ignored - never set >up: Con >nection refused >*** Error code 61 > > >Now, of course I have mSQLd running on the server already, I double checked >that, I currently use w3-msql to do some things already so I know everything >with the mSQL should be right. Any ideas? >-Kerry >----------------------------------------------------------------- >Delta Design Services http://www.delta-design.com > Web Site Design, On-line Business Planning, and Training >Delta Business Directory http://www.delta-design.com/softad/ >Kerry Garrison garrison@delta.net >----------------------------------------------------------------- =========================================================================== Brian Valente | brian_valente@rmdudley.com R.M. Dudley Corporation | mrlizard@crl.com 1799 Old Bayshore Suite 200 | http://www.rmdudley.com Burlingame, CA 94010 | 415-697-1650 tel. 415-697-1816 fax. =========================================================================== ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <12805-1@oink>; Fri, 19 Jan 1996 10:46:16 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822040566:01416:3; Fri, 19 Jan 96 08:36:06 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa01354; 19 Jan 96 8:35 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id XAA26159 for dbi-users-real; Thu, 18 Jan 1996 23:42:35 -0800 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.6.12/8.6.11) with SMTP id XAA26155 for ; Thu, 18 Jan 1996 23:42:31 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ag21398; 18 Jan 96 19:43 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id af27543; 18 Jan 96 17:01 GMT Received: from toad by oink with SMTP (PP) id <04105-0@oink>; Thu, 18 Jan 1996 16:16:52 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA02801; Thu, 18 Jan 1996 16:16:40 +0000 Date: Thu, 18 Jan 1996 16:16:40 +0000 From: Tim Bunce Message-Id: <9601181616.AA02801@toad.ig.co.uk> To: dbi-users@fugue.com, adhir@worldbank.org Subject: Re: DBD::Oracle (0.27) X-Sun-Charset: US-ASCII content-length: 701 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: "Alok K. Dhir" > > I just installed DBD::Oracle and it seems to work. The only problem is > that before any query is performed, I get about 4 screenfulls of > > Bad free() ignored at /usr/local/lib/perl5/DBD/Oracle.pm line 99. > > Any help would be appreciated... Bad free's are nearly always Oracle's fault. Code quality is not Oracle's strong suit. Line 99 is the call to logon to the database. Many systems see a Bad free warning if the logon fails caused by Oracle's own libraries. Your's sounds like a more extreme version. The easiest fix is to recompile perl with that warning deleted. Tim. p.s. Out of interest what version of Oracle and what platform? ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <24853-0@oink>; Mon, 22 Jan 1996 07:10:24 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822077702:11690:0; Fri, 19 Jan 96 18:55:02 GMT Received: from frigate.doc.ic.ac.uk ([155.198.191.3]) by punt-2.mail.demon.net id aa11399; 19 Jan 96 18:54 GMT Received: from toccata.fugue.com by frigate.doc.ic.ac.uk with SMTP (PP); Fri, 19 Jan 1996 18:51:39 +0000 Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA27039 for dbi-users-real; Fri, 19 Jan 1996 09:24:27 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from gatewy.worldbank.org (gatewy.worldbank.org [138.220.3.9]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id JAA27035 for ; Fri, 19 Jan 1996 09:24:22 -0800 Received: from remus.worldbank.org by worldbank.org (PMDF V5.0-5 #7413) id <01I0708XAO1C002IER@worldbank.org>; Fri, 19 Jan 1996 12:20:43 -0500 (EST) Received: by remus.worldbank.org; (5.65/1.1.8.2/28Dec95-0332PM) id AA02084; Fri, 19 Jan 1996 12:20:24 -0500 Date: Fri, 19 Jan 1996 12:20:23 -0500 (EST) From: "Alok K. Dhir" Subject: Re: DBD::Oracle (0.27) In-reply-to: <9601181616.AA02801@toad.ig.co.uk> To: Tim Bunce Cc: dbi-users Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT On Thu, 18 Jan 1996, Tim Bunce wrote: > > > From: "Alok K. Dhir" > > > > I just installed DBD::Oracle and it seems to work. The only problem is > > that before any query is performed, I get about 4 screenfulls of > > > > Bad free() ignored at /usr/local/lib/perl5/DBD/Oracle.pm line 99. > > > > Any help would be appreciated... > > Bad free's are nearly always Oracle's fault. Code quality is not > Oracle's strong suit. Line 99 is the call to logon to the database. > Many systems see a Bad free warning if the logon fails caused by > Oracle's own libraries. Your's sounds like a more extreme version. > > The easiest fix is to recompile perl with that warning deleted. Oooh - that is really ugly! > p.s. Out of interest what version of Oracle and what platform? DEC Alpha running OSF 3.2a... Thanks for the help... -------------------------------------------------------------------- \||/_ Alok K. Dhir Phone: +1.202.473.2446 oo \ R6-031, OBPIO Email: adhir@worldbank.org L_ The World Bank Group Washington, DC \/ ---------------------------------------------------------------------- | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <24876-16@oink>; Mon, 22 Jan 1996 07:14:55 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822083635:22194:1; Fri, 19 Jan 96 20:33:55 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa22032; 19 Jan 96 20:33 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id LAA27241 for dbi-users-real; Fri, 19 Jan 1996 11:34:32 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cursci.cursci.co.uk (cursci.cursci.co.uk [193.112.128.3]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id LAA27237 for ; Fri, 19 Jan 1996 11:34:29 -0800 Received: from gateway.cursci.co.uk by cursci.cursci.co.uk with SMTP (5.65/1.2(ep 1.9)-eef) id AA02011; Fri, 19 Jan 96 19:36:58 GMT Message-Id: <9601191936.AA02011@cursci.cursci.co.uk> Date: Fri, 19 Jan 1996 20:13:00 +0000 From: Matthew Taylor Subject: DBI Installation pains To: dbi-users X-Mailer: Worldtalk (NetConnex V3.50c)/MIME Hello, We are trying to get this wonderful DBI stuff working, primarily so that we can wire our biomedical publishing server up to the Netscape publishing system. We have got as far as building perl5.001m (we think, it runs). But still stuck getting DBI (version 0.63+) up. We fall out making DBI.so, can't find values-Xa.o. I have searched for 'value*' in both perl and DBI with no success. Are we missing something. I am using Gnu on Solaris Sparc 20. (I have the C++ compiler if needed). Output of make -d reads :- MAKEFLAGS value: Building config because it is out of date relative to Makefile Building config because it is out of date relative to /home/mcl/perl5.001m /lib/.exists Building config because it is out of date relative to /home/mcl/perl5.001m /lib/auto/DBI/.exists Building config because Version_check does not exist Target config rebuilt because dependency 0@config does not exist Building all because config does not exist Building dynamic because it is out of date relative to Makefile Building /home/mcl/perl5.001m/lib/auto/DBI/DBI.so because it is out of date relative to DBI.o Building /home/mcl/perl5.001m/lib/auto/DBI/DBI.so because it is out of date relative to DBI.bs Building /home/mcl/perl5.001m/lib/auto/DBI/DBI.so because it is out of date relative to /home/mcl/perl5.001m/lib/auto/DBI/.exists LD_RUN_PATH="" gcc -o /home/mcl/perl5.001m/lib/auto/DBI/DBI.so -G DBI.o ld: fatal: file values-Xa.o: cannot open file; errno=2 ld: fatal: File processing errors. No output written to /home/mcl/perl5.001m/li b/auto/DBI/DBI.so *** Error code 1 make: Fatal error: Command failed for target `/home/mcl/perl5.001m/lib/auto/DBI/ DBI.so' ---------------------------------------------------------------------------- --------- Much obliged for any help, and (provided I can eventually get this stuff up) thanks VERY much for putting this stuff together, we need it very badly. Thanx mat Taylor ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <24990-1@oink>; Mon, 22 Jan 1996 07:21:33 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822188707:01361:3; Sun, 21 Jan 96 01:45:07 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa01243; 21 Jan 96 1:44 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa17550; 21 Jan 96 1:43 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA00546 for dbi-users-real; Sat, 20 Jan 1996 15:32:23 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from tacoma.nwrain.net (tacoma.nwrain.net [204.71.149.1]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id PAA00542 for ; Sat, 20 Jan 1996 15:32:22 -0800 Received: from moores-pc by tacoma.nwrain.net with smtp (Smail3.1.28.1 #9) id m0tdmoF-000oOxC; Sat, 20 Jan 96 15:34 PST Message-ID: <31017C0F.2337@nwrain.com> Date: Sat, 20 Jan 1996 15:34:39 -0800 From: Michael Moores X-Mailer: Mozilla 2.0b5 (Win95; I) MIME-Version: 1.0 To: dbi-users@fugue.com CC: raima-list@bts.com Subject: DBPerl on Raima Velocis Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there anyone out there who is working on a A DBPerl API for Raima Velocis?? (see http://www.raima.com) For those of you on the Raima mailing list see this if you are interested in Perl database interfaces: http://www.metronet.com:70/1m/perlinfo/dbperl Regards, Michael Moores ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <24938-32@oink>; Mon, 22 Jan 1996 07:23:38 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822240326:22694:2; Sun, 21 Jan 96 16:05:26 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa22161; 21 Jan 96 16:04 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA02015 for dbi-users-real; Sun, 21 Jan 1996 07:28:04 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA02011 for ; Sun, 21 Jan 1996 07:28:01 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id PAA27056; Sun, 21 Jan 1996 15:25:02 GMT From: Alligator Descartes Message-Id: <199601211525.PAA27056@fruitbat.mcqueen.com> Subject: Re: DBPerl on Raima Velocis To: moores@nwrain.com (Michael Moores) Date: Sun, 21 Jan 1996 15:25:01 +0000 (GMT) Cc: dbi-users@fugue.com, raima-list@bts.com In-Reply-To: <31017C0F.2337@nwrain.com> from "Michael Moores" at Jan 20, 96 03:34:39 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 Content-Length: 654 > Is there anyone out there who is working on a A DBPerl API > for Raima Velocis?? (see http://www.raima.com) Not as far as I'm aware. I'd not even heard of it! > For those of you on the Raima mailing list see this if you are > interested in Perl database interfaces: > http://www.metronet.com:70/1m/perlinfo/dbperl This is way out of date. Please look at: http://www.hermetica.com/technologia/DBI for up-to-date information, specs, code and examples. > Michael Moores Regards. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <01510-14@oink>; Mon, 22 Jan 1996 16:07:56 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822320133:09126:1; Mon, 22 Jan 96 14:15:33 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa08887; 22 Jan 96 14:15 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id FAA04361 for dbi-users-real; Mon, 22 Jan 1996 05:12:05 -0800 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.6.12/8.6.11) with SMTP id FAA04357 for ; Mon, 22 Jan 1996 05:12:01 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id aa20638; 22 Jan 96 12:24 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa28710; 22 Jan 96 12:23 GMT Received: from toad by oink with SMTP (PP) id <00153-0@oink>; Mon, 22 Jan 1996 11:28:14 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA07276; Mon, 22 Jan 1996 11:28:04 +0000 Date: Mon, 22 Jan 1996 11:28:04 +0000 From: Tim Bunce Message-Id: <9601221128.AA07276@toad.ig.co.uk> To: ral@esp.bellcore.com Subject: Oracle & DBI Cc: dbi-users@fugue.com X-Sun-Charset: US-ASCII content-length: 787 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 Forwarded to dbi-users list. Tim. ----- Begin Included Message ----- Date: Thu, 18 Jan 96 10:25:14 -0500 Sender: ral@esp.bellcore.com From: "Ronald A. Levenberg" To: Tim.Bunce@ig.co.uk Subject: Oracle & DBI X-Url: http://www.hermetica.com/technologia/DBI/DBD/index.html#Oracle Tim, Where can I find some examples of using perl5/DBI/Oracle DBD, especially if used with WWW CGI? I've gotten a data base interface between WWW and Oracle db running with WOW, and now I'd like to try the "oraperl-like" route, now that I've built perl5, DBI, Oracle DBD, and have gotten the CGI.pm module. I understand the CGI interface well enough, but I need some examples of data base programs. Thanks. Ron Levenberg - ral@cc.bellcore.com ----- End Included Message ----- ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <02294-0@oink>; Mon, 22 Jan 1996 16:46:49 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822329072:19035:1; Mon, 22 Jan 96 16:44:32 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa18814; 22 Jan 96 16:44 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa01865; 22 Jan 96 16:43 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA04502 for dbi-users-real; Mon, 22 Jan 1996 07:45:01 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA04498 for ; Mon, 22 Jan 1996 07:44:58 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id PAA11539; Mon, 22 Jan 1996 15:37:11 GMT From: Alligator Descartes Message-Id: <199601221537.PAA11539@fruitbat.mcqueen.com> Subject: Re: Oracle & DBI To: Tim Bunce Date: Mon, 22 Jan 1996 15:37:09 +0000 (GMT) Cc: ral@esp.bellcore.com, dbi-users@fugue.com In-Reply-To: <9601221128.AA07276@toad.ig.co.uk> from "Tim Bunce" at Jan 22, 96 11:28:04 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 Content-Length: 802 > Where can I find some examples of using perl5/DBI/Oracle DBD, especially > if used with WWW CGI? I've gotten a data base interface between WWW and Oracle > db running with WOW, and now I'd like to try the "oraperl-like" route, now > that I've built perl5, DBI, Oracle DBD, and have gotten the CGI.pm module. > > I understand the CGI interface well enough, but I need some examples of > data base programs. A live system is running at: http://www.mcqueen.com/careercare I've another site going live next week. And the Sinclair Games Database runs off mSQL through the DBI/DBD::mSQL setup. > Ron Levenberg - ral@cc.bellcore.com -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <05046-11@oink>; Mon, 22 Jan 1996 20:28:34 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822339690:25026:1; Mon, 22 Jan 96 19:41:30 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa24794; 22 Jan 96 19:41 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa26875; 22 Jan 96 19:34 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id KAA04939 for dbi-users-real; Mon, 22 Jan 1996 10:23:29 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cursci.cursci.co.uk (cursci.cursci.co.uk [193.112.128.3]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA04935 for ; Mon, 22 Jan 1996 10:22:38 -0800 Received: from gateway.cursci.co.uk by cursci.cursci.co.uk with SMTP (5.65/1.2(ep 1.9)-eef) id AA17921; Mon, 22 Jan 96 18:25:24 GMT Message-Id: <9601221825.AA17921@cursci.cursci.co.uk> Date: Mon, 22 Jan 1996 19:32:00 +0000 From: Mark Lester MMDF-Warning: Unable to confirm address in preceding line at relay-1.mail.demon.net Subject: Executing Stored Procedures To: DBI List X-Mailer: Worldtalk (NetConnex V3.50c)/MIME We have finally got it working! (our problems were due to bad installation of GNU cc, re missing values-Xa.o). Next problem is getting stored procedures to run. If anyone has got any sample code for stored procs through DBI we would be most grateful. Mark Lester (Electronic Press) ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <05347-0@oink>; Mon, 22 Jan 1996 20:31:26 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822342512:19215:1; Mon, 22 Jan 96 20:28:32 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa18484; 22 Jan 96 20:27 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id LAA05070 for dbi-users-real; Mon, 22 Jan 1996 11:31:44 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from w3-design.softaware.com (w3-design.com [206.117.78.129]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id LAA05066 for ; Mon, 22 Jan 1996 11:31:43 -0800 From: frank@w3-design.com Received: (from frank@localhost) by w3-design.softaware.com (8.6.9/8.6.9) id LAA05455; Mon, 22 Jan 1996 11:28:43 -0800 Message-Id: <199601221928.LAA05455@w3-design.softaware.com> Subject: DBD::Oracle vs. oraperl To: descarte@hermetica.com (Alligator Descartes) Date: Mon, 22 Jan 1996 11:28:43 -0800 (PST) Cc: dbi-users@fugue.com In-Reply-To: <199601221537.PAA11539@fruitbat.mcqueen.com> from "Alligator Descartes" at Jan 22, 96 03:37:09 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 478 What is the difference between using Oracle through the DBI::DBD module interface, and compiling oraperl? Is oraperl simply perl4 with the DBD stuff compiled in? Also, what can one do with Oracle (via perl) that one cannot do with the mSQL DBD interface? Do you have access to all the Oracle bells and whistles, or are you restricted to a common subset of standard sql procedures? Is it worth getting the oracle/perl stuff up and running? Sorry for the (I'm sure) FAQ. Frank ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <06155-15@oink>; Tue, 23 Jan 1996 00:06:28 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822354876:21085:0; Mon, 22 Jan 96 23:54:36 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa20554; 22 Jan 96 23:53 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa05471; 22 Jan 96 23:52 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA05612 for dbi-announce-real; Mon, 22 Jan 1996 15:08:53 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from garnet.kcs.com.au (root@garnet.kcs.com.au [203.14.58.128]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA05608 for ; Mon, 22 Jan 1996 15:08:49 -0800 Received: from ebony (ebony.kcs.com.au [203.14.58.2]) by garnet.kcs.com.au with SMTP id KAA30608 (8.6.12/IDA-1.6 for ); Tue, 23 Jan 1996 10:00:10 +1100 Message-ID: <199601222300.KAA30608@garnet.kcs.com.au> Comments: Authenticated sender is From: Gary Evesson Organization: KCS Australia Pty. Ltd. To: dbi-announce@fugue.com Date: Tue, 23 Jan 1996 10:03:47 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: DBI and DBD::Oracle Reply-to: gary@kcs.com.au Priority: normal X-mailer: Pegasus Mail for Windows (v2.23) Just to add to the portability list... perl 5.001m, DBI and DBD::Oracle all compile and work on NCR MP-RAS SVR4 version 2.02.00. I'm running Oracle 7.1.4. =-=-=-=-=-=-=-=-=-=-=-= Gary Evesson KCS Australia Pty. Ltd. gary@kcs.com.au =-=-=-=-=-=-=-=-=-=-=-= ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <08128-8@oink>; Tue, 23 Jan 1996 02:21:35 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822361374:07777:1; Tue, 23 Jan 96 01:42:54 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa07587; 23 Jan 96 1:42 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id PAA05607 for dbi-announce-real; Mon, 22 Jan 1996 15:08:45 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from garnet.kcs.com.au (root@garnet.kcs.com.au [203.14.58.128]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id PAA05602 for ; Mon, 22 Jan 1996 15:08:42 -0800 Received: from ebony (ebony.kcs.com.au [203.14.58.2]) by garnet.kcs.com.au with SMTP id KAA30608 (8.6.12/IDA-1.6 for ); Tue, 23 Jan 1996 10:00:10 +1100 Message-ID: <199601222300.KAA30608@garnet.kcs.com.au> Comments: Authenticated sender is From: Gary Evesson Organization: KCS Australia Pty. Ltd. To: dbi-announce@fugue.com Date: Tue, 23 Jan 1996 10:03:47 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: DBI and DBD::Oracle Reply-to: gary@kcs.com.au Priority: normal X-mailer: Pegasus Mail for Windows (v2.23) Just to add to the portability list... perl 5.001m, DBI and DBD::Oracle all compile and work on NCR MP-RAS SVR4 version 2.02.00. I'm running Oracle 7.1.4. =-=-=-=-=-=-=-=-=-=-=-= Gary Evesson KCS Australia Pty. Ltd. gary@kcs.com.au =-=-=-=-=-=-=-=-=-=-=-= ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <09232-4@oink>; Tue, 23 Jan 1996 06:43:19 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822369999:29063:2; Tue, 23 Jan 96 04:06:39 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa28281; 23 Jan 96 4:04 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA04544 for dbi-users-real; Mon, 22 Jan 1996 08:08:33 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id IAA04540 for ; Mon, 22 Jan 1996 08:08:00 -0800 Received: from localhost by colossus.cse.psu.edu with SMTP id <78846>; Mon, 22 Jan 1996 11:10:42 -0500 X-Mailer: exmh version 1.6.1 5/23/95 To: dbi-users@fugue.com cc: ral@esp.bellcore.com Subject: Re: Oracle & DBI In-reply-to: Your message of "Mon, 22 Jan 1996 06:28:04 EST." <9601221128.AA07276@toad.ig.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Jan 1996 11:08:24 -0500 From: John D Groenveld Message-Id: <96Jan22.111042est.78846@colossus.cse.psu.edu> Here's a draft of a paper I'm delivering to East Coast Oracle User's Conference in April. Its my first technical paper so please be gentle with your comments, but I would very much appreciate constructive criticism. Thanks, John groenvel@cse.psu.edu BTW This is also available at http://www.cse.psu.edu/~groenvel/ECO/ begin 644 paper.ps M)2%04R H8G5T(&YO="!%4%-&.R!C;VUM96YTV1E9GUD968@ M+T)[8FEN9"!D969]3B O4WME>&-H?4X*+UA[4R!.?4(@+U12>W1R86YS;&%T M97U.("]IS$@+3%]>RTQ(#%]"FEF96QS92 P(# @,%UC;VYC M871]:68@-S(@4F5S;VQU=&EO;B!D:78@-S(@5E)EVQA;F1P;'5S.3![5E)EU)E'MD=7 @ M9'5P(')O=6YD('-U8B!A8G,@,"XP,# P,2!L='MR;W5N9'UI9GT*9F]R86QL M(')O=6YD(&5X8V@@2!C=G@@3B!L;V%D(# @;FX@<'5T("]C='(@ M,"!.6WU"("]D9GL*+W-F(#$@3B O9FYTV1I=B OW!O<"!N;B!D=7 @9&5F:6YE9F]N="!S971F;VYT?4(@+V-H M+7=I9'1H>V-H+61A=&$@9'5P"FQE;F=T:" U('-U8B!G971]0B O8V@M:&5I M9VAT>V-H+61A=&$@9'5P(&QE;F=T:" T('-U8B!G971]0B O8V@M>&]F9GL* M,3(X(&-H+61A=&$@9'5P(&QE;F=T:" S('-U8B!G970@V-H+61A=&$@9'5P(&QE;F=T:" Q('-U8B!G971]0B O8V@M:6UA9V5[ M8V@M9&%T80ID=7 @='EP92 OW-A=F4@ M,R Q(')O;&P@4R!D=7 *+V)AWMI9 IG<"!G970@+V=P(&=P(#$@861D($X@9'5P(#$X(&UO9"!3(#$X(&ED M:78@<&P@4R!G970@97AE8WUL;V]P?4(@+V%D=GMC< IA9&0@+V-P(%A]0B O M8VAG>W)W(&-P(&ED(&=P(#0@:6YD97@@9V5T:6YT97)V86P@<'5T:6YT97)V M86P@9'5P(&=P(&%D9 HO9W @6"!A9'9]0B O;F1[+V-P(# @3B!R=R!E>&ET M?4(@+VQS:'MR=R!C<" R(&-O<'D@9V5T(&1U<" P(&5Q>W!O<" Q?7L*9'5P M(#(U-2!E<7MP;W @,C4T?7MD=7 @9'5P(&%D9" R-34@86YD(%,@,2!A;F0@ M;W)]:69E;'-E?6EF96QS92!P=70@,0IA9'9]0B OW)W(&-P(#(@8V]P M>2!G970@9'5P(# @97%[<&]P(#$R.'U[9'5P(#(U-2!E<7MP;W @,3(W?7MD M=7 @,@II9&EV(%,@,3(X(&%N9"!O"!S=')I;F<*<'5T:6YT97)V86P@861V M?4(@+W-E='MR=R!C<"!F:6QL"!G971I;G1EV%D=B Q(&-H9WT*>V%D=B Q M(&-H9R!N9'U[,2!A9&0@8VAG?7LQ(&%D9"!C:&<@;F1]>V%D=B!LV%D M=B!LV%D=B!RPIA9'8@R]R M8R!8(&YD?7LQ(&%D9"!S971]>S$@861D(&-LW!O<"!N9'U=9'5P>V)I;F0@<&]P?69OR]C M8R!8(&1U<"!T>7!E("]S=')I;F=T>7!E(&YE>UT*?6EF(&YN("]B87-E(&=E M="!C8R!C='(@<'5T(&YN("]":71-87!S(&=E="!3(&-TPIC8R Q(&%D9"!$ M?4(@+V)O<'MU"!D=7 @,2!G970@9'5P(&UU;"!E>&-H(# @9V5T(&1U<"!M=6P* M861D("XY.2!L='LO459]>R]25GUI9F5LW5S97)D:6-T("]S=&%R="UH M;V]K"FMN;W=N>W-T87)T+6AO;VM]:68@<&]P("]64F5S;VQU=&EO;B!8("]2 M97-O;'5T:6]N(%@@,3 P,"!D:78@+T1626UA9R!8"B])12 R-38@87)R87D@ M3B P(#$@,C4U>TE%(%,@,2!S=')I;F<@9'5P(# @,R!I;F1E>"!P=70@8W9N M('!U='UF;W(*-C4W.#$N-S8@9&EV("]VF4@6'U.("]P>W-H;W=]3B O4DUA=%LQ(# @," M,2 P"C!=3B O0D1O M=" R-C @R]R=6QE M>2!8("]R=6QE>"!8(%9]0B O5@I[?4(@+U)6('-T871US @ M-PIG971I;G1E2EE<2!E>&-H(# @-"!G971I;G1E M"!R M=6QE>2!F86QS90I236%T>T)$;W1]:6UA9V5M87-K(&=R97-T;W)E?7U[>V=S M879E(%12("TN,2 N,2!44B!R=6QE>"!R=6QE>2!S8V%L92 Q(#$*9F%LV=S M879E(&YE=W!A=&@@=')A;G-F;W)M"G)O=6YD(&5X8V@@2!N96<* M"!N96<@,"!R;&EN971O(&9I;&P@9W)ERTS($U]0B O97LM,B!-?4(@+V9[+3$@37U"("]G M>S @37U"("]H>S$@37U"("]I>S(@37U"("]J>S,@37U"("]K>PHT($U]0B O M=WLP(')M;W9E=&]]0B O;'MP("TT('=]0B O;7MP("TS('=]0B O;GMP("TR M('=]0B O;WMP("TQ('=]0B O<7L*<" Q('=]0B OW @ M,R!W?4(@+W1[<" T('=]0B O>'LP(%,@S,@,B!R;VQL M(' *87U"("]B;W-[+U-3('-A=F4@3GU"("]E;W-[4U,@2AT:&5I2EG*&EN*6TH=&\I M+3@S(#(S,30@>2A02AT:&5S92DT.0IB*'0I;2AW*6TH M;REF*' I2A7*2TX(&(H96(M8F%S960I,C4@8BA/ M2AH87,I M:RAI=',I9BAS=')E;F=T:',I:2AA;F0I9BAW*6TH96%K;F5S2AS978I;2AE2AA;F0I,C0*8BAS:&]U M;&0I9BAB*7,H92EH*'-E2EF*&-O;G-I9&5R960I:2AF;W(I92A/ MVET*0HS,2!B*&%L M+2DM.#,@-#4W-"!Y*&QO*6TH=W,I-#$@8BAU2AL M96US*34T(&(H;6]R92EH*')A<&ED;'DI9BAT:&%N*6@H=VET:"EG"BA#*6@H M86YD*68H;6]R92DM.#,@-#@Q-2!Y*'-T2AS>7-T96TI-#0@8BAA9&UI;FES=')A=&]R*6,H8V]M M;2EM*'5N:70I;2AY*2TX"F(H+BDW-"!B*$AO*6TH=REM*&5V*6TH97(L*2TX M,R U,37-T96US*6@H;6%N86=E+2DM.#,@-3(Y-B!Y*&UE M;BEM*'0I,S<*8BAT;RES*&]L*64H9F]R*6@H=&AE*6@H<&%R2AM M*6TH=6,I;2AH*3(U"F(H;6]R92EE*'5S86)L92EG*&%N9"EH*' I2AA;F0I9BA0*6TH97)L)W,I:"AA*6TH M=BDM-0IB*&%I;&%B:6QI="EM*'DI,C(@8BAF;W(I,C<@8BAN96%R;'DI9BAE M=BEM*&5R>2EJ*%5.25@M*3(P-30*,C X.2!Y*'0I;2AY<"ES*&4I-#$@8BAS M>7-T96TI9BAH82EM*'8I;2AE*6@H;6%D92EE*% I;2AE2AD978I;2AE;&]P*7,H960I-#8*8BAT;REF*&AE;' I M9BAP2AA<'!L:6-A=&EO;G,I-#$@8BAM;W)E*6DH2EF*&%N9"EH*&-L M96%N;'DI+3@*8B@N*32AI2AA*6TH=BDM-2!B*&%I;&%B;&4N*3,Y(&(H5VAE;BDR M-2!B*'1H97-E*6'1E;G-I=BEM*&4I:2AT;RES*&]L:VET*6,H9F]R*6@H8V]N M+2DR,#4T(#,R.3,@>2AS=')U8W1I;F2AM:6YG*3(P-30@ M-#(Q,R!Y($9C*$-U2DM."!B*"PI-#$@8BAM;W-T*6,H87!P M;&EC871I;VXI"F8H9&5V*6TH96QO<&UE;BEM*'0I:2AF;W(I,C U-" T,S,S M('DH=&AE*30T(&(H5RDM."!B*&]R;&0I-#(*8BA7:61E*6@H5RDM."!B*&5B M*30T(&(H:7,I92AF;W(I:"AS97)V*6TH97(M2EI*$EN*6TH=&5R+2D*,C U-" T-32AT97)F86-I;F'1E2AC871I;VYS+BDW,B!B*%1H92DT,R!B*%2AC871E M2AG=6UE;BEM*'1S*30S(&(H M=&\I9BAT:&4I9RAA<'!L:6-A=&EO;BEE*'5S:6YG*6DH0T=)*6<**&5N*6TH M=FDM*3(P-30@-3(Y-B!Y*')O;FUE;BEM*'0I8RAV*2TU(&(H87)I86)L97,I M,S8*8BAA;F0I:2A3=&%N9&%R9"EF*$EN<'5T+BDU.2!B*%1H92DR,#4T(#4T M,3<@>2A#1TDI-# *8BAS8W)I<'0I9RAU2EM*&5D*68H8BEM*'DI:"AT:&4I M9BAV:65W*6TH97(N*34Q"F(H3F5W*3,U(&(H0T=)*62AA2AH86YD;&5R+G!L M*3,T(&(H87)E*6@H=7-E9G5L*62A#1TDI,SD@8BAP2AP M;&EC871I;VYS+"DU-2!B*&)U="ED*'1H92EG*&%U=&AO2AE;BEM*'1E9"PI,S0@8BAT:&4I9BA0*6TH97)L M-2EF*$-'23HZ*BEH*&UO*7,H9'5L97,I92AD;REI*&YO="EF*&AA*6T**'8I M;2AE*2TX,R S-#4W('DH82DR,B!B*'-T965P*6DH;&5A&%M<&QE*2TX M,R S-32AP2AU2A396YD2&5A9&5RRDM-#@@-#8R."!Y*"9O M=71P=71?9F]R='5N93LI+3@S(#0W,#<@>2A]*2TX,R T-S@V"GDH96QS92ED M*'LI+30X(#0X-C4@>2@F;W5T<'5T7V9O2AS=6(I9RAO=71P=71?9F]R M;2EJ*'LI+30X"C4R-3D@>2AN972AN97'0I:PHH7"@B9F]R='5N92ED*&9O2A( M5$U,.CI"87-E.CIE;F1?;V)J96-T*7$H.RDR,3(U"C$W-"!Y*$A434PZ.D)A M3LI,C$V, HS,S(@>2AN97'0I:PHH M7"@B26YP=70I9"AY;W5R*62AN972A(5$U,.CI"87-E M.CIE;F1?;V)J96-T.RDR,#DP(#DV,R!Y*$A434PZ.D)AF4[ M*3(P-30*,3 T,B!Y*'TI,C U-" Q,3(Q('DH2AN97'0I:RA497AT/3XD9F]R='5N92Q6 M97)B/3XQ.RDR,38P"C(Q-#8@>2A(5$U,.CI"87-E.CIE;F1?;V)J96-T*7$H M.RDR,3(U(#(R,C4@>2A(5$U,.CI"87-E.CIE;F1?;V)J96-T.RD*,C Y," R M,S T('DH2%1-3#HZ0F%S93HZ96YD7V]B:F5C=#LI,C Y," R,S@S('DH2%1- M3#HZ0F%S93HZ2EG*&]F*68H=&AE*6@* M*&]T:&5R*62A/2A3=&\I M2AT:&4I M-#0*8BA/2EH*'5N9&5R+2DR M,#4T(#0S,S,@>2AL>6EN9RDU,B!B*&1A=&%B87-E+7-P*7,**&5C:5PP,31C M*6HH9')I=BEM*&5R2DR,#4T(#4P-34@ M>2AS;&EG:"EM*'1L>2EH*&9R;VTI9RA+979I;BEI*%-T;RES*&,I;2AK)W,I M9PHH;W)I9VEN86PI8RAV*6TH97)S:6]N+BDR,#4T(#4Q-S8@>2A4:&4I-3 @ M8BAF;VQL;REM*'=I;F2A\?"EF*&1I92EG*"1O2AF;W)E M86-H*6@H)'1I=&QE*6RDM-#@@,30R-R!Y*'!R:6YT*68H(BHB*68H>"EG"BAL M96YG=&A<*"1T:71L95PI+")<7'0B.RDM.#,@,34P-B!Y*'TI+3@S(#$U.#4@ M>2APRDM-#@*,32AP2@F;W)A7VQO9V]F9EPH)&QD85PI.RDM.#,*,C,W-"!Y*&5X M:71<*#!<*3LI+3@S(#(X-C @>2!&9"A396-U2DU,R!B*$ES2AM*6TH=6QT:6QE=BEM*&5L960N*38X"F(H26XI-#(@8BAT:&4I9RA7 M*2TX(&(H96(I-#(@8BAS97)V*6TH97(L*6LH86-C97-S*60H8V%N*2TX,PHS M,S2AN86UE2DT,B!B M*'-I=&5S*68H:&$I;2AV*6TH92EH*&,I"FTH:&]S96XI9RAT;REE*')E2AL:6LI M;2AE*3,X"F(H87!P;&EC871I;VYS*68H8V%N*6HH8BES*&4I9BAD978I;2AE M;&]P*7,H960I:"AW:&EC*6TH:"EG*&%L+2DM.#,*-#,S,R!Y*&QO*6TH=RDV M,R!B*$]R86-L92EF*'5S97)S*6HH=&\I92AL;V=I;BEE*&1I2A.970L M*64H7-I M8V%L;'DI9RAR97-I9&4I9RAO7# Q,RDM.#,@-#DS-0IY*'1H92DS."!B*%2AW*6TH;W)K+"DS-"!B*&%N9"EE*&1A=&%B87-E*6@H861M:6YI2!&9"A);7!L96UE;BEL*'1A=&EO;BDR,#4T(#(S M-B!Y($9C*%1H92EG*&1A=&%B87-E*68H86YD*68H5RDM. IB*&]R;&0I,S$@ M8BA7:61E*62EI*&(I2AV*6TH96QO<"ES*&5R&%M<&QE*68H=7-E2A(5$U,.CI"87-E M*34R(&(H;6\I2!&8B@C(2]U2AU2AU2AU2A396YD2&5A9&5RRDR,#DP"C(P,C4@>2@F;W5T<'5T M7W)E2ED*$5M<&QO>65E(CLI,C$V, HR M.32AN97'0I:R@B4V5L M96-T*60H16UP;&]Y964B.RDR,3DV"C,T-#4@>2A(5$U,.CI"87-E.CIE;F1? M;V)J96-T.RDR,3DV(#,U,C0@>2AN972@D;&1A*62A\?"EG M*&1I92EG*"1O2@D8W-R*6RDR,C8V(#0Q-34@>2AN972@F M;W)A7VQO9V]F9EPH)&QD85PI.RDR,3DV"C0V,C@@>2A(5$U,.CI"87-E.CIE M;F1?;V)J96-T.RDR,3DV(#0W,#<@>2AN97F4[*3(P-30*-3(U.2!Y*'TI,C U-" U,S,X('DH3LI,C,*-#DP('DH;F5W*62@D;&1A*60H/2EE*"9O2@N*6'0I:RA<*"1C M;VQU;6Y?=&ET;&5<*3LI,3(Y(#$T,S8@>0HH2%1-3#HZ0F%S93HZ96YD7V]B M:F5C=#LI.3,@,34Q-2!Y*'TI-3@@,34Y-"!Y*$A434PZ.D)A2AN972AF;W)E86-H*62AN972A]*34X(#(S.#,@>2@F;W)A7V-L;W-E7"@D M8W-R7"D[*0HU." R-#8R('DH)F]R85]L;V=O9F9<*"1L9&%<*3LI,C,@,C4T M,"!Y*$A434PZ.D)A2A(5$U,.CI"87-E.CIE;F1? M;V)J96-T*7$H.RD*+30X(#(W-S<@>2A(5$U,.CI"87-E.CIR96%L:7IE.RDM M.#,@,C@U-B!Y*'TI+3@S(#,R-3$*>2!&9"A#;VUP87)I2AT;RU/2AA2AW M:71H*3,R(&(H=&AE*62EJ*&(I2AM96XI;2AT*3,W"F(H9F]R*62AE7,M*2TX,R T-CDT('DH=&5M*68H7"AP2ED*&(I;2AY M*6HH3W)A8VQE*60H0V]R<"ES"BAO2EF*&-O;BTI+3@S(#4R.38*>2AT2D*,C U-" Q-R!Y*'1H2DM."!B M*"XI,C U-" W-3$@>2!&9"A#;VYC;'5S:6]N7!I8V%L M;'DI9BAF86-I;F2!&8RA;,5TI-#D@8B!&82A02DU."!B*$QA2A286YD86QL*30R(&(H M3"XI:2A38REM*&@I;2AW*6TH87)T>CLI-3$*8BA/)U)E:6QL>2DT,B!B*"8I M:2A!2AC:6%T97,L*3,S(&(H,3DY,2XI,C$P,PHR M-C8Y('DH6S)=*30Y(&(@1F$H4&5R;"EG*%(I+34@8BAE9F5R*62A;,UTI-#D@ M8B!&82AC*2TU"F(H;VUP+FQA;F2DS-PIB*%-T97!H96XI:"A0*2TX(&(H+BDS-B!B M*% I;2AO="TI,C(U-2 S,C8W('DH=&5R.RDW-@IB*&9T<#HO+W)T9FTN;6ET M+F5D=2\I-C @8BAP=6(O*6DH=7-E;F5T+RDR,C4U(#,S.#<@>2AC;VUP+FQA M;F2A7:61E*38Q(&(H5V5B*6@H M4VET92DV.0IB($9C*&(I;2AY*38S(&(H3&EN8V]L;BED*$0N*6@H4W1E:6X[ M*3(R-34@-#@Q.2!Y*$%D9&ES;VXM5RDM. IB*&5S;&5Y*32!&8RAB*6TH>2DY,R!B*$QI;F-O;&XI92A$+BEG"BA3=&5I;CLI M,3(R(&(H:"EM*'1T<#HO+W=W=RTI,C(U-2 U-#$W('DH9V5N;VUE+G=I+FUI M="YE9'4O*3,Q"F(H5U=7+REI*&9A<7,O*3,V.#$@-C S.2!Y*% I;2AA9V4I M9R@T*7 @96]P"C4@-"!B;W @+3,T(#$W(&$@1F,H6SA=*30X(&(@1F$H1$)) M*3DT(&(H1&5V96QO<"DM-2!B*&5R2A<*$E/552EE*&9O2A'87)Y*30W(&(H5FEZ:6]L:5PI*60H9F]R*6HH M<')E=FEE=VEN9REH*&TI;2AY*68H=REM*&]R:RXI.#D*8BA&:2TI+3@S(#(P M.38@>2AN86QL>2DM."!B*"PI,S @8BA)*62A0*6TH86=E*6@H-2EP(&5O<"!E H;F0*=7-EV5N9"UH;V]K?6EF"F5O end ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14748-0@oink>; Tue, 23 Jan 1996 16:44:08 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822415319:08230:1; Tue, 23 Jan 96 16:41:59 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa07760; 23 Jan 96 16:41 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA07450 for dbi-users-real; Tue, 23 Jan 1996 07:14:58 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA07446 for ; Tue, 23 Jan 1996 07:14:56 -0800 Received: from clark.net (root@clark.net [168.143.0.7]) by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id KAA28456 for ; Tue, 23 Jan 1996 10:18:09 -0500 (EST) Received: from mciwks01.pcy.mci.net (mciwks01.pcy.mci.net [204.70.138.27]) by clark.net (8.7.1/8.7.1) with SMTP id KAA04363 for ; Tue, 23 Jan 1996 10:18:03 -0500 (EST) From: jposner@clark.net (Jeffrey S. Posner) To: dbi-users@fugue.com Subject: Error running DBD::ORacle test suite Date: Tue, 23 Jan 1996 15:15:17 GMT Organization: J. Posner Associates Message-Id: <3104f8dd.51437696@explorer.clark.net> X-Mailer: Forte Agent .99c/16.141 Plese help. I get numerous errors building the DBD:Oracle package and tests. I get no such errors when building or runnging tests for perl5.001m and DBI. My evnironment: Sparc 20, solaris 2.2, gcc 2.5.6, oracle 7.1.3, perl 5.001m, DBI 0.64. When I do a straight make test with no changes to the Makefile, I get these warngings and errors when compiling: ============= mkdir ./blib mkdir ./blib/DBD mkdir ./blib/auto mkdir ./blib/auto/DBD mkdir ./blib/auto/DBD/Oracle /home/jposner/local/bin/perl -I/home/jposner/local/lib/perl5/sun4-solaris -I/hom e/jposner/local/lib/perl5 /home/jposner/local/lib/perl5/ExtUtils/xsubpp -typemap /home/jposner/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracl e.tc Oracle.c gcc -c -O -fpic -I/home/jposner/local/lib/perl5/sun4-solaris/CORE -Wall -pedanti c -Wno-comment -Wpointer-arith -Wcast-align -Wconversion -Wtraditional -Wpointer -arith -Wbad-function-cast -Wcast-qual -I/oracle1/oracle/rdbms/demo -I/home/jpos ner/local/lib/perl5/sun4-solaris/DBI Oracle.c cc1: Invalid option `-Wbad-function-cast' In file included from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/ param.h:37, from /home/jposner/local/lib/perl5/sun4-solaris/CORE/perl.h:104 , from /home/jposner/local/lib/perl5/sun4-solaris/DBI/DBIXS.h:13, from Oracle.h:14, from Oracle.c:19: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/types.h:57: warning: A NSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/types.h:58: warning: A NSI C does not support `long long' In file included from /home/jposner/local/lib/perl5/sun4-solaris/CORE/perl.h:110 , from /home/jposner/local/lib/perl5/sun4-solaris/DBI/DBIXS.h:13, from Oracle.h:14, from Oracle.c:19: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:36: warning: ANSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:37: warning: ANSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:162: warning: ANS I C does not support `long long'mkdir ./blib mkdir ./blib/DBD mkdir ./blib/auto mkdir ./blib/auto/DBD mkdir ./blib/auto/DBD/Oracle /home/jposner/local/bin/perl -I/home/jposner/local/lib/perl5/sun4-solaris -I/hom e/jposner/local/lib/perl5 /home/jposner/local/lib/perl5/ExtUtils/xsubpp -typemap /home/jposner/local/lib/perl5/ExtUtils/typemap Oracle.xs >Oracle.tc && mv Oracl e.tc Oracle.c gcc -c -O -fpic -I/home/jposner/local/lib/perl5/sun4-solaris/CORE -Wall -pedanti c -Wno-comment -Wpointer-arith -Wcast-align -Wconversion -Wtraditional -Wpointer -arith -Wbad-function-cast -Wcast-qual -I/oracle1/oracle/rdbms/demo -I/home/jpos ner/local/lib/perl5/sun4-solaris/DBI Oracle.c cc1: Invalid option `-Wbad-function-cast' In file included from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/ param.h:37, from /home/jposner/local/lib/perl5/sun4-solaris/CORE/perl.h:104 , from /home/jposner/local/lib/perl5/sun4-solaris/DBI/DBIXS.h:13, from Oracle.h:14, from Oracle.c:19: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/types.h:57: warning: A NSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/types.h:58: warning: A NSI C does not support `long long' In file included from /home/jposner/local/lib/perl5/sun4-solaris/CORE/perl.h:110 , from /home/jposner/local/lib/perl5/sun4-solaris/DBI/DBIXS.h:13, from Oracle.h:14, from Oracle.c:19: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:36: warning: ANSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:37: warning: ANSI C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:162: warning: ANS I C does not support `long long' /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:163: warning: ANS I C does not support /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/stdlib.h:163: warning: ANS I C does not support ======== When I modify the makefile to removed all the extra -W options defined for gcc, the entire build and test completes with no warnings or errors EXCEPT, each ora_logff() generates these warnings: Bad free() ignored at test.pl line 38. ERROR EVENT: DBI::st=HASH(0xbbf2c)->DBI::default_handler: 1453 ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error) at /home/jposner/local/lib/perl5/DBI.pm line 437 ora_do: 1453: ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error) Bad free() ignored at test.pl line 142. Bad free() ignored at test.pl line 156. Bad free() ignored at test.pl line 156. Bad free() ignored at test.pl line 156. Bad free() ignored at test.pl line 156. Bad free() ignored at test.pl line 156. Bad free() ignored at test.pl line 59. Does anyone know what is causing either the warnings or the Bad free() statements. Can I safely ignore the Bad free errors until I solve the problem later on? THanks, Jeff ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <14957-0@oink>; Tue, 23 Jan 1996 16:48:31 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822415545:10230:0; Tue, 23 Jan 96 16:45:45 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa10049; 23 Jan 96 16:45 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa15799; 23 Jan 96 16:44 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA07477 for dbi-users-real; Tue, 23 Jan 1996 07:42:26 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id HAA07473 for ; Tue, 23 Jan 1996 07:42:24 -0800 Received: from clark.net (root@clark.net [168.143.0.7]) by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id KAA03510 for ; Tue, 23 Jan 1996 10:45:39 -0500 (EST) Received: from mciwks01.pcy.mci.net (mciwks01.pcy.mci.net [204.70.138.27]) by clark.net (8.7.1/8.7.1) with SMTP id KAA15038 for ; Tue, 23 Jan 1996 10:45:32 -0500 (EST) From: "Jeffrey S. Posner" To: dbi-users@fugue.com Subject: Sample code for ora_perl/Man Pages Date: Tue, 23 Jan 1996 15:42:45 GMT Organization: J. Posner Associates Message-Id: <31050184.53652672@explorer.clark.net> X-Mailer: Forte Agent .99c/16.141 Could someone please point me to some sample code and man pages/reference material on writing Oraperl scripts using the DBD::DBI oraperl ( as opposed to the older oraperl for 4.036 ) THanks very much. Jeff ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <14956-0@oink>; Tue, 23 Jan 1996 16:48:32 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822415457:09252:1; Tue, 23 Jan 96 16:44:17 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa08644; 23 Jan 96 16:43 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA07488 for dbi-users-real; Tue, 23 Jan 1996 07:52:04 -0800 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.6.12/8.6.11) with ESMTP id HAA07484 for ; Tue, 23 Jan 1996 07:52:01 -0800 Received: from bssmlsa.nerc-bas.ac.uk.nerc-bas.ac.uk by bsfiles.nerc-bas.ac.uk (8.6.10/NERC-1.2(Solaris 2.x) id PAA06522; Tue, 23 Jan 1996 15:54:53 GMT Date: Tue, 23 Jan 1996 15:54:52 GMT Message-Id: <13127.199601231554@bssmlsa.nerc-bas.ac.uk.nerc-bas.ac.uk> From: Andrew G Wood To: jposner@clark.net CC: dbi-users@fugue.com In-reply-to: <31050184.53652672@explorer.clark.net> (jposner@clark.net) Subject: Re: Sample code for ora_perl/Man Pages Reply-to: agw@mail.nerc-bas.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII >>>>> "Jeffrey" == Jeffrey S Posner writes: > Could someone please point me to some sample code and man > pages/reference material on writing Oraperl scripts using the > DBD::DBI oraperl ( as opposed to the older oraperl for 4.036 ) > THanks very much. > Jeff Why not have a look in the software kit for the Oracle DBD .... DBD-Oracle-0.27/oraperl.ex/* Andy. +-------------------------------------------------------------------+ | Dr Andy Wood, Database Administrator. British Antarctic Survey | | A.Wood@bas.ac.uk High Cross, Madingley Road | | agw@mail.nerc-bas.ac.uk Cambridge, CB3 0ET, UK | | A.G.Wood@bcs.org.uk +44 (0) 1223 361188 | +-------------------------------------------------------------------+ ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <16162-5@oink>; Tue, 23 Jan 1996 22:23:54 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822424077:27449:1; Tue, 23 Jan 96 19:07:57 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa26943; 23 Jan 96 19:07 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA07854 for dbi-users-real; Tue, 23 Jan 1996 09:46:07 -0800 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.6.12/8.6.11) with SMTP id JAA07850 for ; Tue, 23 Jan 1996 09:46:02 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id aa01200; 23 Jan 96 17:38 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id aa23170; 23 Jan 96 17:15 GMT Received: from toad by oink with SMTP (PP) id <15411-0@oink>; Tue, 23 Jan 1996 17:15:32 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA18761; Tue, 23 Jan 1996 17:15:25 +0000 Date: Tue, 23 Jan 1996 17:15:25 +0000 From: Tim Bunce Message-Id: <9601231715.AA18761@toad.ig.co.uk> To: dbi-users@fugue.com, jposner@clark.net Subject: Re: Error running DBD::ORacle test suite X-Sun-Charset: US-ASCII content-length: 1304 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: jposner@clark.net (Jeffrey S. Posner) > > Plese help. I get numerous errors building the DBD:Oracle package and tests. I > get no such errors when building or runnging tests for perl5.001m and DBI. > > Sparc 20, solaris 2.2, gcc 2.5.6, oracle 7.1.3, perl 5.001m, DBI 0.64. Your GCC is very old: > cc1: Invalid option `-Wbad-function-cast' > /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/sys/types.h:57: warning: A > NSI C does not support `long long' > When I modify the makefile to removed all the extra -W options defined for gcc, the entire > build and test completes with no warnings or errors EXCEPT, each ora_logff() generates > these warnings: > > Bad free() ignored at test.pl line 38. > ERROR EVENT: DBI::st=HASH(0xbbf2c)->DBI::default_handler: > 1453 ORA-01453: SET TRANSACTION must be first statement of transaction (DBD: oexec error) > at /home/jposner/local/lib/perl5/DBI.pm line 437 > Does anyone know what is causing either the warnings or the Bad free() statements. Can I safely > ignore the Bad free errors until I solve the problem later on? I'd recommend upgrading your GCC to at least 2.6.3 or 2.7.2. While you're at it Solaris 2.2 is ancient and bug ridden. The bad free's are usually Oracle's fault but sort out the other issues first. Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <16163-32@oink>; Tue, 23 Jan 1996 22:26:00 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822427972:02156:1; Tue, 23 Jan 96 20:12:52 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa01548; 23 Jan 96 20:11 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id IAA07751 for dbi-users-real; Tue, 23 Jan 1996 08:50:39 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from colossus.cse.psu.edu (root@colossus.cse.psu.edu [130.203.1.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id IAA07747 for ; Tue, 23 Jan 1996 08:50:36 -0800 Received: from localhost by colossus.cse.psu.edu with SMTP id <78935>; Tue, 23 Jan 1996 11:53:36 -0500 X-Mailer: exmh version 1.6.1 5/23/95 To: jposner@clark.net (Jeffrey S. Posner) cc: dbi-users@fugue.com Subject: Re: Sample code for ora_perl/Man Pages In-reply-to: Your message of "Tue, 23 Jan 1996 10:42:45 EST." <31050184.53652672@explorer.clark.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Jan 1996 11:50:31 -0500 From: John D Groenveld Message-Id: <96Jan23.115336est.78935@colossus.cse.psu.edu> The pod file for Oraperl (DBI/DBD-Oracle) explains the changes from Kevin Stock's Oraperl2.4. perldoc is your friend :) John groenvel@cse.psu.edu ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <16163-39@oink>; Tue, 23 Jan 1996 22:26:33 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822430687:27446:1; Tue, 23 Jan 96 20:58:07 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa27277; 23 Jan 96 20:57 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa13651; 23 Jan 96 20:56 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id KAA07913 for dbi-users-real; Tue, 23 Jan 1996 10:19:40 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from mail.Clark.Net (mail.clark.net [168.143.0.10]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id KAA07909 for ; Tue, 23 Jan 1996 10:19:35 -0800 Received: from clark.net (root@clark.net [168.143.0.7]) by mail.Clark.Net (8.7.3/8.6.5) with ESMTP id NAA00948 for ; Tue, 23 Jan 1996 13:22:46 -0500 (EST) Received: from mciwks01.pcy.mci.net (mciwks01.pcy.mci.net [204.70.138.27]) by clark.net (8.7.1/8.7.1) with SMTP id NAA16991 for ; Tue, 23 Jan 1996 13:22:45 -0500 (EST) From: "Jeffrey S. Posner" To: dbi-users@fugue.com Subject: Stored procedures Date: Tue, 23 Jan 1996 18:19:57 GMT Organization: J. Posner Associates Message-Id: <31052582.62866688@explorer.clark.net> X-Mailer: Forte Agent .99c/16.141 What is the latest on executing stored procedures from oraperl. FOr what is worth, I can execute a stored procedure which does not want to return paramters using this technique: &ora_do($lda, "begin stored_proc_name (value, value, value );end;";); Also, these means you can pass just about an PL/SQL block via ora_do. The problem comes from trying to return data back. Any thoughts on this would be appreciated. Jeff ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <17958-0@oink>; Wed, 24 Jan 1996 02:37:04 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822447510:13642:1; Wed, 24 Jan 96 01:38:30 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa13359; 24 Jan 96 1:37 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA08957 for dbi-users-real; Tue, 23 Jan 1996 16:08:59 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from w3-design.softaware.com (w3-design.com [206.117.78.129]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA08953 for ; Tue, 23 Jan 1996 16:08:58 -0800 Received: from [206.117.64.76] (gibson.w3-design.com [206.117.64.76]) by w3-design.softaware.com (8.6.9/8.6.9) with SMTP id QAA12840; Tue, 23 Jan 1996 16:10:51 -0800 Date: Tue, 23 Jan 1996 16:10:51 -0800 Message-Id: <199601240010.QAA12840@w3-design.softaware.com> X-Sender: frank@mail.w3-design.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Jason.Stevens@chron.com (Jason Stevens) From: frank@w3-design.com (Frank San Filippo) Subject: Re: mSQL DBD test: DESTROY ignored? Cc: dbi-users@fugue.com I recently had similar problems until I got the absolute newest version of DBI (1.48 I believe) and just to be sure, a fresh copy of DBD-mSQL from one of the CPAN mirrors. Everything was fine after that. >Now the fun part begins. The make for the mSQL DBD (v0.60pl9) failed with >syntax errors in dbdimp.h (lines 96, 106, 132) and dbdimp.c (line 32). A few >minutes' research revealed that the problem was in fact in dbdimp.h: cc didn't >like the type specfier "signed". I prepended a #define to set "signed" to "", >and it compiled with no errors after that. F r a n k S a n F i l i p p o w 3 - d e s i g n

(310) 815-1177 fax:(310) 815-1133

---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <17959-7@oink>; Wed, 24 Jan 1996 02:37:43 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822447507:21212:3; Wed, 24 Jan 96 01:38:27 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa21156; 24 Jan 96 1:37 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA08283 for dbi-users-real; Tue, 23 Jan 1996 13:01:25 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from chan.crim.ca (chan.crim.ca [132.218.1.4]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id NAA08279 for ; Tue, 23 Jan 1996 13:01:10 -0800 Received: from zorro.crim.ca by chan.crim.ca (4.1/SMI-4.1) id AA20229; Tue, 23 Jan 96 16:04:21 EST Received: by zorro.crim.ca (5.0/SMI-SVR4) id AA19585; Tue, 23 Jan 1996 16:04:41 +0500 Date: Tue, 23 Jan 1996 16:04:41 +0500 From: maparent@zorro.crim.ca (Marc-Antoine Parent) Message-Id: <9601232104.AA19585@zorro.crim.ca> To: dbi-users@fugue.com, jposner@clark.net Subject: Re: Stored procedures X-Sun-Charset: US-ASCII Content-Length: 676 > What is the latest on executing stored procedures from oraperl. FOr what > is worth, I can execute a stored procedure which does not want to return > paramters using this technique: > > &ora_do($lda, "begin stored_proc_name (value, value, value );end;";); > > Also, these means you can pass just about an PL/SQL block via > ora_do. The problem comes from trying to return data back. I use the following in the package definition: FUNCTION some_function( xxx IN NUMBER) RETURN INTEGER; PRAGMA RESTRICT_REFERENCES ( some_function, WNDS , WNPS); This means that the function is NOT allowed to have side effects, but makes it "callable" in any statement. ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <17959-10@oink>; Wed, 24 Jan 1996 02:37:55 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822447574:21690:1; Wed, 24 Jan 96 01:39:34 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa21465; 24 Jan 96 1:39 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA08949 for dbi-users-real; Tue, 23 Jan 1996 16:05:03 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA08945 for ; Tue, 23 Jan 1996 16:05:01 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id XAA07858; Tue, 23 Jan 1996 23:56:59 GMT From: Alligator Descartes Message-Id: <199601232356.XAA07858@fruitbat.mcqueen.com> Subject: Re: ISO characters translated to ASCII? To: maparent@zorro.crim.ca (Marc-Antoine Parent) Date: Tue, 23 Jan 1996 23:56:58 +0000 (GMT) Cc: dbi-users@fugue.com In-Reply-To: <9601232119.AA19616@zorro.crim.ca> from "Marc-Antoine Parent" at Jan 23, 96 04:19:18 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 Content-Length: 1137 > I am not sure whether this is an oraperl or a strictly oracle question... > I filled a database with ISO latin 1 (8 bits) values (using DBI-0.65 and > DBD-Oracle-0.27 on a sparc 20 with Solaris 2.3, and Oracle 7....? sorry.) > > They got into oracle without any problem, I see them fine when I do a select > with sqlplus, but a select operation from DBI-DBD (i.e. the same setup I used to > get them in!) seems to want to give me ascii back. Curiously enough, characters > are even translated properly, i.e. e acute to e, etc. > So there is very probably some intelligent agency behind this! > Question: WHO does this? Any hint? > More important: Is there any way I can work around this? > (I already tried $ENV{LC_ALL} = 'fr'; to no avail) a) Make sure you database was created with the ISO8859P1 character set b) Set $ENV{'NLS_LANG'} to something like AMERICAN_AMERICA.WE8ISO8859P1 ( you should be something like ) FRENCH_FRANCE.WE8ISO8859P1 Hope this helps. -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <17959-12@oink>; Wed, 24 Jan 1996 02:38:09 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822449997:02924:1; Wed, 24 Jan 96 02:19:57 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa02662; 24 Jan 96 2:18 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA09013 for dbi-users-real; Tue, 23 Jan 1996 16:48:33 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from w3-design.softaware.com (w3-design.com [206.117.78.129]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id QAA09009 for ; Tue, 23 Jan 1996 16:48:30 -0800 Received: from [206.117.64.76] (gibson.w3-design.com [206.117.64.76]) by w3-design.softaware.com (8.6.9/8.6.9) with SMTP id QAA13063; Tue, 23 Jan 1996 16:50:41 -0800 Date: Tue, 23 Jan 1996 16:50:41 -0800 Message-Id: <199601240050.QAA13063@w3-design.softaware.com> X-Sender: frank@mail.w3-design.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Jason.Stevens@chron.com (Jason Stevens) From: frank@w3-design.com (Frank San Filippo) Subject: Re: mSQL DBD test: DESTROY ignored? Cc: dbi-users@fugue.com Jason Stephens did spake: >Frank San Filippo previously wrote: >> >> I recently had similar problems until I got the absolute newest version of >> DBI (1.48 I believe) and just to be sure, a fresh copy of DBD-mSQL from one >> of the CPAN mirrors. Everything was fine after that. > >According to ftp://ftp.sedl.org/pub/mirrors/CPAN/modules/by-module/DBI, 0.65 >is the latest version of the DBI, and that's what I'm using. Hmmm.... I don't know how these verion things work, but here's the first 9 lines of my DBI.pm, if it helps: package DBI; require 5.001; # 5.001m or later $VERSION = substr(q$Revision: 1.48 $, 10); # $Id: DBI.pm,v 1.48 1995/11/16 23:02:30 timbo Exp $ # # Copyright (c) 1995, Tim Bunce F r a n k S a n F i l i p p o w 3 - d e s i g n

(310) 815-1177 fax:(310) 815-1133

---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <17958-17@oink>; Wed, 24 Jan 1996 02:38:43 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822447444:13347:2; Wed, 24 Jan 96 01:37:24 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa13115; 24 Jan 96 1:36 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA08425 for dbi-users-real; Tue, 23 Jan 1996 13:16:11 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from chan.crim.ca (chan.crim.ca [132.218.1.4]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id NAA08421 for ; Tue, 23 Jan 1996 13:16:05 -0800 Received: from zorro.crim.ca by chan.crim.ca (4.1/SMI-4.1) id AA20482; Tue, 23 Jan 96 16:18:58 EST Received: by zorro.crim.ca (5.0/SMI-SVR4) id AA19616; Tue, 23 Jan 1996 16:19:18 +0500 Date: Tue, 23 Jan 1996 16:19:18 +0500 From: maparent@zorro.crim.ca (Marc-Antoine Parent) Message-Id: <9601232119.AA19616@zorro.crim.ca> To: dbi-users@fugue.com Subject: ISO characters translated to ASCII? X-Sun-Charset: US-ASCII Content-Length: 734 I am not sure whether this is an oraperl or a strictly oracle question... I filled a database with ISO latin 1 (8 bits) values (using DBI-0.65 and DBD-Oracle-0.27 on a sparc 20 with Solaris 2.3, and Oracle 7....? sorry.) They got into oracle without any problem, I see them fine when I do a select with sqlplus, but a select operation from DBI-DBD (i.e. the same setup I used to get them in!) seems to want to give me ascii back. Curiously enough, characters are even translated properly, i.e. e acute to e, etc. So there is very probably some intelligent agency behind this! Question: WHO does this? Any hint? More important: Is there any way I can work around this? (I already tried $ENV{LC_ALL} = 'fr'; to no avail) Thank you! ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <17958-36@oink>; Wed, 24 Jan 1996 02:40:04 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822449110:21128:2; Wed, 24 Jan 96 02:05:10 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa20678; 24 Jan 96 2:04 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id QAA08980 for dbi-users-real; Tue, 23 Jan 1996 16:20:47 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from houston.chron.com (houston.chron.com [130.80.27.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id QAA08976 for ; Tue, 23 Jan 1996 16:20:46 -0800 Received: from relay.chron.com (chron.chron.com) by houston.chron.com with SMTP id AA24451 (5.65c/IDA-1.4.4 for ); Tue, 23 Jan 1996 18:23:30 -0600 Received: from elmed002.magichron-b by relay.chron.com (4.1/SMI-4.1) id AA14398; Tue, 23 Jan 96 18:23:30 CST Received: by elmed002.magichron-b (4.1/SMI-4.1) id AA03790; Tue, 23 Jan 96 18:23:52 PST From: Jason.Stevens@chron.com (Jason Stevens) Message-Id: <9601240223.AA03790@elmed002.magichron-b> Subject: Re: mSQL DBD test: DESTROY ignored? To: frank@w3-design.com (Frank San Filippo) Date: Tue, 23 Jan 1996 18:23:52 -0800 (PST) Cc: Jason.Stevens@chron.com, dbi-users@fugue.com In-Reply-To: <199601240010.QAA12840@w3-design.softaware.com> from "Frank San Filippo" at Jan 23, 96 04:10:51 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 763 Frank San Filippo previously wrote: > > I recently had similar problems until I got the absolute newest version of > DBI (1.48 I believe) and just to be sure, a fresh copy of DBD-mSQL from one > of the CPAN mirrors. Everything was fine after that. According to ftp://ftp.sedl.org/pub/mirrors/CPAN/modules/by-module/DBI, 0.65 is the latest version of the DBI, and that's what I'm using. -jps -- Jason Philip Stevens Email: jstevens@chron.com Programmer Voice: (713) 220-2766 Houston Chronicle Interactive Fax: (713) 217-5105 USPS: 801 Texas Avenue Just my $2E-2 Houston, TX 77002 ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <19266-2@oink>; Wed, 24 Jan 1996 04:27:40 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822453764:07341:1; Wed, 24 Jan 96 03:22:44 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa07121; 24 Jan 96 3:21 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA08781 for dbi-users-real; Tue, 23 Jan 1996 14:36:18 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from houston.chron.com (houston.chron.com [130.80.27.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id OAA08777 for ; Tue, 23 Jan 1996 14:36:16 -0800 Received: from relay.chron.com (chron.chron.com) by houston.chron.com with SMTP id AA19336 (5.65c/IDA-1.4.4 for ); Tue, 23 Jan 1996 16:39:28 -0600 Received: from elmed002.magichron-b by relay.chron.com (4.1/SMI-4.1) id AA10319; Tue, 23 Jan 96 16:39:27 CST Received: by elmed002.magichron-b (4.1/SMI-4.1) id AA03694; Tue, 23 Jan 96 16:39:50 PST From: Jason.Stevens@chron.com (Jason Stevens) Message-Id: <9601240039.AA03694@elmed002.magichron-b> Subject: mSQL DBD test: DESTROY ignored? To: dbi-users@fugue.com, descarte@hermetica.com Date: Tue, 23 Jan 1996 16:39:49 -0800 (PST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 3420 I'm trying to install mSQL, DBI, and the mSQL DBD. Perl is up-to-date: %perl -v This is perl, version 5.001 Unofficial patchlevel 1m. I've installed the latest versions of mSQL: %msqladmin version Version Details :- msqladmin version 1.0.10 mSQL connection Localhost via UNIX socket mSQL server version 1.0.10 mSQL protocol version 6 mSQL TCP socket 1112 mSQL UNIX socket /dev/msql mSQL root user root (addendum: it's installed in /usr/local/msql, not /usr/local/Minerva, but $ENV{'MSQL_HOME'} is set to the latter) There were no errors reported during the make, the testing, or the installation of mSQL. I installed the DBI (v0.65). Once again, no errors during the make, testing, or install. Now the fun part begins. The make for the mSQL DBD (v0.60pl9) failed with syntax errors in dbdimp.h (lines 96, 106, 132) and dbdimp.c (line 32). A few minutes' research revealed that the problem was in fact in dbdimp.h: cc didn't like the type specfier "signed". I prepended a #define to set "signed" to "", and it compiled with no errors after that. So now, full of high hopes, I ran "make test". Here's what I got: %make test /usr/local/bin/perl -I./blib -I./blib -I/usr/local/lib/perl5/sun4-sunos -I/usr/local/lib/perl5 test.pl Testing: DBI->install_driver( 'mSQL' ): ok Testing: $drh->func( 'localhost', '_ListDBs' ): ok Testing: $drh->connect( 'localhost', 'test' ): Setting MSQL_TCP_PORT to default Database handle DBI::db=HASH(0x135e90) DESTROY ignored - never set up at test.pl line 42. *** Abort make: Fatal error: Command failed for target ` What does this mean? Clearly it's not completely hosed, because install_driver and _ListDBs both worked OK. The named line of test.pl just calls DBI::connect(), and the 'DESTROY ignored' error looks like it's coming from DBI - but that installed and tested without error. Help! Did my #defining "signed" screw things up? Why did cc complain about it anyway? Also, I tried recompiling with gcc, without redefining "signed". It errored in the same place. BTW - here's what kind of system I'm on: %perl -e 'use Config; print Config::myconfig()' Summary of my perl5 (patchlevel 1) configuration: Platform: osname=sunos, osver=4.1.3_db, archname=sun4-sunos uname='sunos magic8 4.1.3_db 1 sun4m ' hint=recommended Compiler: cc='cc', optimize='-O' cppflags='' ccflags ='' ldflags ='' 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 Libraries: so=so libpth=/lib /usr/lib /usr/ucblib /usr/local/lib libs=-lnsl -ldbm -ldl -lm -lc -lposix libc=/usr/lib/libc.so.1.9 Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun= cccdlflags='-pic', ccdlflags=' ', lddlflags='-assert nodefinitions' Thanks for any help in advance. -jps -- Jason Philip Stevens Email: jstevens@chron.com Programmer Voice: (713) 220-2766 Houston Chronicle Interactive Fax: (713) 217-5105 USPS: 801 Texas Avenue Just my $2E-2 Houston, TX 77002 ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <21854-7@oink>; Wed, 24 Jan 1996 11:14:23 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822479196:06557:1; Wed, 24 Jan 96 10:26:36 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa06127; 24 Jan 96 10:25 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id BAA09886 for dbi-users-real; Wed, 24 Jan 1996 01:29:50 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from isgate.is (isgate.is [193.4.58.51]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id BAA09882 for ; Wed, 24 Jan 1996 01:29:48 -0800 Received: from adal.hagkaup.is by isgate.is (8.7.3/ISnet/14-10-91); Wed, 24 Jan 1996 09:33:01 GMT Received: from sun5.hagkaup.is by adal.hagkaup.is (8.6.10/ISnet/25-02-95); Wed, 24 Jan 1996 09:34:30 GMT Received: from sun5 by sun5.hagkaup.is (8.6.12/) id JAA06716; Wed, 24 Jan 1996 09:31:50 GMT Message-ID: <3105FC83.71B@hagkaup.is> Date: Wed, 24 Jan 1996 09:31:47 +0000 From: Yngvi Thor Sigurjonsson Organization: Hof / Hagkaup X-Mailer: Mozilla 2.0b5 (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: Marc-Antoine Parent CC: dbi-users@fugue.com Subject: Re: ISO characters translated to ASCII? References: <9601232119.AA19616@zorro.crim.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Marc-Antoine Parent wrote: > > I am not sure whether this is an oraperl or a strictly oracle question... > I filled a database with ISO latin 1 (8 bits) values (using DBI-0.65 and > DBD-Oracle-0.27 on a sparc 20 with Solaris 2.3, and Oracle 7....? sorry.) > > They got into oracle without any problem, I see them fine when I do a select > with sqlplus, but a select operation from DBI-DBD (i.e. the same setup I used to > get them in!) seems to want to give me ascii back. Curiously enough, characters > are even translated properly, i.e. e acute to e, etc. > So there is very probably some intelligent agency behind this! > Question: WHO does this? Any hint? > More important: Is there any way I can work around this? > (I already tried $ENV{LC_ALL} = 'fr'; to no avail) > Are you calling DBI-DBD from some deamon or crontab where your runtime environment is not the same as when you run interactively? I have seen the same behavior when the NLS_LANG environment variabale is not properly set, usuallly when I need something done non-interactively. While you are at it you should also check if your backups (if you use export to backup) contain the ISO characters. I know of a case where export was the only backup and just by accident the sysadm noticed the total 7-bit-ness of the exports, before disaster struck. I would consider this a bug in Oracle but other might not, I don't think it is unreasonable to expect your backups to be backups and not some mutilations of your data. Regards yngvi@hagkaup.is ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <24061-0@oink>; Wed, 24 Jan 1996 17:06:22 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822503015:06582:0; Wed, 24 Jan 96 17:03:35 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa06162; 24 Jan 96 17:02 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa00123; 24 Jan 96 17:00 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id HAA10334 for dbi-users-real; Wed, 24 Jan 1996 07:54:39 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from houston.chron.com (houston.chron.com [130.80.27.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id HAA10330 for ; Wed, 24 Jan 1996 07:54:35 -0800 Received: from relay.chron.com (chron.chron.com) by houston.chron.com with SMTP id AA11720 (5.65c/IDA-1.4.4 for ); Wed, 24 Jan 1996 09:57:54 -0600 Received: from elmed002.magichron-b by relay.chron.com (4.1/SMI-4.1) id AA20235; Wed, 24 Jan 96 09:57:53 CST Received: by elmed002.magichron-b (4.1/SMI-4.1) id AA03991; Wed, 24 Jan 96 09:58:23 PST From: Jason Stevens Message-Id: <9601241758.AA03991@elmed002.magichron-b> Subject: Re: mSQL DBD test: DESTROY ignored? To: Frank San Filippo Date: Wed, 24 Jan 1996 09:58:23 -0800 (PST) Cc: Jason.Stevens@chron.com, dbi-users@fugue.com In-Reply-To: <199601240050.QAA13063@w3-design.softaware.com> from "Frank San Filippo" at Jan 23, 96 04:50:41 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 975 Frank San Filippo previously wrote: > > >According to ftp://ftp.sedl.org/pub/mirrors/CPAN/modules/by-module/DBI, 0.65 > >is the latest version of the DBI, and that's what I'm using. > > Hmmm.... I don't know how these verion things work, but here's the first 9 > lines of my DBI.pm, if it helps: > > package DBI; > > require 5.001; # 5.001m or later > > $VERSION = substr(q$Revision: 1.48 $, 10); > > # $Id: DBI.pm,v 1.48 1995/11/16 23:02:30 timbo Exp $ > # > # Copyright (c) 1995, Tim Bunce Mine is identical. :( -jps -- Jason Philip Stevens Email: jstevens@chron.com WWW Programmer Voice: (713) 220-2766 Houston Chronicle Interactive Fax: (713) 217-5105 USPS: 801 Texas Avenue Just my $2E-2 Houston, TX 77002 WWW: http://www.chron.com ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <25865-8@oink>; Wed, 24 Jan 1996 22:24:40 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822519894:08662:1; Wed, 24 Jan 96 21:44:54 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa07968; 24 Jan 96 21:43 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id KAA10623 for dbi-users-real; Wed, 24 Jan 1996 10:32:17 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from cursci.cursci.co.uk (cursci.cursci.co.uk [193.112.128.3]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id KAA10616 for ; Wed, 24 Jan 1996 10:32:11 -0800 Received: from gateway.cursci.co.uk by cursci.cursci.co.uk with SMTP (5.65/1.2(ep 1.9)-eef) id AA02572; Wed, 24 Jan 96 18:34:00 GMT Message-Id: <9601241834.AA02572@cursci.cursci.co.uk> Date: Wed, 24 Jan 1996 19:41:00 +0000 From: Mark Lester Subject: Using SET for the ARRAYSIZE To: DBI List X-Mailer: Worldtalk (NetConnex V3.50c)/MIME when I try to execute my query in sqlplus it complains that the buffer size has been exceeded and I need to use SET to decrease the ARRAYSIZE or increase the MAXDATA. So I set ARRAYSIZE to 1 and it works. How do I SET things from DBI. Thanx very much for the reply to my stored procedures. I worked it out and was about to mail you all then saw all the responses. Mark Lester (Electronic Press) P.S. We have our home grown SGML kind of parser and manipulation system, which we have adapted to scan HTML (and cope with the HTML cheats) and then substitute value attributes into the input and select tags. So we have a kind of forms handler/query by example. We use perl functions matching the tag names to do the manipulation of the parse tree, so we can use lots of luvly perl to mangle the data. If any of you rocket science wizards already has something fantastic to do this, or if any fellow thickos want to use ours (it's called STUMP) then please get in touch. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <26466-3@oink>; Thu, 25 Jan 1996 00:50:52 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822526180:02490:1; Wed, 24 Jan 96 23:29:40 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa02386; 24 Jan 96 23:29 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA11096 for dbi-users-real; Wed, 24 Jan 1996 14:54:19 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from digirati.digirati.com (digirati.digirati.com [204.212.44.2]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA11092 for ; Wed, 24 Jan 1996 14:54:14 -0800 Received: (from mix@localhost) by digirati.digirati.com (8.6.10/8.6.9) id OAA13932 for dbi-users@fugue.com; Wed, 24 Jan 1996 14:58:27 -0800 From: Michael Shatsman Message-Id: <199601242258.OAA13932@digirati.digirati.com> Subject: Help unsubscribe To: dbi-users@fugue.com Date: Wed, 24 Jan 1996 14:58:26 -0800 (PST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 85 I'm trying to unsubscribe myself from mailing list with no luck. Please advise. /ms ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <26466-18@oink>; Thu, 25 Jan 1996 00:52:17 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822530699:07439:0; Thu, 25 Jan 96 00:44:59 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa07397; 25 Jan 96 0:44 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa02278; 25 Jan 96 0:43 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA11063 for dbi-users-real; Wed, 24 Jan 1996 14:29:36 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from ward.nadn.navy.mil (ward.nadn.navy.mil [131.121.160.3]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA11059 for ; Wed, 24 Jan 1996 14:29:34 -0800 Received: (from harle@localhost) by ward.nadn.navy.mil (8.6.12/8.6.12) id RAA09494; Wed, 24 Jan 1996 17:33:37 -0500 Date: Wed, 24 Jan 1996 17:33:36 -0500 (EST) From: Jim Harle X-Sender: harle@ward To: dbi-users@fugue.com Subject: static link of DBI with perl Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I have been unable to build perl on dgux with dynamic loading. Static is fine (perl5.001m). I'm trying to build DBI(0.65) and DBD-Oracle(0.27). I built DBI stock, then attemted DBD. I got the following from perl Makefile.PL 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.) How do I build a new perl executable which has the DBI module statically linked into it? --Jim Harle ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <28440-17@oink>; Thu, 25 Jan 1996 07:09:38 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822539441:16681:1; Thu, 25 Jan 96 03:10:41 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa16418; 25 Jan 96 3:09 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa19752; 25 Jan 96 3:08 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id RAA11418 for dbi-users-real; Wed, 24 Jan 1996 17:15:34 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id RAA11414 for ; Wed, 24 Jan 1996 17:15:32 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id BAA02001; Thu, 25 Jan 1996 01:13:24 GMT From: Alligator Descartes Message-Id: <199601250113.BAA02001@fruitbat.mcqueen.com> Subject: Re: static link of DBI with perl To: Jim Harle Date: Thu, 25 Jan 1996 01:13:23 +0000 (GMT) Cc: dbi-users@fugue.com In-Reply-To: from "Jim Harle" at Jan 24, 96 05:33:36 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 Content-Length: 771 > I have been unable to build perl on dgux with dynamic loading. Static is > fine (perl5.001m). I'm trying to build DBI(0.65) and DBD-Oracle(0.27). > I built DBI stock, then attemted DBD. I got the following from > perl Makefile.PL > 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.) > > How do I build a new perl executable which has the DBI module statically > linked into it? Typing 'make perl' ought to do it. > --Jim Harle -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <28440-42@oink>; Thu, 25 Jan 1996 07:15:10 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822541376:23303:1; Thu, 25 Jan 96 03:42:56 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa23265; 25 Jan 96 3:42 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa24594; 25 Jan 96 3:41 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id SAA11523 for dbi-users-real; Wed, 24 Jan 1996 18:01:34 -0800 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.6.12/8.6.11) with SMTP id SAA11519 for ; Wed, 24 Jan 1996 18:01:30 -0800 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id al08478; 25 Jan 96 1:47 GMT Received: from ignite.demon.co.uk ([158.152.8.99]) by relay-3.mail.demon.net id ab09746; 25 Jan 96 1:14 GMT Received: from toad by oink with SMTP (PP) id <27010-0@oink>; Thu, 25 Jan 1996 01:07:57 +0000 Received: by toad.ig.co.uk (5.0/SMI-SVR4) id AA24945; Thu, 25 Jan 1996 01:07:29 +0000 Date: Thu, 25 Jan 1996 01:07:29 +0000 From: Tim Bunce Message-Id: <9601250107.AA24945@toad.ig.co.uk> To: dbi-users@fugue.com, harle@nadn.navy.mil Subject: Re: static link of DBI with perl X-Sun-Charset: US-ASCII content-length: 1171 Organization: Paul Ingram Group, Software Systems, +44 1 483 424424 > From: Jim Harle > > I have been unable to build perl on dgux with dynamic loading. Static is > fine (perl5.001m). I'm trying to build DBI(0.65) and DBD-Oracle(0.27). > I built DBI stock, then attemted DBD. I got the following from > perl Makefile.PL > 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.) > > How do I build a new perl executable which has the DBI module statically > linked into it? You'll also need DBD::Oracle built in. Build (static) and install the DBI module (which copies DBI.a to the library). Build DBD::Oracle, then say 'make perl' and presto!, a new perl appears in your directory which has DBI.a linked in (because it was installed) and Oracle.a because that's the module you're in when you said 'make perl'. All the magic's done by MakeMaker. Read the MakeMaker docs for more info. I strongly recommend you switch to perl5.002beta2 - much better docs. (you'll need to hack the $VERSION line in DBI.pm as pre a recent message of mine). Tim. ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <05680-0@oink>; Thu, 25 Jan 1996 19:13:13 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822596870:25228:0; Thu, 25 Jan 96 19:07:50 GMT Received: from relay-1.mail.demon.net ([158.152.1.140]) by punt-1.mail.demon.net id aa25121; 25 Jan 96 19:07 GMT Received: from toccata.fugue.com ([204.254.239.2]) by relay-1.mail.demon.net id aa00548; 25 Jan 96 19:05 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id JAA12866 for dbi-users-real; Thu, 25 Jan 1996 09:44:27 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from houston.chron.com (houston.chron.com [130.80.27.2]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id JAA12862 for ; Thu, 25 Jan 1996 09:44:25 -0800 Received: from relay.chron.com (chron.chron.com) by houston.chron.com with SMTP id AA14151 (5.65c/IDA-1.4.4 for ); Thu, 25 Jan 1996 11:47:11 -0600 Received: from elmed002.magichron-b by relay.chron.com (4.1/SMI-4.1) id AA28651; Thu, 25 Jan 96 11:47:10 CST Received: by elmed002.magichron-b (4.1/SMI-4.1) id AA04386; Thu, 25 Jan 96 11:47:39 PST From: Jason Stevens Message-Id: <9601251947.AA04386@elmed002.magichron-b> Subject: Re: mSQL DBD test: DESTROY ignored? To: Jason Stevens Date: Thu, 25 Jan 1996 11:47:38 -0800 (PST) Cc: dbi-users@fugue.com, descarte@hermetica.com In-Reply-To: <9601240039.AA03694@elmed002.magichron-b> from "Jason Stevens" at Jan 23, 96 04:39:49 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1677 Jason Stevens previously wrote: > > %make test > > /usr/local/bin/perl -I./blib -I./blib -I/usr/local/lib/perl5/sun4-sunos -I/usr/local/lib/perl5 test.pl > Testing: DBI->install_driver( 'mSQL' ): ok > Testing: $drh->func( 'localhost', '_ListDBs' ): ok > Testing: $drh->connect( 'localhost', 'test' ): Setting MSQL_TCP_PORT to default > Database handle DBI::db=HASH(0x135e90) DESTROY ignored - never set up at test.pl line 42. > *** Abort > make: Fatal error: Command failed for target ` I finally figured it out. This probably qualifies as a stupid mistake on my part, but it's the kind that I would expect other newbies might make as well. When I compiled and installed mSQL, I altered the default msql.acl in a few places - in addition to giving root exclusive read/write access, I also removed the "host=*" line and replaced "access=local,remote" with "access=local", since I only intended on accessing the database from the local machine. It turns out that test.pl for DBD-mSQL doesn't like this - it tests across the net, even when going to localhost, and will freak out if msql.acl doesn't include "access=remote". Restoring this line alone to msql.acl resulted in "make test" returning no errors. :) -jps -- Jason Philip Stevens Email: jstevens@chron.com WWW Programmer Voice: (713) 220-2766 Houston Chronicle Interactive Fax: (713) 217-5105 USPS: 801 Texas Avenue Just my $2E-2 Houston, TX 77002 WWW: http://www.chron.com ---+++--- Received: from punt2.demon.co.uk by oink with SMTP (PP) id <08070-9@oink>; Fri, 26 Jan 1996 07:06:54 +0000 Received: from punt-2.mail.demon.net by mailstore for dbperl@ig.co.uk id 822607234:28427:2; Thu, 25 Jan 96 22:00:34 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-2.mail.demon.net id aa28363; 25 Jan 96 22:00 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA13416 for dbi-users-real; Thu, 25 Jan 1996 13:01:15 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id NAA13412 for ; Thu, 25 Jan 1996 13:01:12 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id UAA01356; Thu, 25 Jan 1996 20:58:37 GMT From: Alligator Descartes Message-Id: <199601252058.UAA01356@fruitbat.mcqueen.com> Subject: Re: mSQL DBD test: DESTROY ignored? To: Jason.Stevens@chron.com (Jason Stevens) Date: Thu, 25 Jan 1996 20:58:36 +0000 (GMT) Cc: Jason.Stevens@chron.com, dbi-users@fugue.com, descarte@hermetica.com In-Reply-To: <9601251947.AA04386@elmed002.magichron-b> from "Jason Stevens" at Jan 25, 96 11:47:38 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 Content-Length: 1138 > I finally figured it out. This probably qualifies as a stupid mistake on my > part, but it's the kind that I would expect other newbies might make as well. > > When I compiled and installed mSQL, I altered the default msql.acl in a few > places - in addition to giving root exclusive read/write access, I also > removed the "host=*" line and replaced "access=local,remote" with > "access=local", since I only intended on accessing the database from the local > machine. > > It turns out that test.pl for DBD-mSQL doesn't like this - it tests across > the net, even when going to localhost, and will freak out if msql.acl doesn't > include "access=remote". Restoring this line alone to msql.acl resulted in > "make test" returning no errors. Ah! I didn't quite expect that! Anyway, DBD::mSQL doesn't always connect via the network. Set the host to be: '' and it ought to connect via the UNIX domain socket. Anyway, good to hear it's working! Enjoy! > -jps -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <08069-12@oink>; Fri, 26 Jan 1996 07:07:24 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822607757:04776:3; Thu, 25 Jan 96 22:09:17 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa04303; 25 Jan 96 22:08 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id NAA13425 for dbi-users-real; Thu, 25 Jan 1996 13:07:57 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from pharmacy.isu.edu (pharmacy.isu.edu [134.50.8.6]) by toccata.fugue.com (8.6.12/8.6.11) with SMTP id NAA13421 for ; Thu, 25 Jan 1996 13:07:37 -0800 Received: from pharm1.isu.edu by pharmacy.isu.edu (AIX 3.2/UCB 5.64/4.03) id AA18594; Thu, 25 Jan 1996 14:10:54 -0700 Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 25 Jan 1996 14:11:00 -0700 To: dbi-users@fugue.com From: joerg@pharmacy.isu.edu (Joerg Senekowitsch) Subject: Re: mSQL DBD test: DESTROY ignored? >Jason Stevens previously wrote: >> >> %make test >> >> /usr/local/bin/perl -I./blib -I./blib >>-I/usr/local/lib/perl5/sun4-sunos -I/usr/local/lib/perl5 test.pl >> Testing: DBI->install_driver( 'mSQL' ): ok >> Testing: $drh->func( 'localhost', '_ListDBs' ): ok >> Testing: $drh->connect( 'localhost', 'test' ): Setting >>MSQL_TCP_PORT to default >> Database handle DBI::db=HASH(0x135e90) DESTROY ignored - never set >>up at test.pl line 42. >> *** Abort >> make: Fatal error: Command failed for target ` > >I finally figured it out. This probably qualifies as a stupid mistake on my >part, but it's the kind that I would expect other newbies might make as well. > >When I compiled and installed mSQL, I altered the default msql.acl in a few >places - in addition to giving root exclusive read/write access, I also >removed the "host=*" line and replaced "access=local,remote" with >"access=local", since I only intended on accessing the database from the local >machine. > >It turns out that test.pl for DBD-mSQL doesn't like this - it tests across >the net, even when going to localhost, and will freak out if msql.acl doesn't >include "access=remote". Restoring this line alone to msql.acl resulted in >"make test" returning no errors. > >:) > >-jps > >-- >Jason Philip Stevens Email: jstevens@chron.com >WWW Programmer Voice: (713) 220-2766 >Houston Chronicle Interactive Fax: (713) 217-5105 > USPS: 801 Texas Avenue >Just my $2E-2 Houston, TX 77002 > WWW: http://www.chron.com Same problem here (RS/6000 - AIX 3.2.5). It dumps core. The missing piece is the host=* line in the msql.acl file. I already had read=*,write=*,access=local,remote in the acl file :-( Somebody document this! Joerg ============================================================ Joerg Senekowitsch, Ph.D. SysAdmin Phone: (208) 236-2627 College of Pharmacy FAX: (208) 236-4421 Idaho State University ------------------------ Pocatello, Idaho 83209 I SPEAK FOR MYSELF ! ==================== mens agitat molem ===================== ---+++--- Received: from punt.demon.co.uk by oink with SMTP (PP) id <08174-8@oink>; Fri, 26 Jan 1996 07:12:28 +0000 Received: from punt-1.mail.demon.net by mailstore for dbperl@ig.co.uk id 822617262:21694:1; Fri, 26 Jan 96 00:47:42 GMT Received: from toccata.fugue.com ([204.254.239.2]) by punt-1.mail.demon.net id aa21360; 26 Jan 96 0:47 GMT Received: (from daemon@localhost) by toccata.fugue.com (8.6.12/8.6.11) id OAA13648 for dbi-users-real; Thu, 25 Jan 1996 14:46:51 -0800 Precedence: junk Sender: owner-perldb-interest@fugue.com Received: from fruitbat.mcqueen.com (pillshovel.mcqueen.com [194.72.106.246]) by toccata.fugue.com (8.6.12/8.6.11) with ESMTP id OAA13644 for ; Thu, 25 Jan 1996 14:46:48 -0800 Received: (from descarte@localhost) by fruitbat.mcqueen.com (8.6.12/8.6.12) id WAA02097; Thu, 25 Jan 1996 22:43:45 GMT From: Alligator Descartes Message-Id: <199601252243.WAA02097@fruitbat.mcqueen.com> Subject: Re: mSQL DBD test: DESTROY ignored? To: joerg@pharmacy.isu.edu (Joerg Senekowitsch) Date: Thu, 25 Jan 1996 22:43:44 +0000 (GMT) Cc: dbi-users@fugue.com In-Reply-To: from "Joerg Senekowitsch" at Jan 25, 96 02:11:00 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 Content-Length: 535 > Same problem here (RS/6000 - AIX 3.2.5). It dumps core. > The missing piece is the > > host=* > > line in the msql.acl file. I already had read=*,write=*,access=local,remote > in the acl file :-( Somebody document this! Consider it documented in the DBD::mSQL test script. I'll add the note into the Hermetica WWW as soon as I get half a chance......... > Joerg -- Alligator Descartes | "...Nil posse creari De nilo" descarte@hermetica.com | -- Lucretius, De Rerum Natura I, l.155 http://www.hermetica.com/descarte | ---+++--- .