DB2 Commands
DB2 Commands
DB2
Commands:
db2 list applications shows the current connections (for more detail add the ‘show detail’
parameter)
db2 update db cfg for <dbname> using <param> <new setting> To Update Db parameter with
new value
db2 backup db <dbname> use TSM Simple offline backup, do stopsap and db2start
db2 backup db <dbname> online use TSM Simple online backup using TSM
db2 list history backup all for <SID>| more lists history for the backups
Rollforward
Alter Tablespaces
The db2 diagnostic log for SAP instances is usually stored under <instance home>/db2dump/db2diag.log.
This directory
will also house any dumps that may occur. If using the std SAP archive exit for DB2, the log and error files
for the archives will resides here as well. Simply
view with ‘more’.
To Read db2diag
db2 list history backup all for <DBSID> | more Lists history for the
backups
db2 ” select distinct tabschema from syscat.tables ” DB2 Schema name search
BR Vaibhav