Database Administration (MOSC)

MOSC Banner

Ora-12541 : TNS: No listener and Ora-12154 tns could not resolve the connect identifier

edited Sep 8, 2020 5:09AM in Database Administration (MOSC) 10 commentsAnswered

Hello Gurus,

I am getting Ora-12541 and ora-12154 errors when i am trying to connect to another database

\Oracle\Database\product\12.1.0\dbhome_1\BIN>tnsping ServerBInstance.world

TNS Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 17-AUG-2020 13:03:33

Copyright (c) 1997, 2014, Oracle.  All rights reserved.

Used parameter files:

\oracle\Database\product\12.1.0\dbhome_1\network\admin\sqlnet.ora

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ServerB)(PORT = 1521))) (CONNECT_DATA =

(SERVICE_NAME = ServerBinstance.world)))

TNS-12541: TNS:no listener

\Oracle\Database\product\12.1.0\dbhome_1\BIN>

---------------

\Oracle\Database\product\12.1.0\dbhome_1\BIN>sqlplus DBUser/DBPwd@ServerBinstance.world

SQL*Plus: Release 12.1.0.2.0 Production on Mon Aug 17 13:02:46 2020

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center