SQL*LDR fails ORA-12154: TNS:could not resolve service name, but SQL*PLUS works fine [message #388315] |
Tue, 24 February 2009 04:04 |
ollyb303
Messages: 3 Registered: January 2009
|
Junior Member |
|
|
Hi,
I have a problem using SQL*LDR to load data into a 10.2g db. The log file reads:
SQL*Loader: Release 9.0.1.4.0 - Production on Tue Feb 24 09:44:32 2009
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve service name
Bizarrely, this was working just fine until this weekend at which point it stopped working.
I can connect to the db using SQL*PLUS and SQL developer, and also using a front end MS Access application - all of these use the same connection properties.
I have checked my tnsnames.ora file and the one on the server and they are fine, as is listener.ora and the listener is working. The listener log shows the connections from the access application, sql*plus etc, but there is no sign of any log entries for the attempts I have made using SQL*LDR.
Can anyone shed any light on this at all?
Many thanks,
Olly
|
|
|
|
|
|
|
|
|
|
Re: SQL*LDR fails ORA-12154: TNS:could not resolve service name, but SQL*PLUS works fine [message #398499 is a reply to message #388315] |
Thu, 16 April 2009 08:27 |
etl_prasad
Messages: 44 Registered: June 2005 Location: Scotland
|
Member |
|
|
Hi All,
i am facing similar problem
Problem:
SQL*Loader: Release 9.2.0.5.0 - Production on Thu Apr 16 06:50:12 2009
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve service name i All,
i am facing similar problem
Problem:
SQL*Loader: Release 9.2.0.5.0 - Production on Thu Apr 16 06:50:12 2009
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve service name
recently i have installed 10g client to my system. and i can able to connect to the data base very much..
Database version which i am trying to upload is :9.2.0.5.0
Please give your suggestions..
|
|
|
|
Re: SQL*LDR fails ORA-12154: TNS:could not resolve service name, but SQL*PLUS works fine [message #398653 is a reply to message #388315] |
Fri, 17 April 2009 01:37 |
etl_prasad
Messages: 44 Registered: June 2005 Location: Scotland
|
Member |
|
|
Thanks for your quick reply Michel,
i have verified all possible methods for TNSNAMES.ORA file and still am getting the same error..
Now my machine having both 9.1.2 and 10.2.0.1 client versions of Oracle.
yesterday when i run my SQLLDR which was pointing to version 9, now i renamed version 9 and now its pointing to version 10.
Error: SQL*Loader: Release 10.2.0.1.0 - Production on Fri Apr 17 11:58:22 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS:could not resolve the connect identifier specified
This problem existing since i loaded client version 10.2.0.1..
please advice me how i can get back to load data using Sql Loader.
Thanks in advance.
|
|
|
|
Re: SQL*LDR fails ORA-12154: TNS:could not resolve service name, but SQL*PLUS works fine [message #398670 is a reply to message #388315] |
Fri, 17 April 2009 01:59 |
etl_prasad
Messages: 44 Registered: June 2005 Location: Scotland
|
Member |
|
|
Hi Michel,
Following are the details
Did you copy tnsnames.ora to 10g home?
yes , i copied tnsnames.ora & SQLnet.ora files to 10g home
Is 9i or 10g your default home?
Now its pointing to 10g home
Is TNS_ADMIN variable set?
Am not sure how to set this variable value, i have placed all files at default location. i can able to connect my SQLPLUS window and using TOAD from my machine..
This problem appearing one when i rung SQLLDR control file.
|
|
|
|
|
|
|