Scroll ignore | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
About Collectors
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
The DB2 user that the collector will be using must have select access to the following tables
syscat.tables
syscat.views
syscat.columns
syscat.procedures
syscat.functions
syscat.roleauth
syscat.tableauth
sysibm.sqlforeignkeys
Enabling DB2 Audit
To capture usage information audit needs to be enabled in db2.
See https://www.ibm.com/docs/en/db2/11.1?topic=facility-audit-policies
KADA audit policy guidelines
KADA recommending to start using the WITHOUT DATA directive to limit logging. However if dynamic sql is used WITH DATA may need to be enabled.
KADA only requires the successful EXECUTE events
Code Block |
---|
CREATE AUDIT POLICY KADA CATEGORIES EXECUTE WITHOUT DATA STATUS SUCCESS ERROR TYPE NORMAL COMMIT
AUDIT DATABASE USING POLICY KADA COMMIT |
After the logs are captured they need to decoded and loaded into db2 tables. KADA will extract the usage information from the audit tables. Follow the guide https://www.ibm.com/docs/en/db2/11.1?topic=logs-creating-tables-db2-audit-data
...
Step 2: Create the Source in K
...