Re: SQL statement for multiple classes

2021-03-12 Thread Skylar Thompson
odename1 1123123131223 > > Thanks for your help! > > Kind regards, > Eric van Loon > Air France/KLM Storage & Backup > > -Original Message- > From: ADSM: Dist Stor Manager On Behalf Of Skylar > Thompson > Sent: vrijdag 12 maart 2021 16:49 > To

Re: SQL statement for multiple classes

2021-03-12 Thread Loon, Eric van (ITOP NS) - KLM
ent: Friday, March 12, 2021 11:28 AM To: ADSM-L@VM.MARIST.EDU Subject: [EXTERNAL] [ADSM-L] SQL statement for multiple classes Hi everybody, I'm trying to figure out how to create a SQL query to retrieve the amount of files, per management class, per node in just one query. T

Re: SQL statement for multiple classes

2021-03-12 Thread Loon, Eric van (ITOP NS) - KLM
U Subject: Re: SQL statement for multiple classes Hi Eric, You can part of the way there with GROUP BY: SELECT node_name,class_name,COUNT(*) FROM archives GROUP BY node_name,class_name This will give you one row per (node_name,class_name) tuple. In order to get row values as columns, though, you n

Re: SQL statement for multiple classes

2021-03-12 Thread Marc Lanteigne
L@VM.MARIST.EDU Subject: [EXTERNAL] [ADSM-L] SQL statement for multiple classes Hi everybody, I'm trying to figure out how to create a SQL query to retrieve the amount of files, per management class, per node in just one query. The ideal output would be: Nodename Class1

Re: SQL statement for multiple classes

2021-03-12 Thread Skylar Thompson
Hi Eric, You can part of the way there with GROUP BY: SELECT node_name,class_name,COUNT(*) FROM archives GROUP BY node_name,class_name This will give you one row per (node_name,class_name) tuple. In order to get row values as columns, though, you need to do a pivot (aka crosstab), which I'm not

SQL statement for multiple classes

2021-03-12 Thread Loon, Eric van (ITOP NS) - KLM
Hi everybody, I'm trying to figure out how to create a SQL query to retrieve the amount of files, per management class, per node in just one query. The ideal output would be: Nodename Class1 Class2 Class3 Mynode1 1234

Re: SQL STATEMENT

2018-01-22 Thread Rick Adamson
24 hours) -Rick Adamson -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Lepre, James Sent: Monday, January 22, 2018 9:43 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] SQL STATEMENT * This email originated outside of the organization. Use caut

Re: SQL STATEMENT

2018-01-22 Thread Marc Lanteigne
: Monday to Friday, 7:00 to 16:00 Eastern Follow me on: Twitter, developerWorks, LinkedIn -Original Message- From: Lepre, James [mailto:james.le...@solixinc.com] Sent: Monday, January 22, 2018 10:45 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] SQL STATEMENT Hey Everyone - I am looking

SQL STATEMENT

2018-01-22 Thread Lepre, James
Hey Everyone - I am looking for a sql select statement that show completions, missed, and failures of daily schedules. This output should be similar to the q event command Thank you in advance for the assistance James Lepre

Re: SQL statement

2016-04-12 Thread Robert Talda
should get > the job done. > > On Tue, Apr 12, 2016 at 01:39:03PM +, Robert Talda wrote: >> EJ: >> >> Wish I could be as helpful this time. Sadly, I???ve not found a way to >> generate this output with a single SQL statement - the TSM SQL engine >>

Re: SQL statement

2016-04-12 Thread Skylar Thompson
2016 at 01:39:03PM +, Robert Talda wrote: > EJ: > > Wish I could be as helpful this time. Sadly, I???ve not found a way to > generate this output with a single SQL statement - the TSM SQL engine > doesn???t seem to support the concept of OUTER JOIN. I???ve had to r

Re: SQL statement

2016-04-12 Thread Robert Talda
EJ: Wish I could be as helpful this time. Sadly, I’ve not found a way to generate this output with a single SQL statement - the TSM SQL engine doesn’t seem to support the concept of OUTER JOIN. I’ve had to resort to doing 2 queries - one of the occupancy table and one of the filespaces

Re: SQL statement

2016-04-12 Thread Loon, EJ van (ITOPT3) - KLM
n for your help! Kind regards, Eric van Loon Air France/KLM Storage Engineering -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Robert Talda Sent: maandag 11 april 2016 19:34 To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement EJ: Are you sur

Re: SQL statement

2016-04-11 Thread Robert Talda
Apr 11, 2016, at 10:07 AM, Loon, EJ van (ITOPT3) - KLM > wrote: > > Hi guys! > I'm trying to create a SQL statement which should list all filespaces, along > with their occupancy, with a backup date longer than 2 days ago, but only for > nodes with an last access date of

SQL statement

2016-04-11 Thread Loon, EJ van (ITOPT3) - KLM
Hi guys! I'm trying to create a SQL statement which should list all filespaces, along with their occupancy, with a backup date longer than 2 days ago, but only for nodes with an last access date of today or yesterday. If the node hasn't contacted the server for two days or more it

Re: SQL statement

2016-02-01 Thread Shawn Gratz
Unsubscribe. -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Erwann SIMON Sent: Saturday, January 30, 2016 4:03 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement Hi Eric, You're absolutely right, the SQL resultas are just to be use

Re: SQL statement

2016-01-30 Thread Erwann SIMON
rwann SIMON - Mail original - De: "EJ van Loon (ITOPT3) - KLM" À: ADSM-L@VM.MARIST.EDU Envoyé: Vendredi 29 Janvier 2016 16:09:22 Objet: Re: [ADSM-L] SQL statement Hi Erwann! As a matter of fact this one requires a little more care. Null can be the result of a filespace

Re: SQL statement

2016-01-29 Thread Skylar Thompson
D ((o.type<>'Arch' AND f.backup_end IS NULL) - OR days(f.backup_end)<(days(current_date)-30)) - ORDER BY o.physical_mb DESC On Fri, Jan 29, 2016 at 03:43:24PM +, Rhodes, Richard L. wrote: > If you get to a definitive sql statement, would love to see it! >

Re: SQL statement

2016-01-29 Thread Rhodes, Richard L.
If you get to a definitive sql statement, would love to see it! Rick -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Skylar Thompson Sent: Friday, January 29, 2016 10:14 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement You could get a

Re: SQL statement

2016-01-29 Thread Skylar Thompson
> Erwann SIMON > Sent: donderdag 28 januari 2016 16:46 > To: ADSM-L@VM.MARIST.EDU > Subject: Re: SQL statement > > Hi Eric, > > You maybe should add a condition if backup_end is null > > -- > Best regards / Cordialement / > Erwann SIMON > &g

Re: SQL statement

