There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop mac malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows vista windows xp winxp wireless wmp
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Perl and Oracle


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
CodingFreak's Avatar
Junior Member with 13 posts.
 
Join Date: Oct 2003
19-Dec-2003, 06:53 PM #1
Perl and Oracle
I'm very new to perl so this should be simple. I'm currently using ActivePerl 5.6.1 with 1.12 DBD-Oracle going to a 9i server. When I run the code:

Code:
use DBI qw(:sql_types);
use DBD::Oracle qw(:ora_types);  


$ENV{'ORACLE_HOME'} ||= 'C:\oracle\ora92\bin';
die "bad ORACLE_HOME\n" if not -d $ENV{'ORACLE_HOME'};
$ENV{'PATH'} = $ENV{'ORACLE_HOME'};


my $dbh = DBI->connect("dbi:Oracle:host=blah;port=blah;sid=blah", 'blah', 'blah',
                       {RaiseError => 1, PrintError => 0, AutoCommit => 0 });
it gives me this error:

DBI connect('host=blah;port=blah;sid=blah','blah',...) failed: at C:\\Temp\dirA36.tmp\Untitled line 13
Press any key to continue . . .

my $dbh = DBI->connect("dbi:Oracle:host=blah;port=blah;sid=blah", 'blah', 'blah', is line 13... but I can log into the db via sql plus with the same information. What could be going wrong?

Thanks,
CF
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:51 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.