sqlldr "xxxx/xxxx@YYYYYXXXX" control=/home/local/INTERNAL/xxxxx/Presc_SQLLDR_File/Presc_SQLLDR.ctl log=/home/local/INTERNAL/xxxxx/Presc_SQLLDR_File/Presc_log.log data=home/achand/Presc_SQLLDR_File/Presc_SQLLDR.ctl
Whenever i'm trying to execute sqlldr I'm getting below error
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve the connect identifier specified
I tried tnsping YYYYYXXXX
I got below error
TNS-03505: Failed to resolve name
tnsnames.ora contain
DDCPPSD.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXXYYY)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = YYYYYXXXX)
)
)
If your
tnsnames.ora
alias is defind asDDCPPSD.WORLD
and yoursqlnet.ora
specifies a default domain of anything exceptWORLD
then you need to fully qualify the alias when you use it:and
Otherwise the default domain will be appended to the unqualified name, giving you a fully-qualified name that does not exist in your
tnsnames.ora
.Read more about this in the documentation.