2016-01-29 Thread Loon, EJ van (ITOPT3) - KLM
[mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Erwann SIMON Sent: donderdag 28 januari 2016 16:46 To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement Hi Eric, You maybe should add a condition if backup_end is null -- Best regards / Cordialement / مع تحياتي Erwann SIMON - Mail original - D

Re: SQL statement

2016-01-28 Thread William Sefranek
You could do that but the query does not fail for filespaces with a BACKUP_END of null it just lists a blank value for DAYS_SINCE_BACKUP On 1/28/2016 10:46 AM, Erwann SIMON wrote: Hi Eric, You maybe should add a condition if backup_end is null -- William Sefranek University of Buffalo Enterp

Re: SQL statement

2016-01-28 Thread Michael Hedden
Hi,I'm looking for some help on SQL statement as well. Would you have a statement that lists just the amount of active data a node has stored - not the active and inactive... Thank youMichael On Thursday, January 28, 2016 10:08 AM, William Sefranek wrote: Eric, One other lin

Re: SQL statement

2016-01-28 Thread Loon, EJ van (ITOPT3) - KLM
DSM-L@VM.MARIST.EDU Subject: Re: SQL statement Hi Eric, You maybe should add a condition if backup_end is null -- Best regards / Cordialement / مع تحياتي Erwann SIMON - Mail original - De: "EJ van Loon (ITOPT3) - KLM" À: ADSM-L@VM.MARIST.EDU Envoyé: Jeudi 28 Janvier 2016 16:

Re: SQL statement

2016-01-28 Thread Skylar Thompson
hysical_mb/1024) as int) as "GB Stored" - > >> FROM - > >> filespaces f, - > >> occupancy o - > >> WHERE - > >> o.node_name=f.node_name - > >> AND o.filespace_name=f.filespace_name - > >> AND days(f.backup_end)<(da

Re: SQL statement

2016-01-28 Thread Skylar Thompson
egards / Cordialement / > Erwann SIMON > > - Mail original - > De: "EJ van Loon (ITOPT3) - KLM" > ?: ADSM-L@VM.MARIST.EDU > Envoy?: Jeudi 28 Janvier 2016 16:20:57 > Objet: Re: [ADSM-L] SQL statement > > Hi Skylar! > This is exactly what I

Re: SQL statement

2016-01-28 Thread King, Harold Clyde (Hal)
aces f, - >> occupancy o - >> WHERE - >> o.node_name=f.node_name - >> AND o.filespace_name=f.filespace_name - >> AND days(f.backup_end)<(days(current_date)-30) - >> ORDER BY o.physical_mb DESC >> >> On Thu, Jan 28, 2016 at 02:43:54PM +,

Re: SQL statement

2016-01-28 Thread Erwann SIMON
Hi Eric, You maybe should add a condition if backup_end is null -- Best regards / Cordialement / مع تحياتي Erwann SIMON - Mail original - De: "EJ van Loon (ITOPT3) - KLM" À: ADSM-L@VM.MARIST.EDU Envoyé: Jeudi 28 Janvier 2016 16:20:57 Objet: Re: [ADSM-L] SQL statement Hi Sk

Re: SQL statement

2016-01-28 Thread Loon, EJ van (ITOPT3) - KLM
@VM.MARIST.EDU Subject: Re: SQL statement Eric, One other line you can add to the select section is: DAYS(current_timestamp)-DAYS(f.BACKUP_END) AS DAYS_SINCE_BACKUP - Which will list the number of days since this filespace completed a backup. I use that in our query to list old filespaces due for cleanup

Re: SQL statement

2016-01-28 Thread Loon, EJ van (ITOPT3) - KLM
To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement Hi EJ, I think this will do the trick: SELECT - f.node_name, - f.filespace_name, - f.backup_end, - CAST(ROUND(o.physical_mb/1024) as int) as "GB Stored" - FROM - filespaces f, - occupancy o - WHERE - o.node_name=f

Re: SQL statement

2016-01-28 Thread William Sefranek
- AND o.filespace_name=f.filespace_name - AND days(f.backup_end)<(days(current_date)-30) - ORDER BY o.physical_mb DESC On Thu, Jan 28, 2016 at 02:43:54PM +, Loon, EJ van (ITOPT3) - KLM wrote: Hi guys! I'm trying to join the filespaces and occupancy tables in one SQL statement, but I get

Re: SQL statement

2016-01-28 Thread Skylar Thompson
e - AND days(f.backup_end)<(days(current_date)-30) - ORDER BY o.physical_mb DESC On Thu, Jan 28, 2016 at 02:43:54PM +, Loon, EJ van (ITOPT3) - KLM wrote: > Hi guys! > I'm trying to join the filespaces and occupancy tables in one SQL statement, > but I get stuck on the poin

SQL statement

2016-01-28 Thread Loon, EJ van (ITOPT3) - KLM
Hi guys! I'm trying to join the filespaces and occupancy tables in one SQL statement, but I get stuck on the point where I want to calculate with the amount of days... I would like to create a list of filespaces (node_name, filespace_name,backup_end) which are not backed up for more th

Re: SQL statement not working

2015-07-01 Thread Loon, EJ van (ITOPT3) - KLM
@VM.MARIST.EDU Subject: Re: SQL statement not working you’re missing the from clause of your sql statement. > Op 1 jul. 2015, om 09:49 heeft Loon, EJ van (ITOPT3) - KLM > het volgende geschreven: > > Hi guys! > I'm trying to select all ANE4987E messages for all nodes with the tex

Re: SQL statement not working

2015-07-01 Thread Remco Post
you’re missing the from clause of your sql statement. > Op 1 jul. 2015, om 09:49 heeft Loon, EJ van (ITOPT3) - KLM > het volgende geschreven: > > Hi guys! > I'm trying to select all ANE4987E messages for all nodes with the text > 'Component Team Windows' in t

SQL statement not working

2015-07-01 Thread Loon, EJ van (ITOPT3) - KLM
Hi guys! I'm trying to select all ANE4987E messages for all nodes with the text 'Component Team Windows' in the contact field. For some reason I cannot get the SQL statement to work. What am I doing wrong? select actlog.date_time, actlog.nodename, actlog.message, nodes.node_name,

Re: SQL statement to list fs not backed up sorted on size

2014-03-18 Thread Ronald Le Large
U] On Behalf Of Loon, EJ van (SPLXM) - KLM Sent: Monday, March 17, 2014 5:35 PM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SQL statement to list fs not backed up sorted on size Hi Skylar! Thank you very much for your help! The end result looks like this, just so it's available for others in

