SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
SQL querying
Author Message
Post 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
**********************************************************************

Post SQL querying 
On Wednesday 23 July 2008, Loon, E.J. van - SPLXM wrote:
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?
It is faster / easier to do a select * from actlog and dump the output to a
file. I prefer perl to process the content of the file.


Stef

Post SQL querying 
Hi Stef!
I know, but I want reports only to be generated by TSMOR, which cannot
use third-party tools.
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L < at > VM.MARIST.EDU] On Behalf Of
Stef Coene
Sent: woensdag 23 juli 2008 19:55
To: ADSM-L < at > VM.MARIST.EDU
Subject: Re: SQL querying

On Wednesday 23 July 2008, Loon, E.J. van - SPLXM wrote:
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?
It is faster / easier to do a select * from actlog and dump the output
to a file. I prefer perl to process the content of the file.


Stef
**********************************************************************
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
**********************************************************************

Post 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.COM>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L < at > VM.MARIST.EDU>
23/07/2008 16:35
Please respond to
"ADSM: Dist Stor Manager" <ADSM-L < at > VM.MARIST.EDU>


To
ADSM-L < at > VM.MARIST.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
**********************************************************************

Post SQL querying 
and this one is running in TSM OR of course !

__________________

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.COM>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L < at > VM.MARIST.EDU>
23/07/2008 16:35
Please respond to
"ADSM: Dist Stor Manager" <ADSM-L < at > VM.MARIST.EDU>


To
ADSM-L < at > VM.MARIST.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
**********************************************************************

Post SQL querying 
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.EDU] On Behalf Of
Norman Bloch
Sent: vrijdag 25 juli 2008 15:05
To: ADSM-L < at > VM.MARIST.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.COM> Sent by: "ADSM: Dist
Stor Manager" <ADSM-L < at > VM.MARIST.EDU>
23/07/2008 16:35
Please respond to
"ADSM: Dist Stor Manager" <ADSM-L < at > VM.MARIST.EDU>


To
ADSM-L < at > VM.MARIST.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
**********************************************************************

Display posts from previous:
Reply to topic Page 1 of 1
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
  


Magic SEO URL for phpBB