db2cmd.exe is used by Microsoft Windows machines to assure that DB2 Command Line Processor will close when the Windows Command Line Processor (Cmd.exe) closes. db2cmd.exe is also used when scripts or various programing languages to execute a command or script from the DB2 Command Line Processor. DataBase2 Universal DataBase DB2 UDB is IBM information management software and is database software. A database is collection of information organized by entries with specified fields and values that is usually computerized and can be easily searched, accessed, or altered.