Re: SQL statement to list fs not backed up sorted on size

2014-03-17 Thread Loon, EJ van (SPLXM) - KLM
: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Skylar Thompson Sent: donderdag 13 maart 2014 17:37 To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement You'll want to do a join across both tables on the node name. Something like this: SELECT f.node_name,f.filespace_name,o.ph

Re: SQL statement

2014-03-16 Thread Grant Street
LM wrote: Dear TSM-ers, I'm trying to generate a SQL statement to create a list of filespaces which are not backed up for more than 30 days, sorted on their occupancy size. This is what I've got so far: select node_name, filespace_name, physical_mb from occupancy where filespa

Re: SQL statement

2014-03-13 Thread Skylar Thompson
ent_date)-30)) - ORDER BY o.physical_mb DESC On Thu, Mar 13, 2014 at 05:16:37PM +0100, Loon, EJ van (SPLXM) - KLM wrote: > Dear TSM-ers, > > I'm trying to generate a SQL statement to create a list of filespaces > which are not backed up for more than 30 days, sorted on the

Re: SQL statement

2014-03-13 Thread Rick Harderwijk
Can't you combine a node name and a filespace name to a unique combination? Cheers, Rick On Thu, Mar 13, 2014 at 5:16 PM, Loon, EJ van (SPLXM) - KLM < eric-van.l...@klm.com> wrote: > Dear TSM-ers, > > I'm trying to generate a SQL statement to create a list of filespac

SQL statement

2014-03-13 Thread Loon, EJ van (SPLXM) - KLM
Dear TSM-ers, I'm trying to generate a SQL statement to create a list of filespaces which are not backed up for more than 30 days, sorted on their occupancy size. This is what I've got so far: select node_name, filespace_name, physical_mb from occupancy where filespace_name

Re: SQL Statement

2014-01-06 Thread Loon, EJ van - SPLXM
Hi Jeff! Thank you VERY much for your reply! You did put me on the right track. It resulted in the most complex SQL statement I ever created: select a.node_name as "Nodename",count(*) as - "Amount of backup files older than 30 days" from backups a,nodes b - where ((days(

Re: SQL statement

2013-12-19 Thread apaschal5
. - Reply message - From: "Loon, EJ van - SPLXM" To: Subject: [ADSM-L] SQL statement Date: Thu, Dec 19, 2013 06:21 Hi guys! I'm trying to make an SQL statement which uses the Nodes table and the Backups table. It should do a count (*) from backups for files older than 30

SQL statement

2013-12-19 Thread Loon, EJ van - SPLXM
Hi guys! I'm trying to make an SQL statement which uses the Nodes table and the Backups table. It should do a count (*) from backups for files older than 30 days but only when the Contact field starts with 'Airpas". Here is what I got so far: select nodes.node_name as "N

Re: Re: SQL statement generates an ANR9999D

2013-12-05 Thread David Bronder
works. Looks like a bug to me... Kind regards, Eric van Loon AF/KLM Storage Engineering -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Ronald Le Large Sent: donderdag 5 december 2013 14:17 To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement gener

Re: SQL statement generates an ANR9999D

2013-12-05 Thread Loon, EJ van - SPLXM
onald Le Large Sent: donderdag 5 december 2013 14:17 To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement generates an ANRD Eric, I can execute the sql without receiving the ANR I run it on V 6.3.3.0 Kind regards, Ronald Le Large Information technology officer Storage Management

Re: SQL statement generates an ANR9999D

2013-12-05 Thread Ronald Le Large
Behalf Of Loon, EJ van - SPLXM Sent: Thursday, December 05, 2013 2:07 PM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] SQL statement generates an ANRD Hi TSM-ers! I'm trying to build an SQL statement to measure expiration performance, but I'm experiencing an ANRD error. I stripped

SQL statement generates an ANR9999D

2013-12-05 Thread Loon, EJ van - SPLXM
Hi TSM-ers! I'm trying to build an SQL statement to measure expiration performance, but I'm experiencing an ANRD error. I stripped it down to the following statement: select cast(timestampdiff(2,end_time-start_time) as decimal(4,0)) from summary where activity='EXPIRATION&

Re: TSM version 6.3 SQL statement is failing

2013-09-17 Thread Grigori Solonovitch
@VM.MARIST.EDU] On Behalf Of Richard Rhodes Sent: 17 09 2013 2:24 PM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] TSM version 6.3 SQL statement is failing I believe that the problem is in the where clause where you cast to "days". I don't believe you can do that in db2. To fix my s

