dbTalk Databases Forums  

Error while trying direct load in sql loader

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Error while trying direct load in sql loader in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sandy80
 
Posts: n/a

Default Error while trying direct load in sql loader - 09-21-2011 , 03:56 AM






Hi,

I have a table which I load through the sql loader using the following
command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 readsize=10000000
bindsize=10000000

Since this table gets more than 2.7m I wanted to improve the load
performance and therefore tried the "direct" load on it. I try the
direct load using the following command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 readsize=10000000
bindsize=10000000 \multithreading=true direct=true load=2000000 &

As soon as I try this direct load command it gives me the following
error for each record and rejects all of them:

Record 5: Rejected - Error on table XXXXXXXXXXX.
ORA-00604: error occurred at recursive SQL level 1
ORA-01861: literal does not match format string

Let me know if any of you have faced a similar issue and can provide
an idea on what could be the issue.
Any help would be appreciated. Thanks!

Reply With Quote
  #2  
Old   
Gareth Graham
 
Posts: n/a

Default Re: Error while trying direct load in sql loader - 09-21-2011 , 10:24 AM






On Sep 21, 9:56*am, Sandy80 <svarshneym... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

I have a table which I load through the sql loader using the following
command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 *readsize=10000000
bindsize=10000000

Since this table gets more than 2.7m I wanted to improve the load
performance and therefore tried the "direct" load on it. I try the
direct load using the following command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 *readsize=10000000
bindsize=10000000 \multithreading=true direct=true load=2000000 &

As soon as I try this direct load command it gives me the following
error for each record and rejects all of them:

Record 5: Rejected - Error on table XXXXXXXXXXX.
ORA-00604: error occurred at recursive SQL level 1
ORA-01861: literal does not match format string

Let me know if any of you have faced a similar issue and can provide
an idea on what could be the issue.
Any help would be appreciated. Thanks!
What Oracle version?

Reply With Quote
  #3  
Old   
joel garry
 
Posts: n/a

Default Re: Error while trying direct load in sql loader - 09-21-2011 , 11:21 AM



On Sep 21, 1:56*am, Sandy80 <svarshneym... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

I have a table which I load through the sql loader using the following
command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 *readsize=10000000
bindsize=10000000

Since this table gets more than 2.7m I wanted to improve the load
performance and therefore tried the "direct" load on it. I try the
direct load using the following command:

${ORACLE_HOME}/bin/sqlldr ${DATABASE_USER}/${USER_PASS}@${DATABASE}
control=${LOAD_ROOT}/ctrl/${TABLE_NAME}.ctrl data=${DATA_DIR}/$
{TABLE_NAME}.dat log=${LOAD_ROOT}/log/${TABLE_NAME}.log bad=$
{LOAD_ROOT}/bad/${TABLE_NAME}.bad discard=${LOAD_ROOT}/discard/$
{TABLE_NAME}.dsd errors=100000 rows=10000 *readsize=10000000
bindsize=10000000 \multithreading=true direct=true load=2000000 &

As soon as I try this direct load command it gives me the following
error for each record and rejects all of them:

Record 5: Rejected - Error on table XXXXXXXXXXX.
ORA-00604: error occurred at recursive SQL level 1
ORA-01861: literal does not match format string

Let me know if any of you have faced a similar issue and can provide
an idea on what could be the issue.
Any help would be appreciated. Thanks!
I haven't, but see MOS Sqlloader Fails With ORA-604 And ORA-1861 When
Loading Date Fields And Using Direct=Y [ID 780525.1]

jg
--
@home.com is bogus.
http://www.signonsandiego.com/news/2...o-praise-fest/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.