Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)

by cbeckley (Curate)
on Mar 28, 2017 at 13:59 UTC ( #1186246=note: print w/replies, xml ) Need Help??


in reply to ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)

I think you need:

my $dsn = "dbi:$driver:$database";

Of course this assumes this is a local database, and that $ORACLE_HOME is set appropriately.

If the database is not local, you will need to invoke connect with a host, and possibly a port.

Hope that helps

Thanks,
cbeckley

  • Comment on Re: ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1186246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2020-05-26 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?