|
|
Re: SQL Loader not loading the data file [message #424376 is a reply to message #424365] |
Thu, 01 October 2009 21:51 |
|
amarjeetk
Messages: 4 Registered: October 2009 Location: INDIA
|
Junior Member |
|
|
LittleFoot,
thank you for posting but, can you please be clearer and tell me where exactly is it exceeding? (CTL file is attached with main post)
Also, if problem is with the data size then why should it work when-
1. I comment out the ACTIONS table header (see Issue.CTL)
--INTO TABLE ACTIONS
--WHEN (1:7) = 'Actions'
--FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
--( ID POSITION(9), VN, FROM_PRODUCT_VN, TO_PRODUCT_VN, ACTION_TYPE, DESCRIPTION, FROM_PRODUCT_ID, TO_PRODUCT_ID, TIGHT_BUNDLE_YN, BLACKLISTED_YN, BLACKLIST_THRESHOLD, BLACKLIST_COUNT, CANCEL_ALLOWED_YN, MANUAL_ABORT_ALLOWED_YN, MANUAL_COMPLETE_ALLOWED_YN)
OR
2. I use the fixed values in data section instead of oracle table sequences (spt_seq.nextval)
INTO TABLE STEP_POOL_TMPLS
WHEN (1:15) = 'Step_Pool_Tmpls'
FIELDS TERMINATED BY "," TRAILING NULLCOLS
--( ID "spt_seq.nextval", VN POSITION(17), CALL_SEQ_TMPL_ID, CALL_SEQ_TMPL_VN, STEP_POOL CHAR(10485760) ENCLOSED BY '"')
( ID POSITION(17), VN, CALL_SEQ_TMPL_ID, CALL_SEQ_TMPL_VN, STEP_POOL CHAR(10485760) ENCLOSED BY '"')
|
|
|
|
|
|
Re: SQL Loader not loading the data file [message #425468 is a reply to message #424424] |
Fri, 09 October 2009 04:48 |
|
amarjeetk
Messages: 4 Registered: October 2009 Location: INDIA
|
Junior Member |
|
|
** SOLVED** see the resolution below by Oracle Support
ACTION PLAN
============
This apparently strange behavior is produced by columns:
ID "spt_seq.nextval"
in table STEP_POOL_TMPLS and:
ID "ppt_seq.nextval"
in table PARAMETER_POOL_TMPLS.
If you specifiy the sequence in that mpode for multiple tables, then SQL*Loader first reads further in file and wrongly interp
rets the field content. There is neither a POSITION specified for this field to
set the pointer within input file (comes later with next field VN), nor is an EX
PRESSION specified (that means, the content is *not* taken from input file).
To correct this and allow all the tables are loaded as expected, modify the lines:
ID EXPRESSION "spt_seq.nextval"
...
ID EXPRESSION "ppt_seq.nextval"
...
Example of the output after that changed
================================
$ sqlldr userid=dataload/dataload control=Issue.CTL log=Issue.LOG bindsize=30000000 re
adsize=10000000
Ouput after change that:
SQL> select count(*) from STEP_POOL_TMPLS;
COUNT(*)
----------
1
SQL> select count(*) from PARAMETER_POOL_TMPLS;
COUNT(*)
----------
1
SQL> select count(*) from actions;
COUNT(*)
----------
1
|
|
|