User Defined SQL Line Limit in ORAOCI9 stage.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
GavMagill
Participant
Posts: 14
Joined: Sun Mar 28, 2004 2:43 pm
Location: Auckland, New Zealand

User Defined SQL Line Limit in ORAOCI9 stage.

Post by GavMagill »

Hi All

I would like to know if anyone else has had issues with the number of lines of SQL that can be entered into the User Defined SQL tab of the ORAOCI9 stage in Server jobs?

I have a Server job using an ORAOCI9 stage which uses a 40 line, formatted SQL statement in the Output User Defined SQL tab.

This query works fine when I run it manually using the View Data button but once compiled, the job fails during the run with the following message.
(Abnormal termination of stage SQLLinesTest..Sequential_File_84.IDENT1 detected)

If I unformat the SQL statement and just cram it in without any linefeeds or spaces to indent the SQL, the job compiles and runs ok.

Then if I slowly increase the number of lines by adding linefeeds, it eventually fails again when I get to 18 lines of SQL. Very odd.

I have had a look on the IBM support site and there is a bug that was fixed in the Version 8.1 Rollup Fixpack which limited the number of characters in a User Defined SQL statement to 65K but I am nowhere near that number in my query (approx 1.8K chars) and the version we are using (V8.1.2) includes this rollup fixpack anyway.

I intend to log a call with IBM but wanted to see if anyone else has seen similar behaviour in their Server jobs.

As I say I have a workround which is to just remove any formatting from the SQL statement but this looks ugly and unprofessional and I would like to find a solution to this problem.

Regards
Gavin Magill
ETL Developer
+6427 291 0525
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: User Defined SQL Line Limit in ORAOCI9 stage.

Post by gateleys »

That's weird. We use 7.5.1, and have queries that are waaayyy longer than that, and we haven't had any issues... even with line feeds.
gateleys
GavMagill
Participant
Posts: 14
Joined: Sun Mar 28, 2004 2:43 pm
Location: Auckland, New Zealand

Re: User Defined SQL Line Limit in ORAOCI9 stage.

Post by GavMagill »

gateleys wrote:That's weird. We use 7.5.1, and have queries that are waaayyy longer than that, and we haven't had any issues... even with line feeds.
I also have Version 7.5.1 installed on my laptop and like you it has no problems with long SQL statements. This looks to be an issue with V8.x but I just wanted to confirm if anyone else had seen it before logging it with IBM.
Gavin Magill
ETL Developer
+6427 291 0525
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-craig

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