Re: TSM version 6.3 SQL statement is failing

2013-09-17 Thread Richard Rhodes
7/2013 02:42 AM Subject: TSM version 6.3 SQL statement is failing Sent by:"ADSM: Dist Stor Manager" I am not very cool in DB2 SQL and I found next SQL statement failing in TSM version 6 in spite of fact it was working in TSM version 5 for years: select node_name , f

TSM version 6.3 SQL statement is failing

2013-09-16 Thread Grigori Solonovitch
I am not very cool in DB2 SQL and I found next SQL statement failing in TSM version 6 in spite of fact it was working in TSM version 5 for years: select node_name , filespace_id , filespace_name , filespace_type , backup_start , backup_end , cast ( MINUTE ( backup_end - backup_start) as

Re: TSM 6.2 SQL statement

2012-03-08 Thread Clark, Margaret
sday, March 07, 2012 1:40 PM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] TSM 6.2 SQL statement We run this and other SQL statements that return dates in the form of days. This SQL query works on 5.4, but does not work on 6.2. I am hoping one of the more SQL savvy admins can quickly help me w

Re: TSM 6.2 SQL statement

2012-03-08 Thread Huebner,Andy,FORT WORTH,IT
t_ti This is the sql statement I tried: select SUBSTR(CAST(VOLUME_NAME AS char(10)),1,10) as VOLUME_NAME, \ SUBSTR(CAST(stgpool_name AS char(18)),1,18) as STG, PCT_UTILIZED, \ EST_CAPACITY_MB, \ TIMESTAMPDIFF(16,CHAR(current_timestamp-date(last_write_date))) as xdays, \ SUBSTR(CAST(status AS char(10)

Re: TSM 6.2 SQL statement

2012-03-07 Thread Ankur Patel
r by last_write_date regards, Ankur Patel > -Original Message- > From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of > Huebner,Andy,FORT WORTH,IT > Sent: Thursday, 8 March 2012 8:40 AM > To: ADSM-L@VM.MARIST.EDU > Subject: [ADSM-L] TSM 6.2 SQL statement >

TSM 6.2 SQL statement

2012-03-07 Thread Huebner,Andy,FORT WORTH,IT
We run this and other SQL statements that return dates in the form of days. This SQL query works on 5.4, but does not work on 6.2. I am hoping one of the more SQL savvy admins can quickly help me with this so I can fix the rest of the queries we use. The lines that don't work and I do not kno

Re: sql statement

2010-06-04 Thread Thomas Denier
-Ashish Sharma wrote: - >Could anyone provide me a sql statement which can check if any copy >storage pool volume is mounted in tape drive at the moment? I need >this to configure script for my DRP. select volume_name from drives where volune_name in (select volume_name from

Re: SQL statement

2010-06-04 Thread Prather, Wanda
Ooh, cool! Thanks! -Original Message- From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of Cowen, Richard Sent: Friday, June 04, 2010 11:31 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SQL statement Connecting directly to DB2: Database Connection Information

Re: SQL statement

2010-06-04 Thread Cowen, Richard
tgpools where stgpool_name like '%\_%' ANR2034E SELECT: No match found using this criteria. ANS8001I Return code 11. -Original Message- From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of Richard Sims Sent: Friday, June 04, 2010 11:02 AM To: ADSM-L@VM.MARIST.EDU

Re: SQL statement

2010-06-04 Thread Cowen, Richard
rist.edu] On Behalf Of Richard Sims Sent: Friday, June 04, 2010 11:02 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SQL statement On Jun 4, 2010, at 10:41 AM, Prather, Wanda wrote: > Ow. > Richard, do you know if it works this way still in V6? Hi, Wanda - We remain a v5 shop, pending a l

sql statement

2010-06-04 Thread ashish sharma
Hello, Could anyone provide me a sql statement which can check if any copy storage pool volume is mounted in tape drive at the moment? I need this to configure script for my DRP. Thanks in advance. -- Best Regards Ashish Sharma ST Microelectronics Ltd. 919717003853

Re: SQL statement

2010-06-04 Thread Richard Sims
On Jun 4, 2010, at 10:41 AM, Prather, Wanda wrote: > Ow. > Richard, do you know if it works this way still in V6? Hi, Wanda - We remain a v5 shop, pending a lot of infrastructure decisions to be made by a new VP, so I haven't that experience. I would expect DB2 to be much more conformant to

Re: SQL statement

2010-06-04 Thread Prather, Wanda
Ow. Richard, do you know if it works this way still in V6? -Original Message- From: ADSM: Dist Stor Manager [mailto:ads...@vm.marist.edu] On Behalf Of Richard Sims Sent: Friday, June 04, 2010 10:36 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SQL statement I worked with Eric on

Re: SQL statement

2010-06-04 Thread Loon, EJ van - SPLXM
VERY much! Kind regards, Eric van Loon KLM Royal Dutch Airlines -Original Message- From: Richard Sims [mailto:r...@bu.edu] Sent: vrijdag 4 juni 2010 16:07 To: Loon, EJ van - SPLXM Subject: Re: SQL statement On Jun 4, 2010, at 9:23 AM, Loon, EJ van - SPLXM wrote: > Hi Richard! > T

Re: SQL statement

2010-06-04 Thread Richard Sims
I worked with Eric on this. In case anyone else runs into similar... File system directory and file names may well contain underscore (_) characters, which is fine. What may not be realized, however, is that in a Select LIKE, an underscore is a wildcard for any single character. An example of

SQL statement

2010-06-04 Thread Loon, EJ van - SPLXM
Hi TSM-ers! I'm trying to create a SQL query to check whether all Oracle files (Oracle databases are backed up by the TDP client) are excluded from the standard BA client backup. Our database admins recommends the follow exclude statements to be added to the BA client: /mount/data*/ora_*/log /moun

Re: SQL statement

2005-11-23 Thread goc
- Original Message - From: "Loon, E.J. van - SPLXM" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 23, 2005 10:44 AM Subject: SQL statement Hi *SM-ers! My management would like to know how much they can save by changing our retention periods. Currently, we store mos

Re: SQL statement

2005-11-23 Thread Richard Sims
On Nov 23, 2005, at 4:44 AM, Loon, E.J. van - SPLXM wrote: Can anybody help me with creating a SQL statement which tells me how much inactive backup data is stored on the TSM server for a specific node? Eric - See "Inactive files, number and bytes" in the TSM Wiki or ADSM

Re: SQL statement

2005-11-23 Thread Remco Post
g to create a SQL statement to > retrieve this information. It seems that the backups table does > contain information about a backup being active or inactive, but it > does not contain the file size. Can anybody help me with creating a > SQL statement which tells me how much inactive backu

SQL statement

2005-11-23 Thread Loon, E.J. van - SPLXM
Hi *SM-ers! My management would like to know how much they can save by changing our retention periods. Currently, we store most of our backups for 14 days and I will have to find out how much we save by changing this to 7 days. I'm trying to create a SQL statement to retrieve this inform

Re: SQL statement

2005-09-15 Thread Leigh Reed
Joni, Try order by "date" Leigh -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Joni Moyer Sent: 15 September 2005 14:53 To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] SQL statement Hi Everyone! Does anyone know what I am doing wrong

AW: [ADSM-L] SQL statement

2005-09-15 Thread Thomas Rupp
ld do the trick. HTH Thomas Rupp -Ursprüngliche Nachricht- Von: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] Im Auftrag von Joni Moyer Gesendet: Donnerstag, 15. September 2005 15:53 An: ADSM-L@VM.MARIST.EDU Betreff: [ADSM-L] SQL statement Hi Everyone! Does anyone know what I am doing wro

SQL statement

2005-09-15 Thread Joni Moyer
Hi Everyone! Does anyone know what I am doing wrong with this sql statement? I am trying to get the file info. but it all comes down to the date. I just want to report on the date that the data was archived before 6/3/2005, but I can't figure out what I am doing wrong. Any suggestions? T

Re: SQL statement help

2005-03-01 Thread JR Trimark
Andy, Thank you very much for your help, the results are exactly what I was looking for. Andrew Raibeck <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" 02/28/2005 04:06 PM Please respond to "ADSM: Dist Stor Manager" To ADSM-L@VM.MARIST.EDU cc Subject

Re: SQL statement help

2005-02-28 Thread Mark D. Rodriguez
t node_name from events where - (substr(cast(scheduled_start as char(26)),1,19) between '2005-01-31 15:39:26' and - substr(cast(current_timestamp as char(26)),1,19) and - LENGTH(domain_name) IS NOT NULL and - (status='Failed' OR status='Missed'))) Any ideas on why the 2nd/3rd sql statement does not return anything? thanks JR

Re: SQL statement help

2005-02-28 Thread Andrew Raibeck
name from events where - > (substr(cast(scheduled_start as char(26)),1,19) between '2005-01-31 > 15:39:26' and - > substr(cast(current_timestamp as char(26)),1,19) and - > LENGTH(domain_name) IS NOT NULL and - > (status='Failed' OR status='Missed'))) > > Any ideas on why the 2nd/3rd sql statement does not return anything? > > > thanks > JR

