Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-12154: TNS: could not resolve service name from remote machine

Re: ORA-12154: TNS: could not resolve service name from remote machine

From: Patrice Borne <patborne_at_gmail.com>
Date: 9 Feb 2007 11:56:00 -0800
Message-ID: <1171050960.657150.192790@j27g2000cwj.googlegroups.com>


On Feb 9, 6:46 am, "Bobby" <bobby.ow..._at_talktalk.net> wrote:
> Hi,
>
> I've just started trying to write a .NET 1.1 prototype application to
> access an oracle database using the "Oracle Data Provider". If I run
> the application on the DB server, it works fine. Remotely from my
> development machine however, I get the error mentioned in the subject
> of this post. It "did" however work for a bit but stopped when I
> closed all the config windows on both machines.
>
> I have looked at other postings but cant find any suggestions that
> help :-(
>
> I've rebooted the server, but not the development machine "yet"
>
> I've checked the following:
>
> DB Server
> ---------------
> SQLPlus works fine to <user>/<password>@demo9
> .NET Application works fine
> sqlnet.ora authentication changed to (NONE)
> listener.ora has:
>
> LISTENER =
> (DESCRIPTION_LIST =
> (DESCRIPTION =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
> )
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = test-anite)(PORT = 1521))
> )
> )
> )
>
> tnsnames.ora has:
> DEMO9 =
> (DESCRIPTION =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = test-anite)(PORT = 1521))
> )
> (CONNECT_DATA =
> (SERVER = DEDICATED)
> (SERVICE_NAME = demo9)
> )
> )
>
> Development machine
> -------------------------------
> SQLPlus returns "could not resovle" error
> .NET Application returns "could not resovle" error
> tnsping to the name of the DB server returns OK
> listener.ora has:
> LISTENER =
> (DESCRIPTION_LIST =
> (DESCRIPTION =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = DEV-WS4)(PORT = 1521))
> )
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
> )
> )
> )
>
> tnrnames.ora has:
> DEMO9 =
> (DESCRIPTION =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = test-anite)(PORT = 1521))
> )
> (CONNECT_DATA =
> (SERVER = DEDICATED)
> (SERVICE_NAME = demo9)
> )
> )
>
> Does anyone have any suggestions?
>
> Thanks in advance
>
> Bobby

Can you try a tnsping on the client machine? This way, you make sure that your oracle client is using the tnsnames.ora file you THINK it is using. Received on Fri Feb 09 2007 - 13:56:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US