ADSM-L

Re: SELECT statement crashes server

2005-01-14 11:28:53
Subject: Re: SELECT statement crashes server
From: "Warren, Matthew (Retail)" <Matthew.Warren AT POWERGEN.CO DOT UK>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 14 Jan 2005 16:28:11 -0000
This was pointed out to me :)

I know its redundant, it's just habit. A bad one though, I guess..

_-'-_
  -|-


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Nicholas Cassimatis
Sent: Friday, January 14, 2005 4:17 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: SELECT statement crashes server

For the error, you need to use  >=90 , not =>90

Also, why are you making the select harder than it needs to be?

select volume_name,pct_reclaim from volumes where
stgpool_name='UKS_NORM_PRIM' and pct_reclaim>=90

Nick Cassimatis
nickpc AT us.ibm DOT com

He who laughs last has a good backup.



                                                                       
             "Warren, Matthew                                          
             (Retail)"                                                 
             <Matthew.Warren@P
To
             OWERGEN.CO.UK>            ADSM-L AT VM.MARIST DOT EDU            
             Sent by: "ADSM:
cc
             Dist Stor                                                 
             Manager"
Subject
             <[email protected]         Re: SELECT statement crashes
server
             .EDU>                                                     
                                                                       
                                                                       
             01/14/2005 10:36                                          
             AM                                                        
                                                                       
                                                                       
             Please respond to                                         
             "ADSM: Dist Stor                                          
                 Manager"                                              
                                                                       
                                                                       




Hallo,

I have noticed the actual select statement is incorrect....

The one that crashes the server;

select "volume_name,pct_reclaim from ( select * from volumes where
stgpool_name='UKS_NORM_PRIM') where pct_reclaim=>90"

should read

select "volume_name,pct_reclaim from volumes where volume_name in
(select volume_name from volumes where stgpool_name='UKS_NORM_PRIM') and
pct_reclaim=>90"



..I havent tried that command yet , but I still would not expect a
syntax error to kill  the server process.

It has been confirmed that the select statement that is in error also
crashes windows 5.2.2.3 TSM servers.

Matt.

_-'-_
  -|-


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Andy Huebner
Sent: Friday, January 14, 2005 2:45 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: SELECT statement crashes server

We use the following select with no problems.
AIX 5.1
TSM 5.2.2.4
select volume_name,stgpool_name,pct_reclaim,est_capacity_mb from volumes
where pct_reclaim >= 50 order by stgpool_name
Andy Huebner

 -----Original Message-----
From:              ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU]
On Behalf
Of Warren, Matthew (Retail)
Sent:        Friday, January 14, 2005 8:35 AM
To:          ADSM-L AT VM.MARIST DOT EDU
Subject:           [ADSM-L] SELECT statement crashes server

Hallo *SM'ers

AIX 5.2.0.0
TSM server 5.2.2.3

I have discovered a select command that will crash our server instantly
every time..

Could anyone confirm they get the same behaviour, or that it's just a
quirk of our site.

I originally tried this;

>select volume_name,pct_reclaim from (select * from volumes where
stgpool_name='UKS_NORM_PRIM') where pct_reclaim=>90

But TSM complains about the first '(' being an invalid token... It
shouldn't be.

So, after confirming and doing succesfull sub-selects in other select
commands, I thought it may have something to do with the '>' being the
redirect symbol.  So I wrapped part of the command in double-quotes

When I try this command;

>select "volume_name,pct_reclaim from ( select * from volumes where
stgpool_name='UKS_NORM_PRIM') where pct_reclaim=>90"

The server instantly falls over.....

Can anyone else repeat this? I have tried a couple of very simple select
commands with double quotes around them (none using '>'  as yet) and
only the above select command has made the TSM server fall over so far..
but my testing is far from comprehensive as yet.

Have Fun!

Thanks,


Matt.
_-'-_
  -|-




___________________________ Disclaimer Notice __________________________
This message and any attachments are confidential and should only be
read by those to whom they are addressed. If you are not the intended
recipient, please contact us, delete the message from your computer and
destroy any copies. Any distribution or copying without our prior
permission is prohibited.

Internet communications are not always secure and therefore Powergen
Retail Limited does not accept legal responsibility for this message.
The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely those
of the author and do not necessarily represent those of Powergen Retail
Limited.

Registered addresses:

Powergen Retail Limited, Westwood Way, Westwood Business Park, Coventry,
CV4 8LG.
Registered in England and Wales No: 3407430

Telephone +44 (0) 2476 42 4000
Fax +44 (0) 2476 42 5432


This e-mail (including any attachments) is confidential and may be
legally privileged. If you are not an intended recipient or an
authorized representative of an intended recipient, you are prohibited
from using, copying or distributing the information in this e-mail or
its attachments. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and delete all copies of
this message and any attachments.
Thank you.

<Prev in Thread] Current Thread [Next in Thread>