Information
The ALT_DIAGPATH parameter specifies an alternative location of the diagnostic files for the Db2 instance if the primary location specified by DIAGPATH is unavailable. The directory at this location should be secured so that users have read and execute privileges only (no write privileges). All Db2 administrators should have full access to the directory.
Rationale:
Securing the directory will ensure that the confidentiality, integrity, and availability of the diagnostic files contained in the directory are preserved.
Solution
For Windows and Linux
To change the directory for the diagnostic logs:
Attach to the Db2 instance
db2 => attach to <db2instance>
Run the following command:
db2 => update database manager configuration using diagpath <valid directory>
Additional steps for Windows:
Connect to the Db2 host
Right-click over the diagnostic log directory
Choose Properties
Select the Security tab
Grant the Full Control authority to all Db2 administrator accounts
Grant only read and execute privileges to all other accounts (revoke any other privileges)
Additional steps for Linux:
Connect to the Db2 host
Change to the diagnostic log directory
Change the permissions of the directory
$ chmod -R 3777 .