Oracle::DBD on Solaris 2.7

2001-02-22 Thread Scott J. Pekarek
I am new to this list so forgive me if this has been discussed; I am trying to get Oracle DBI running on Solaris 2.7. My environment is: perl 5.6.0 DBI-1.14 DBD-1.06 I compiled perl and the modules with the /opt/SUNWspro/bin/cc compiler and strictly default options (it did not complain). This

Re: How to print a table field in DBI?

2001-02-22 Thread MikeBlezien
On Fri, 23 Feb 2001 01:48:07 -, "David Jacobowitz" <[EMAIL PROTECTED]> wrote: David, Wouldn't this work: while ($ref = $sth->fetchrow_hashref) { foreach $key (keys %{$ref}) { print “$key-- $ref->{$key}, ”; } >>Spend few hours trying to figureout a way to print my fiel

How to print a table field in DBI?

2001-02-22 Thread David Jacobowitz
Hi All, Spend few hours trying to figureout a way to print my field name with the returned field value without any success. Looked in the websites but no clue. Below is my code can anyone modify the code so it will print field_name_in_mysql_table and field_values that is in mysql? I have 5

Re: Can't install DBI

2001-02-22 Thread Kawai,Takanori
Hi. - Original Message - From: "Juan Terrazas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 23, 2001 7:16 AM Subject: Can't install DBI > Hi All, > > I got a new machine so I've been trying to install DBI v 1.13 after > installing Active Perl v5.6.0 on Windows 20

RE: Getting 'csv' data from a stream?

2001-02-22 Thread Sterin, Ilya
Woops, ignore the last reply. Should of though about it before answering. Ilya Sterin -Original Message- From: Robert Grant To: [EMAIL PROTECTED] Sent: 02/22/2001 3:27 PM Subject: Getting 'csv' data from a stream? Hi everybody Can DBD::CSV read its data from an IO stream rather than a

RE: Getting 'csv' data from a stream?

2001-02-22 Thread Sterin, Ilya
Not sure but *STDIN = *FILE would do it. Ilya Sterin -Original Message- From: Robert Grant To: [EMAIL PROTECTED] Sent: 02/22/2001 3:27 PM Subject: Getting 'csv' data from a stream? Hi everybody Can DBD::CSV read its data from an IO stream rather than always reading it from a flat file?

Re: ADO

2001-02-22 Thread David Billingham
Dear Tom Thanks for your reply. I didn't phrase my question very well: I am using DBD:ADO without any serious problems (having switched my code from ODBC). I was hoping to get advice on where to look for information on the ADO specfic methods mentioned in the O'Reilly 'Programming the Perl DBI'

Getting 'csv' data from a stream?

2001-02-22 Thread Robert Grant
Hi everybody Can DBD::CSV read its data from an IO stream rather than always reading it from a flat file? Thanks Bob Grant

Re: comments in 'csv' files

2001-02-22 Thread Jeff Zucker
Robert Grant wrote: > > Is it possible to have DBD:CSV ignore comment lines and blank lines > within the 'csv' file? > > For example, > -- > #Comments > #Comments > Field1,Field2 > data1,data2 Well DBD::CSV (or DBD::AnyData) won't ignore the comments, but you can use those DBDs

Can't install DBI

2001-02-22 Thread Juan Terrazas
Hi All, I got a new machine so I've been trying to install DBI v 1.13 after installing Active Perl v5.6.0 on Windows 2000. I get the following : . .. ... DBI.c DBIXS.h(403) : warning C4005: 'DBIS' : macro redefinition DBIXS.h(13) : see previous definition of 'DBIS' DBI.xs(196) : warning C

Re: "Solaris patch" message

2001-02-22 Thread David McCabe
> From: Hodgson Darin <[EMAIL PROTECTED]> > Date: Thu, 22 Feb 2001 10:56:25 -0800 > Subject: "Solaris patch" message > > I was hoping to get a little help/advice with a strange error message I am receiving >while > running a perl script containing DBI calls. The error message is: "You must ins

comments in 'csv' files

