The runstat command is used to gather statistics on tables and indexes in DB2 LUW. However, it is no standard SQL command, not even an IBM extension. It is an IBM specific to be run on their CLI. However, one can still issue from any SQL client it encapsulated in the ADMIN_SYS procedure. For details, check the IBM documentation
Example
call sysproc.admin_cmd('runstats on table MY_SCHEMA.SOME_TABLE use profile');
No comments:
Post a Comment