SQL statement help

2005-02-28 Thread JR Trimark
substr(cast(current_timestamp as char(26)),1,19) and - LENGTH(domain_name) IS NOT NULL and - (status='Failed' OR status='Missed'))) Any ideas on why the 2nd/3rd sql statement does not return anything? thanks JR

Re: Speeding up my SQL statement

2004-07-02 Thread Paul Ripke
'MYORACLENODE'" the query takes about 5 seconds to finish. So, the database is indeed indexed (like Wanda pointed out, thanks Wanda!) and statements like like or in causes TSM not to use these indexes. I guess it's best to issue one SQL statement per node. Thank you all for helpin

Re: Speeding up my SQL statement

2004-07-02 Thread Loon, E.J. van - SPLXM
e node_name='MYORACLENODE'" the query takes about 5 seconds to finish. So, the database is indeed indexed (like Wanda pointed out, thanks Wanda!) and statements like like or in causes TSM not to use these indexes. I guess it's best to issue one SQL statement per node. Thank you

Re: Speeding up my SQL statement

2004-07-01 Thread Paul Ripke
" -(me) -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Richard Sims Sent: Tuesday, June 29, 2004 8:03 AM To: [EMAIL PROTECTED] Subject: Re: Speeding up my SQL statement I thought about that, but would that help? If TSM still has to scan eve

Re: Speeding up my SQL statement

2004-06-29 Thread Prather, Wanda
ehalf Of Richard Sims Sent: Tuesday, June 29, 2004 8:03 AM To: [EMAIL PROTECTED] Subject: Re: Speeding up my SQL statement >I thought about that, but would that help? If TSM still has to scan every >object for a match, it wouldn't help much... That's the problem, I don't know

Re: Speeding up my SQL statement

2004-06-29 Thread Loon, E.J. van - SPLXM
y, June 29, 2004 14:03 To: [EMAIL PROTECTED] Subject: Re: Speeding up my SQL statement >I thought about that, but would that help? If TSM still has to scan every >object for a match, it wouldn't help much... That's the problem, I don't know >how SQL works... Eric - Your pe

Re: Speeding up my SQL statement

2004-06-29 Thread Richard Sims
>I thought about that, but would that help? If TSM still has to scan every >object for a match, it wouldn't help much... That's the problem, I don't know >how SQL works... Eric - Your perception is correct: if you scan a table, it will traverse the whole thing. Whereas the Backups table is

Re: Speeding up my SQL statement

2004-06-29 Thread Loon, E.J. van - SPLXM
ene,VEVEY,GLOBE Center CSC [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 13:21 To: [EMAIL PROTECTED] Subject: Re: Speeding up my SQL statement hi Eric, you could add node_name like '%ORC' to the where clause... best regards, René LAMBELET NESTEC

Re: Speeding up my SQL statement

2004-06-29 Thread Lambelet,Rene,VEVEY,GLOBE Center CSC
is privileged and confidential. -Original Message- From: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED] Sent: Tuesday,29. June 2004 12:52 To: [EMAIL PROTECTED] Subject: Speeding up my SQL statement Hi *SM-ers! I'm using the following SQL statement to retrieve obsolete Ora

Speeding up my SQL statement

2004-06-29 Thread Loon, E.J. van - SPLXM
Hi *SM-ers! I'm using the following SQL statement to retrieve obsolete Oracle backup files: select node_name, filespace_name, ll_name, date(backup_date) from backups where ((days(current_date) - days(backup_date) >= 100)) and hl_name='//' This returns all Oracle backup files,

Re: sql statement that shows the active files for a client