2001-02-22 Thread Robert Grant
Hi everybody, Is it possible to have DBD:CSV ignore comment lines and blank lines within the 'csv' file? For example, -- #Comments #Comments Field1,Field2 data1,data2 data1,data2 -- Thanks for the help, Bob Grant

RE: "Solaris patch" message

2001-02-22 Thread Tim Harsch
I missed the link: "A great many references for the Perl DBI can be found on the Hermetica Web Server. " on the DBI sign up page http://www.fugue.com/dbi/ I don't think that is very clear way to point new users to the archives. > -Original Message- > From: Tim Harsch [mailto:[EMAIL PROTE

RE: "Solaris patch" message

2001-02-22 Thread Tim Harsch
it is with the DBD::Oracle distribution that you downloaded. I also didn't know how to find the archives since the list has undergone some changes. So I started at www.perl.org and came accross the mail list sign up page. There was no link there and some web errors so I reported them to the adm

DBD-Oracle-1.03 and DBD-Oracle-1.06 FAIL make test

2001-02-22 Thread Byars, James D Contractor/NCCIM
I also forgot to mention that I'm attempting this install on HP/UX 11.0. Thanks Jim

DBD-Oracle-1.03 and DBD-Oracle-1.06 FAIL make test

2001-02-22 Thread Byars, James D Contractor/NCCIM
Sorry all, here's the output of my make test. PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl55/lib/5.00503/PA-RISC2.0-thread -I/opt/perl55/lib/5.00503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base../usr/lib/dld.sl:

RE: DBD-Oracle-1.03 and DBD-Oracle-1.06 FAIL make test

2001-02-22 Thread Tim Harsch
James, Please post the output of your make session before trying to fix some problems with it by editing the source. It's true some system configurations cause problems with the installs, but you should figure it what the problem is first. I think someone here would be able to help if yo

More Oracle &and dbiproxy

2001-02-22 Thread Michael Grau
Sorry, another correction to my message The dsn was dsn=dbi:Oracle:db7 not db7.

Re: DBD-Oracle-1.03 and DBD-Oracle-1.06 FAIL make test

2001-02-22 Thread Michael Klein
James, I just installed DBD::Oracle today on Solaris 7 with perl 5.6.0 and DBI-1.14 Perhaps, the make test is failing because you haven't added the following to your .cshrc file: setenv ORACLE_USERID usr/pwd I also encountered a problem when using an older version of gcc that doesn't support th

Addendum: Oracle and dbiproxy

2001-02-22 Thread Michael Grau
Sorry, ignore port number differences in my prevois message; they were the same. I've just tried a number of configurations.

DBD-Oracle-1.03 and DBD-Oracle-1.06 FAIL make test

2001-02-22 Thread Byars, James D Contractor/NCCIM
Hey all, I had this problem once before and someone gave me the right answer. I have built, tested and installed perl5.005_03. I have built, tested and installed DBI-1.14. I have built dbd-oracle-1.03 successfully, but it fails the make test. If I try to make install, it lets me, but my perl d

Oracle and dbiproxy?

2001-02-22 Thread Michael Grau
Hello: I have a simple select query the works fine using DBD::Oracle No bind_columns or params ... $dbh = DBI->connect("dbi:Oracle:db7", "aname", "apasswd") or die; my $sql = "SELECT STUFF, OTHERSTUFF from STUFF_TABLE"; my $sth = $dbh->prepare( $sql ); $sth->execute(); etc ... However when I tr

RE: Reading from LONG RAW

2001-02-22 Thread Sterin, Ilya
Did you compile your DBD::Oracle with OCI 8 if not you need to recompile or use blob_read or readblob technique. See reame.longs in the DBD::Oracle package. Ilya Sterin -Original Message- From: Manish Grewal To: [EMAIL PROTECTED] Sent: 02/22/2001 9:36 AM Subject: Reading from LONG RAW

(Fwd) what is dbi

