Table of Contents

November 2011

2011-11-17

DB2 server authentication and file permissions

On one of our DB2 servers users recently started seeing errors similar to this:

db2 => connect to bq1 user sapr3
Enter current password for sapr3:
SQL30082N  Security processing failed with reason "42" ("ROOT CAPABILITY REQUIRED").  SQLSTATE=08001

and warnings similar to this in db2diag.log:

2011-11-08-16.50.58.947610-300 E124555E379         LEVEL: Warning
PID     : 6414                 TID  : 47208304407824PROC : db2star2
INSTANCE: db2bq1               NODE : 000
FUNCTION: DB2 UDB, base sys utilities, sqleCheckForNonRootInstance, probe:1
MESSAGE : ADM0509E  A non root capable instance of DB2 has been detected.
          Limited functionality will be available.

When we started investigating the problem this looked like a DB2 install had been run from a user other than root, see this IBM note.

However ,we soon discovered though that someone had recently changed the file permissions of every file and directory under INSTHOME to 755.
Apparently they were having problems connecting to the database and thought this would solve the problem.

Anyway, the point of this post is to describe a simple way of fixing the file permissions of an entire DB2 directory tree.
The only proviso is that you need another, working, DB2 server to generate the required script.

2011-11-15

Did you know #7

In a crontab it is possible to:

Time string Equivalent to
@reboot server boot
@yearly “0 0 1 1 *”
@annually “0 0 1 1 *”
@monthly “0 0 1 * *”
@weekly “0 0 * * 0”
@daily “0 0 * * *”
@midnight “0 0 * * *”
@hourly “0 * * * *”