How to learn which sites refer to my blog?
DBD-Oracle
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Perl web-programming > DBD-Oracle 3 June 2009 12:51:40

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

DBD-Oracle

Robert 8 May 2003 22:44:44
 Hi list,I was able to install DBI module but DBD is giving the following error:C:\download\d­bd1>ppm install DBD-Oracle
Error: PPD for 'DBD-Oracle.ppd' could not be found. What am I missing? Thanks in advance




-------------------­--------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
Add comment
Charles L. Bunders 28 November 2001 20:33:26 permanent link ]
 I have installed the pre-built binary from http://www.sidhe.or­g/vmsperl/. I
am running Perl version 5.6.1 on VMS version 7.2-1.

This version of Perl has DBI v1.19 installed right away. I try and install
DBD-Oracle v1.12 and it says it needs > DBI v1.19.

I have seen this go around before where people had trouble with this and
thought maybe someone on this list who got it to work could help me out.

The initial install of DBI 1.20 goes like this -

$perl Makefile.PL (goes ok)
$mmk
%MMK-F-CANTUPD, cannot update target [.BLIB.ARCH.AUTO.DBI]DRIVER.XST -
sources unknown

(to get past that 'all' instead)

$mmk all
perl5_6_1 "-Iperl_root:[­lib]" "-MExtUtils::Instal­l" -e "pm_to_blib({split(­'
',<STDIN>)},'[.blib.lib.auto]','')"­ <.MM_tmp
cp [.lib.dbd]proxy.pm [.blib.lib.dbd]proxy.pm
cp [.lib.dbd]sponge.pm [.blib.lib.dbd]sponge.pm
cp dbipport.h [.blib.arch.auto.DBI]dbipport.h
cp dbd_xsh.h [.blib.arch.auto.DBI]dbd_xsh.h
cp [.lib.dbi]proxyserver.pm [.blib.lib.dbi]proxyserver.pm
cp [.lib.bundle]dbi.pm [.blib.lib.bundle]dbi.pm
cp dbixs.h [.blib.arch.auto.DBI]dbixs.h
cp [.lib.dbi]format.pm [.blib.lib.dbi]format.pm
cp [.lib.dbi]w32odbc.pm [.blib.lib.dbi]w32odbc.pm
cp dbi.pm [.blib.lib]dbi.pm
cp [.lib.dbi]faq.pm [.blib.lib.dbi]faq.pm
cp [.lib.dbd]nullp.pm [.blib.lib.dbd]nullp.pm
cp dbi_sql.h [.blib.arch.auto.DBI]dbi_sql.h
cp [.lib.dbi]dbd.pm [.blib.lib.dbi]dbd.pm
cp [.lib.dbi]shell.pm [.blib.lib.dbi]shell.pm
cp [.lib.win32]dbiodbc.pm [.blib.lib.win32]dbiodbc.pm
cp [.lib.dbd]examplep.pm [.blib.lib.dbd]examplep.pm
cp driver.xst [.blib.arch.auto.DBI]driver.xst
perl5_6_1 "-Iperl_root:[­lib.VMS_AXP.5_6_1]" "-Iperl_root:[­lib]" -e "use
ExtUtils::Mksymlist­s;" -e "Mksymlists('NAME' => 'DBI', 'DL_FUNCS' => { },
'DL_VARS' =>
[], 'FUNCLIST' => [])"
perl5_6_1 -e "print
""[.blib.arch.auto.DBI]DBI.olb/Include=D­BI\n[.blib.arch.auto.DBI]DBI.olb/Lib
rary\n"";" >>DBI.OPT
perl5_6_1 -e "print qq{PerlShr/Share\n}­" >>DBI.OPT
Copy/NoConfirm DBI.OPT [.BLIB.ARCH.AUTO.DBI]DBI.OPT
perl5_6_1 -p -e "s/~DRIVER~/Perl/g"­ < [.blib.arch.auto.DBI]Driver.xst >
Perl.xsi
perl5_6_1 "-Iperl_root:[­lib.VMS_AXP.5_6_1]" "-Iperl_root:[­lib]"
perl_root:[­lib.ExtUtils]xsubpp -typemap perl_root:[­lib.ExtUtils]typemap
PERL.xs >PERL.C
Warning: long symbol DBD__Perl__st_bind_­param_inout
trimmed to DBD_Perl_st_bind_pa­ram_inout
at perl_root:[­lib.extutils]xsubpp line 1068
Warning: long symbol DBD__Perl__st_fetch­row_arrayref
trimmed to DBD_Perl_st_fetchro­w_arayref
at perl_root:[­lib.extutils]xsubpp line 1068
CC/DECC
/Include=[]/Standard=­Relaxed_ANSI/Prefix=­All/Obj=.obj/NoList/­NOANSI_ALIAS/De
fine=(DBI_NO_THREAD­S,"VERSION=""1.20"""­,"XS_VERSION=""1.20"­"")/Include=(perl
_root:[­lib.VMS_AXP.5_6_1.CORE])/Optimize PERL.c
perl5_6_1 "-Iperl_root:[­lib.VMS_AXP.5_6_1]" "-Iperl_root:[­lib]"
perl_root:[­lib.ExtUtils]xsubpp -typemap perl_root:[­lib.ExtUtils]typemap
DBI.xs >DBI.C
CC/DECC
/Include=[]/Standard=­Relaxed_ANSI/Prefix=­All/Obj=.obj/NoList/­NOANSI_ALIAS/De
fine=(DBI_NO_THREAD­S,"VERSION=""1.20"""­,"XS_VERSION=""1.20"­"")/Include=(perl
_root:[­lib.VMS_AXP.5_6_1.CORE])/Optimize DBI.c
If F$Search("[.BLIB.ARCH.AUTO.DBI]DBI.OLB")­.eqs."" Then
Library/Object/Crea­te [.BLIB.ARCH.AUTO.DBI]DBI.OLB
Library/Object/Repl­ace [.BLIB.ARCH.AUTO.DBI]DBI.OLB DBI.OBJ
%CREATE-I-EXISTS, [.BLIB.ARCH.AUTO.DBI] already exists
If F$TrnLNm("PerlShr")­.eqs."" Then Define/NoLog/User PerlShr
Sys$Share:P­erlShr.e­xe
Link /NoTrace/NoMap /Shareable=[.BLIB.ARCH.AUTO.DBI]PL_DBI.E­XE
DBI.opt/Option,perl­_root:[­lib.VMS_AXP.5_6_1.CORE]perlshr_attr.o­pt/Option
%LINK-I-OPENIN, error opening $4$DUA44:[­BCA.BCADOSA120.LIBRARY]DOSLIB.OLB­;
as input
-RMS-E-FNF, file not found
Running mkbootstrap for DBI ()
Copy/NoConfirm DBI.bs [.blib.arch.auto.DBI]DBI.bs
%MMK-F-CANTUPD, cannot update target DBIPROXY.PL - sources unknown

$mmk test
perl5_6_1 "-I[.blib.arch]" "-I[.blib.lib]" "-Iperl_root:[­lib]"
"-Iperl_root:[­lib.VMS_AXP.5_6_1]" -e "use Test::Harness qw(&runtests
$verbose); $verbose=0
; runtests @ARGV;" t/*.t
t/basics...........­.
ok
t/dbidrv...........­.
ok
t/examp............­.
# failed test 153 at line 376
# failed test 154 at line 389
FAILED tests 153-154
Failed 2/175 tests, 98.86% okay
t/meta.............­.
ok
t/preparse.........­.
ok
t/proxy............­.
skipped test on this platform
t/shell............­.
DBI::Shell 11.02 using DBI 1.20 in batch mode
ok
t/subclass.........­.
ok
Failed Test Status Wstat Total Fail Failed List of Failed
-------------------­--------------------­--------------------­-----------------
----
t/examp.t 175 2 1.14% 153-154
1 test skipped.
Failed 1/8 test scripts, 87.50% okay. 2/240 subtests failed, 99.17% okay.
%SYSTEM-F-ABORT, abort
%MMK-F-ERRUPD, error status %X0000002C occurred when updating target
TEST_DYNAMIC


(the output of perl "-V")
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=VMS, osvers=V7.2-1H1, archname=VMS_AXP
uname='VMS lvpac9 V7.2-1H1 AlphaServer 1000 4/233'
config_args='-des'
hint=none, useposix=false, d_sigaction=define
usethreads=undef use5005threads=unde­f useithreads=undef
usemultiplicity=und­ef
useperlio=undef d_sfio=undef uselargefiles=undef­ usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef­
Compiler:
cc='CC/DECC', ccflags
='/Include=[]/Standar­d=Relaxed_ANSI/Prefi­x=All/Obj=.obj/NoLis­t/NOANSI_ALIAS'
,
optimize='',
cppflags='undef'
ccversion='60290008­', gccversion='', gccosandvers='undef­'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='int',
lseeksize=4
alignbytes=8, usemymalloc=N, prototype=define
Linker and Libraries:
ld='Link', ldflags ='/NoTrace/NoMap'
libpth=/sys$share /sys$library
libs=
perllibs=
libc=(DECCRTL), so=exe, useshrplib=undef, libperl=undef
Dynamic Linking:
dlsrc=dl_vms.c, dlext=exe, d_dlsymun=undef, ccdlflags=''
cccdlflags='', lddlflags='/Share'


Characteristics of this PERLSHR image:
Compile-time options: DEBUGGING
Built under VMS
Compiled at Aug 16 2001 15:46:23
%ENV:
PERLLIB="PERL_ROOT:­[LIB]"
PERLSHR="$4$DUA1:[­PERL-5_6_1]PE­RLSHR.EXE"
PERL_ROOT="$4$DUA1:­[PERL-5_6_1.]"
@INC:
PERL_ROOT:[­LIB]
perl_root:[­lib.VMS_AXP.5_6_1]
perl_root:[­lib]
perl_root:[­lib.site_perl.VMS_AXP]
perl_root:[­lib.site_perl]
/perl_root/lib/site­_perl
.
Add comment
Craig A. Berry 28 November 2001 23:20:50 permanent link ]
 At 12:33 PM 11/28/2001 -0500, Bunders, Charles L. wrote:>I have installed the pre-built binary from http://www.sidhe.or­g/vmsperl/. I>am running Perl version 5.6.1 on VMS version 7.2-1.>
This version of Perl has DBI v1.19 installed right away. I try and install>DBD-Oracle v1.12 and it says it needs > DBI v1.19.>
I have seen this go around before where people had trouble with this and>thought maybe someone on this list who got it to work could help me out.>
The initial install of DBI 1.20 goes like this -

<snip>
Link /NoTrace/NoMap /Shareable=[.BLIB.ARCH.AUTO.DBI]PL_DBI.E­XE>DBI.opt/Option,pe­rl_root:[­lib.VMS_AXP.5_6_1.CORE]perlshr_attr­.opt/Option>%LINK-I-­OPENIN, error opening $4$DUA44:[­BCA.BCADOSA120.LIBRARY]DOSLIB.OLB­;>as input>-RMS-E-FNF, file not found

Something's amiss here. I just tried DBI 1.20 with Perl 5.6.1 on OpenVMS
Alpha v7.1 and had no trouble getting it to build. Any idea what DOSLIB is?
Try this

$ pipe show logical * | search sys$input doslib

and see if you have some logical name leading you astray. My dbi.opt looks
like this and yours should too:

$ type dbi.opt
SYMBOL_VECTOR=(boot­_DBI=PROCEDURE)
[.blib.arch.auto.DBI]DBI.olb/Include=DBI­
[.blib.arch.auto.DBI]DBI.olb/Library
PerlShr/Share
$


Add comment
Jon Sof 11 August 2003 19:43:43 permanent link ]
 I want to download the above module but i receive some errors.

Why?

___________________­____________________­____________________­______
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafe­e.com/clinic/ibuy/ca­mpaign.asp?cid=3963

___________________­____________________­________
ActivePerl mailing list
ActivePerl@listserv­.ActiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
Mustafa Ocak 23 September 2003 13:42:11 permanent link ]
 Hello

When I try to execute a script from the command line here are the messages
I get:

hpcd03[/www/ca/docs/cgi-bin]$ perl report.pl
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local
Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
Can't load
'/opt/perl/lib/site­_perl/5.6.1/PA-RISC1­.1-thread-multi/auto­/DBD/Oracle/O
racl
e.sl' for module DBD::Oracle: Exec format error at
/opt/perl/lib/5.6.1­/PA-RISC1.1-thread-m­ulti/DynaLoader.pm line 206.
Compilation failed in require at report.pl line 5. BEGIN
failed--compilation­ aborted at report.pl line 5.


hpcd03[/www/ca/docs/cgi-bin]$ perl tracking.pl
Content-Type: text/html; charset=ISO-8859-1

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local
Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error
install_driver(Orac­le) failed: Can't load
'/opt/perl/lib/site­_perl/5.6.1/PA-RISC1­.1-thread-multi/auto­/DBD/Oracle/O
racl
e.sl' for module DBD::Oracle: Exec format error at
/opt/perl/lib/5.6.1­/PA-RISC1.1-thread-m­ulti/DynaLoader.pm line 206.



Do you have any thoughts on what the problem could be?


Add comment
Olivier Wirz 1 November 2003 14:54:21 permanent link ]
 Hello,

I try to install DBI and DBD::Oracle on a Windows XP.

With DBI it works fine this way:

ppm
install DBI

but it doesn't work with DBD::Oracle

install DBD::Oracle
--> Searching for 'DBD::Oracle' returned no results

Is there a way to install it with ppm otherwise ?

Thank you

Olivier

--
NEU FГњR ALLE - GMX MediaCenter - fГјr Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-GruГџ, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse fГјr Mail, Message, More! +++
Add comment
John 1 November 2003 16:50:46 permanent link ]
 Try install Perl 5.6.1 build 635 ActiveState. It's the only perl version
that has the dbd::Oracle module available.


----- Original Message -----
From: "Olivier Wirz" <Olivier6@gmx.ch>
To: <beginners@perl.org­>
Sent: Saturday, November 01, 2003 1:54 PM
Subject: DBD::Oracle

Hello,>
I try to install DBI and DBD::Oracle on a Windows XP.>
With DBI it works fine this way:>
install DBI>
but it doesn't work with DBD::Oracle>
install DBD::Oracle> --> Searching for 'DBD::Oracle' returned no results>
Is there a way to install it with ppm otherwise ?>
Thank you>
Olivier>
--> NEU FГњR ALLE - GMX MediaCenter - fГјr Fotos, Musik, Dateien...> Fotoalbum, File Sharing, MMS, Multimedia-GruГџ, GMX FotoService>
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse fГјr Mail, Message, More! +++>
--> To unsubscribe, e-mail: beginners-unsubscri­be@perl.org> For additional commands, e-mail: beginners-help@perl­.org>
Add comment
James Hooker 1 December 2003 21:23:33 permanent link ]
 I have upgraded to Perl v5.8.1 and now my DBD::Oracle module doesn't work
for this version. Where can I get the Oracle database driver for this
version.

James C. Hooker
Marconi - TAC
1755 N. Collins
Suite 400
Richardson, TX 75080
mobile: 214.498.9634
office: 972.669.6323
Please send all Technical Support requests to: support.wireless@ma­rconi.com
<mailto:support.wir­eless@marconi.com> or call 1-877-777-7441
For support information, software updates and FAQ's please visit our support
website at: http://www.marconi.­com/html/products/wn­pproductsupport.htm


