Configuring automatic data collection
- Copy the NGLARCH member from hlq.llqSAMP to your SYS1.PROCLIB (or equivalent) started task.Doing so allows for the automatic submission of the NGL9ARCH utility each time a Data Collector log file becomes full or each time the Data Collector SWITCH command is issued. NGLARCH creates an archive data set. This data set contains all data from the log file that was filled or switched from.
At the DOMPLEX option set panel for your DOMPLEX, expand DB2 Monitor List to define the SQL statistics collection interval for each Db2 subsystem.For best results, align your interval definitions so that an interval ends at midnight each day. This approach aligns the daily, weekly, and monthly tables. Otherwise, the table aggregations include data from the end of the aggregation period until the end of the interval.
Set up an automatic Data Collector SWITCH.A log file switch should occur when the last SQL statistics collection interval concludes each day and the ApptuneUNLOAD process completes. The switch tells the NGLARCH started task to populate your archive data sets with data for the Performance Advisor tables (typically, shortly after midnight), and can be implemented using an automated Data Collector SWITCH command. Implement this using the system automation tool of your choice