ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SELECT statement without PASSTHRU in WMB 6.0 - URGENT

Post new topic  Reply to topic
 SELECT statement without PASSTHRU in WMB 6.0 - URGENT « View previous topic :: View next topic » 
Author Message
santy
PostPosted: Fri Jul 17, 2009 2:58 pm    Post subject: SELECT statement without PASSTHRU in WMB 6.0 - URGENT Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 141

Hi,

I'm using SELECT statement to select the data from Database without PASSTHRU. Is there any possibility of DB deadlock ?

or what are the disadvantages of using such SELECT's.

can anybody please suggest urgently?

Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 17, 2009 11:13 pm    Post subject: Re: SELECT statement without PASSTHRU in WMB 6.0 - URGENT Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

santy wrote:
I'm using SELECT statement to select the data from Database without PASSTHRU. Is there any possibility of DB deadlock ?


There's always a passibility of DB deadlock. This is true for using PASSTHRU or not PASSTHRU, using WMB or not using WMB. Any access of the database by any means can cause deadlock, the DBAs will act to prevent this and the normal strategies to avoid it remain true for WMB as they would for any application.

In the same way doing a select in WMB (via PASSTHRU or not) that results in a Cartisian join is as bad an idea as it is in a C or Java app.

santy wrote:
or what are the disadvantages of using such SELECT's.


What are the advantages of using PASSTHRU?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Jul 18, 2009 8:30 am    Post subject: Re: SELECT statement without PASSTHRU in WMB 6.0 - URGENT Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

vitor wrote:


What are the advantages of using PASSTHRU?


The biggest (IMHO) advantage of using PASSTHRU comes when you are having READ LOCK problems on a table. This can easily rear its ugly head if you are using a flow configured to use additiional instances.

Using PASSTHRU, you can add the required SQL for that database so that the read is performed without implicit locks being granted.
It would be difficult to do that in Pure ESQL as different databases use a different syntax to acheive the same ends.
You could possibly do it via stired procedures but different companies have different approaches to the use of them. One place I have done work for virtually insists that EVERYTHING is done by SP even simple selects from DUAL (oracle). Another is the opposite and unless you lick the shoes of the head DBA for a year or so they really uppity when they find SP's being crated on their systems (even in a Dev environment)
Anyway, thats my 2c worth.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sat Jul 18, 2009 9:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

So that's the poster's answer then....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jbanoop
PostPosted: Sun Jul 19, 2009 7:11 am    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

I guess using SELECT without PASSTHRU makes the ESQL code DB independant while PASSTHRU statements would be specific to different DB products.
Back to top
View user's profile Send private message Yahoo Messenger
smdavies99
PostPosted: Sun Jul 19, 2009 7:34 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

jbanoop wrote:
I guess using SELECT without PASSTHRU makes the ESQL code DB independant while PASSTHRU statements would be specific to different DB products.


That is certainly true.
Broker is aimed at high performance systems. Risking the wrath of some DBA's i have worked with to ensure DB portability (by not using PASSTHRU) is not something I'd want to happen every day. To me, providing the most efficient and risk free solutino to a problem/requirement is my aim. However, if the powers that be (usually a PHB) dictate otherwise then so be it. As long as I have done the requisite CYA I'd be happy.

_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SELECT statement without PASSTHRU in WMB 6.0 - URGENT
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.