SQL*Loader-941 [message #166621] |
Fri, 07 April 2006 04:45 |
ptgeorge
Messages: 19 Registered: April 2005
|
Junior Member |
|
|
Anyone seen this error ?
SQL*Loader-941: Error during describe of table TEMP_BILLED
ORA-03114: not connected to ORACLE
|
|
|
|
Re: SQL*Loader-941 [message #166650 is a reply to message #166641] |
Fri, 07 April 2006 06:54 |
ptgeorge
Messages: 19 Registered: April 2005
|
Junior Member |
|
|
Thanks, but I forgot to mention that I am able to log on through sqlplus. It's only sqlldr that has this problem. If it is a tns issue shouldn't sqlplus not work either ?
|
|
|
|
Re: SQL*Loader-941 [message #166661 is a reply to message #166651] |
Fri, 07 April 2006 07:29 |
ptgeorge
Messages: 19 Registered: April 2005
|
Junior Member |
|
|
Both sqlldr and sqlplus are run from the same script. The sqlplus works.
sqlplus $DB_USER/$DB_PASSWORD << eof
set serveroutput on ;
select 'test' from dual ;
eof
sqlldr userid=$DB_USER/$DB_PASSWORD \
control=$CTLFile \
data=$InputDir/$File \
log=$LogFile \
bad=$BadFile \
discard=$DiscardFile \
ROWS=500 \
ERRORS=999999
The output as follows
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL> SQL>
'TEST'
--------------------------------
test
SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
SQL*Loader: Release 9.2.0.6.0 - Production on 7 19:16:00 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL*Loader-941: Error during describe of table TEMP_UNBILLED
ORA-03114: not connected to ORACLE
The call to the sqlldr is followed by a PL/SQL script working on the same table which also executes properly. This is a problem happening during implementation. It has worked fine on other servers
This is an issue with all scripts using sqlldr not specific to this one alone
[Updated on: Fri, 07 April 2006 07:56] Report message to a moderator
|
|
|
|
Re: SQL*Loader-941 [message #166670 is a reply to message #166666] |
Fri, 07 April 2006 08:06 |
ptgeorge
Messages: 19 Registered: April 2005
|
Junior Member |
|
|
Yes I haven't pasted the following pl/sql block, but it is executing it anyway. The username/password are set as environment variables. The same way you've specified it
export DB_USER=scott
Like I'd said this is happening only on one server, it is working fine everywhere else(HP-UX OS and a non-english DB incidentally)
So is it possible that it is a problem with sqlldr itself ?
|
|
|
|
Re: SQL*Loader-941 [message #166679 is a reply to message #166673] |
Fri, 07 April 2006 08:46 |
ptgeorge
Messages: 19 Registered: April 2005
|
Junior Member |
|
|
Yes, the table exists. Checked all that. Anyway if the table doesn't exist it usually gives an 'object doesnt exist' error. Also I have replaced the
select 'test' from dual
with
select * from temp_unbilled
The sqlplus bit works fine. Since sqlldr is connecting as the same user, it cant be anything to do with the table's visiblity, could it.
temp_unbilled is a table and the table is empty. So it shouldn't be an issue with the insert. Anyway the ctlfile is truncating into the table
LOAD DATA
TRUNCATE INTO TABLE TEMP_UNBILLED
FIELDS TERMINATED BY '|'
(
id,
anumber "'+' || :anumber",
amount
)
You think using an external table would help ? Im guessing its some environment problem like you'd said, since its working everywhere else, but I just can't seem to figure out what it is.
Thanks for your time anyway
[Updated on: Fri, 07 April 2006 09:30] Report message to a moderator
|
|
|
|
|