What Version and Fixpack of DB2?
What Version and Fixpack of DB2?
db2level
db2ls -q -b -a
For Example:
db2ls -q -b /opt/IBM/db2/V10.5 -a
Starting DB2:
db2start
Stopping DB2:
db2stop
DB’s active, connections incoming, but want to force off and stop DB2:
db2stop force
I am going to cheat and tell you to go here: How to Catalog a DB2 Database
Activate a database:
Deactivating a database:
This will prompt for a password. If use use the “using” command with password it can be
pulled up in command line recall.
Database uptime:
db2pd -
List of tablespaces:
An Individual:
An OS group:
db2top -d
db2expln -d -f -g -z \; -o ORIG_EXPLAIN.out
Where file.sql is a txt file containing the problem SQL for analysis. The SQL ends with a
semi-colon.
Where file.sql is a txt file containing the problem SQL for analysis. The SQL ends with a
semi-colon.
db2ckbkp -h
AIX:
ipcs
Default:
(instancehome)/sqllib/db2dump/db2diag.log