Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Error executing database related script

by Thilosophy (Curate)
on Jul 14, 2005 at 12:47 UTC ( #474854=note: print w/ replies, xml ) Need Help??


in reply to Error executing database related script

ORA-12154 means TNS:could not resolve the connect identifier specified, which is most likely caused by tnsnames.ora or the Oracle environment variables not set up properly.

In addition to that, the Oracle driver cannot find the texts for its error message, which is, of course, not good, but could also be caused by missing environment variables.

Can you connect with sqlplus? If you can, the Oracle client software should be working.

This is say because when redirect the shebang line to another perl installation path with same modules installed it works fine.

You have multiple Perl installations on the same machine? Maybe DBD::Oracle is confused about which Perl to use. Try to run some simple test scripts from the command line (just connecting) against both Perl versions.


Comment on Re: Error executing database related script
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://474854]
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 2014-12-26 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (170 votes), past polls