DB2: take offline backup
Stop tcpip connections like so:
db2set db2comm=
db2 force applications all; db2stop
db2 list applications <-- to see if there are any connections
db2start
**note WSDBA is an account that has SYSADM, SYSCTRL or SYSMAINT privileges
[wsdba@dev601 dev1ins1 ~]
$ db2 backup database wcdev1 to /usr/opt/app/dbdump compress without prompting
when complete do the following
db2set db2comm=tcpip
db2stop
db2start
ps -ef | grep db2sysc <-- to see which databases are up/down
confirm that applications reconnect
Comments
Post a Comment