SQL Loader Control File Truncated

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

SQL Loader Control File Truncated

Post by piyu »

Hi,

The problem I'm facing is: I am using LOAD in Oracle Enterprise stage and the job is failing because the control file is being truncated. The same job runs fine with another schema which has relatively less columns compared to the one failing. The DBA says its something Datastage may be doing. If that is true, is there a way to over-ride it?

The text control file was truncated exactly at 10KB and the director log shows the last characters of the file which does confirm truncation.

Any help will be greatly appreciated.

Thanks.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

How did you come to the conclusion? What errors did you obtain?

Did you check the ctl file from OS level ?
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

Yup. The DBA provided the control file and it is truncated.

Here is the error :
ORA_MOPC_DB_LOAD,1: SQL*Loader-350: Syntax error at line 142.
ORA_MOPC_DB_LOAD,1: Expecting valid column specification, "," or ")",
found "PO".
ORA_MOPC_DB_LOAD,1: "LEG2_ACCRUAL3" PO
ORA_MOPC_DB_LOAD,1: ^

The control file last two characters are "PO" coz it truncated the word POSITION which defines the schema.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Did you look at the sql loader control file from operating system level?
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

Unfortunately I cannot check the control file on the oracle server installation.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

SQL loader control file is different from control file of Oracle.

They are text files created in OS.
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

Here is the snapshot of the control file for this table.


OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)

LOAD DATA length semantics byte INFILE 'ora.12285.313228.fifo.0' "FIX 1967"
APPEND INTO TABLE PT_MXG_TRADE_TRNRPPL_IRS1
(
"MTM_CCY" POSITION (1:5) varchar(3),
"MTM_DATE" POSITION (6:24) date "YYYY-MM-DD HH24:MI:SS" NULLIF (6:24) = BLANKS,
.
.
.
.
.
"LEG2_ACCRUAL1" POSITION (1848:1856) decimal(16,2) NULLIF (1848:1856) = BLANKS,
"LEG2_ACCRUAL3" PO
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds like a bug and something you'd need to contact your official support provider for to see if there is a patch available.
-craig

"You can never have too many knives" -- Logan Nine Fingers
piyu
Participant
Posts: 52
Joined: Thu Jul 21, 2005 12:22 am
Location: Singapore

Post by piyu »

Thought the same! Version 8 n bugs!
GavMagill
Participant
Posts: 14
Joined: Sun Mar 28, 2004 2:43 pm
Location: Auckland, New Zealand

Post by GavMagill »

Hi there Piyu.

Did you ever report this problem to IBM and get a response?
I just hit the same issue with our install of V8.1.
Would appreciate any update you can give us.

Thanks
Gavin
Gavin Magill
ETL Developer
+6427 291 0525
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Gavin,

There is another similar post with information about the patch. Please search.
Post Reply