2001-02-22 Thread Tim Bunce
- Forwarded message from Sergio <[EMAIL PROTECTED]> - From: Sergio <[EMAIL PROTECTED]> To: "Tim.Bunce" <[EMAIL PROTECTED]> Subject: what is dbi Date: Thu, 22 Feb 2001 11:53:00 +0100 X-SLUIDL: 5AA16D41-03F111D5-99CD0050-BAC80786 Hello I was reading the forum of select for update.. and I s

Problems using DBI !!!

2001-02-22 Thread Pablo Rodrigo
I´ve already intalled the DBI and DBD for Oracle. When I use the command " USE DBI " in my script occurs an error The system doesn´t find the dynamic link to PerlCRT.dll in the path Error:Can´t load C:/Perl/site/lib/auto/DBI/DBI.dll for module DBI: load_file. This error occurs at line 200 in c:/

RE: "Solaris patch" message

2001-02-22 Thread Tim Harsch
See README.java search these archives for "Solaris patch" > -Original Message- > From: Hodgson Darin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 22, 2001 10:56 AM > To: '[EMAIL PROTECTED]' > Subject: "Solaris patch" message > > > I was hoping to get a little help/advice with

"Solaris patch" message

2001-02-22 Thread Hodgson Darin
I was hoping to get a little help/advice with a strange error message I am receiving while running a perl script containing DBI calls. The error message is: "You must install a Solaris patch to run this version of the Java runtime. Please see the README and release notes for more information."

Re: Date format with ADO

2001-02-22 Thread Jim Clark
Thanks. Using a view works great and I learned a few new things this morning! -Jim Simon Oliver wrote: > Use the convert or format function of your underlying database. > > For example, in Access create a view like so: > > SELECT pdfs.id, Format(pdfs.date,"dd-mm-") AS formatted FROM pdfs; >

Re: Handeling undef data.

2001-02-22 Thread Tony Foiani
> "Michelle" == Michelle Gerfort <[EMAIL PROTECTED]> writes: Michelle> I'm having a problem when using fetchrow_array(). When I worry about NULLs in column, I find that using plain old "fetch" lets me construct a much simpler outer loop. If I need to grab individual elements later, or build

Fwd: Reading from LONG RAW

2001-02-22 Thread Manish Grewal
Any info on blob_read in dbi(if its there) would be welcome too >Date: Thu, 22 Feb 2001 08:36:45 -0800 >To: [EMAIL PROTECTED] >From: Manish Grewal <[EMAIL PROTECTED]> >Subject: Reading from LONG RAW > >Hi, >I'm getting the following DBI error from a select query >the query is : select f1, f2 from

Reading from LONG RAW

2001-02-22 Thread Manish Grewal
Hi, I'm getting the following DBI error from a select query the query is : select f1, f2 from t1 where f0=$id; f1 is type varchar(2) and f2 is type LONGRAW Error is: Could not prepare sql statement. Error No 01406: fetched column value was truncated (DBD: ofetch error on field 2 (of 2), ora_type

Re: Date format with ADO

2001-02-22 Thread Michael Peppler
Jim Clark writes: > Is it possible to recieve back a customized date format > instead of the stock 'dd/mm/'? I'm using Win2K and > ADO/MDAC 2.6 and would like $pdate to have 'dd mmm yy' > instead. I know that I can use Date::Manip but am looking > for a cleaner approach. You should be a

Re: Handeling undef data.

2001-02-22 Thread Neil Jonkers
All jedi trainees bow the the Jedi master Simon. Just abit off humour guys. - Original Message - From: "Michelle Gerfort" <[EMAIL PROTECTED]> To: "Simon Oliver" <[EMAIL PROTECTED]>; "DBI-users" <[EMAIL PROTECTED]> Sent: Thursday, February 22, 2001 3:55 PM Subject: Re: Handeling undef data

Re: Handeling undef data.

