Database Networking (MOSC)

MOSC Banner

ORA-12154: TNS:could not resolve the connect identifier specified

edited Dec 17, 2013 3:02AM in Database Networking (MOSC) 8 commentsAnswered
i am getting this error whe trying to connect to a database via sqlplus from my ksh script. below is the line that gives me an error:


sqlplus 'user/pwd@DBName' << EOF > $FILE1

I checked the tns entry for DBName in tnsnames.ora and it has a correct entry.

tnsping returned

TNS Ping Utility for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production on 03-SEP-2013 16:17:40

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

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server03)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Database1)))
OK (10 msec)

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