ADSM-L

Re: [ADSM-L] SQL querying

2008-07-30 08:57:24
Subject: Re: [ADSM-L] SQL querying
From: "Loon, E.J. van - SPLXM" <Eric-van.Loon AT KLM DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 30 Jul 2008 14:25:41 +0200
Hi Norman!
This query returns the number of failed files, not the filename of the
failed files. That what I was looking for...
The only place I can think of is the activity log and there is only one
index on this table (DATE_TIME).
The performance of a SELECT * FROM ACTLOG is ok, but as soon as you add
WHERE statement to it, it becomes very slow.
Groetjes,
Eric van Loon

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Norman Bloch
Sent: vrijdag 25 juli 2008 15:05
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: SQL querying

Hi Eric,
I use the following query to be warned if there are failed files, on a
given node archive, over the past 24hours, from summary table :
select failed as F_A3 from summary where activity = 'ARCHIVE' and entity
= 'MYNODE' and cast((current_timestamp-start_time) days as integer ) < 1
Replace ARCHIVE with BACKUP and it should also do the trick.
Regards.
Norman



"Loon, E.J. van - SPLXM" <Eric-van.Loon AT KLM DOT COM> Sent by: "ADSM: Dist
Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
23/07/2008 16:35
Please respond to
"ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>


To
ADSM-L AT VM.MARIST DOT EDU
cc

Subject
[ADSM-L] SQL querying






Hi *SM-ers!
I'm trying to create an SQL query to extract failed files from the
activity log.
When I do a select * from actlog all goes well, but as soon as I replace
the * with things like nodename, date_time, message to filter the
output, the query becomes slower and slower.
Is there a possibility in TSM to put the output of a slightly filtered q
actlog (eg. Select * from actlog where originator='CLIENT') in a
temporary table space which one can use in different queries later on?
Thank you very much for you help in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee only. If
you are not the addressee, you are notified that no part of the e-mail
or any attachment may be disclosed, copied or distributed, and that any
other action related to this e-mail or attachment is strictly
prohibited, and may be unlawful. If you have received this e-mail by
error, please notify the sender immediately by return e-mail, and delete
this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or
its employees shall not be liable for the incorrect or incomplete
transmission of this e-mail or any attachments, nor responsible for any
delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch
Airlines) is registered in Amstelveen, The Netherlands, with registered
number 33014286
**********************************************************************
**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**********************************************************************

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