Dubious 'Standards'

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Dubious 'Standards'

Post by rameshrr3 »

There exists a recommendation from the architecture team to use only Stored Procedures for all Database access in our datastage jobs ( Yes - no SQL queries in datastage)- Every data request from a database will need to be executed via a stored proc ( which apparently the DBA has better control on and can tune or maintain in case of performance issues) .

Is that approach going to compromise performnace ? I believe that Stored Proc Stages probably use ODBC connectivity rather than the NATIVE database API ( OCI/CLI/OpenConnect etc) - and even though the ODBC access uses wire protocol drivers , i still feel this 'recommendation' may throw unexpected surprises - including longer development/ testing times, increased complexity of job deployment and migration etc ,more DB objects to maintain etc.. apart from the potential for performance issues by skipping native connectors.. can anybody let me know for the PRO's and CONS of this approach ..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This "standard" is extremely dubious in my opinion, and showing ignorance of how DataStage can work best.

Do we have a justification from the architects for this decision? (I'm sure the DBA's won't agree with it.)

DataStage can perform "direct read" and "direct write", bypassing the SQL engine completely. This streams data from the table without limiting the ability to limit the rows and columns delivered.

If what's sought is the ability to audit all access to the data, this can be accomplished in other ways, such as using Guardium software - which is specifically purposed to this task.
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 »

To quote some old movie: They have chosen... poorly. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
tcj
Premium Member
Premium Member
Posts: 98
Joined: Tue Sep 07, 2004 6:57 pm
Location: QLD, Australia
Contact:

Post by tcj »

Seems like either the architects or DBA's don't trust their developers to write SQL correctly.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

...and forget about Data Lineage with a 100% SP solution.... Data Lineage can be done with SP's but not without a whole lot more effort than just doing things in DataStage either via auto generation of SQL or even user-defined.

I talk to sites who are in the process of moving away from unmanageable sp's....

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Thanks all for your suggestions on this one.. Yes we do have an architecture team thats wholly unfamiliar with datastage - and they've had performance issues with SQl in the past - and these factors may have contributed to this 'standard'.. This being more of a data and process integration project that pure DW.. It looks like for the moment they will not object to writes using Insert/Update or direct load- which is a relief given their earlier stand .. but I'll probably factor in the other opinions posted here to justify the need for direct SQL reads using native connectors - but that I guess will be a stretch : ( ..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I wonder what makes them think inefficient SQL buried in stored procedures would be any better than inefficient SQL not buried in stored procedures?
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Apparently a DBA well versed in SQL would have better control on Stored Procs with bad SQL that he can see in the DB, that try to change the bad SQL that resides in the datastage job - there may be a DBA who isn't familiar with datastage- so the saying goes from the powers that be :cry: ...
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

It's non-negotiable decisions like that which ultimately lead to higher costs of ownership.....there are pros and cons to everything. This same site will potentially be in a situation 3 years from now when they have serious DataStage experience but their long time DBAs have all left the company....and no one will know how to review the SQL.......

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply