How to create a report for GRANT/REVOKE DCL statements with Log Analyzer?.
book
Article ID: 105989
calendar_today
Updated On:
Products
24X7 High-Availability Manager for DB2 for z/OSBatch ProcessorCompile QQFData Compressor for DB2 for z/OSCA Unicenter NSMRC/Update for DB2 for z/OSDB2 TOOLS- DATABASE MISC
Issue/Introduction
Log Analyzer does not have an option to create a report with only GRANT/REVOKE DCL statements, the DDL report will include these statements with all the other statements. It is difficult to review the GRANT/REVOKE statements in the middle of the other DDL statements.
Environment
Release: Component: PLA
Resolution
You can create the report with two steps:
1. Run DML report for the log range you are interested in, turn on reporting for DB2 Catalog tables and include only the tables listed below:
Also make sure to specify valid data set names for Extract and Control files on output specification screen.
2. Run DDL report (Or generate REDO DDL) with GRANT and REVOKE statements included, but use the previously generated Extract and Control files as the source for the report. That way you will filter out all DDL statements you are not interested in and only GRANT/REVOKE DCL statements will remain in the output.