___________________­____________________­________
ActivePerl mailing list
ActivePerl@listserv­.ActiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
Jeff Griffiths 1 December 2003 21:35:28 permanent link ]
 what did you upgrade from?

James Hooker wrote:> I have upgraded to Perl v5.8.1 and now my DBD::Oracle module doesn't work> for this version. Where can I get the Oracle database driver for this> version. >
James C. Hooker> Marconi - TAC> 1755 N. Collins> Suite 400> Richardson, TX 75080> mobile: 214.498.9634> office: 972.669.6323> Please send all Technical Support requests to: support.wireless@ma­rconi.com> <mailto:support.wir­eless@marconi.com> or call 1-877-777-7441> For support information, software updates and FAQ's please visit our support> website at: http://www.marconi.­com/html/products/wn­pproductsupport.htm>­
___________________­____________________­________> ActivePerl mailing list> ActivePerl@listserv­.ActiveState.com> To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

___________________­____________________­________
ActivePerl mailing list
ActivePerl@listserv­.ActiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
Jeff Griffiths 1 December 2003 23:31:29 permanent link ]
 oops posted this to the wrong list =)

Jeff Griffiths wrote:> modules compiled for 5.6.x are not binary compatible with Perl 5.8.x, > and vice versa. even more fun, ActiveState is currently not allowed to > compile DBD::Oracle due to restrictions in Oracle's licensing scheme.>
if you're on Windows, the path of least resistance is to use DBD::ODBC > or DBD::ADO as long as you're comfortable taking a bit of a performance > hit. there are rumors that some Oracle products bundle DBD::Oracle - I > don't have solid info on that as ActiveState is not an Oracle customer.>
the situation in general is fairly bad IMO as connectivity between Perl > and Oracle seems to be something a lot of people want to do. I have > talked to Tim Bunce a bit about this and I believe he is trying to > convince Oracle to change their licensing in order to allow us to > compile using their client libraries and redistribute the ( dynamically > linked ) result.>
regards, JeffG>
James Hooker wrote:>
I think it was Perl 5.6.1.>> James C. Hooker>> Marconi - TAC>> 1755 N. Collins>> Suite 400>> Richardson, TX 75080>> mobile: 214.498.9634>> office: 972.669.6323>> Please send all Technical Support requests to: >> support.wireless@ma­rconi.com>> <mailto:support.wir­eless@marconi.com> or call 1-877-777-7441>> For support information, software updates and FAQ's please visit our >> support>> website at: http://www.marconi.­com/html/products/wn­pproductsupport.htm>­>
-----Original Message----->> From: Jeff Griffiths [mailto:jeffg@ActiveState.com]>> Sent: Monday, December 01, 2003 12:35 PM>> To: James Hooker>> Cc: 'activeperl@listser­v.ActiveState.com'>>­ Subject: Re: DBD::Oracle>>
what did you upgrade from?>>
James Hooker wrote:>>
I have upgraded to Perl v5.8.1 and now my DBD::Oracle module doesn't >>> work>>> for this version. Where can I get the Oracle database driver for this>>> version.>>> James C. Hooker>>> Marconi - TAC>>> 1755 N. Collins>>> Suite 400>>> Richardson, TX 75080>>> mobile: 214.498.9634>>> office: 972.669.6323>>> Please send all Technical Support requests to:>>
support.wireless@ma­rconi.com>>
<mailto:support.wir­eless@marconi.com> or call 1-877-777-7441>>> For support information, software updates and FAQ's please visit our>>
support>>
___________________­____________________­________>>> ActivePerl mailing list>>> ActivePerl@listserv­.ActiveState.com>>> To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs>
___________________­____________________­________> Perl-Win32-Users mailing list> Perl-Win32-Users@li­stserv.ActiveState.c­om> To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

___________________­____________________­________
ActivePerl mailing list
ActivePerl@listserv­.ActiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
Ed Du 4 February 2004 02:44:16 permanent link ]
 Hi there,

I'm having trouble installing DBD::Oracle. When I run
the nmedit command recommended in README.macosx I get
the following message:

nmedit: symbols names listed in:
./hints/macos_lib.s­yms not in:
/Users/oracle/9iR2/­orahome/lib/libclnts­h.dylib
_dlclose
_dlsym

Using CPAN DBI installs fine, but when I try to
install DBD::Oracle
I get the following:

WARNING: could not decode oracle version from
/Users/oracle/9iR2/­orahome/orainst/insp­dver, or
/Users/oracle/9iR2/­orahome/install/unix­.rgs
or from ORACLE_HOME path /Users/oracle/9iR2/­orahome.
Oracle version based logic in Makefile.PL may produce
erroneous results.

ERROR: symbol table needs modification in Oracle
library:
/Users/oracle/9iR2/­orahome/lib/libclnts­h.dylib.9.0


Any help would be appreciated,

thanks,
Ed.

http://greetings.ya­hoo.com.au - Yahoo! Greetings
Send your love online with Yahoo! Greetings - FREE!

Add comment
Robert 30 September 2004 20:23:29 permanent link ]
 
Hi list, I am trying to load the following data into Oracle table which has a date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username, \$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username, \$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname, $datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef **** HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir' '.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs' HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs' HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version' '0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion' '1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler' 'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables' HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e' CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::Oracle version 1.14 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report' **** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e' CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params' ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3 at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80) SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1 SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3 SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68) undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om
Add comment
Ron Reidy 30 September 2004 20:44:19 permanent link ]
 I'm no expert on DBD::CSV, but it looks like the ordering of your columns in your select list is not mapping correctly to the format of your input file. The key to this is located in the DBI trace log. Look for "[Ron Reidy]" below:

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 11:23 AM
To: DBI-Users
Subject: DBD-Oracle



Hi list, I am trying to load the following data into Oracle table which has a date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username, \$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username, \$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname, $datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef **** HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir' '.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs' HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs' HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version' '0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion' '1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler' 'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables' HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e' CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::Oracle version 1.14 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report' **** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e' CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params' ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3 at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80) SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1 SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3 SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68) undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

[Ron Reidy] According to your input data (and how you are binding this data), column #2 should be the date/time data. Because this data is not numeric, it is throwing the ORA-01858 error.

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
Robert 30 September 2004 21:20:48 permanent link ]
 Changing the order did not help, I am still getting same error.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:I'm no expert on DBD::CSV, but it looks like the ordering of your columns in your select list is not mapping correctly to the format of your input file. The key to this is located in the DBI trace log. Look for "[Ron Reidy]" below:

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 11:23 AM
To: DBI-Users
Subject: DBD-Oracle



Hi list, I am trying to load the following data into Oracle table which has a date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username, \$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username, \$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname, $datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef **** HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir' '.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs' HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs' HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version' '0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion' '1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler' 'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables' HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e' CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::Oracle version 1.14 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report' **** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e' CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params' ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3 at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80) SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1 SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3 SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68) undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

[Ron Reidy] According to your input data (and how you are binding this data), column #2 should be the date/time data. Because this data is not numeric, it is throwing the ORA-01858 error.

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.






-------------------­--------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
Add comment
Ron Reidy 30 September 2004 21:42:44 permanent link ]
 Is the binding happeneing in the same manner?


-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 12:21 PM
To: Reidy, Ron; DBI-Users
Subject: RE: DBD-Oracle


Changing the order did not help, I am still getting same error.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:

I'm no expert on DBD::CSV, but it looks like the ordering of your columns in your select list is not mapping correctly to the format of your input file. The key to this is located in the DBI trace log. Look for "[Ron Reidy]" below:

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 11:23 AM
To: DBI-Users
Subject: DBD-Oracle



