Issue with Post SQL execution in OCI

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
kumarjit
Participant
Posts: 99
Joined: Fri Oct 12, 2012 7:47 am
Location: Kolkata

Issue with Post SQL execution in OCI

Post by kumarjit »

Hi there ,

Been a long time since I'd posted last in this forum. Hope you all are doing well .

I came with a pretty odd hitch that we faced in one of our parallel jobs.
But the real trouble is, the same design is used in multiple other jobs as well, hence an error here would mean that changes are required in all the other jobs also.

The job consists of three parallel data load flows, and the generic structure for all these loads are as follows:

Code: Select all

SEQUENTIAL FILE --> TRANSFORMER -- > ORACLE CONNECTOR
We have Before and After SQL sections defined for all the three OCI stages, but surprisingly the After SQL execution for the SECOND OCI is skipped, and overall job is said to complete successfully , as per the log .
I ran the After SQL statement independently and it ran fine, but somehow when fired as a post sql from the OCI stage it is getting skipped.

Any idea as to how to go forth in finding the root cause of this problem?

Regards
Kumarjit.
Pain is the best teacher, but very few attend his class..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Can we get a clue as to what the after SQL actually is? I'd also be curious what makes you think it is being skipped.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are there any settings in the second Connector that might cause the After-SQL command to be skipped?

Is the after-SQL properly formed?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumarjit
Participant
Posts: 99
Joined: Fri Oct 12, 2012 7:47 am
Location: Kolkata

Post by kumarjit »

@craig : Sure , its something like the one below :
BEGIN
BEGIN
/*Script for creating index on a table whose name is a Job-level parameter*/
END ;
/*Script to Update the table based on a specific criteria*/
END ;

Surprisingly, this code seems to be doing fine when run from a sql client tool like SQL developer/Toad , but when its run as a post sql from DS job it DOESNT get invoked at all , and the reason why I'm saying this is is I didnt find any entries like "Executing the After SQL...." within the "post run....." section of the job log .

@ray : Absolutely no idea ....... :(
Pain is the best teacher, but very few attend his class..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What happens if you change it to two anonymous blocks one after the other rather than embedding them like that? Or run both scripts inside one anonymous block?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumarjit
Participant
Posts: 99
Joined: Fri Oct 12, 2012 7:47 am
Location: Kolkata

Post by kumarjit »

@craig : As I mentioned in the job design , there are three parallel data flows , each of which ending in an OCI stage , the surprise is that the same block is not getting executed (or skipped as I had been saying all this long) if used as a post sql for the second OCI , but when invoked from the first or the third OCI , it runs fine .
As far as splitting up the two blocks is concerned , I didnt give it a try.

Regards
Kumarjit.
Pain is the best teacher, but very few attend his class..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then it seems to me you are firmly in the hands of your support provider.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumarjit
Participant
Posts: 99
Joined: Fri Oct 12, 2012 7:47 am
Location: Kolkata

Post by kumarjit »

Anyways , thanks for your time people.... :)

Regards
Kumarjit.
Pain is the best teacher, but very few attend his class..
Post Reply