ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.
Deleting rows from PSM (Statistical Manager) tables
Article ID: 49729
RC Compare for DB2 for z/OSBind Analyzer for DB2 for z/OSSQL-Ease for DB2 for z/OSSYSVIEW Performance Management Option for DB2 for z/OSPlan Analyzer for DB2 for z/OSSubsystem Analyzer for DB2 for z/OSDatabase Analyzer for DB2 for z/OSFast Unload for DB2 for z/OSFast Check for DB2 for z/OSFast Index for DB2 for z/OSFast Load for DB2 for z/OSRapid Reorg for DB2 for z/OS
There are unneeded versions of strategies that need to be cleaned up from the PSM (Statistical Manager) tables.
Can a query be written to clean up those rows?
What are the tables involved in storing strategies versions data?
Is there any RI built in to these tables.
Yes a simple query can be written to delete rows from the PSM tables.
There are five PSM tables involved : PTPS_DBASTATS_1200 PTPS_SYSSTATS_0702 PTPS_STRAT_0702 PTPS_OBJECTS_0702 PTPS_MASKS_0702
# is the suffix indicating the release e.g.1200, 0702
No RI exists between these tables, but the same key NAME, CREATOR, PRODUCT and VERSION are used across all 5 tables. Potentially, you would want to delete the version from all 5 tables. VERSION = 0 is always the strategy and 1-n are the possible strategy versions.