Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Weird Problem with Net8 connecting to Oracle Server
Comments embedded
"Martin Stephenson" <martinstephenson_at_hotmail.com> wrote in message
news:9v23oc$kct$1_at_newstoo.ericsson.se...
> Hi All,
>
> I am trying to connect to an Oracle Database on a UNIX server from my PC
> I have Installed Net8 on my PC (Windows 2000) and I can set up my
Connection
> fine with the "Net8 Configuration Assistant" and I can run the Connection
> Test Successfully, however I can't connect with SQLPlus,
> The same happens with TOAD and I get the following error:
>
> ORA-12154: TNS:could not resolve service name
<snip>
> My tnsnames.ora is:
> LEWIS PRODCTION DATABASE LEWIS HOTEL =
<snip>
This is a very long alias with spaces in it. I'm sure that spaces are not
allowed in any case. Try an alias like lewis_hotel_prod then you will
probably be able to connect with sqlplus uname/pwd_at_lewis_hotel_prod
> my sqlnet.ora is:
> ===========
> # SQLNET.ORA Network Configuration File:
> C:\oracle\ora81\network\admin\sqlnet.ora
> # Generated by Oracle configuration tools.
>
> SQLNET.AUTHENTICATION_SERVICES= (NTS)
>
> NAMES.DIRECTORY_PATH= (TNSNAMES)
You should probably comment out (with a # character) the authentication
services line in sqlnet.ora - unless you are using nt authentication.
HTH
-- Niall Litchfield Oracle DBA Audit Commission UK ***************************************** Please include version and platform and SQL where applicable It makes life easier and increases the likelihood of a good answer ******************************************Received on Mon Dec 10 2001 - 06:05:25 CST