Hi TSM-ers! We use the following SQL statement to report to our Oracle department if their delete obsolete jobs are running ok for all nodes:
select node_name, filespace_name, ll_name, state, object_id, date(backup_date) from backups where ((days(current_date) - days(backup_date) >= 30)) and state= 'ACTIVE_VERSION' and node_name='<nodename>' Since backups are kept for 14 days, no objects should be returned. We use TSMOR to report this on a weekly basis for all their nodes. If there are objects older than 30 days, TSM lists them as an exception, along with the amount of obsolete objects. The Oracle departments now asks me if the report could be enhanced with amount of obsolete objects per node per database. I know the database SID is used in the first 5 characters of the backup object name (ll_name), but if I want to put that in one SQL query, I think I have to create a nested SQL statement. Does anybody know if nested SQL is supported by TSM? Thank you very much for your reply in advance!! Kind 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 **********************************************************************