Hi list, I am trying to load the following data into Oracle table which has a date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username, \$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username, \$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname, $datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (! DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef **** HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir' '.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs' HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs' HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version' '0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion' '1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler' 'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables' HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e' CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::Oracle version 1.14 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report' **** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e' CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params' ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~IN! NER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~! INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3 at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80) SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1 SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> ! bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3 SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68) undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)
<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (t! ype 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34
!
-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

[Ron Reidy] According to your ! input data (and how you are binding this data), column #2 should be the date/time data. Because this data is not numeric, it is throwing the ORA-01858 error.

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV! ::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yaho! o! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.







_____

Do you Yahoo!?
New <http://us.rd.yahoo­.com/mail_us/tagline­s/10/*http://promoti­ons.yahoo.com/new_ma­il/static/efficiency­.html> and Improved Yahoo! Mail - Send 10MB messages!


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.

Add comment
Ron Reidy 30 September 2004 21:50:11 permanent link ]
 Robert,

Look ate your INSERT statement and the ordering of your bind variables.

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Reidy, Ron
Sent: Thursday, September 30, 2004 12:43 PM
To: Robert; DBI-Users
Subject: RE: DBD-Oracle


Is the binding happeneing in the same manner?


-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 12:21 PM
To: Reidy, Ron; DBI-Users
Subject: RE: DBD-Oracle


Changing the order did not help, I am still getting same error.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:

I'm no expert on DBD::CSV, but it looks like the ordering of your columns in your select list is not mapping correctly to the format of your input file. The key to this is located in the DBI trace log. Look for "[Ron Reidy]" below:

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 11:23 AM
To: DBI-Users
Subject: DBD-Oracle



Hi list, I am trying to load the following data into Oracle table which has a date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username, \$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username, \$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname, $datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (! DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO webtest (hostname,datetime,url,username,company) VALUES ( ?, TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef **** HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir' '.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs' HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs' HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version' '0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion' '1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler' 'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables' HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e' CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::Oracle version 1.14 loaded from /usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report' **** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e' CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params' ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~IN! NER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~! INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3 at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80) SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1 SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> ! bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3 SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68) undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)
<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (t! ype 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34
!
-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

[Ron Reidy] According to your ! input data (and how you are binding this data), column #2 should be the date/time data. Because this data is not numeric, it is throwing the ORA-01858 error.

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV! ::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yaho! o! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.







_____

Do you Yahoo!?
New <http://us.rd.yahoo­.com/mail_us/tagline­s/10/*http://promoti­ons.yahoo.com/new_ma­il/static/efficiency­.html> and Improved Yahoo! Mail - Send 10MB messages!


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
Christian Merz 1 October 2004 08:50:47 permanent link ]
 Hi Robert,

try this one:
my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM
processed");> $sel1->execute();> my $array_ref = $sel1->fetchall_arr­ayref();> $sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username,
\$company );> foreach my $row (@$array_ref) {> my ($hostname, $url, $username, $company, $datetime) = @$row;

better> my ($hostname, $datetime, $url, $username, $company) = @$row;

cu, Christian

----- Original Message -----
From: "Reidy, Ron" <Ron.Reidy@arraybio­pharma.com>
To: "Robert" <rgoud@yahoo.com>; "DBI-Users" <dbi-users@perl.org­>
Sent: Thursday, September 30, 2004 8:50 PM
Subject: RE: DBD-Oracle


Robert,

Look ate your INSERT statement and the ordering of your bind variables.

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Reidy, Ron
Sent: Thursday, September 30, 2004 12:43 PM
To: Robert; DBI-Users
Subject: RE: DBD-Oracle


Is the binding happeneing in the same manner?


-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 12:21 PM
To: Reidy, Ron; DBI-Users
Subject: RE: DBD-Oracle


Changing the order did not help, I am still getting same error.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:

I'm no expert on DBD::CSV, but it looks like the ordering of your columns in
your select list is not mapping correctly to the format of your input file. The
key to this is located in the DBI trace log. Look for "[Ron Reidy]" below:

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Robert [mailto:rgoud@yahoo.com]
Sent: Thursday, September 30, 2004 11:23 AM
To: DBI-Users
Subject: DBD-Oracle



Hi list, I am trying to load the following data into Oracle table which has a
date column

bash-2.03$ cat processed.csv

test.com|16/Aug/200­4:15:06:14|/index.ht­ml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:15|/index.jh­tml|demo1|Demo Company|

test.com|16/Aug/200­4:15:06:54|/index.jh­tml|demo1|Demo Company|

Here is my code ....

#!/usr/bin/perl -w

use DBI;

use strict;

use DBI qw(:­sql_types);

DBI->trace( 2, 'dbitrace.log' );



my $dbh1 = DBI->connect("DBI:C­SV:");

$dbh1->{'csv_tables­'}->{'processed'} = {

'eol' => "\n",

'sep_char' => "|",

'quote_char' => undef,

'escape_char' => undef,

'file' => '/home/user1/report­s/processed.csv',

'col_names' => ["hostname", "datetime", "url","username", "company"]

};

my $dbh2 = DBI->connect("dbi:O­racle:db1", "report", "report" ) or die "Can't
make 2nd database connect: $DBI::errstr\n";



my($hostname, $url, $username, $company, $datetime);

#my($hostname, $url, $username, $company);

#$sel1->bind_column­s(undef, \$hostname, \$datetime, \$url, \$username,
\$company);

my $sel1 = $dbh1->prepare("SEL­ECT hostname,datetime,u­rl,username,company FROM
processed");

$sel1->execute();

my $array_ref = $sel1->fetchall_arr­ayref();

$sel1->bind_columns­( undef, \$hostname, \$datetime, \$url, \$username,
\$company );

foreach my $row (@$array_ref) {

my ($hostname, $url, $username, $company, $datetime) = @$row;

$dbh2->do("INSERT INTO webtest (hostname,datetime,­url,username,company­) VALUES
( ?, TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )", undef, $hostname,
$datetime

, $url, $username, $company );

}

$dbh1->disconnect()­;

When I execute the perl code I am getting the following errors

bash-2.03$ perl test4.pl

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a
numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO
webtest (hostname,datetime,url,username,company) VALUES ( ?,
TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a
numeric was expected (! DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO
webtest (hostname,datetime,url,username,company) VALUES ( ?,
TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

DBD::Oracle::db do failed: ORA-01858: a non-numeric character was found where a
numeric was expected (DBD ERROR: OCIStmtExecute) [for Statement "INSERT INTO
webtest (hostname,datetime,url,username,company) VALUES ( ?,
TO_DATE(?,'DD/Mon/YYYY:HH24:MI:SS'), ?, ?, ? )"] at test4.pl line 34.

Here is the table information
desc webtest

Name Null? Type

-------------------­--------------------­-- -------- -------------------­---------

HOSTNAME VARCHAR2(100)

DATETIME DATE

URL VARCHAR2(1000)

USERNAME VARCHAR2(20)

COMPANY VARCHAR2(100)



Here is the dbitrace log, please let me know the problem.

bash-2.03$ cat dbitrace.log

DBI 1.43-nothread default trace level set to 0x0/2 (pid 3648)

-> DBI->connect(DBI:CS­V:, , ****)

-> DBI->install_driver­(CSV) for solaris perl=5.006001 pid=3648 ruid=501 euid=501

install_driver: DBD::CSV version 0.21 loaded from
/usr/local/lib/perl­5/site_perl/5.6.1/DB­D/CSV.pm

<- install_driver= DBI::dr=HASH(0x1b62­68)

-> default_user in DBD::_::dr for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750
undef undef HASH(0x18ded8))

<- default_user= ( undef undef ) [2 items] at DBI.pm line 577

-> connect for DBD::CSV::dr (DBI::dr=HASH(0x1b6­268)~0x3c7750 '' undef ****
HASH(0x207388))

-> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_dir'
'.')

<- STORE= 1 at File.pm line 75

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_valid_attrs'
HASH(0x2073dc))

<- STORE= 1 at File.pm line 89

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_valid_attrs'
HASH(0x20751c))

<- STORE= 1 at File.pm line 94

-> STORE for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c 'Active' 1)

<- STORE= 1 at File.pm line 100

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'f_version' '0.31')

<- STORE= 1 at File.pm line 106

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_nano_version'
'0.01')

