I'm using DB2 9.1 LUW with AIX 6.1. I have a list of tables that include LOBS, CLOBS, and BLOBS fields that I would like to know when the Tables with these fields have been last touched (selected/updates/deletes etc).
Is there a way to do this from DB2 9.1 LUW? Maybe a Select statement or DB2 command?
db2 " select substr(table_name,1,30) as tbname, rows_read, rows_written, overflow_accesses, page_reorgs from table (SNAPSHOT_TABLE('db_name',-1)) as snapshot_table order by rows_written desc fetch first 10 rows only "
small remark :
Note: This table function has been deprecated and replaced by the SNAPTAB administrative view and SNAP_GET_TAB_V91 table function - Retrieve table logical data group snapshot information
Best Regards, Guy Przytula
Database Software Consultant
Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
Information Server Datastage Certified http://www.infocura.be