2004-02-23 Thread Andrew Raibeck
d enough" is the enemy of excellence. Eddie Jones <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 02/23/2004 08:15 Please respond to "ADSM: Dist Stor Manager" To [EMAIL PROTECTED] cc Subject sql statement that shows the active file

sql statement that shows the active files for a client

2004-02-23 Thread Eddie Jones
I am trying to write a sql statement that shows the active files for a client. I can not find the field in the list of tables to use. Can anyone help? Thank you in advance. Eddie Jones 770-953-1959 ext.2824 "The greatest lesson in life is to know that even fools are right sometimes.&q

Re: SQL statement

2004-01-05 Thread Loon, E.J. van - SPLXM
: [EMAIL PROTECTED] Subject: Re: SQL statement Hi Eric, There is no such table that gives you detailed information on which files were restored. The SUMMARY table will give you basic statistics about restores (SELECT * FROM SUMMARY WHERE ACTIVITY='RESTORE') but that's about it. Regar

Re: SQL statement

2003-12-31 Thread Andrew Raibeck
van - SPLXM" <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 12/31/2003 05:33 Please respond to "ADSM: Dist Stor Manager" To: [EMAIL PROTECTED] cc: Subject: SQL statement Hi *SM-ers! I'm look

Re: SQL statement

2003-12-31 Thread John Monahan
cc Dist Stor Manager" Subject <[EMAIL PROTECTED] Re: SQL statement .EDU> 12/31/2003 08:11 AM Please respond to &quo

Re: SQL statement

2003-12-31 Thread Richard Sims
'>Do you really think storing this information will have such a large impact >on the database? Storing restore information shouldn't use more database >space than storing backup information? Yes...because restorals can be performed over and over again on the same data, and because of the nature of

Re: SQL statement

2003-12-31 Thread Loon, E.J. van - SPLXM
KLM Royal Dutch Airlines -Original Message- From: Richard Sims [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 14:27 To: [EMAIL PROTECTED] Subject: Re: SQL statement >I'm looking for an SQL statement which returns all restores (nodes and >filenames) done by my cli

Re: SQL statement

2003-12-31 Thread Richard Sims
>I'm looking for an SQL statement which returns all restores (nodes and >filenames) done by my clients. >I'm not much of an SQL wizard, so maybe someone is willing to help me or >give me a hint? Eric - I don't believe that such capability exists. Certainly, storing

Re: SQL statement

2003-12-31 Thread Loon, E.J. van - SPLXM
om: Kurt Beyers [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 13:54 To: [EMAIL PROTECTED] Subject: Re: SQL statement Eric, 'select node_name, filespace_name, filespec from restores' should give the wanted information. best regards, Kurt >- Oorspronkelijk bericht

Re: SQL statement

2003-12-31 Thread Kurt Beyers
Aan : [EMAIL PROTECTED] >Onderwerp : SQL statement > >Hi *SM-ers! >I'm looking for an SQL statement which returns all restores (nodes and >filenames) done by my clients. >I'm not much of an SQL wizard, so maybe someone is willing to help me or >give me a hint? >Thank

SQL statement

2003-12-31 Thread Loon, E.J. van - SPLXM
Hi *SM-ers! I'm looking for an SQL statement which returns all restores (nodes and filenames) done by my clients. I'm not much of an SQL wizard, so maybe someone is willing to help me or give me a hint? Thank you very much in advance Kindest regards, Eric van Loon KLM Royal Dutc

Re: Complete a SQL statement

2003-07-22 Thread Fred Johanson
respond to "ADSM: Dist Stor Manager" To: [EMAIL PROTECTED] cc: Subject:Complete a SQL statement I have a domain admin who'd like to find obsolete filespaces. This is his SQL script: select filespaces.node_name,filespaces.filespace_name,filespaces

Re: Complete a SQL statement

2003-07-22 Thread Allen Barth
To: [EMAIL PROTECTED] cc: Subject:Complete a SQL statement I have a domain admin who'd like to find obsolete filespaces. This is his SQL script: select filespaces.node_name,filespaces.filespace_name,filespaces.backup_end from - filespaces where (($1 < -

Complete a SQL statement

2003-07-22 Thread Fred Johanson
_name in (select nodes.node_name from nodes where domain_name=upper('$2')) And this is the result: tsm: TSM>run sincelast_fs 30 csm ANR2909E The SQL statement is incomplete; additional tokens are required. ANR1463E RUN: Command script SINCELAST_FS completed in error. ANS8001I Return code 4. What is missing??

  1   2   >