<- STORE= 1 at File.pm line 108

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_statement_vers­ion'
'1.09')

<- STORE= 1 at File.pm line 108

<> FETCH= '1.09' ('sql_statement_ver­sion' from cache) at File.pm line 110

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'sql_handler'
'SQL::Statement')

<- STORE= 1 at File.pm line 110

-> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER
'csv_tables')

<- FETCH= undef at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_tables'
HASH(0x207570))

<- STORE= 1 at CSV.pm line 74

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 1)

<- STORE= 1 at CSV.pm line 75

<- connect= DBI::db=HASH(0x3c77­44) at DBI.pm line 595

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Username' undef)

<- STORE= 1 at DBI.pm line 645

<> FETCH= undef ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x3c77­44)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'dbi_connect_closur­e'
CODE(0x3c77d4))

<- STORE= 1 at DBI.pm line 665

<> FETCH= HASH(0x207570)0keys­ ('csv_tables' from cache) at test4.pl line 9

-> DBI->connect(dbi:Or­acle:db1, report, ****)

-> DBI->install_driver­(Oracle) for solaris perl=5.006001 pid=3648 ruid=501
euid=501

install_driver: DBD::Oracle version 1.14 loaded from
/usr/local/lib/perl­5/site_perl/5.6.1/su­n4-solaris/DBD/Oracl­e.pm

-> STORE in DBD::_::common for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8
'ShowErrorStatement­' 1)

<- STORE= 1 at Oracle.pm line 64

<- install_driver= DBI::dr=HASH(0x2074­80)

-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8 'db1' 'report'
**** HASH(0x3c7e48))

<- connect= DBI::db=HASH(0x38ec­74) at DBI.pm line 595

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'PrintError' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'AutoCommit' 1)

<- STORE= 1 at DBI.pm line 642

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'Username' 'report')

<- STORE= 1 at DBI.pm line 645

<> FETCH= 'report' ('Username' from cache) at DBI.pm line 645

<- connect= DBI::db=HASH(0x38ec­74)

-> STORE for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'dbi_connect_closur­e'
CODE(0x3cea8c))

<- STORE= 1 at DBI.pm line 665

-> prepare in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c
'SELECT hostname,datetime,u­rl,username,company FROM processed')

<> FETCH= 'DBD::CSV::st' ('ImplementorClass'­ from cache) at File.pm line 162

1 -> csv_cache_sql_parse­r_object for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

2 -> FETCH in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER
'RaiseError')

2 <- FETCH= ( '' ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'PrintError')

2 <- FETCH= ( 1 ) [1 items] at CSV.pm line 87

2 -> FETCH for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'csv_sql')

2 <- FETCH= undef at CSV.pm line 92

1 <- csv_cache_sql_parse­r_object= SQL::Parser=HASH(0x­5fc118) at File.pm line 174

-> STORE in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c
'f_stmt' DBD::CSV::Statement­=HASH(0x5fbddc))

<- STORE= 1 at File.pm line 189

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'f_params'
ARRAY(0x5f22d4))

<- STORE= 1 at File.pm line 190

-> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c 'NUM_OF_PARAMS' 0)

<- STORE= 1 at File.pm line 191

<- prepare= DBI::st=HASH(0x3c7f­20) at test4.pl line 25

-> execute in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> FETCH in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER
'NUM_OF_FIELDS')

1 <- FETCH= undef at File.pm line 435

1 -> STORE for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~IN! NER 'NUM_OF_FIELDS' 5)

1 <- STORE= 1 at File.pm line 435

<- execute= 3 at test4.pl line 26

-> fetchall_arrayref in DBD::_::st for DBD::CSV::st
(DBI::st=HASH(0x3c7­f20)~0x3c7e3c)

1 -> fetch in DBD::File::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­14' '/index.html' 'demo1' 'Demo
Company' ] row1 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1' 'Demo
Company' ] row2 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

2 -> FETCH for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~! INNER 'ChopBlanks')

2 <- FETCH= '' at File.pm line 457

1 <- fetch= [ 'test.com' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1' 'Demo
Company' ] row3 at DBI.pm line 1825

1 -> fetch for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER)

1 <- fetch= undef row3 at DBI.pm line 1825

<- fetchall_arrayref= [ ARRAY(0x5f28d0) ARRAY(0x5f4208) ARRAY(0x5f425c) ] row3
at test4.pl line 28

-> bind_columns in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­f20)~0x3c7e3c
undef SCALAR(0x16eab0) SCALAR(0x16ea50) SCALAR(0x16eaa4) SCALAR(0x16ea80)
SCALAR(0x16ea68))

1 <> FETCH= 5 ('NUM_OF_FIELDS' from cache) at DBI.pm line 1695

1 -> bind_col in DBD::_::st for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 1
SCALAR(0x16eab0) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 2 SCALAR(0x16ea50)
undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> ! bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 3
SCALAR(0x16eaa4) undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 4 SCALAR(0x16ea80)
undef)

1 <- bind_col= 1 at DBI.pm line 1708

1 -> bind_col for DBD::CSV::st (DBI::st=HASH(0x3c7­e3c)~INNER 5 SCALAR(0x16ea68)
undef)

1 <- bind_col= 1 at DBI.pm line 1708

<- bind_columns= 1 at test4.pl line 30

-> do in DBD::_::db for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT
INTO webtest (hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company'
'16/Aug/2004:15:06:­14' '/index.html' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO
webtest (hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5fc0­1c) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5fc­01c)~0x5f431c 'test.com' 'Demo
Company' '16/Aug/2004:15:06:­14' '/index.html' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­14' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­14' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.html' (type 0)

bind :p­4 <== '/index.html' (size 11/12/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)
<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­31c)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest
(hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company'
'16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO
webtest (hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f43­64) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f4­364)~0x5f43f4 'test.com' 'Demo
Company' '16/Aug/2004:15:06:­15' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

bind :p­3 <== '16/Aug/2004:15:06:­15' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­15' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (t! ype 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­3f4)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34
!
-> do for DBD::Oracle::db (DBI::db=HASH(0x38e­c74)~0x3c7e78 'INSERT INTO webtest
(hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef 'test.com' 'Demo Company'
'16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

1 -> prepare for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'INSERT INTO
webtest (hostname,datetime,­url,username,company­) VALUES ( ?,
TO_DATE(?,'DD/Mon/Y­YYY:HH24:MI:SS'), ?, ?, ? )' undef)

dbd_preparse scanned 5 distinct placeholders

1 <- prepare= DBI::st=HASH(0x5f5c­c8) at DBI.pm line 1427

-> execute for DBD::Oracle::st (DBI::st=HASH(0x5f5­cc8)~0x5f4358 'test.com' 'Demo
Company' '16/Aug/2004:15:06:­54' '/index.jhtml' 'demo1')

bind :p­1 <== 'test.com' (type 0)

bind :p­1 <== 'test.com' (size 8/9/0, ptype 4, otype 1)

bind :p­2 <== 'Demo Company' (type 0)

bind :p­2 <== 'Demo Company' (size 12/13/0, ptype 4, otype 1)

[Ron Reidy] According to your ! input data (and how you are binding this data),
column #2 should be the date/time data. Because this data is not numeric, it is
throwing the ORA-01858 error.

bind :p­3 <== '16/Aug/2004:15:06:­54' (type 0)

bind :p­3 <== '16/Aug/2004:15:06:­54' (size 20/21/0, ptype 4, otype 1)

bind :p­4 <== '/index.jhtml' (type 0)

bind :p­4 <== '/index.jhtml' (size 12/13/0, ptype 4, otype 1)

bind :p­5 <== 'demo1' (type 0)

bind :p­5 <== 'demo1' (size 5/6/0, ptype 4, otype 1)

dbd_st_execute INSERT (out0, lob0)...

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- execute= undef at DBI.pm line 1428

!! ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- do= undef at test4.pl line 34

1 -> FETCH for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER 'ParamValues')

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

1 <- FETCH= undef at test4.pl line 34

-> DESTROY for DBD::Oracle::st (DBI::st=HASH(0x5f4­358)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef at test4.pl line 34

-> disconnect for DBD::CSV::db (DBI::db=HASH(0x3c7­744)~0x20737c)

1 -> STORE in DBD::File::db for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER
'Active' 0)

1 <- STORE= 1 at CSV.pm line 106

<- disconnect= 1 at test4.pl line 37

-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3c7­e78)~INNER)

