Difference between DB2 Terminate and Connect Reset

db2 Terminate and db2 connect Reset both break the connection to a database.

Connect Reset breaks a connection to a database, but does not terminate the back-end process. The Terminate command does both  break the connection to a database and terminate the back-end process.

db2 list applications

Auth Id Application Name Appl. Handle Application Id DB Name # of Agents

------- -------------- ---------- ------------------------------ -------- -----

S1 db2jcc.exe 1 *LOCAL.DB2.10000 EMP 1

TEST db2jcc.exe 2 *LOCAL.DB2.20000 EMP 1

Now you can use db2 "force applications all" This command is used to kill all the applications forcefully at instance level .

To force a particular application with application handle 1

db2  "force application(1)"

Comments

Popular posts from this blog

Db2 export command example using file format (del , ixf)

How to fix DB2 Tablespace OFFLINE state issue?

How to determine fenced User-ID of a DB2 instance