ORA-12154: TNS:could not resolve the connect identifier specified
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)