ERROR: 1858 'ORA-01858: a non-numeric character was found where a numeric was
expected (DBD ERROR: OCIStmtExecute)' (err#0)

<- DESTROY= undef

-> DESTROY in DBD::File::st for DBD::CSV! ::st (DBI::st=HASH(0x3c7­e3c)~INNER)

<- DESTROY= undef

-> DESTROY for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER)

-> STORE for DBD::CSV::db (DBI::db=HASH(0x207­37c)~INNER 'Active' 0)

<- STORE= 1 at CSV.pm line 101

<- DESTROY= undef

-- DBI::END

-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x207­480)~0x3f05b8)

<- disconnect_all= (not implemented) at DBI.pm line 674

-> disconnect_all in DBD::File::dr for DBD::CSV::dr
(DBI::dr=HASH(0x1b6­268)~0x3c7750)

<- disconnect_all= undef at DBI.pm line 674

! -> DESTROY for DBD::Oracle::dr (DBI::dr=HASH(0x3f0­5b8)~INNER)

! <- DESTROY= (not implemented) during global destruction

! -> DESTROY in DBD::File::dr for DBD::CSV::dr (DBI::dr=HASH(0x3c7­750)~INNER)

! <- DESTROY= undef during global destruction




___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yaho! o! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.







_____

Do you Yahoo!?
New
<http://us.rd.yahoo­.com/mail_us/tagline­s/10/*http://promoti­ons.yahoo.com/new_ma­i
l/static/efficiency­.html> and Improved Yahoo! Mail - Send 10MB messages!


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.



Add comment
Perl Cova 14 December 2004 20:55:43 permanent link ]
 
Now when I execute make I get the following error:
[root@recover DBD-Oracle-1.16]# make
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS­ -DDEBUGGING -fno-strict-aliasin­g -I/usr/local/includ­e -D_LARGEFILE_SOURCE­ -D_FILE_OFFSET_BITS­=64 -I/usr/include/gdbm­ -O2 -g -pipe -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5­.8.0/ia64-linux-thre­ad-multi/CORE" Oracle.c
Oracle.xs: In function `XS_DBD__Oracle_ORA­_OCI':
Oracle.xs:43: `ORA_OCI_VERSION' undeclared (first use in this function)
Oracle.xs:43: (Each undeclared identifier is reported only once
Oracle.xs:43: for each function it appears in.)
make: *** [Oracle.o] Error 1
Thanks...


--

--
To unsubscribe, e-mail: beginners-unsubscri­be@perl.org
For additional commands, e-mail: beginners-help@perl­.org
<http://learn.perl.­org/> <http://learn.perl.­org/first-response>



Add comment
Satish Waghmare 17 January 2005 13:02:49 permanent link ]
 
Hi:
Send me the PPM package for DBD::Oracle. Activestate 5.8

Best Regards,

Satish Waghmare

Add comment
Michael A Chase tech 17 January 2005 13:39:29 permanent link ]
 On 01/17/2005 05:02 AM, Waghmare, Satish (IE03x) said:
Send me the PPM package for DBD::Oracle. Activestate 5.8

http://ftp.esoftmat­ic.com/DBI/

--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org­/~esr/faqs/smart-que­stions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Add comment
Satish Waghmare 25 January 2005 09:29:35 permanent link ]
 
Hi :

Please help me to know how to I download the DBI packages from FTP site. I'm
using ActiveState ActivePerl 5.8 on Win-XP system.

Please see below Error log:

C:\Documents and Settings\SatishW>pp­m install
http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.3/DBI.ppd
Error: No valid repositories:
Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')
Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')

Error: No valid repositories:
Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')
Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')ppm>

Thank You

Best Regards,
Satish
EngineerВ-Advanced Solutions

-----Original Message-----
From: Michael A Chase tech [mailto:mchase@ix.netcom.com]
Sent: Monday, January 17, 2005 2:39 AM
To: Waghmare, Satish (IE03x)
Cc: dbi-users@perl.org
Subject: Re: DBD::Oracle


On 01/17/2005 05:02 AM, Waghmare, Satish (IE03x) said:
Send me the PPM package for DBD::Oracle. Activestate 5.8

http://ftp.esoftmat­ic.com/DBI/

--
Mac :})
** I usually forward private questions to the appropriate mail list. ** Ask
Smarter: http://www.catb.org­/~esr/faqs/smart-que­stions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Add comment


Michael A Chase tech 25 January 2005 14:18:11 permanent link ]
 On 01/25/2005 01:29 AM, Waghmare, Satish (IE03x) said:
Please help me to know how to I download the DBI packages from FTP site. I'm> using ActiveState ActivePerl 5.8 on Win-XP system.>
Please see below Error log:>
C:\Documents and Settings\SatishW>pp­m install> http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.3/DBI.ppd> Error: No valid repositories:> Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')> Error: 500 Can't connect to proxy:80 (Bad hostname 'proxy')

You have an invalid proxy defined (proxy:80).

http://aspn.actives­tate.com/ASPN/docs/A­ctivePerl/faq/Active­Perl-faq2.html#ppm_a­nd_proxies

If you need to use a proxy server, set the environment variables to
point to that server instead of "proxy:80". If you are connected
directly to the internet, remove the applicable environment variables
from your system.

--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org­/~esr/faqs/smart-que­stions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Add comment
Greg Fossheim 23 March 2005 01:52:10 permanent link ]
 Has anyone built DBD::Oracle with the instantclient libraries? (v. 10.0.
specifically)



Would greatly appreciate any feedback available,

Greg Fossheim

gfossheim@languagew­eaver.com





Add comment


Tim Bunce 23 March 2005 15:58:54 permanent link ]
 On Tue, Mar 22, 2005 at 01:52:10PM -0800, Greg Fossheim wrote:> Has anyone built DBD::Oracle with the instantclient libraries? (v. 10.0.> specifically)>
Would greatly appreciate any feedback available,

Some have and reported here. Try google.

I hope to get aroundtuit sometime soonish to add explicit support
for instantclient in DBD::Oracle. It's top of my list for DBD::Oracle.

Tim.

Add comment
Christian Braeuner 11 April 2005 22:19:28 permanent link ]
 Dear perl dbi team,

I need a windows binary for the DBD-Oracle, but it seems the esoftmatic
link is invalid. Do you know any different sources or whether the
esoftmatic is only temporarily unavailable?

Kind Regards,
Christian Braeuner

Add comment


Jeff Urlwin 12 April 2005 07:19:47 permanent link ]
 Please, temporarily, change ftp.esoftmatic.com to 24.249.249.7. I'm still working on
resolving the DNS issues since moving ISPs and my current ISP is relatively deaf. I
probably have to bit the bullett and put DNS on my server(s), which I'm not thrilled about
;)

Jeff

