Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
The TNSNAMES entry for the remote box looks like -Can't connect to ihr-live :: ORA-12154: TNS:could not resolve +service name (DBD ERROR: OCIServerAttach)
ihr-live = (DESCRIPTION = (ADDRESS = (PROTOCOL= TCP)(Host= skirlie)(port= 1521)) (CONNECT_DATA = (SID = IHRLIVE)) )
The Oracle database is called ihr-live and I presume that the hostname is taken from the ihr-live alias in the TNSNAMES.ora file. As you can see from this file the remote server is called skirlie and the port being used is the default 1521. I hope I've made a simple mistake can someone point me in the right direction please?$dbh = DBI->connect('dbi:Oracle:ihr-live@ihr-live',"$uname","$password +", { PrintError => 0, RaiseError => 0 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you connect to a remote Oracle DB using DBI
by Sinistral (Monsignor) on Apr 15, 2008 at 13:36 UTC | |
|
Re: How do you connect to a remote Oracle DB using DBI
by stiller (Friar) on Apr 15, 2008 at 11:39 UTC | |
by Ronnie (Scribe) on Apr 15, 2008 at 12:01 UTC | |
by stiller (Friar) on Apr 15, 2008 at 12:03 UTC | |
by Ronnie (Scribe) on Apr 15, 2008 at 12:10 UTC | |
by stiller (Friar) on Apr 15, 2008 at 12:16 UTC | |
|
Re: How do you connect to a remote Oracle DB using DBI
by olus (Curate) on Apr 15, 2008 at 13:59 UTC | |
|
Re: How do you connect to a remote Oracle DB using DBI
by dvryaboy (Sexton) on Apr 15, 2008 at 14:16 UTC |