Re: Insights into DBI->connect differences

2006-02-17 Thread Louis Gonzales
Is: mp3i listed in your: tnsnames.ora file? From what I see, it really looks like an issue with your "mp3i" not being a known service. Capacio, Paula J wrote: Capacio, Paula J wrote: Hello, I'm hoping someone can explain why one of these connect statements work and the other doesn'

RE: Insights into DBI->connect differences

2006-02-16 Thread Capacio, Paula J
Capacio, Paula J [mailto:[EMAIL PROTECTED] wrote: >> The code now looks like: >> my $dbh; >> if ($method =~ /2/) { #this works >> $dbh = DBI->connect('', "scott/tiger", '', 'Oracle') >>or die "Connect failed: $DBI::errstr\n"; >> }else{ #this doesn't >> printIt("Just prior to c

RE: Insights into DBI->connect differences

2006-02-16 Thread Ronald J Kimball
Capacio, Paula J [mailto:[EMAIL PROTECTED] wrote: > The code now looks like: > my $dbh; > if ($method =~ /2/) { #this works > $dbh = DBI->connect('', "scott/tiger", '', 'Oracle') >or die "Connect failed: $DBI::errstr\n"; > }else{ #this doesn't > printIt("Just prior to connect

RE: Insights into DBI->connect differences

2006-02-16 Thread Capacio, Paula J
Capacio, Paula J wrote: >>Hello, I'm hoping someone can explain why one of these connect >>statements work and the other doesn't. The script sets environment >>values as such: $ENV{ORACLE_HOME} = "/usr/oracle/product/8.1.7_64"; >>$ENV{ORACLE_SID} = $db_alias;#$db_alias passed to script via >>

RE: Insights into DBI->connect differences

2006-02-15 Thread Reidy, Ron
Message- From: Reidy, Ron Sent: Wednesday, February 15, 2006 9:19 PM To: Capacio, Paula J; dbi-users@perl.org Subject: RE: Insights into DBI->connect differences The Oracle error docs are your friend: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96525.pdf -- Ron Reidy Lead

RE: Insights into DBI->connect differences

2006-02-15 Thread Reidy, Ron
@perl.org Subject: Insights into DBI->connect differences Hello, I'm hoping someone can explain why one of these connect statements work and the other doesn't. The script sets environment values as such: $ENV{ORACLE_HOME} = "/usr/oracle/product/8.1.7_64"; $ENV{ORACLE_SID} = $db_alia

Re: Insights into DBI->connect differences

2006-02-15 Thread Louis Gonzales
Capacio, Paula J wrote: Hello, I'm hoping someone can explain why one of these connect statements work and the other doesn't. The script sets environment values as such: $ENV{ORACLE_HOME} = "/usr/oracle/product/8.1.7_64"; $ENV{ORACLE_SID} = $db_alias;#$db_alias passed to script via $ARGV[1]

Insights into DBI->connect differences

2006-02-15 Thread Capacio, Paula J
Hello, I'm hoping someone can explain why one of these connect statements work and the other doesn't. The script sets environment values as such: $ENV{ORACLE_HOME} = "/usr/oracle/product/8.1.7_64"; $ENV{ORACLE_SID} = $db_alias;#$db_alias passed to script via $ARGV[1] my $dbh; if ($method =~ /2/