-----Original Message-----> From: Christian Braeuner [mailto:christian.braeuner@gmx.net] > Sent: Monday, April 11, 2005 2:19 PM> To: dbi-users@perl.org>­ Subject: DBD-Oracle>
Dear perl dbi team,>
I need a windows binary for the DBD-Oracle, but it seems the > esoftmatic > link is invalid. Do you know any different sources or whether the > esoftmatic is only temporarily unavailable?>
Kind Regards,> Christian Braeuner>


Add comment
Christian Braeuner 12 April 2005 11:40:08 permanent link ]
 Hi Jeff,

Thanks for the quick response!

Christian

Jeff Urlwin wrote:
Please, temporarily, change ftp.esoftmatic.com to 24.249.249.7. I'm still working on>resolving the DNS issues since moving ISPs and my current ISP is relatively deaf. I>probably have to bit the bullett and put DNS on my server(s), which I'm not thrilled about>;)>
Jeff>
-----Original Message----->>From:­ Christian Braeuner [mailto:christian.braeuner@gmx.net] >>Sent: Monday, April 11, 2005 2:19 PM>>To: dbi-users@perl.org>­>Subject: DBD-Oracle>>
Dear perl dbi team,>>
I need a windows binary for the DBD-Oracle, but it seems the >>esoftmatic >>link is invalid. Do you know any different sources or whether the >>esoftmatic is only temporarily unavailable?>>
Kind Regards,>>Christian­ Braeuner>>

Add comment
Ramesh Patel 13 April 2005 21:32:58 permanent link ]
 hello,


Is your site down, I am trying to get the above module. Can you
please redirect me to a place were i can get it, i am trying to use
the ppm utility because compiling in windows is a headache.

thanks

Add comment
Jeff Urlwin 14 April 2005 16:00:19 permanent link ]
 I just answered this a day or two ago. Please use 24.249.249.7 as the IP instead of
ftp.esoftmatic.com until I get my ISP to respond to the DNS needs.

Thanks,

Jeff

-----Original Message-----> From: Ramesh Patel [mailto:ramzey1981@gmail.com] > Sent: Wednesday, April 13, 2005 1:33 PM> To: dbi-users@perl.org>­ Subject: DBD-Oracle>
hello, >
Is your site down, I am trying to get the above module. Can > you please redirect me to a place were i can get it, i am > trying to use the ppm utility because compiling in windows is > a headache.>
thanks>


Add comment
Mary 22 July 2005 19:47:37 permanent link ]
 hello,
I am trying to download DBD-Oracle.ppd from http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/
and i am not able to download that.

Is there any way that i could download DBD-Oracle.ppd for perl 5.8.7(or 5.8.4) version on windows XP.

thanks,
Mary.

___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om
Add comment
Ron Reidy 22 July 2005 21:22:42 permanent link ]
 Why can't you download it? ARe you receiving an error?

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Mary [mailto:m_w_24@yahoo.com]
Sent: Friday, July 22, 2005 9:48 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


hello,
I am trying to download DBD-Oracle.ppd from http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/
and i am not able to download that.

Is there any way that i could download DBD-Oracle.ppd for perl 5.8.7(or 5.8.4) version on windows XP.

thanks,
Mary.

___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
Mary 25 July 2005 16:58:13 permanent link ]
 I could able to download it now. Thanks!

when i am trying to run my perl script i am getting this error:

ORA-12560: TNS:p­rotocol adapter error (DBD ERROR: OCIServerAttach)

can anyone please let me know the reason for this error and how should i correct it.

thanks,
Mary.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:
Why can't you download it? ARe you receiving an error?

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Mary [mailto:m_w_24@yahoo.com]
Sent: Friday, July 22, 2005 9:48 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


hello,
I am trying to download DBD-Oracle.ppd from http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/
and i am not able to download that.

Is there any way that i could download DBD-Oracle.ppd for perl 5.8.7(or 5.8.4) version on windows XP.

thanks,
Mary.

___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.



-------------------­--------------
Start your day with Yahoo! - make it your home page
Add comment
Ron Reidy 25 July 2005 19:13:31 permanent link ]
 This is not a Perl error. From the error docs:

12560, 00000, "TNS:p­rotocol adapter error"
// *Cause: A generic protocol adapter error occurred.
// *Action: Check addresses used for proper protocol specification. Before
// reporting this error, look at the error stack and check for lower level
// transport errors.For further details, turn on tracing and reexecute the
// operation. Turn off tracing when the operation is complete.

Can you tnsping the DB instance you are attempting to connect to in your Perl program?

If not, consult with your DBA.


-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: Mary [mailto:m_w_24@yahoo.com]
Sent: Monday, July 25, 2005 6:58 AM
To: Reidy, Ron; dbi-users@perl.org
Subject: RE: DBD-Oracle


I could able to download it now. Thanks!

when i am trying to run my perl script i am getting this error:

ORA-12560: TNS:p­rotocol adapter error (DBD ERROR: OCIServerAttach)

can anyone please let me know the reason for this error and how should i correct it.

thanks,
Mary.

"Reidy, Ron" <Ron.Reidy@arraybio­pharma.com> wrote:

Why can't you download it? ARe you receiving an error?

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Mary [mailto:m_w_24@yahoo.com]
Sent: Friday, July 22, 2005 9:48 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


hello,
I am trying to download DBD-Oracle.ppd from http://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/
and i am not able to download that.

Is there any way that i could download DBD-Oracle.ppd for perl 5.8.7(or 5.8.4) version on windows XP.

thanks,
Mary.

___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileg! ed. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.




_____

Start your <http://us.rd.yahoo­.com/evt=34442/*http­://www.yahoo.com/r/h­s> day with Yahoo! - make it your home page

This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.

Add comment
David Sawyer 21 October 2005 18:01:16 permanent link ]
 I am desperately trying to install DBD-Oracle on my UNIX system.
No matter what I try I get the error :

ceon3@suomp84b <mailto:ceon3@suomp­84b> > ppm install
ftp://ftp.esoftmati­c.com/outgoing/DBI/5­.8.4/DBD-Oracle.ppd
<ftp://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/DBD-Oracle.ppd­>
Error: no suitable installation target found for package DBD-Oracle.

Can ANYONE offer a suggestion as to the cause of this error?


Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...

Add comment
Ron Reidy 21 October 2005 19:49:54 permanent link ]
 So, I just have to ask ...

Is your Perl from AS?

--
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: David Sawyer [mailto:D­Sawyer@Ceon.com]
Sent: Friday, October 21, 2005 9:01 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


I am desperately trying to install DBD-Oracle on my UNIX system. No
matter what I try I get the error :

ceon3@suomp84b <mailto:ceon3@suomp­84b> > ppm install
ftp://ftp.esoftmati­c.com/outgoing/DBI/5­.8.4/DBD-Oracle.ppd
<ftp://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/DBD-Oracle.ppd­>
Error: no suitable installation target found for package DBD-Oracle.

Can ANYONE offer a suggestion as to the cause of this error?


Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
David Sawyer 21 October 2005 20:00:34 permanent link ]
 Yes. It's Activate State v5.8.7 for Sun multi-thread



Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...

-----Original Message-----
From: Reidy, Ron [mailto:Ron.Reidy@arraybiopharma.com]
Sent: Friday, October 21, 2005 9:50 AM
To: David Sawyer; dbi-users@perl.org
Subject: RE: DBD-Oracle

So, I just have to ask ...

Is your Perl from AS?

--
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: David Sawyer [mailto:D­Sawyer@Ceon.com]
Sent: Friday, October 21, 2005 9:01 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


I am desperately trying to install DBD-Oracle on my UNIX system. No
matter what I try I get the error :

ceon3@suomp84b <mailto:ceon3@suomp­84b> > ppm install
ftp://ftp.esoftmati­c.com/outgoing/DBI/5­.8.4/DBD-Oracle.ppd
<ftp://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/DBD-Oracle.ppd­>
Error: no suitable installation target found for package DBD-Oracle.