2001-02-22 Thread Michelle Gerfort
This was exactly the solution to my problem Thank you Simon! ;) /Michelle Simon Oliver wrote: > hmm my mailer (crappy Netscape 6) seemed to screw up there - try this: > > if (defined $row[$i]) { >if ($row[$i] ne "") { > print $row[$i] . "\t"; >} else { > print "Empty string i

Re: Handeling undef data.

2001-02-22 Thread Michelle Gerfort
I don't know. But doesn't eval then evaluate the whole @row? It seems to me that @row could look like this: (value1, value2, undef, value3, value4, undef) or something like that. I then want to print: value1value2undefined value in row value3value4 undefined value in row But in

Re: Handeling undef data.

2001-02-22 Thread Simon Oliver
hmm my mailer (crappy Netscape 6) seemed to screw up there - try this: if (defined $row[$i]) { if ($row[$i] ne "") { print $row[$i] . "\t"; } else { print "Empty string in row\t"; } } else { print "NULL value in row\t"; } // or was it me, P is next to { on the keyboard! /

Re: Handeling undef data.

2001-02-22 Thread Neil Jonkers
I'm thinking if (!defined($row[$i])) or what do the experts say. - Original Message - From: "Simon Oliver" <[EMAIL PROTECTED]> To: "Michelle Gerfort" <[EMAIL PROTECTED]> Cc: "DBI-users" <[EMAIL PROTECTED]> Sent: Thursday, February 22, 2001 3:40 PM Subject: Re: Handeling undef data.

Re: Handeling undef data.

2001-02-22 Thread Simon Oliver
That would trap an error in the retrieval of the entire row. Not what was asked for! -- Simon [EMAIL PROTECTED] wrote: > Never tried it, but would wrapping the "fetchrow_array" in > an 'eval' work? > > eval{ @row = $sth->fetchrow_array ); > if($EVAL_ERROR){ # Do whatever } > > > -Or

Re: Handeling undef data.

2001-02-22 Thread Simon Oliver
> if ($row[$i] ne ""){ This tests for an empty string not an undefined value. Try something like: if (defined $row[$i]) { if ($row[$i] ne "") { print $row[$i] . "\t"; } else { print "Empty string in row\t"; } } else P print "NULL value in row\t"; } --

RE: Handeling undef data.

2001-02-22 Thread djberge
Never tried it, but would wrapping the "fetchrow_array" in an 'eval' work? eval{ @row = $sth->fetchrow_array ); if($EVAL_ERROR){ # Do whatever } -Original Message- From: Michelle Gerfort [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 7:13 AM To: DBI-users Subject: Handelin

Handeling undef data.

2001-02-22 Thread Michelle Gerfort
i there! I'm having a problem when using fetchrow_array(). The area of the code where the problem is, you find below. while (@row = $sth->fetchrow_array() ) { $len = @row; for ($i = 0; $i < $len; $i++) { if ($row[$i] ne ""){ print $row[$i] . "\t"; } else{ print "undefined value in

Handeling undef data.

2001-02-22 Thread Michelle Gerfort
Hi there! I'm having a problem when using fetchrow_array(). The area of the code where the problem is, you find below. while (@row = $sth->fetchrow_array() ) { $len = @row; for ($i = 0; $i < $len; $i++) { if ($row[$i] ne ""){ print $row[$i] . "\t"; } else{ print "undefined value i

Re: DBD::MySQL and OSX

2001-02-22 Thread Giorgio Valoti
"C. Duncan Hudson" wrote: > Has anyone been able to sucessfully make DBI and DBD::MySQL work under OSX - > Darwin? I'm not having any luck at all. I'm running Perl v5.6.0 built for > darwin. And I'm trying to install the MySQL modules version 1.2215, with > DBI version 1.14.0. My mysql datab

Re: Date format with ADO

2001-02-22 Thread Simon Oliver
Use the convert or format function of your underlying database. For example, in Access create a view like so: SELECT pdfs.id, Format(pdfs.date,"dd-mm-") AS formatted FROM pdfs; Then select this from your perlscript Jim Clark wrote: > Is it possible to recieve back a customized date form

RE: Oracle DBD: space leak and max open cursors errors

2001-02-22 Thread Roberts, Drew (RY)
For the record...the $sth->finish statement does NOT release the cursor associated with the statement. A cursor is created by the "prepare" method and is not released until the statement handle it creates goes out of scope or is explicitly undefined. "Finish" releases the current "select list" o

Re: Oracle DBD: space leak and max open cursors errors

2001-02-22 Thread Eli
oops, it was working because I reverted to an earlier version which disconnects from the database after every 40 queries, not because of any change between prepare and prepare_cached. So I guess I still have the same problem. -Eli Eli wrote: > > We are doing something quite similar to your code

Re: Fwd: RE: please remove me as well

2001-02-22 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 21, 2001 at 11:16:01AM -0600, 'Elaine -HFB- Ashton' wrote: > I wanted to share this since this spineless weinerhead mailed his invective > privately as a side-swipe to someone who was merely trying to be helpful. How kind of him. Perhap

Re: apache authentification via RDBMS: DBI,DBD,DBILogin,

2001-02-22 Thread Mark Vandenbroeck
Pascal, Hereunder is an article I wrote some time ago, and which explains what you need, as far as I can see. Brgds, Mark PURPOSE --- The purpose of this article is to show how Basic Authentication against the database can be implemented in the Oracle HTTPD server. SCOPE & APPLICATION

apache authentification via RDBMS: DBI,DBD,DBILogin,

2001-02-22 Thread pascal GEND
Hi, I am working with Apache and I'd like to authentificate users accessing passworded directories with a rdbms (I use both mysql and postgresql) rather than using text files (htpasswd). So I downloaded Apache DBI module but now what is required? What driver for mysql and for postgresql (DBD..

Re: please remove me as well

2001-02-22 Thread Peter J . Holzer
On 2001-02-21 08:30:46 -0500, Charnley, Chip (C.) wrote: > That makes three of us. I have never been so disgusted with a list in my > life. IMNSHO, the management of this list, since it was moved, SUCKS! I am severly tempted to express my opinion of people who don't read neither announcement mail

Re: DBI make error on missing header files..

2001-02-22 Thread David McCabe
> From: Greg Trangmoe <[EMAIL PROTECTED]> > Date: Wed, 21 Feb 2001 13:06:03 -0700 > Subject: DBI make error on missing header files.. > > make - returned with 'could not find file' errors as shown in output below: I >appreciate any > help you can provide. > > cc -c -Dbool=char -DHAS_BOOL -I/

Date format with ADO

2001-02-22 Thread Jim Clark
Is it possible to recieve back a customized date format instead of the stock 'dd/mm/'? I'm using Win2K and ADO/MDAC 2.6 and would like $pdate to have 'dd mmm yy' instead. I know that I can use Date::Manip but am looking for a cleaner approach. Thanks. -Jim $sth = $dbh->prepare(" SELECT

Re: Error when updating using DBIx::Recordset to Oracle database

2001-02-22 Thread Gerald Richter
> > Selecting and inserting rows work fine, however when inserting records with > DBIx::Recordset -> Insert I get the following error: > [1843]ERR: 32: Line 60: Warning in Perl code: DBD::Oracle::db do failed: > ORA-00971: missing SET keyword (DBD ERROR: OCIStmtExecute) at > usr/lib/perl5/site_per

Error when updating using DBIx::Recordset to Oracle database

2001-02-22 Thread Steven
My config: Linux, Redhat 7.0 Oracle 8.1.6.0 Apache 1.3.17 Perl-5.6.0 mod_perl-1.25 HTML::Embperl 1.3.1 DBI-1.1.14 DBD-Oracle-1.06 ApacheDBI-0.88 DBIx-Recordset-0.23 Selecting and inserting rows work fine, however when inserting records with DBIx::Recordset -> Insert

Re: How to "use" a database with Oracle?

2001-02-22 Thread Mark Vandenbroeck
Please note that the "ALTER SESSION SET CURRENT_SCHEMA = ..." only changes the way names are resolved. That is: it changes the schema that will be searched by default. It does not change in any way your privileges. Mark From: "Tony Foiani" <[EMAIL PROTECTED]> To: "Tim Bunce" <[EMAIL PROTECTED]>