Re: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Martin Evans
Loo, Peter # PHX wrote: Hello All, I am confused as to why I am getting this error message. I am trying to connect to two different Oracle instances within one program run. The two Oracle instances are different in versions. inst1 is 9.2 while inst2 is 10.2. I am able to connect to the

Problem with DBD::ODBC : -DBD::ODBC::st execute failed: [unixODBC][FreeTDS][SQL Server]Procedure has no parameters and arguments were supplied. (SQL-42000)(DBD: st_execute/SQLExecute err=-1)

2007-12-12 Thread jnp . swiss
When I try to run a perl script that uses ODBC drivers to insert data more than 7 rows I am getting the following error DBD::ODBC::st execute failed: [unixODBC][FreeTDS][SQL Server]Procedure has no parameters and arguments were supplied. (SQL-42000)(DBD: st_execute/SQLExecute err=-1)

Re: Problem with DBD::ODBC : -DBD::ODBC::st execute failed: [unixODBC][FreeTDS][SQL Server]Procedure has no parameters and arguments were supplied. (SQL-42000)(DBD: st_execute/SQLExecute err=-1)

2007-12-12 Thread Martin Evans
[EMAIL PROTECTED] wrote: When I try to run a perl script that uses ODBC drivers to insert data more than 7 rows I am getting the following error DBD::ODBC::st execute failed: [unixODBC][FreeTDS][SQL Server]Procedure has no parameters and arguments were supplied. (SQL-42000)(DBD:

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Loo, Peter # PHX
Hi Martin, I tried setting both variables at the very beginning before any connection is made and the result is still the same. $ENV{ora_envhp} = 0; $ENV{ORA_ENVHP} = 0; Peter -Original Message- From: Martin Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 1:47 AM

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Kong, Alan
Peter, Why don't you use one oracle home and set up two tns entries, one for each instance, in the tnsnames.ora file? For example: you can set 10.2 as oracle home, in it's corresponding tnsnames.ora file, create two tns entries each pointing to one instance. Then the connection calls can

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Loo, Peter # PHX
Hi Alan, Both versions of Oracle point back to the same tnsnames.ora file. /opt/app/oracle/product/10.2/network$ ls -l admin lrwxrwxrwx 1 oracle dba 35 Feb 8 2007 admin - /opt/app/oracle/admin/network/admin /opt/app/oracle/product/9.2/network$ ls -l admin lrwxrwxrwx

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Loo, Peter # PHX
Here is what I did: eval { $dbh = DBI-connect(dbi:$dbDriver:$dbName, $dbUser, $dbPass, { RaiseError = 1, PrintError = 1, ora_envhp = 0 }); }; Still does not work. Peter -Original Message- From: Alexander V Alekseev [mailto:[EMAIL

Re: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Tim Bunce
On Thu, Dec 13, 2007 at 01:20:38AM +0300, Alexander V Alekseev wrote: On Wed, 12 Dec 2007, Loo, Peter # PHX wrote: Hi Martin, I tried setting both variables at the very beginning before any connection is made and the result is still the same. $ENV{ora_envhp} = 0;

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Alexander V Alekseev
Hello! On Wed, 12 Dec 2007, Loo, Peter # PHX wrote: Hi Martin, I tried setting both variables at the very beginning before any connection is made and the result is still the same. $ENV{ora_envhp} = 0; $ENV{ORA_ENVHP} = 0; ora_envhp is one of Connect

RE: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread Bong Tumanut
There's a file named tnsnames.ora file in $ORACLE_HOME/network/admin. Make sure there is an entry for $dbName there. Bong Loo, Peter # PHX [EMAIL PROTECTED] wrote: Here is what I did: eval { $dbh = DBI-connect(dbi:$dbDriver:$dbName, $dbUser, $dbPass, { RaiseError = 1, PrintError =

Re: ORA-12154: TNS:could not resolve the connect identifierspecified

2007-12-12 Thread Martin Gainty
Good Evening Peter since you're dealing with 2 completely different binaries (particularly important when using Type 2 Oracle drivers) You *may* want to consider a OOA/OOD solution e.g. ConnectionTemplate (class) Connection1 inherits from Template Connection2 inherits from Template main

Re: ORA-12154: TNS:could not resolve the connect identifier specified

2007-12-12 Thread David Dooling
On Wed, Dec 12, 2007 at 01:28:37PM -0700, Loo, Peter # PHX wrote: I tried setting both variables at the very beginning before any connection is made and the result is still the same. $ENV{ora_envhp} = 0; $ENV{ORA_ENVHP} = 0; Why are you switching the ORACLE_HOME at all? The 9i client