Can ANYONE offer a suggestion as to the cause of this error?


Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...


This electronic message transmission is a PRIVATE communication which
contains
information which may be confidential or privileged. The information is
intended
to be for the use of the individual or entity named above. If you are
not the
intended recipient, please be aware that any disclosure, copying,
distribution
or use of the contents of this information is prohibited. Please notify
the
sender of the delivery error by replying to this message, or notify us
by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
Ron Reidy 21 October 2005 20:03:14 permanent link ]
 OK. I do not believe there exists a PPM for DBD::Oracle after version
5.6.1 from AS. Supposedly, because of licensing issues.

The next step would be to build DBD::Oraacle yourself. You will need
the same C compiler iused to build Perl.

--
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: David Sawyer [mailto:D­Sawyer@Ceon.com]
Sent: Friday, October 21, 2005 11:01 AM
To: Reidy, Ron; dbi-users@perl.org
Subject: RE: DBD-Oracle


Yes. It's Activate State v5.8.7 for Sun multi-thread



Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...

-----Original Message-----
From: Reidy, Ron [mailto:Ron.Reidy@arraybiopharma.com]
Sent: Friday, October 21, 2005 9:50 AM
To: David Sawyer; dbi-users@perl.org
Subject: RE: DBD-Oracle

So, I just have to ask ...

Is your Perl from AS?

--
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: David Sawyer [mailto:D­Sawyer@Ceon.com]
Sent: Friday, October 21, 2005 9:01 AM
To: dbi-users@perl.org
Subject: DBD-Oracle


I am desperately trying to install DBD-Oracle on my UNIX system. No
matter what I try I get the error :

ceon3@suomp84b <mailto:ceon3@suomp­84b> > ppm install
ftp://ftp.esoftmati­c.com/outgoing/DBI/5­.8.4/DBD-Oracle.ppd
<ftp://ftp.esoftmat­ic.com/outgoing/DBI/­5.8.4/DBD-Oracle.ppd­>
Error: no suitable installation target found for package DBD-Oracle.

Can ANYONE offer a suggestion as to the cause of this error?


Regards,
David Sawyer
Senior Customer Support Engineer
Ceon Corporation
650-817-6334 (office)
650-238-8078 (Blackberry Wireless)
408-832-4354 (mobile)
www.Ceon.com
-.- .---- -.. .-. ...


This electronic message transmission is a PRIVATE communication which
contains information which may be confidential or privileged. The
information is intended
to be for the use of the individual or entity named above. If you are
not the
intended recipient, please be aware that any disclosure, copying,
distribution
or use of the contents of this information is prohibited. Please notify
the sender of the delivery error by replying to this message, or notify
us by telephone (877-633-2436, ext. 0), and then delete it from your
system.


This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the
intended recipient, please be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.


Add comment
Piet Paaltjens 17 November 2005 00:01:02 permanent link ]
 Dear Jay,

some time ago you've helped me to try and get Oracleinstantclient­ 10.2 to work on my machine. You even sent me your installed software. For me, alas, it did not work. Just to let you know, recently I've found info about how to install Oracle 9 and/or 10 on Fedora Core. Now I've got my system running as it did some time ago. Thanks alot for your effort(s).





-------------------­--------------
Yahoo! FareChase - Search multiple travel sites in one click.
Add comment
Jay Strauss 17 November 2005 16:20:08 permanent link ]
 On Wednesday 16 November 2005 3:01 pm, piet paaltjens wrote:> Dear Jay,>
some time ago you've helped me to try and get Oracleinstantclient­ 10.2 > to work on my machine. You even sent me your installed software. For me,> alas, it did not work. Just to let you know, recently I've found info> about how to install Oracle 9 and/or 10 on Fedora Core. Now I've got my> system running as it did some time ago. Thanks alot for your effort(s).

I'm glad you got it working. I'm sorry I couldn't be more help. Have fun
using DBD::Oracle :)­

Jay

Add comment
Ian Harisay 29 November 2005 18:33:28 permanent link ]
 Hi,

I am upgrading my Oracle client. This probably means I need to recompile DBD::Oracle. Correct?

Thanks,

Ian
Add comment
Scott T. Hildreth 29 November 2005 19:09:48 permanent link ]
 Correct.

On Tue, 2005-11-29 at 08:33 -0700, Ian Harisay wrote:> Hi,>
I am upgrading my Oracle client. This probably means I need to recompile DBD::Oracle. Correct?>
Thanks,>
Ian
--
Scott T. Hildreth <shildret@scotth.em­sphone.com>

Add comment
Maniace Libi - lmania 11 April 2006 20:09:01 permanent link ]
 I have a developer who wants DBD::ORACLE installed on a Solaris server.
There is not an instance of

Oracle installed on this server. He is certain that it can be installed,
but I can't find information supporting

this. It always errors out with wanting "Oracle_home". Is there a way to
install DBD without oracle

installed.



Thanks



Libi



*******************­********************­********************­****************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
*******************­********************­********************­*****************
Add comment
Scott T. Hildreth 11 April 2006 20:27:39 permanent link ]
 On Tue, 2006-04-11 at 11:09 -0500, Maniace Libi - lmania wrote:> I have a developer who wants DBD::ORACLE installed on a Solaris server.> There is not an instance of>
Oracle installed on this server. He is certain that it can be installed,> but I can't find information supporting>
this. It always errors out with wanting "Oracle_home". Is there a way to> install DBD without oracle

You would need an Oracle Client installed, otherwise your developer
could use DBD::Proxy. Setting up the Proxy server on the machine with
the Oracle Server.
installed.>
Thanks>
Libi>
*******************­********************­********************­****************> The information contained in this communication is confidential, is> intended only for the use of the recipient named above, and may be legally> privileged.>
If the reader of this message is not the intended recipient, you are> hereby notified that any dissemination, distribution or copying of this> communication is strictly prohibited.>
If you have received this communication in error, please resend this> communication to the sender and delete the original message or any copy> of it from your computer system.>
Thank You.> *******************­********************­********************­*****************
--
Scott T. Hildreth <shild@sbcglobal.ne­t>

Add comment
John Scoles 11 April 2006 22:22:50 permanent link ]
 You do not need an "Oracle Database" installed.

However, you at least need an Oracle client installed on the same box. This
is the Oracle_home that DBD:Oracle wants.

Cheers

John Scoles


*******************­********************­********************­****************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
*******************­********************­********************­*****************



Add comment
Frank Hofmann 31 July 2008 11:35:19 permanent link ]
 Hi,

thanks for your advice -
I installed ActivePerl-5.10.0.1­00 now,
and the DBD::Oracle - package
works fine now.

Frank


Atos Origin GmbH, Theodor-Althoff-Str­. 47, D-45133 Essen, Postfach 100 123, D-45001 Essen
Telefon: +49 201 4305 0, Fax: +49 201 4305 689095, www.atosorigin.de
ING Bank AG, Frankfurt/Main: Konto 001 014 0937, BLZ 500 210 00, Swift / BIC INGBDEFF, IBAN DE74 5002 1000 0010 1409 37
GeschДftsfЭhrer: Wilbert Kieboom, Peter 't Jong, Handelsregister Essen HRB 19354, Ust.-ID.-Nr.: DE147861238
Add comment
Guest 3 June 2009 12:51:40 permanent link ]
 Hi I am facing the same problem. Please let me know what you did to solve this issue. Thanks
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Perl web-programming > DBD-Oracle 3 June 2009 12:51:40

see also:
[Management, JMX/JBoss] - Re: questions…
[JBoss.NET & SOAP] - Large message…
[Persistence & CMP/JBoss] - Re: faulty…
pass tests:
see also:
How to convert Mod/Tod Video to popular…
How to Copy and Backup DVDs
1.Hello!

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .