Users with DBADM and SECADM authority may ask why the provided permission script should be run when configuring the Foglight DB2 Agent, even though the user already has the highest database-level privileges.
Even though DBADM and SECADM are powerful roles in DB2, they don't automatically grant access to all of the system routines, views, or monitoring functions, especially those under the SYSPROC and SYSIBMADM schemas. These authorities are restricted by design to enforce object-level security and least-privilege access. Access to them is restricted by default to prevent unauthorized or unintended access, even for highly privileged users.
The permission script included with the DB2 Cartridge grants EXECUTE or SELECT privileges on various monitoring, diagnostic, and environment inspection routines that are required for the agent to function properly. Examples include:
Even with DBADM or SECADM, these functions are not accessible unless explicitly granted.
To ensure the DB2 agent functions as expected, users must run the permissions script, regardless of whether the user has DBADM or SECADM authority.
To run the permissions script outside of the UI.
1). Replace @quest_replace_user and @quest_replace_group in the script with the appropriate Db2 user and group.
2). Connect to the target database:
db2 connect to <your_database_name>
3). Execute the script
db2 -tvf DB2_grant_Permissions_v10.sql
This is a standard Db2 security model behavior and not a limitation of the Quest software.
Running the permission script ensures only the necessary privileges are granted, following best practices for secure monitoring.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center