dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

tnsping resolves but ORA-12154 - Oracle Server

This is a discussion on tnsping resolves but ORA-12154 - Oracle Server ; There is one NT workstation with oracle 9.8.0 on it. This has been added to a local tnsnames file and you can connect locally. When I try to connect externally I recieve ORA-12154: TNS:could not resolve service name Tnsping works ...


Home > Database Forum > Oracle Database > Oracle Server > tnsping resolves but ORA-12154

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 10-24-2006, 01:08 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default tnsping resolves but ORA-12154

There is one NT workstation with oracle 9.8.0 on it.
This has been added to a local tnsnames file and you can connect
locally.
When I try to connect externally I recieve

ORA-12154: TNS:could not resolve service name Tnsping works just fine
....


Your input here will be highly appreciated


Massa

Reply With Quote
  #2  
Old 10-24-2006, 02:00 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

What do you mean by 'When I try to connect externally' ?
Are you doing the tnsping on the same computer were the connection
fails?
If you are using another computer, then that is where the tnsnames.ora
file must be updated (the client) and possibly the sqlnet.ora file.
Otherwise, what you are describing should work.

Please provide more info.

Reply With Quote
  #3  
Old 10-24-2006, 02:00 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

What do you mean by 'When I try to connect externally' ?
Are you doing the tnsping on the same computer were the connection
fails?
If you are using another computer, then that is where the tnsnames.ora
file must be updated (the client) and possibly the sqlnet.ora file.
Otherwise, what you are describing should work.

Please provide more info.

Reply With Quote
  #4  
Old 10-24-2006, 02:08 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

I thought it should work too.

External Server is the remote Server .

And yes tnsnames is updated on the remote serve


Thanks a milion for your time

Reply With Quote
  #5  
Old 10-24-2006, 02:08 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

I thought it should work too.

External Server is the remote Server .

And yes tnsnames is updated on the remote serve


Thanks a milion for your time

Reply With Quote
  #6  
Old 10-24-2006, 02:17 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

It's not that I don't believe you, but ...

Can you do a screen capture of the following ... replacing abc1 with
your service name, and feel free to remove specific server name
information - both from the server with the problem:

tnsping abc1

sqlplus /nolog
set instance abc1

sorry to be so doubting, but ...

Reply With Quote
  #7  
Old 10-24-2006, 02:17 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154

It's not that I don't believe you, but ...

Can you do a screen capture of the following ... replacing abc1 with
your service name, and feel free to remove specific server name
information - both from the server with the problem:

tnsping abc1

sqlplus /nolog
set instance abc1

sorry to be so doubting, but ...

Reply With Quote
  #8  
Old 10-24-2006, 03:35 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (COMMUNITY =
tcpnbo.world)(PROTO
COL = TCP)(Host = nb009984)(Port = 1521)) (CONNECT_DATA = (SID =
lwcrown) (GLOBA
L_NAME = lwcrown.world)))
OK (1030 msec)


SQL> set instance lwcrown
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL>

My passwords had been messed with .This is a classic example of make no
assumptions where a problem pops up...




G Quesnel wrote:
> It's not that I don't believe you, but ...
>
> Can you do a screen capture of the following ... replacing abc1 with
> your service name, and feel free to remove specific server name
> information - both from the server with the problem:
>
> tnsping abc1
>
> sqlplus /nolog
> set instance abc1
>
> sorry to be so doubting, but ...


Reply With Quote
  #9  
Old 10-24-2006, 03:35 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: tnsping resolves but ORA-12154


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (COMMUNITY =
tcpnbo.world)(PROTO
COL = TCP)(Host = nb009984)(Port = 1521)) (CONNECT_DATA = (SID =
lwcrown) (GLOBA
L_NAME = lwcrown.world)))
OK (1030 msec)


SQL> set instance lwcrown
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL>

My passwords had been messed with .This is a classic example of make no
assumptions where a problem pops up...




G Quesnel wrote:
> It's not that I don't believe you, but ...
>
> Can you do a screen capture of the following ... replacing abc1 with
> your service name, and feel free to remove specific server name
> information - both from the server with the problem:
>
> tnsping abc1
>
> sqlplus /nolog
> set instance abc1
>
> sorry to be so doubting, but ...


Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 11:59 PM.