Don't ask to ask, just ask | |
PerlMonks |
Re: Error executing database related scriptby Thilosophy (Curate) |
on Jul 14, 2005 at 12:47 UTC ( [id://474854]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|