Strange issue in SQL Loader [message #638415] |
Thu, 11 June 2015 05:53 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vikasg2006
Messages: 80 Registered: March 2006 Location: Dubai
|
Member |
|
|
Dear All,
I am facing below issue while using SQL loader.
SQL*Loader: Release 11.2.0.1.0 - Production on Tue May 12 15:19:50 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
But when I run the sql loader through administrator, it is working properly.
Like, if open command prompt and run, then above error is coming. But if I right click on cmd prompt, and then click on run as administrator, and then run the sql loader, it works perfectly.
Kindly help. Is sql loader, depends upload user access rights??
SQL*Loader: Release 11.2.0.1.0
Vikas
|
|
|
|
|
|
Re: Strange issue in SQL Loader [message #638532 is a reply to message #638415] |
Sun, 14 June 2015 00:30 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vikasg2006
Messages: 80 Registered: March 2006 Location: Dubai
|
Member |
|
|
Hi,
Operating system is windows 2003 server
Attached screen shot for sql loader command prompt run. Run by myself as a user, and then run command prompt run as administrator.
see the difference. I have not change any other value
SQLLDR FO_LEA/FO_LEA@FOUATD1 control=c:\test\vikas.ctl log=c:\test\vikas_log.log direct=true
![/forum/fa/12726/0/](/forum/fa/12726/0/)
[mod-edit: image inserted into message body by bb]
[Updated on: Sun, 14 June 2015 02:40] by Moderator Report message to a moderator
|
|
|
|
Re: Strange issue in SQL Loader [message #638534 is a reply to message #638415] |
Sun, 14 June 2015 02:32 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vikasg2006
Messages: 80 Registered: March 2006 Location: Dubai
|
Member |
|
|
c:\Windows\System32>SQLLDR FO_LEA/FO_LEA@FOUATD1 control=c:\test\vikas.ctl log=c
:\test\vikas_log.log direct=true
SQL*Loader: Release 10.2.0.1.0 - Production on Sun Jun 14 09:27:30 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIEnvCreate [-1]
c:\Windows\System32>
Now run command prompt as administrator
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>SQLLDR FO_LEA/FO_LEA@FOUATD1 control=c:\test\vikas.ctl log=c
:\test\vikas_log.log direct=true
SQL*Loader: Release 10.2.0.1.0 - Production on Sun Jun 14 09:29:46 2015
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Load completed - logical record count 95.
C:\Windows\system32>
I hope this is ok now. I am not able to understand, same command working correctly when run as admin, but not working otherwise
|
|
|
|
|
|
|
|
|
|
Re: Strange issue in SQL Loader [message #638562 is a reply to message #638561] |
Mon, 15 June 2015 07:17 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
And once again did you try to search in trace files and event log?
It is just a waste of time to try to find in the dark a way to make it work when it'd be so easy with the traces.
|
|
|