To previous answer to MY SQL*Loader question I had asked, you said:
Examples of SQL*Loader String
sqlldr.exe userid=my_user/my_password@some_string control=my_control.ctl
sqlldr.exe userid=scott/tiger@//my_host:my_port/my_service_name control=my_control.ctl
When you have SQL*Loader contact us for additional help.
------------------------
To fill this string for proper execution, this data is found in the TNS Edit about my database:
EDWD.TAKEDAPHARM.COM=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=takt01-scan.unix.tpna.com)
(PORT=1521)
)
(CONNECT_DATA=
(SERVICE_NAME=tedwd.takedapharm.com)
)
)
my control file
LOAD DATA
INFILE 'C:\Users\jgiallom\Documents\RADS42Development Area\DataLoadSLQLoader\ThirdParty_Data.csv'
BADFILE 'C:\Users\jgiallom\Documents\RADS42DevelopmentArea\DataLoadSLQLoader\ThirdParty_Data.bad'
DISCARDFILE 'C:\Users\jgiallom\Documents\RADS42DevelopmentArea\DataLoadSLQLoader\ThirdParty_Data.dsc'
INTO TABLE "DOBS"."CP_THIRDPARTY"
APPEND
FIELDS TERMINATED BY '|'
(ID,
MASTER_RECORD_TYPE,
NAME,
PRIMARY_STREET_ADDRESS,
PRIMARY_COUNTRY,
PRIMARY_CITY,
PRIMARY_STATE_PROVINCE,
ZIP,
CLIENT_ID,
ITEM_TYPE,
PATH,
DATAYEAR)
LOADER STRING
sqlldr.exe userid=*****/*****@//takt01-scan.unix.tpna.com:1521/TEDWD.TAKEDAPHARMA.COM control=ThirdPartyData.ctl
I run CMD and cd\mydirectory which contains all files.
I carefully type the [line above] and get this error message:
SQL*Loader: Release 11.2.0.3.0 - Production on Wed Oct 11 09:59:58 2017
in the log:
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
If I try a simple string sqlldr.exe userid=myID/password control=mycontrol.ctl
I get error message:
SQL*Loader: Release 11.2.0.3.0 - Production on Wed Oct 11 10:07:34 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12560: TNS:protocol adapter error
My Question: Can you provide any suggestions as to what is wrong and how I might correct what I am doing?
Thank you.