ODBC stage problem

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
rajanikc
Participant
Posts: 15
Joined: Wed Jan 24, 2007 11:11 am

ODBC stage problem

Post by rajanikc »

H;

I have a job which inserts records to an oracle table through ODBC statge. I wrote a custom sql. There was a syntax error in the sql while I ran the job. But the job just showed warning message for that error and showed finished status. It never showed Failed status with fatal error. Can you please tell me how to rectify this?

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

Post by Sainath.Srinivasan »

What is the custom SQL statement?

What is the warning / error?

Do not expect others to guess the issues you are facing. It is enough to guess the solution.
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Exactly what I was going to ask... perhaps in ODBC a warning (Database side) will only generate a warning (Datastage side) as opposed to a fatal? We need to know the details involved to have any chance of assisting please.
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
rajanikc
Participant
Posts: 15
Joined: Wed Jan 24, 2007 11:11 am

Post by rajanikc »

Thanks for the replys guys

custom sql is

UPDATE
test_table
SET
col2 = ORCHESTRATE.col2
WHERE
col1 ORCHESTRATE.col1

and the warning the datastage is throwing is:

ODBC_Enterprise_5,0: [DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-00920: invalid relational operator

Thanks for the quick replies again
---Raj
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Your where clause does not have an '=' symbol in the last line (after col1).
rajanikc
Participant
Posts: 15
Joined: Wed Jan 24, 2007 11:11 am

Post by rajanikc »

yes thats right. My sql has an error. But this error is not shown as fatal warning in the director when I run the job. It just shows as message
---Raj
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

When you say it shows as a 'message' is it an informational or warning in the Datastage log?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
rajanikc
Participant
Posts: 15
Joined: Wed Jan 24, 2007 11:11 am

Post by rajanikc »

Warning
---Raj
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That seems reasonable. There was no error in the stage per se.

I vaguely recall that there is a "treat warnings as fatal" check box available. Perhaps you could use that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or perhaps run the job with a (very) low warning limit.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Or use a reject link from ODBC stage to capture anything not successful.
Post Reply