Performance tuning in server job

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
rajvarathan
Participant
Posts: 5
Joined: Tue Nov 21, 2006 12:52 am
Location: Chennai

Performance tuning in server job

Post by rajvarathan »

Hi ,
I need to tune a server job which loads data from a remote DB using DBlink. The data is retreived from 2 DBlinks,Unioned and loaded to oracle table.
The query is something like this:
Select * from tableA@DBlink1
where cond1 or cond2 or cond3 or cond4
Union
Select * from TableB@DBlink1.
The job takes more time to run .And in addition to the above query,Upper& NVL conditions are also given in the select sql for some columns.

Pls., suggest an approach to tune this job.Thanks in advance.

Regards,
Varadha.
Regards,
Varadharajan.S
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Start by defining "performance" in an ETL context.

Hint: rows/sec is definitely NOT a meaningful measure of anything.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajvarathan
Participant
Posts: 5
Joined: Tue Nov 21, 2006 12:52 am
Location: Chennai

Re:Performance tuning in server Job

Post by rajvarathan »

Hi Ray,
In ETL context there is one OCA stage , a transformer and an output OCA stage used in the job. Since the remote DB is having millions of records, it takes 1-2 hours for completion...
Regards,
Varadharajan.S
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And your key performance indicators are... ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajvarathan
Participant
Posts: 5
Joined: Tue Nov 21, 2006 12:52 am
Location: Chennai

Re:Performance tuning in server Job

Post by rajvarathan »

The KPI here to be taken care of is load time of records from remote DB(which needs to be reduced).... and throughput.
Regards,
Varadharajan.S
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Load the tables into local text files. Use cat to put them together for UNION ALL. If you need to remove duplicates, there are several strategies available, all of which need the file to be sorted.

And, of course, tune your database queries. Make sure that the tables have been analyzed so that the query optimizer can come up with the best possible plan.
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 »

Break the job into two pieces as noted, so each aspect of it can be 'tuned' - first the extract and then the load itself. Where is the actual bottleneck in your process?
-craig

"You can never have too many knives" -- Logan Nine Fingers
rajvarathan
Participant
Posts: 5
Joined: Tue Nov 21, 2006 12:52 am
Location: Chennai

Post by rajvarathan »

I have loaded the data to separate temp tables(For every query). Do you suggest text files to Oracle table load in reducing the load time?
Regards,
Varadharajan.S
rajvarathan
Participant
Posts: 5
Joined: Tue Nov 21, 2006 12:52 am
Location: Chennai

Post by rajvarathan »

The actual bottleneck is with the load only(As it is from a remote DB).
Regards,
Varadharajan.S
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

With a text file you have the option of sqlldr.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply