Error While Reloading Oracle table with CLOB columns

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
PeteM2
Premium Member
Premium Member
Posts: 44
Joined: Thu Dec 15, 2011 9:17 am
Location: uk

Error While Reloading Oracle table with CLOB columns

Post by PeteM2 »

We have a job that loads an Oracle table with two CLOB columns.
The CLOB columns have been assigned LongVarchar datatype in the job.
The Oracle connector stage uses run-time generated SQL and is set to load using the "Insert Then Update" mode.
This job runs fine on the first run when the target table is empty (only inserts).
But when the job is rerun, it fails throwing the below warning and error:

Warning - The connector is not able to resume the write operation because multiple arrays of data were written to the database on one or more input links under the transaction that was active at the time of failover.
Error - The variable pStreamReader has value NULL which is not valid in the current context. (CC_OraStatement::piecewiseWriteLobParameters, file CC_OraStatement.cpp, line 7,180)

Is there a way to get around this error?
thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Isn't there a mode that is something like 'Replace completely'? It would do a delete of any existing records before inserting the new version which may get around your issue.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply