CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
ORA 12560-connectivity error

 



steve798
Novice

Nov 15, 2017, 9:08 AM

Post #1 of 3 (1074 views)
ORA 12560-connectivity error Can't Post

I am getting a connectivity error on the line from code below. Not sure if the error is syntax or a connectivity to the Oracle DB


Code
my $dbh = DBI->connect("dbi:Oracle:$db", $user, $pw) or die("Cannot connect to '$db' " . DBI->errstr());



Error message from the line of code above..

Code
Use of uninitialized value in concatenation (.) or string on line 29. 
DBI connect('','',...) failed: ORA-12560: TNS:protocol adapter error (DBD ERROR: OCIServerAttach)



FishMonger
Veteran / Moderator

Nov 15, 2017, 2:49 PM

Post #2 of 3 (1069 views)
Re: [steve798] ORA 12560-connectivity error [In reply to] Can't Post

One or more of your vars are undefined. User the Data::Dumper (or similar) module to dump your vars to see what the contain.


steve798
Novice

Nov 16, 2017, 2:43 PM

Post #3 of 3 (1054 views)
Re: [FishMonger] ORA 12560-connectivity error [In reply to] Can't Post

Thank you, was missing a parameter when executing a script

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives