Quote:
Originally Posted by BELLO4KA
If the db is listed in the list active databases output with zero applications connected, then activate db command was used.
Or check db2diag.log for the following entry:
START : DATABASE: <db name> : ACTIVATED: [YES/NO]
|
If users are connected, the the first method is useless.
If, like a good DBA should, the db2diag.log gets archived daily and the system has been up for days or months, the second method would get complicated real fast.
Obviously DB2 knows if a database was explicitly activated as it has to be explicitly deactivated. You would think that you could get this simple bit of information, but I cannot find how.
Andy